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

Using Submit & Return

Former Member
0 Likes
1,244

Hi Experts,

Can any one tell me if i am calling a program ZXABC using SUBMIT & RETURN, abd if that progrm has few internal tables containing the data it_table1, it_table2 & it_table3, how can i get the data from those tables into the tables through which the program ZXABC is called?

Thanks.

Harshad

6 REPLIES 6
Read only

Former Member
0 Likes
830

HI,

You the export those table in report ZXABC and import all those in the program through which ZXABC is called

Hope it helps

Read only

0 Likes
830

I don't have the authorization to change the program from which i need the table

Read only

0 Likes
830

Hi,

Hope this may help

[https://forums.sdn.sap.com/click.jspa?searchID=26515247&messageID=7191342|https://forums.sdn.sap.com/click.jspa?searchID=26515247&messageID=7191342]

Read only

Former Member
0 Likes
830

Hi,

In submit program which table data you want to pass next program. you need to pass the by using the sap memory syntax for sap memory is

if you want to pass data different sessions( if you close the sap data will store in the data base).

export data_itab1 to database idx(hk) id 'idname'. --> export the data from submit program

import data_itab1 to database idx(hk) id 'idname'.--> import the data from where you want at any time.

Data passing in one session ( if you close the sap the internal table data will destroy).

export data_itab1 to memory id 'idname'.

import data_itab1 from memory id 'idname'.

Regards,

Munibabu.K

Read only

former_member632729
Contributor
0 Likes
830

Hi Dude,

There are two cross-program memory areas to which ABAP programs have access (refer to the diagram in Memory Structures of an ABAP Program that you can use to pass data between programs.

SAP Memory

SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters).

These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens.

ABAP Memory

ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse. For further information, refer to Data Clusters in ABAP Memory

Edited by: Raghunath Shyamala on May 25, 2009 7:32 AM

Read only

Former Member
0 Likes
830

answered