Application Development 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: 

How to use SET & GET Parameters in Module Pool

Former Member
0 Kudos

Hi Friends,

Can anyone please tell how to use SET / GET parameters and PARAMETER ID for a text box (Input / Output field ) in module pool? What is the purpose and where do we need to do coding for it?

Note : I will definitely give the marks for good responses.

Thanks in advance,

Pradeep

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi, you can read the following link:

http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/frameset.htm

In conclusion, the SPA/GPA technology is used for store and read global value, in order to transfer data on screen between application.

Hope it will be helpful

thanks

Senthil

8 REPLIES 8

Former Member
0 Kudos

Hello Pradeep,

You can set/get the parameter values by specify the parameter id in the field attributes in the screen painter.

Goto transaction SE51 and open the screen in change mode. Go to the attributes of the field where you want to set the parameter id and mention the parameter name there. The system will actually set/get the value when the screen is loaded or a user action happens.

Regards,

Manoj

0 Kudos

Hi pradeep

either go to SE51 oe Se80 n ur screep painter of concrened screen,go to properties of field u want to set and theye u wil find option to specify parameter ID..

and then u can set/get it in ur program.

Former Member
0 Kudos

hi, you can read the following link:

http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/frameset.htm

In conclusion, the SPA/GPA technology is used for store and read global value, in order to transfer data on screen between application.

Hope it will be helpful

thanks

Senthil

Sharadha1
Active Contributor
0 Kudos

Hi Pradeep,

You can save values in the SAP memory using a parameter ID. These

are user and terminal-session specific, but available to all internal and

external sessions.

SET Parameter copies the corresponding field contents into the SAP

System memory in the PAI processing block.

GET Parameter copies the corresponding field contents from the SAP

memory at the end of the PBO processing block, after data has been

transferred from the program, if the screen field still has its initial value

You can link an input/output field to an area of the SAP memory in the

ABAP Dictionary.

When you use an input/output field that is defined in the ABAP

Dictionary, its parameter ID is displayed in the Dictionary attribute

Parameter ID in the Screen Painter.

Usage

SET PARAMETER ID: ’CAR’ FIELD space,

’CON’ FIELD space,

’DAY’ FIELD space.

Here is the link that explains the usage of GET/SET in detail

<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm">http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db9e0435c111d1829f0000e829fbfe/content.htm</a>

Regards,

Sharadha

Former Member
0 Kudos

Hi pradeep,

Normally the SET parameter and GET parameter are used when we want to pass values from a report to a transaction storing in the SAP memory.

If you want to use the both SET and GET in the module pool to initialize the text fields.

use the statements in the PBO module to get the parameter from the SAPmemory to initialize the text field .

The SET statement should be used before teh GET statement with teh same ID what you are setting the value.

regards,

sateesh.

Former Member
0 Kudos

Hi,

In the Module pool(SE51), just Double click that field which you want to set the GET/SET parameter id, When you double click the field, the attribute window will be open, there you can set a Check box for the SET/GET parameter ID and Give the parameter ID for that one,

there is another way to give the GET/SET parameter id, what ever the field you have given, Give a Dataelement, in the Data element, there is a Option to mention the GET/SET parameter id and the ID name, there you can maintain,

For PARAMETER ID also the Same process

Regards

Sudheer

Former Member
0 Kudos

hi

You give the parameter id fot text box... in the Attributes of the puticularr element ther eis a field called "parameter ID".. in this you can give any unique name..

whterver the value you enter in the text elenmet .. it will stores in the Memory id..

even if you wanto set some value for the text element by using the memory id u can do as follows

SET PARAMETER ID C_MTART FIELD SPACE.

if you want to retrieve the value from the memory id you do as fallows..

GET PARAMETER ID C_MTART FIELD V_MTART

<b>Please Close this thread.. when u r problem ise solved</b>

Reward if Helpful

Regards

Naresh Reddy K

Former Member
0 Kudos

On se51- screen painter where u create the screen and its elements ....go to the property(attributes) window of ur field by double clicking it . There at the bottem half of the window , under the tab DICT u will find PARAMETER ID . Specify the parameter ID name here .

To create your own parameter ID, so that a user can then define an entry for that parameter_id in their user parameters, you should do this for the PID that u have mentioned on the screen painter using above steps:

transaction sm30 - enter table name TPARA - click Maintain button.

if u want to create a parameter id for a field of a table then in SE11, you can assign a parameter id to a data element

reward points if useful.

regards,

barath.