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

Reading Screen field values

Former Member
0 Likes
1,929

Hi friends,

I have one requirement that in IE02 screen there are so many tabs but I have to check one field on tab1 based on the value present in one of the field of tab2. For that I have created field exit for the field on tab1. But I am unable to retrieve the field value present in tab2. So my question is how to retrieve the field value present in Tab2 so that I can write logic for checking the field in Tab1.

Thanks in advance.

Regards,

Steve.

4 REPLIES 4
Read only

Former Member
0 Likes
1,008

Hi Stephen,

Since its IE02, its highly likely that the field has some parameter ID related to it. To see the parameter ID related to it go to F1->Technical Information for that field.

Use GET PARAMETER to read the parameter value and work with the field.

You can also create your custom parameter using SET PARAMETER.

Regards,

Prosenjit.

Read only

Former Member
0 Likes
1,008

Hi Prosenjt,

As you said, I added that parameter id in user profile and I checked with GET PARAMETER, but still the value is not getting picked up. What could be the reason? kindly suggest me if there is any other method to read the field value.

Regards,

Steve

Read only

Former Member
0 Likes
1,008

Hi Stephen,

SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. It is important to note that the values are stored in GLOBAL and User-Specific Memory.

A Parameter ID can be 20 Characters long.

You can pass values to the SAP memory using SET PARAMETER ID <pid> field <f> and get the values from the SAP Memory using GET PARAMETER ID <pid> field<f>.

On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.

Now we will see an example as to how SET PARAMETER and GET PARAMETER can be used in a real life Scenario.

Suppose you want to call a Transaction and Skip the Initial Screen. For example in transaction VA01 if the parameters on the initial screen are fixed and you want to preset to the user screen no 2. then it can be done as follows.

data: d_order_type_field like vbak-auart value 'OR'.

SET PARAMETER ID 'AAT' FIELD d_order_type_field.

CALL TRANSACTION 'VA01' AND SKIP FIRST SCREEN.

You can also get the latest Order number from SAP using GET PARAMETER ID as follows.

data: d_order_no like vbak-vbeln.

Code for BDC.

GET PARAMETER ID 'AUN' FIELD d_order_no.

Hope it helps you

Regards

Mansi

Read only

Former Member
0 Likes
1,008

There are a number of functions that let you 'read' the field values from a screen; example DYNP_VALUES_READ.

Go to SE37 and search with DYNVALUE*

Pick one function that gets the values and try it out.