‎2008 Jul 26 6:43 AM
Hello Friends
i got a problem while fetching the value from the dropdown list.
ie the selected values is not retaining inside list or no values is showing up.
MODULE USER_COMMAND_0200 INPUT.
SAVECODE = OKCODE.
CLEAR OKCODE.
CASE SAVECODE.
WHEN 'BACK'.
LEAVE PROGRAM.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'SELECTED'.
DATA : PROGID1 LIKE SY-REPID.
DATA : SCR1 LIKE SY-DYNNR.
DATA: DYNPRO_VALUES1 TYPE TABLE OF DYNPREAD,
FIELD_VALUE1 LIKE LINE OF DYNPRO_VALUES1.
PROGID1 = SY-REPID.
SCR1 = SY-DYNNR.
CLEAR: FIELD_VALUE, DYNPRO_VALUES.
FIELD_VALUE-FIELDNAME = 'ITAB1-POS1'.
APPEND FIELD_VALUE TO DYNPRO_VALUES1.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = PROGID1
DYNUMB = SCR1
TRANSLATE_TO_UPPER = 'X'
TABLES
DYNPFIELDS = DYNPRO_VALUES1.
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE DYNPRO_VALUES1 INDEX 1 INTO FIELD_VALUE1.
ITAB1-POS1 = FIELD_VALUE1-FIELDVALUE.
ENDCASE.
Itab-pos1 is not getting any selected values
‎2008 Jul 26 7:56 AM
Hi,
Check this link...
Hope this would help you.
Regards
Narin Nandivada
‎2008 Jul 26 8:03 AM
‎2008 Jul 26 8:08 AM
Check whether FIELD_VALUE1-FIELDVALUE is getting the correct value or not . If it is getting the correct value try to put
ITAB1-POS1 = FIELD_VALUE1-FIELDVALUE.
in PBO module of your screen.
‎2008 Jul 26 9:30 AM
Thanks mate for respond but i am not getting any value that is my problem
‎2008 Jul 26 9:59 AM
In dropdown list itself you are not getting the value or after choosing the value it is not updated in the field?
If you are not getting the value in dropdown list . Then try to use the fm VRM_SET_VALUES .
And if you are using any Z field refference for dropdown list . Then in domain of that field you can assign the values in Value Range tab and from there the drop down list will automatimatically generate for your screen . You need not to do any extra coding for that.
‎2008 Jul 26 10:11 AM
Mate..
Iam getting the values in my droplist but the moment i select one value from the list ,it not displaying the selected values..
My dropdown screen field refer as follows
itab1-pos1.
In a internal table itab1
POS1 LIKE ZEXP_PULLOUTINFO-POSNR.
Hope you my problem .
‎2008 Jul 26 7:15 PM
Do you want show the Drop down list box in your table control
RSDEMO_TABLE_CONTROLWhat is your requirement exactly can you tell me..?
‎2008 Jul 28 11:20 AM
hello mate
My requirement is as follows
In dialog program , i have design the screen with screen element (DropDown control) .
PBO Event of that screen : I have filled the Values for DropDown control.There is no problem in that , ie i can see all the values of that list.
But IN my PAI EVENT of that screen I am selecting the value from that DropDown list of the screen but I am not able to fetch the a value . The event is getting triggered but not the values from the list . Hope u understand my problem
Note Function code is assigned for that control .