Logic for storing messages in internal table
I have created one structure with several fields & in last I have created 20 messages . I want to store the messages in the internal table based on two checks.
In the first check I am passing messages to internal table successfully and increasing the value of a local variable "count" by 1 to get the count of messages.
In the second check I want to start from count +1 (For eg: If I get count = 4 after first check. then want to store the messages from 5th position) and want to store rest of the messages from work area to internal table.
Please suggest solution for it.