2006 Sep 12 3:04 PM
I have a requirement to have 5 list boxes on a screen.
The first one is populated by some values which I have done using fcn mod VRM_SET_VALUES.
When a selection is made from this list box the requirement is to populate the second listbox with relevant values to the selection made in the first list box.
How can this be done because the selection does not trigger a PBO event?
Many Thanks In Advance for any advice.
David
2006 Sep 12 3:11 PM
If u r working with screen, assign Function code for the list box. It will automatically call the PAI & PBO.
Elseif u r working with selection screen, write the code in AT SELECTION-SCREEN OUTPUT.
Regards,
Prakash.
I have a requirement to have 5 list boxes on a screen.
The first one is populated by some values which I have done using fcn mod VRM_SET_VALUES.
When a selection is made from this list box the requirement is to populate the second listbox with relevant values to the selection made in the first list box.
How can this be done because the selection does not trigger a PBO event?
Many Thanks In Advance for any advice.
David
2006 Sep 12 3:06 PM
I guess you have to use the Function
DYNP_VALUES_UPDATE.
sEE THE EXAMPLE GIVEN IN THE DOCUMENTATION TO KNOW HOW TO USE IT.
REGARDS,
RAVI
2006 Sep 12 3:07 PM
Hi David,
You can use the Function module <b>DYNPRO_VALUE_READ</b> , for reading the value in first list box to populate the values in the secondlist box and so on.
Hope this helps.
2006 Sep 12 3:08 PM
Hi david,
1. Define the listbox (1st listbox)
as
PARAMETERS : EVTTYPE AS LISTBOX VISIBLE LENGTH 20
<b>user-command mycom.</b>
2. User command extension is important
(bcos then only it will trigger pbo)
3. Afterwards u can use the
event at selection-screen
or at selection-screen output
to populate the 2nd/related list box.
regards,
amit m.
2006 Sep 12 3:10 PM
2006 Sep 12 3:11 PM
If u r working with screen, assign Function code for the list box. It will automatically call the PAI & PBO.
Elseif u r working with selection screen, write the code in AT SELECTION-SCREEN OUTPUT.
Regards,
Prakash.
2006 Sep 12 3:25 PM
Thanks for all your suggestions.
Prakash your suggestion works a treat.
Problem solved.