cancel
Showing results for 
Search instead for 
Did you mean: 

Getting description based on input value

Former Member
0 Kudos

Hey all,

1. This time I wanted to ask how to get to display description of the entered value in the custom text field?

E.g.user inputs a account group of 1010 and in the next screen client wants that the description of this account group is shown. Below is a visual example.

2. And also I would like to know how to deal with "remembered values". E.g. tcode VA41 - when in first screen contract type is selected -> proceeded to the next screen for entering details of contract -> exit without saving, then when next time entering VA41 the previously selected contract type is still appearing in the field. Hot to make it to be blank every time?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

kammaje_cis
Active Contributor
0 Kudos

Hi Diana,

About 1.

onLoad of this screen, you can call a webRFC and populate the description.

About 2.

onLoad you may clear the value using a one line js.

Regards

Krishna

Former Member
0 Kudos

Can you explain more in detail, please?

kammaje_cis
Active Contributor
0 Kudos

Every screen has a onLoad event and you can attach scripts to be executed when this event occurs. This event triggers when the screen gets loaded. In this script you can call an RFC and get the data you require and assign it to the custom field you have.

Using the same technique, when the screen gets loaded, you can clear any value of any standard/custom control.

Answers (0)