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

Pass Internal Table to Memory

Former Member
0 Likes
3,353

Dear Experts.

I have the following problem.

I am using a User-Exit for Travel that is called from a program standard with use the T.Code TRIP. The program standard use a structure that when entry in the user exit not is. I need use this structure in the user exit. (p_t_req_head).

I had read abour SAP and ABAP Memory but from the program standar How can Pass Internal Table to Memory SAP or ABAP from the program standard to user-exit?

When I am doing debugging in the program Standard and this call to the user exit, I use ()namestructure for example ()p_t_req_head and I get the datas of the structure, But In the Source Code ABAP, How can do this with instructions?

Regards

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,047

If the table is defined in the Global data declaration of the standard program, you can access this in the ABAP stack.

Classic example :

If the table is defined in the Global data declaration of the standard program, you can access this in the ABAP stack.

Classic example :

3 REPLIES 3
Read only

Former Member
0 Likes
2,047

Hi,

You can make use of statement for abap memory,

EXPORT <internal table> TO MEMORY-ID <ID-name>.

Regards,

Dheeraj Gosain

Read only

Former Member
0 Likes
2,047

Hi,

You try with Import & Export Statements as follows ---

DATA : t_itab LIKE TABLE OF spfli.
EXPORT t_itab TO MEMORY ID 'ABCD'.

After sending the internal table to ABAP memory you need to get that by IMPORT in the called session.

IMPORT t_itab FROM MEMORY ID 'ABCD'.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,048

If the table is defined in the Global data declaration of the standard program, you can access this in the ABAP stack.

Classic example :