0 calificaciones0% encontró este documento útil (0 votos)
4 vistas1 página
This document shows code for creating an event notification in SAP using the SAP_WAPI_CREATE_EVENT_EXTENDED function. It first declares variables to store the event structure and number. It then clears and populates the event structure with category, type, and instance IDs. Finally, it calls the SAP_WAPI_CREATE_EVENT_EXTENDED function to raise the approved event, passing the populated event structure without committing the work.
This document shows code for creating an event notification in SAP using the SAP_WAPI_CREATE_EVENT_EXTENDED function. It first declares variables to store the event structure and number. It then clears and populates the event structure with category, type, and instance IDs. Finally, it calls the SAP_WAPI_CREATE_EVENT_EXTENDED function to raise the approved event, passing the populated event structure without committing the work.
This document shows code for creating an event notification in SAP using the SAP_WAPI_CREATE_EVENT_EXTENDED function. It first declares variables to store the event structure and number. It then clears and populates the event structure with category, type, and instance IDs. Finally, it calls the SAP_WAPI_CREATE_EVENT_EXTENDED function to raise the approved event, passing the populated event structure without committing the work.
* 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