08-19-2015 10:22 AM
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
08-19-2015 10:34 AM
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.
08-19-2015 10:34 AM
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.
08-19-2015 10:42 AM
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.
08-19-2015 10:44 AM
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
08-19-2015 10:52 AM
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