2020 Nov 13 4:29 PM
HI
I need to append a record to the internal table 'TKOMV' in the SAPMM06E program.
The table is declared
*------- TKOMV ( Tabelle der Konditionen im Beleg)
DATA: BEGIN OF tkomv OCCURS 50.
INCLUDE STRUCTURE komv.
DATA: END OF tkomv.
And a need to access from the a FM User-exit 'EXIT_SAPLMEKO_002'
I create a FIELD-SYMBOLS <fs_tkomv> TYPE ANY TABLE.
ASSIGN ('(SAPMM06E)tkomv[]') TO <fs_tkomv>.
But i do not know how to append at it.
Can anybody help me?
Thanks!
2020 Nov 13 8:32 PM
Because you declared it "any table", you may only use INSERT ... INTO TABLE <fs_tkomv>.
If you had declared it "standard table" (it should be possible as I guess it's declared in SAPMM06E as a standard table), you might have used APPEND ... TO <fs_tkomv>.