SAP ARCHIVE_PROTOCOL_INIT Function Module for Initialize Object Log
ARCHIVE_PROTOCOL_INIT is a standard archive protocol init SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Initialize Object Log 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 archive protocol init FM, simply by entering the name ARCHIVE_PROTOCOL_INIT into the relevant SAP transaction such as SE37 or SE38.
Function Group: APROT
Program Name: SAPLAPROT
Main Program: SAPLAPROT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ARCHIVE_PROTOCOL_INIT 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 'ARCHIVE_PROTOCOL_INIT'"Initialize Object Log.
EXPORTING
* I_DETAILPROTOCOL = ' ' "Control of Update of the Log
* I_PROTOCOL_OUTPUT = ' ' "Control of Output of Log
* I_CALLBACK_PARAMETER = "Callback Parameter for Object Details
* I_CONTEXT = "Information About the Context from Which the Module Is Called
* I_FATHER_PROTOCOL_HANDLE = "Special Function: Archiving: Application Log - Handle of Parent Log
IMPORTING
E_PROTOCOL_HANDLE = "Special Function: Handle for the Generated Log
IMPORTING Parameters details for ARCHIVE_PROTOCOL_INIT
I_DETAILPROTOCOL - Control of Update of the Log
Data type: ARCH_DETAIL_LOGDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_PROTOCOL_OUTPUT - Control of Output of Log
Data type: ARCH_OBJ_PROT_OUTPUT_2Default: SPACE
Optional: Yes
Call by Reference: Yes
I_CALLBACK_PARAMETER - Callback Parameter for Object Details
Data type: BAL_S_PARMOptional: Yes
Call by Reference: Yes
I_CONTEXT - Information About the Context from Which the Module Is Called
Data type: ARCH_APPL_LOG_CONTEXTOptional: Yes
Call by Reference: Yes
I_FATHER_PROTOCOL_HANDLE - Special Function: Archiving: Application Log - Handle of Parent Log
Data type: ARCH_APPL_LOG_HANDLE_FATHEROptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ARCHIVE_PROTOCOL_INIT
E_PROTOCOL_HANDLE - Special Function: Handle for the Generated Log
Data type: BALLOGHNDLOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for ARCHIVE_PROTOCOL_INIT 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: | ||||
lv_i_detailprotocol | TYPE ARCH_DETAIL_LOG, " SPACE | |||
lv_e_protocol_handle | TYPE BALLOGHNDL, " | |||
lv_i_protocol_output | TYPE ARCH_OBJ_PROT_OUTPUT_2, " SPACE | |||
lv_i_callback_parameter | TYPE BAL_S_PARM, " | |||
lv_i_context | TYPE ARCH_APPL_LOG_CONTEXT, " | |||
lv_i_father_protocol_handle | TYPE ARCH_APPL_LOG_HANDLE_FATHER. " |
  CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' "Initialize Object Log |
EXPORTING | ||
I_DETAILPROTOCOL | = lv_i_detailprotocol | |
I_PROTOCOL_OUTPUT | = lv_i_protocol_output | |
I_CALLBACK_PARAMETER | = lv_i_callback_parameter | |
I_CONTEXT | = lv_i_context | |
I_FATHER_PROTOCOL_HANDLE | = lv_i_father_protocol_handle | |
IMPORTING | ||
E_PROTOCOL_HANDLE | = lv_e_protocol_handle | |
. " ARCHIVE_PROTOCOL_INIT |
ABAP code using 7.40 inline data declarations to call FM ARCHIVE_PROTOCOL_INIT
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_detailprotocol) | = ' '. | |||
DATA(ld_i_protocol_output) | = ' '. | |||
Search for further information about these or an SAP related objects