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

Dropdown listbox not automatically filled

Former Member
0 Likes
715

Hi everyone;

i have a screen with 3 listbox fields LAND1 REGIO and CITYC. these fields refer to dictonary and linked with check table T005,T005S and T005G.

when i fill the LAND1 field before calling the screen, REGIO field automatically filled without using VRM_SET_VALUES. but when i select the REGIO the CITYC field not filled automatically. but when i fill the LAND1 and REGIO field before calling the screen the CITYC field automatically filled without using VRM_SET_VALUES.

so is it possible to fill the listbox automatically or should i use the VRM_SET_VALUES

Thx

4 REPLIES 4
Read only

bernat_loscos
Explorer
0 Likes
686

Hi Mustafa.

I think that the listbox only fills automatically when the assigned field has a domain with defined values.Then you should use VRM_SET_VALUES.

Regards.

Read only

Former Member
0 Likes
686

Hi Mustafa,

U should be used VRM_SET_VALUES for displaying that field.

For ex.

call function 'VRM_SET_VALUES'

exporting

ID = NAME1

VALUES = LIST1.

clear LIST1.      ....................(Like that.).

Thanks.

Read only

former_member226225
Contributor
0 Likes
686

Hi Sadik,

You can use  F4IF_INT_TABLE_VALUE_REQUEST FM for listbox.

if you want to fill the land1 as list box you can do below following.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_LAND1.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'.

if you want to fill region based on the land1

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_REGIO.

get the screen values by using FM DYNP_VALUES_READ

fill the internal table and call below FM.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_CITY.

get the screen values by using FM DYNP_VALUES_READ

fill the internal table and call below FM.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'.

I hope this will help you.

Thanks & Regards,

Raghunadh Kodali.

Read only

Former Member
0 Likes
686

Hi Mustafa,

Please refer this link, i think raghunadh suggested idea also works in your case.

Thanks,

Ashok.