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

Convert dropdown list to input text field dynamically in Module pool

Former Member
0 Likes
2,444

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
Read only

shadab_maldar
Active Participant
0 Likes
1,222

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
Read only

shadab_maldar
Active Participant
0 Likes
1,223

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.

Read only

Former Member
0 Likes
1,222

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.

Read only

0 Likes
1,222

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

Read only

oliver_wurm
Active Participant
0 Likes
1,222

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