‎2006 May 18 5:30 PM
Hi,
i need to retireve internal table info in an exit during runtime. i'm able to see the values in that internal table from the corresponding program in call stack ,however, i couldnt get this table inside my exit.
how to access this internal table?
Thanks,
venu.
‎2006 May 18 6:17 PM
You can use field symbols to do this. In your user exit, you need to do something like this.
data: field(50) type c.
data: xmarc type marc.
field-symbols: <imarc> type marc_upl_tt.
* Assign an internal table
field = '(ZRICH_0006)IMARC[]'.
assign (field) to <imarc>.
* You can now access IMARC from other program
loop at <imarc> into xmarc.
write: / xmarc-werks.
endloop.
Regards,
Rich Heilman
‎2006 May 18 6:17 PM
You can use field symbols to do this. In your user exit, you need to do something like this.
data: field(50) type c.
data: xmarc type marc.
field-symbols: <imarc> type marc_upl_tt.
* Assign an internal table
field = '(ZRICH_0006)IMARC[]'.
assign (field) to <imarc>.
* You can now access IMARC from other program
loop at <imarc> into xmarc.
write: / xmarc-werks.
endloop.
Regards,
Rich Heilman
‎2006 May 18 7:24 PM
Rich,
Thanks. it solved my problem.
do we have any documentation where i can find advanced topics related to field symbols.
Thanks,
venu.
‎2006 May 18 7:27 PM
‎2009 Aug 24 11:59 AM
This should be made a sticky (or be put into the wiki) I keep forgetting how to do this