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

Regarding Get Parameter

Former Member
0 Likes
1,289

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,245

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

10 REPLIES 10
Read only

Former Member
0 Likes
1,246

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

Read only

Former Member
0 Likes
1,245

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

Read only

Former Member
0 Likes
1,245

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.

Read only

former_member585060
Active Contributor
0 Likes
1,245

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

Read only

Former Member
0 Likes
1,245

This message was moderated.

Read only

Former Member
0 Likes
1,245

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

Read only

0 Likes
1,245

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

Read only

Former Member
0 Likes
1,245

Hi,

Can you tell us how are you getting ID PID ?

Regards

Sumana

Read only

0 Likes
1,245

Mam,

That's what i m asking how to Get Parameter ID from std T.Code.

Ravi

Read only

Former Member
0 Likes
1,245

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