Inserting in sorted internal table
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.