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

Selection Screen with selection fields having drop down list .

Former Member
0 Likes
1,451

Hi friends ,

As per my requirement , i need 3 selection parameters on my selection screen all mandatory . All the 3 selection parameter should have drop down list.

Although i am getting the dropdown list for the 3 fields , the problem is that ,whatever i am selecting from the dropdown list and try to execute , it's throwing an Error message "Fill in all required field Entries ".

If i make the 3 fields non-mandatory ,this problem is solved ,but a new issue comes up , the values selected from the drop down is not getting assigned to the parameter .

Below is the screen format .

MOU Type | 1 MON |

Customer Type | 2 FR |

Product | 6 DO |

Please send some relevant codes if possible..

3 REPLIES 3
Read only

Former Member
0 Likes
655

Hi,

Please refer the code below:


PARAMETERS:
listbox(1) AS LISTBOX VISIBLE LENGTH 10 DEFAULT 'N'.
AT SELECTION-SCREEN OUTPUT.
DATA:
name TYPE vrm_id,
list TYPE vrm_values,
value TYPE vrm_value.
name = 'LISTBOX'. " Name should be in UPPER CASE

value-key = '1'.
value-text = 'Text 1'.
APPEND value TO list.
value-key = '2'.
value-text = 'Text 2'.
APPEND value TO list.

CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list
EXCEPTIONS
id_illegal_name = 0
OTHERS = 0. 
 

Thanks,

Sriram Ponna.

Read only

0 Likes
655

Sir,

Thanks for the reply .

But i think u did't go thru the q'n properly ,

i know all these , i mean i have already used this ,

the problem comes after this .

1. if u keep the parameter as obligatory ,

it won't allow you to execute .

2. if u make the parameter non-obligatry ,

the values selected from the drop down is not getting assigned

to the parameter varaible, which we require for further processing in the programme.

Read only

Former Member
0 Likes
655

Hi,

With in at selection-screen event the values will not be populated..

use the FM DYNPRO_VALUES_READ to read the values entered by the user and then validate that they are having a mandatory value.

santhosh