Question: what is the difference between with key and with table key in sap abap?
Answer: When you use "WITH TABLE KEY" the "keyname" you specify should have been defined as a key while defining the internal table. The key specified by 'keyname' is a secondary index. But when you use "WITH KEY" the components that you specify after that need not be components of any secondary index.