Hello Team,
I have a requirement such as this.
I need to loop the internal table idoc_data , search for segment E1EDKT2, and alter the tdline for the segment, is there an efficient way of doing this?
LOOP at IDOC_DATA
assigning <FS_IDOC_DATA> where SEGNAM = ‘E1EDKT2’
if sy-tabix = 1,
concatenate ‘XXXXXX:’ E1EDKT2-TDLINE into E1EDKT2-TDLINE.
endif.
endloop.
Is there an efficient way that i can access the segment of the row in idoc_data and alter the tdline?
would greatly appreciate any help on this.
· if sy-tabix = 1, concatenate ‘PAYMENT TERMS:’ (Get this value from BRF+) <FS_IDOC_DATA>-TDLINE into <FS_IDOC_DATA>-TDLINE