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: 

Convert dropdown list to input text field dynamically in Module pool

Former Member
0 Kudos

Hi,

I have a drop down list on my screen. the requirement is , if the drop down list has values , it must be shown as a drop down list on screen. But if the drop down list is empty , the field must be shown as a text field and the user must be allowed to enter value in it manually.

How can this be achieved.

It is urgent. Please help guys.

Thanks

Rimjhim

1 ACCEPTED SOLUTION

shadab_maldar
Active Participant
0 Kudos

Hi,

Try using F4 help instead of dropdown list, here it will act as input text field and also provide you all possible entries.

Regards,

Shadab.

4 REPLIES 4

shadab_maldar
Active Participant
0 Kudos

Hi,

Try using F4 help instead of dropdown list, here it will act as input text field and also provide you all possible entries.

Regards,

Shadab.

Former Member
0 Kudos

You can create two fields . One with dropdown and Other without dropdown and programmatically hide/show them based on whether the dropdown will be empty or not.

0 Kudos

Hi,

Use FM DYNP_VALUES_READ to check if the dropdown list has value or not.

If it is empty, then do the below code.

LOOP AT SCREEN. " and check for the particular dropdown field.

screen-value_help = '  '. "make this initial.

MODIFY SCREEN.

ENDLOOP.

Regards,

SPR

oliver_wurm
Active Participant
0 Kudos

Hi Rimjhim,

you can only achieve that by creating two fields, a drop down list and a normal text field. If case the drop down list is empty hide the drop down field and in case the list contains some entries hide the text field.

Regards

Oliver