Está en la página 1de 1

data: ls_event_struc type SWR_OBJ_2,

lv_number type SWX_FNUMB.


* Set up the Function call
clear ls_event_struc.
ls_event_struc-catid = 'CL'.
* Notification of Absence class
ls_event_struc-typeid = 'CL_SWF_FORMABSENC'.
ls_event_struc-instid = lv_number. "NOA number
* Raise the Event
CALL FUNCTION 'SAP_WAPI_CREATE_EVENT_EXTENDED'
EXPORTING
CATID = ls_event_struc-catid
TYPEID = ls_event_struc-typeid
INSTID = ls_event_struc-instid
EVENT = 'APPROVED'
COMMIT_WORK = ''.
Listing 19.1 Example of Calling SAP_WAPI_CREATE_EVENT_EXTENDED

También podría gustarte