‎2010 Jan 28 4:38 AM
Hi Abappers,
I have a requirement to include my customized functionality in a user Exit COPA0002.
I need to use the contents of an internal table of another program SAPLKEII.
The entries are present in the internal table and I can see it in the CAll Stack.But getting assigned into my program.
What is the possible solution to get the entries of the internal table from the call stack.'
Code snippet/Syntax would be of a great help.
I supppose Field symbols concepts can be used in achieving the functionality.
Please waiting for the help.
Thanks and Regards
P.Srikanth
‎2010 Jan 28 4:51 AM
Hi,
try this..
define constant
CONSTANTS: lc_const(20) TYPE c VALUE '(SAPLKEII)name of internal table[]',
Define the field symbol:
FIELD-SYMBOLS <fs_temp> TYPE ANY.
Assign the constant to filed symbol
ASSIGN (lc_const) TO <fs_temp>.
Now <FS_TEMP> contains the internal table data.
‎2010 Jan 28 11:06 AM
Hi Srikanth,
Try to use memory-id. (Set or get parameter).
Whereever itab has been filled write it. IMPORT itab FROM MEMORY ID 'XYZ'.
whereever you required this table. use it EXPORT itab TO MEMORY ID 'XYZ'.
import or export has obsoleted so better to use GET/SET (SPA/GPA).
Link: [http://help.sap.com/erp2005_ehp_04/helpdata/EN/bf/ec077e5db911d295ae0000e82de14a/frameset.htm]
thanks.
Anurag