Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

User Exit and Call Stack issues

Former Member
0 Likes
555

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

2 REPLIES 2
Read only

nirajgadre
Active Contributor
0 Likes
467

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.

Read only

Former Member
0 Likes
467

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