Register Login

Add Values into the List Box in a Module Pool Program

Updated Jul 11, 2018

Dear all,

How to add values into the list box in a Module Pool program. If anyone know the procedure of it then please share it with me here in form of comments.

Regards,

Get More Questions and Answers with Explanation related to SAP ABAP Module Pool Program. Read Here for more SAP ABAP Interview Questions.


Comments

  • 07 Jul 2010 6:19 am rekha Helpful Answer

    Hi,

    Do like this.....

    In ur screen where you need to populate the list box.....

    Under PAI module use

    PROCESS ON VALUE-REQUEST.
    FIELD io_op MODULE list_box.

    in this module do like this...

    MODULE list_box INPUT.
    * BREAK-POINT.
    *Include type-pools VRM and create internal table of type VRM_VALUES
    TYPE-POOLS : vrm.
    DATA: itab TYPE vrm_values,
    wa LIKE LINE OF itab.

    ****1******* ********* ********* ********* ********* ********* ***
    REFRESH : itab[].



    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
    id =
    values = itab.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endmodule.


    Regards
  • 07 Jul 2010 6:17 am rekha
    do you mean ALV list or table control?
  • 07 Jul 2010 6:18 am rekha
    I Need to add in the listbox in the module pool program
  • 07 Jul 2010 6:21 am rekha
    hi..

    by using vrm_set_values function module
  • 07 Jul 2010 6:22 am rekha
    If im understanding ur issue correctly... .u can create a search help and assign to tht field in SCREEN PAINTER itself.

    rgds

×