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

Import/Export and Get/Set Parameter

Former Member
0 Likes
2,674

Hi,

I am confused with the concept of Import/ Export Parameters and get/set parameters. Can anyone please give me clear understanding on

(1) what are those?

(2) what is the difference between them

(3) how should we use them?

Thanks..

Swetha.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,798

(1) what are those?

Interfaces with the ABAP Memory...

(2) what is the difference between them

You save a value to the ABAP Memory using EXPORT and gather that value using IMPORT

(3) how should we use them?


EXPORT W_DATA TO MEMORY.
IMPORT W_DATA FROM MEMORY.

Greetings,

Blag.

11 REPLIES 11
Read only

Former Member
0 Likes
1,798

HI,

Please refer go thru TCode ABAPDOCU.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
1,799

(1) what are those?

Interfaces with the ABAP Memory...

(2) what is the difference between them

You save a value to the ABAP Memory using EXPORT and gather that value using IMPORT

(3) how should we use them?


EXPORT W_DATA TO MEMORY.
IMPORT W_DATA FROM MEMORY.

Greetings,

Blag.

Read only

0 Likes
1,798

Hi Blag,

Thanks for giving info on Export/Import. Could you kindly provide me information on Get/Set Parameter as well? I asked those three questions on both the import/export and get/set parameters as well.

Thanks again..

Swetha.

Read only

0 Likes
1,798

Hi,

Import and Export are like storing the data of variables or internal table data in a standard database index using memory id for a particular SAP session.

SET/GET parameter id's also do the same thing except these cant carry the table data. This can carry the values of the fields only and the parameter id's are defined at the data element level.

Regards

Kannaiah

Read only

0 Likes
1,798

Hi Swetha,

Import/Export are ABAP Memory

SET/GET are SAP Memory

Export is used to transport values with in session.

set parameter is used to transport values from session to session.

These will be stored in sparam table.

Once u log out, all values are lost for export/import parameters.

When comes to SAP memory (also known as global memory), if the data has to be passed b/w two main sessions, we can use SAP Memory(SET/GET Parameters). SAP Memory can also be used to pass data b/w internal sessions.

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 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 SET/GET parameters is to fill input fields on screens

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.

Revert back for more help.

Regards,

Naresh

Read only

0 Likes
1,798

Hi Naresh,

Thanks for your help..I have rewarded the points..

One more basic question..could you kindly let me know what do you mean by a session? You have mentioned that both (Import/Export and Get/Set Parameter) are used to transport values from session to session or withing a session. For my clear understanding, please let me know what is a session?

Thanks again...

Swetha.

Read only

0 Likes
1,798

Hi Swetha,

As Naresh explained

Import/Export is ABAP memory i.e. temporary ... The data get cleared when you close the report whereas GET/SET is SAP memory which will remain permanent. To use GET/SET parameters we need to have logical database for the perticular table which we are using.

Here the session concept come into picture. You can use import/export from one report to another which will have a common global declaration ( normally TOP ) include., however GET/SET statement can be used in any report.

If you have still doubt, revert back.

<REMOVED BY MODERATOR>

Sachin

Edited by: Alvaro Tejada Galindo on Feb 19, 2008 11:33 AM

Read only

0 Likes
1,798

Hi Swetha,

A session is basically another SAP instance on your screen. Multiple sessions allow you to work on more than one task at a time. This can save you time and reduces the need to jump from screen to screen.

You can open up to six sessions, and do a different task, or even the same task, in each one. You can move around between the open sessions, and you can close any session without having to log off from the system.Each session you create is as if you logged on to the system again. Each session is independent of the others. For example, closing the first session does not cause the other sessions to close.

Once you log out a session is closed.

Check this :

http://help.sap.com/saphelp_46c/helpdata/en/73/69eb9955bb11d189680000e829fbbd/frameset.htm

hope this helps.

Regards,

Naresh

Read only

0 Likes
1,798

Hi Naresh,

Once we log out, all values are lost for export/import parameters. Are the values for set/get parameter will also be lost or they will be retained?

Thank you very much for all your help..

Swetha.

Read only

0 Likes
1,798

Hi Swetha,

export/import parameters will be cleared but SET/GET Parameters retain their values until unless they are overwritten or cleared.

So be careful to clear the memory ids before you use them.

Regards,

Naresh

Read only

0 Likes
1,798

Thanks a lot Naresh..