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: 

Get the index of listbox

Former Member
0 Kudos

Hi,

I have one screen that has one field with f4 help(dictionary).

There are two fields in input help.

eg. Resource Plant

-


Rsc1 Plt1

Rsc1 Plt2

In above case if I select second value i.e. Rsc1 then I want Plt2 to be selected.

In code I am using selected value of resource and fetching Plant value from database.In this scenario I want Plt2 to be returned by select query.

Is there any way to know which value from the help has been selevted by user?

Plz help.

Thanks.

5 REPLIES 5

rvinod1982
Contributor
0 Kudos

Hi,

Check this link.

[]

0 Kudos

Thanks for your reply Vinod.

I want solution in screen programming.The link you provided is about selection screen.

I dont have f4 for plant field.Plant field is 'output only' field.

Thanks.

former_member1245113
Active Contributor
0 Kudos

Hi

You need to pass unique value for the Index, so that you can get the required value .

while setting values use VRM_SET_VALUES in PBO.

while querying which one selected use VRM_GET_VALUES

For more info please go through Function Module Documentation

Hope this is clear to you.

Cheers

Ram

0 Kudos

Hi Ram,

Thanks for your input.

I am not using FM for input help.(i havent coded for listbox values)

Actually its not listbox.I am getting input help from checktable.

and I want to know which row of that checktable is selected by user.

Please help me.

0 Kudos

Hi

Take the help of DYNP_VALUES_READ Function Module to know which the user selected before the PAI is triggered.

your input field contains the values selected from the List Box will be given by above FM.

Try checking the VRM_GET_VALUES to know which index is selected, i think still it works.

or use VRM_GET_IDS FM , For More info please go through the Documentation

Cheers & Happy Diwali.

Ram