‎2008 Jan 08 2:57 PM
What is the difference between Set parameter and Get parameter?
‎2008 Jan 08 2:59 PM
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.
‎2008 Jan 08 3:04 PM
SET PARAMETER to store value to a parameter id & GET PARAMETER to fetch the value.
Thanks
ANUPAM
‎2008 Jan 08 3:09 PM
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.
‎2008 Jan 08 3:10 PM
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
‎2008 Jan 08 3:22 PM