Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Drop down list not working in screen

Hi Experts,

I my trying to create a drop down list in a module pool. The list will have three fields in it. Here is my code:

**Global Data

TYPES: BEGIN OF ty_loading_area,

   werks    TYPE zvpar_pts_carga-werks,

   lgort    TYPE zvpar_pts_carga-lgort,

   pt_carga TYPE zvpar_pts_carga-pt_carga,

   END OF ty_loading_area.

DATA it_loading_area TYPE STANDARD TABLE OF ty_loading_area.

PROCESS BEFORE OUTPUT.

  MODULE STATUS_0200.

PROCESS AFTER INPUT.

  MODULE USER_COMMAND_0200.

PROCESS ON VALUE-REQUEST.

   FIELD ZVPAR_STC MODULE create_dropdown_box.

*&---------------------------------------------------------------------*

*&  Include           ZVPAR_VOTO_POV

*&---------------------------------------------------------------------*

MODULE create_dropdown_box INPUT.

   SELECT werks lgort pt_carga

    FROM   zvpar_pts_carga

    INTO CORRESPONDING FIELDS OF TABLE it_loading_area.

   CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

     EXPORTING

       retfield        = 'WERKS'

       value_org       = 'S'

     TABLES

       value_tab       = it_loading_area

     EXCEPTIONS

       parameter_error = 1

       no_values_found = 2

       OTHERS          = 3.

   IF sy-subrc <> 0.

     ...

   ENDIF.

ENDMODULE.                    "create_dropdown_box INPUT



Please let me know if you need more information.

Thanks,

Patrick






Former Member
Not what you were looking for? View more on this topic or Ask a question