‎2009 Jun 02 6:32 AM
Hello Experts,
I want to know regarding GET PARAMETER ID 'XYZ' FIELD F_grn.
I want to know how we capture ID from the standard T.Code.
We debug by /h and Goto ->System Areas -> SAP Memory.
But I m not able to get.
Regards,
Ravi
‎2009 Jun 02 6:44 AM
Hi Ravi,
In a transaction, check the "Parameter ID" field in the data element of the required field.
(required field is the field on which you wish to capture the parameter ID).
cheers
gaurav
‎2009 Jun 02 6:44 AM
Hi Ravi,
In a transaction, check the "Parameter ID" field in the data element of the required field.
(required field is the field on which you wish to capture the parameter ID).
cheers
gaurav
‎2009 Jun 02 6:45 AM
Hi Ravi,
Program 1:
data: v_text(5) value 'Hello'.
set parameter id 'XYZ' field v_text.
get parameter id 'XYZ' field v_text.
write:/ v_text.
In the first program 'Hello' is stored in memory id 'XYZ'.
Program 2:
data: v_text(5).
get parameter id 'XYZ' field v_text.
write:/ v_text.
Note: Execute the program 1 first then program 2.
Regards,
Kumar Bandanadham.
Edited by: Velangini Showry Maria Kumar Bandanadham on Jun 2, 2009 7:48 AM
‎2009 Jun 02 6:49 AM
Hi,
EX:
SET PARAMETER ID 'ZVA' FIELD vbeln. this statement set the VBELN value in SAP memory.
if u want to get that value, u have to use..
GET PARAMETER ID 'ZVA' FIELD vbeln. this statement retrive VBELN value from SAP memory.
if u want to know parameters ID for particular field,,,go to program--->find
Regards,
Ramesh.
‎2009 Jun 02 6:52 AM
Hi,
What u do is, debug by /h and set a break point on statement EXPORT while u r in debugging mode, so every time it encounters EXPORT statement it stops there.
U can set breakpoints from Menu options.
Regards
Bala Krishna
‎2009 Jun 02 6:53 AM
‎2009 Jun 02 6:56 AM
Hi,
You can get the parameter ID when you click F1 on the Screen field and go to Technical Information.
Then you can call GET or SET based on your requirement
SET PARAMETER ID pid FIELD f.
Writes the contents of the field f to the global user-specific SAP memory under the ID pid.Parameter IDs can be up to 20 characters long. They cannot consist entirely of spaces.
The global, user-specific SAP memory is available to a user for the duration of a single terminal session. Values written to it are retained even when the user exits a program.
GET PARAMETER ID pid FIELD f.
Transfers the value stored under the key pid from the global user-related SAP memory to the field f.
Hope this helps.
Best Regards
Sumana
‎2009 Jun 02 7:16 AM
Hello Sumana,
U suggest
Writes the contents of the field f to the global user-specific SAP memory under the ID pid.Parameter IDs can be up to 20 characters long.
I reach upto SAP memory , i m not getting ID pid.
Help.
Ravi
‎2009 Jun 02 7:26 AM
Hi,
Can you tell us how are you getting ID PID ?
Regards
Sumana
‎2009 Jun 02 7:33 AM
Mam,
That's what i m asking how to Get Parameter ID from std T.Code.
Ravi
‎2009 Jun 02 7:37 AM
Hi,
Just click on that field on screen whose Parameter ID you need, press F1, Click on Technical Information button, there you will find "Parameter ID" (along with field name, table name etc )
That is the Parameter ID for the field you selected.
Hope this helps. Let me know if u dont get it.
Best Regards,
Sumana