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

SET PARAMETER AND GET PARAMETER

Former Member
0 Likes
1,077

What is the difference between Set parameter and Get parameter?

5 REPLIES 5
Read only

Former Member
0 Likes
937

Hi Ansar,

Set Parameter ID is used to set values to the fields of the screens through the program.

Get Parameter ID is used to get the values into the program that are entered in the fields of the screens.

U can see this example.

set parameter id 'MAT' field it_mara-matnr.

call transaction 'MM03'.

Thanks & Regards

Haritha.

Read only

Former Member
0 Likes
937

SET PARAMETER to store value to a parameter id & GET PARAMETER to fetch the value.

Thanks

ANUPAM

Read only

Former Member
0 Likes
937

Hi,

Set parameter is used to put some value into ABAP memory area, get paramter is used to retrive values form ABAP memory.

refer the below sample code.

here i am taking one material number and i am passing that mateial number by using 'set parameter id', the material number will be stored in ABAP-memory area 'MAT', and then i am calling the Tcode 'MM03', after executing the Tcode (from program) automatically 'MM03' will reads that material number from that ABAP-memory area and it will displays the 'MM03' tcode along with material number.

you can find the parameter-id's from data element of that field.

parameters: p_matnr like mara-matnr.

set parameter id 'MAT' field p_matnr.

call transaction 'MM03'.

Reward if useful.

Thanks,

Sreeram.

Read only

Clemenss
Active Contributor
0 Likes
937

Hi ansar,

as you could write this question I am convinced you can put the cursor in ABAP editor on SET or GET, click to the PARAMETER addistion and read what SAP writes.

If you still have trouble understanding, you may quote the parts you don't understand.

Thank you a thousand times.

Regards,

Clemens

Read only

Former Member
0 Likes
937

LOL !