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.
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