The following code snippet creates an event container and inserts an element into it.
INCLUDE <cntn01>.
* KUNNR is the parameter linked to the Business Object Event (type KNA1-KUNNR)
data: itab_kunnr type standard table of kna1-kunnr,
wa_kunnr like kna1-kunnr.
wa_kunnr like kna1-kunnr.
wa_kunnr = '123'. append wa_kunnr to itab_kunnr.
wa_kunnr = '234'. append wa_kunnr to itab_kunnr.
wa_kunnr = '345'. append wa_kunnr to itab_kunnr.
wa_kunnr = '234'. append wa_kunnr to itab_kunnr.
wa_kunnr = '345'. append wa_kunnr to itab_kunnr.
swc_container lt_customer.
swc_create_container lt_customer.
swc_create_element lt_customer 'KUNNR'.
swc_set_element lt_customer 'KUNNR' itab_kunnr.
swc_create_container lt_customer.
swc_create_element lt_customer 'KUNNR'.
swc_set_element lt_customer 'KUNNR' itab_kunnr.
No comments:
Post a Comment