REPORT ZLISTBOX.
types: begin of t_ekko,
ebeln type ekko-ebeln,
end of t_ekko.
data: it_ekko TYPE STANDARD TABLE OF t_ekko,
wa_ekko like line of it_ekko.
TYPE-POOLS: VRM.
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
PARAMETERS: P_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
*AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT.
SELECT ebeln
up to 10 rows
from ekko
into table it_ekko.
loop at it_ekko into wa_ekko.
VALUE-KEY = wa_ekko-ebeln.
VALUE-TEXT = wa_ekko-ebeln.
APPEND VALUE TO LIST.
endloop.
NAME = 'P_PARM'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
types: begin of t_ekko,
ebeln type ekko-ebeln,
end of t_ekko.
data: it_ekko TYPE STANDARD TABLE OF t_ekko,
wa_ekko like line of it_ekko.
TYPE-POOLS: VRM.
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
PARAMETERS: P_PARM(10) AS LISTBOX VISIBLE LENGTH 10.
*AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT.
SELECT ebeln
up to 10 rows
from ekko
into table it_ekko.
loop at it_ekko into wa_ekko.
VALUE-KEY = wa_ekko-ebeln.
VALUE-TEXT = wa_ekko-ebeln.
APPEND VALUE TO LIST.
endloop.
NAME = 'P_PARM'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
SAP ABAP training is provided in CHENNAI.
ReplyDeleteTHE CREATING EXPERTS is one of the leading trainer in SAP who provides real time training
http://thecreatingexperts.com/sap-abap-training-in-chennai/
contact 8122241286
Thanks for the blog
ReplyDeleteSAP MM training in chennai
SAP fico training in chennai
SAP hr training in chennai
SAP hana training in chennai
SAP fiori training in chennai
Swan training academy