Hello,
I have a requirement something like this:
i am using TMG event - before save '02', to capture changed/inserted/deleted records and update another ztable based on that.
since <ACTION> does not gets captured in event '01'-after save,otherwise i would have used that event.
Now what i am trying to do,
Suppose i have a TMG for ZTAB1.
In event 02- i am creating a dynamic internal table and structure of type ZTAB1.
UPTO here, everything is ok.
now after after, the record which is changed,is in table EXTRACT, and i wan to move values in extract into that field symbol of type ZTAB1.
something like this:
LOOP AT total.
CHECK <action> = gc_updt."'U' >update flag
READ TABLE extract WITH KEY <vim_xtotal_key>.
CHECK sy-subrc is INITIAL.
* move extract to <fs_line>. "DUMP is comming "Issue is here.<fs_line> is of type ztab1 (work area).
* ASSIGN COMPONENT 'LINE' OF STRUCTURE extract to <fs_line>."<fs_line> also gets filled with values in concatenated form.
As soon as extract is moved into <fs_line> using above way(RED ONE),program gets dummped
Using other way(BLACK ONE-ASSIGN COMPONENT) <fs_line> also gets filled with values in concatenated form.
I want to move corresponding values of extract to field symbol <fs_line>
and then append <fs_line> to <fs_table>.