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

Export/Import from memory not working

former_member632991
Active Contributor
0 Likes
745

Hi,

i am using Export itab to memory id in my program and after that i have to run another report.

<b>When i use Submit reportname and then use import it is working fine.

But in case i use leave to transaction 'ZZZ'. snd then in that import is not working.</b>

I have to use leave to transaction because i want user to enter some values on selection screen.

What can be the problem in this case?

Regards,

Sonika

4 REPLIES 4
Read only

former_member225631
Active Contributor
0 Likes
554

try SET PARAMETER-ID.

Read only

former_member632991
Active Contributor
0 Likes
554

i hv to export internal table thats why i am using that...i cn't use set parameter

Read only

Former Member
0 Likes
554

hi

To fill the input fields of a called transaction with data from the calling program, you can use the SPA/GPA technique. SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs.

ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.

<b>To fill one, use:</b>

<b>SET PARAMETER ID <pid> FIELD <f>.</b>

This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.

<b>To read an SPA/GPA parameter, use:</b>

<b>GET PARAMETER ID <pid> FIELD <f>.</b>

This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.

regards,

Ashok Reddy

Read only

former_member632991
Active Contributor
0 Likes
554

.