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

Populating a Listbox from another Listbox selection

Former Member
0 Likes
869

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
817

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

6 REPLIES 6
Read only

Former Member
0 Likes
817

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

Read only

Former Member
0 Likes
817

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.

Read only

Former Member
0 Likes
817

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.

Read only

Former Member
0 Likes
817

Hi

Try to manage it in POV process.

Max

Read only

Former Member
0 Likes
818

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.

Read only

0 Likes
817

Thanks for all your suggestions.

Prakash your suggestion works a treat.

Problem solved.