Application Development 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: 

How to update a value into a parameter based on the value from another parameter

0 Kudos
Hi, I have the following code that is NOT working. I need to display the value from a table based on the selection from the first parameter statement. Then I need to update a table form the input in the third parameter field. Any ideas on how to resolve this? The second parameter p_lglnum is NOT getting updated when selecting from the first parameter, p_numgr1.

6 REPLIES 6

raymond_giuseppi
Active Contributor
0 Kudos

Your code is executed in PBO? (AT SELECTION-SCREEN IUTPUT)

0 Kudos

The code is a stand alone report. When I select the value in the first parameter, it should populate the second parameter immediately.

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

Work with SELECTION-SCREEN BEGIN|END OF SCREEN and CALL SELECTION-SCREEN. Execute the latter in a DO-loop and leave the loop if F8 is selected. The ABAP Keyword documentation contains lots of examples for selection screen handling.

0 Kudos

Thanks, do you have a sample code?

horst_keller
Product and Topic Expert
Product and Topic Expert
0 Kudos

The ABAP Keyword documentation contains lots of examples for selection screen handling.

former_member182550
Active Contributor
0 Kudos

If you can display your first parameter as a list box then you can trigger a PBO when the user changes the selection. During the PBO you can then easily change other parameter values.

Rich