SAP IWOA_CREATE_NOTIFICATION_ARC Function Module for Notification archiving: Reading the notif. number to be archived
IWOA_CREATE_NOTIFICATION_ARC is a standard iwoa create notification arc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Notification archiving: Reading the notif. number to be archived processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for iwoa create notification arc FM, simply by entering the name IWOA_CREATE_NOTIFICATION_ARC into the relevant SAP transaction such as SE37 or SE38.
Function Group: IWOA
Program Name: SAPLIWOA
Main Program: SAPLIWOA
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function IWOA_CREATE_NOTIFICATION_ARC pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'IWOA_CREATE_NOTIFICATION_ARC'"Notification archiving: Reading the notif. number to be archived.
EXPORTING
* I_TEST = 'X' "
* I_SNAP = "ILM Snapshot Action
* I_DEST = "ILM Data Destruction Action
I_QMTYP = "
I_CREAT = "
I_COMNT = "
* I_DAYS = "
* I_DELETE = 'X' "
* I_PROT = "Archiving: Detail Log
* I_PROT_O = "Archiving: Log Output
* I_AR_ILM = 'X' "ILM Archiving Action
TABLES
* I_SELC = "
* I_REVNR = "
* I_IWERK = "
* I_QMART = "
* I_QMNUM = "
* I_EQUNR = "
* I_TPLNR = "
* I_MATNR = "
* I_MAWERK = "
* I_KUNUM = "
* I_AUSWIRK = "
IMPORTING Parameters details for IWOA_CREATE_NOTIFICATION_ARC
I_TEST -
Data type: IWOA_CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SNAP - ILM Snapshot Action
Data type: ILM_WRITE_SNAPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DEST - ILM Data Destruction Action
Data type: ILM_WRITE_DESTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_QMTYP -
Data type: TQ80-QMTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_CREAT -
Data type: IWOA_CHAR1Optional: No
Call by Reference: No ( called with pass by value option)
I_COMNT -
Data type: ADMI_RUN-COMMENTSOptional: No
Call by Reference: No ( called with pass by value option)
I_DAYS -
Data type: IWOA_DAYSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DELETE -
Data type: IWOA_CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PROT - Archiving: Detail Log
Data type: ARCH_PROCESSING_OPTIONS-DETAIL_LOGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PROT_O - Archiving: Log Output
Data type: ARCH_PROCESSING_OPTIONS-OBJ_PROT_OUTPUTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_AR_ILM - ILM Archiving Action
Data type: ILM_WRITE_ARCHDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for IWOA_CREATE_NOTIFICATION_ARC
I_SELC -
Data type: IWOA_SELCOptional: Yes
Call by Reference: No ( called with pass by value option)
I_REVNR -
Data type: IWOA_RREVNROptional: Yes
Call by Reference: Yes
I_IWERK -
Data type: IWOA_RIWERKOptional: Yes
Call by Reference: Yes
I_QMART -
Data type: IWOA_RQMARTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_QMNUM -
Data type: IWOA_RQMNUMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_EQUNR -
Data type: IWOA_REQUNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_TPLNR -
Data type: IWOA_RTPLNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_MATNR -
Data type: IWOA_RMATNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_MAWERK -
Data type: IWOA_RMAWERKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KUNUM -
Data type: IWOA_RKUNUMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_AUSWIRK -
Data type: IWOA_RAUSWIRKOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for IWOA_CREATE_NOTIFICATION_ARC Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.DATA: | ||||
lt_i_selc | TYPE STANDARD TABLE OF IWOA_SELC, " | |||
lv_i_test | TYPE IWOA_CHAR1, " 'X' | |||
lv_i_snap | TYPE ILM_WRITE_SNAP, " | |||
lt_i_revnr | TYPE STANDARD TABLE OF IWOA_RREVNR, " | |||
lv_i_dest | TYPE ILM_WRITE_DEST, " | |||
lt_i_iwerk | TYPE STANDARD TABLE OF IWOA_RIWERK, " | |||
lt_i_qmart | TYPE STANDARD TABLE OF IWOA_RQMART, " | |||
lv_i_qmtyp | TYPE TQ80-QMTYP, " | |||
lv_i_creat | TYPE IWOA_CHAR1, " | |||
lt_i_qmnum | TYPE STANDARD TABLE OF IWOA_RQMNUM, " | |||
lv_i_comnt | TYPE ADMI_RUN-COMMENTS, " | |||
lt_i_equnr | TYPE STANDARD TABLE OF IWOA_REQUNR, " | |||
lv_i_days | TYPE IWOA_DAYS, " | |||
lt_i_tplnr | TYPE STANDARD TABLE OF IWOA_RTPLNR, " | |||
lt_i_matnr | TYPE STANDARD TABLE OF IWOA_RMATNR, " | |||
lv_i_delete | TYPE IWOA_CHAR1, " 'X' | |||
lv_i_prot | TYPE ARCH_PROCESSING_OPTIONS-DETAIL_LOG, " | |||
lt_i_mawerk | TYPE STANDARD TABLE OF IWOA_RMAWERK, " | |||
lt_i_kunum | TYPE STANDARD TABLE OF IWOA_RKUNUM, " | |||
lv_i_prot_o | TYPE ARCH_PROCESSING_OPTIONS-OBJ_PROT_OUTPUT, " | |||
lv_i_ar_ilm | TYPE ILM_WRITE_ARCH, " 'X' | |||
lt_i_auswirk | TYPE STANDARD TABLE OF IWOA_RAUSWIRK. " |
  CALL FUNCTION 'IWOA_CREATE_NOTIFICATION_ARC' "Notification archiving: Reading the notif. number to be archived |
EXPORTING | ||
I_TEST | = lv_i_test | |
I_SNAP | = lv_i_snap | |
I_DEST | = lv_i_dest | |
I_QMTYP | = lv_i_qmtyp | |
I_CREAT | = lv_i_creat | |
I_COMNT | = lv_i_comnt | |
I_DAYS | = lv_i_days | |
I_DELETE | = lv_i_delete | |
I_PROT | = lv_i_prot | |
I_PROT_O | = lv_i_prot_o | |
I_AR_ILM | = lv_i_ar_ilm | |
TABLES | ||
I_SELC | = lt_i_selc | |
I_REVNR | = lt_i_revnr | |
I_IWERK | = lt_i_iwerk | |
I_QMART | = lt_i_qmart | |
I_QMNUM | = lt_i_qmnum | |
I_EQUNR | = lt_i_equnr | |
I_TPLNR | = lt_i_tplnr | |
I_MATNR | = lt_i_matnr | |
I_MAWERK | = lt_i_mawerk | |
I_KUNUM | = lt_i_kunum | |
I_AUSWIRK | = lt_i_auswirk | |
. " IWOA_CREATE_NOTIFICATION_ARC |
ABAP code using 7.40 inline data declarations to call FM IWOA_CREATE_NOTIFICATION_ARC
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.DATA(ld_i_test) | = 'X'. | |||
"SELECT single QMTYP FROM TQ80 INTO @DATA(ld_i_qmtyp). | ||||
"SELECT single COMMENTS FROM ADMI_RUN INTO @DATA(ld_i_comnt). | ||||
DATA(ld_i_delete) | = 'X'. | |||
"SELECT single DETAIL_LOG FROM ARCH_PROCESSING_OPTIONS INTO @DATA(ld_i_prot). | ||||
"SELECT single OBJ_PROT_OUTPUT FROM ARCH_PROCESSING_OPTIONS INTO @DATA(ld_i_prot_o). | ||||
DATA(ld_i_ar_ilm) | = 'X'. | |||
Search for further information about these or an SAP related objects