Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Inserting in sorted internal table

Hi folks,

I have created a sorted internal table of type MARA and have populated the internal table with values from the MARA table. Now, I have to insert a record into the internal table. If I insert the record using INSERT statement, it is giving me a runtime error. I know I have to use the sort key somewhere in the syntax, but am not able to figure it out. Can anyone give me a snippet of code to do the insert functionality into a sorted table.

Thanks in advance.

Helpful answers will be rewarded.

Not what you were looking for? View more on this topic or Ask a question