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

Description for Drop Down list in module pool

Former Member
0 Likes
447

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.

1 REPLY 1
Read only

Former Member
0 Likes
394

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