2013 Feb 03 9:25 AM
Hi All,
I created a field with the drop down in Module Pool program and i used VRM_SET_VALUES to display the drop down list.Now When I click the input from dropdown the corresponding description should be displayed immediately behind the drop down. How to fetch the description once the value from the dropdown is selected.Kindly suggest on this.
Thanks & Regards,
Anitha Annadurai.
Hi All,
I created a field with the drop down in Module Pool program and i used VRM_SET_VALUES to display the drop down list.Now When I click the input from dropdown the corresponding description should be displayed immediately behind the drop down. How to fetch the description once the value from the dropdown is selected.Kindly suggest on this.
Thanks & Regards,
Anitha Annadurai.
2013 Feb 03 10:13 AM
Hi,
TYPES:
BEGIN OF VRM_VALUE,
KEY(40) TYPE C,
TEXT(80) TYPE C,
END OF VRM_VALUE,
VRM_VALUES TYPE VRM_VALUE OCCURS 0,
SAMPLE CODE:
TYPE-POOLS: VRM.
DATA: IT_VRM TYPE VRM_VALUES,
WA_VRM TYPE VRM_VALUE.
GO TO PBO.
wa_vrm-key = '100-100'.
wa_vrm-TEXT = 'bike'.
APPEND wa_vrm to it_vrm.
wa_vrm-key = '100-101'.
wa_vrm-TEXT = 'bike1234'.
APPEND wa_vrm to it_vrm.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'MATNR'
VALUES = IT_VRM
* EXCEPTIONS
* ID_ILLEGAL_NAME = 1
* OTHERS = 2
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
If you want description part then put it TEXT field.
in program, go to LAYOUT.
double click on your input field. a pop up will open.
in dropdown field choose LISTBOX.
hope you find description in input field.....
Thanks
Sabyasachi
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |