SAP APPEND_PROTOCOL Function Module for
APPEND_PROTOCOL is a standard append protocol SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 append protocol FM, simply by entering the name APPEND_PROTOCOL into the relevant SAP transaction such as SE37 or SE38.
Function Group: SLOG
Program Name: SAPLSLOG
Main Program: SAPLSLOG
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function APPEND_PROTOCOL 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 'APPEND_PROTOCOL'".
EXPORTING
* ACCEPT_NOT_INIT = ' ' "Flag: Avoid exception PROT_NOT_INITIALIZED (X)
* CLOSE_FILE = 'X' "Flag: Close file at end (X)
* CONDENSE = 'X' "
* MASTER_LANGU = 'E' "Replacement language
* OPEN_FILE = 'X' "Flag: Open file at beginning (X)
* IV_SUPPRESS_STATISTICS = ' ' "Flag: suppress end timestamp
TABLES
XMSG = "Table of messages
EXCEPTIONS
FILE_NOT_FOUND = 1 PROT_NOT_INITIALIZED = 2 WRONG_CALL = 3
IMPORTING Parameters details for APPEND_PROTOCOL
ACCEPT_NOT_INIT - Flag: Avoid exception PROT_NOT_INITIALIZED (X)
Data type: SPROT_I-XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
CLOSE_FILE - Flag: Close file at end (X)
Data type: SPROT_I-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CONDENSE -
Data type: SPROT_I-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MASTER_LANGU - Replacement language
Data type: T100-SPRSLDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OPEN_FILE - Flag: Open file at beginning (X)
Data type: SPROT_I-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_SUPPRESS_STATISTICS - Flag: suppress end timestamp
Data type: SPROT_I-XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for APPEND_PROTOCOL
XMSG - Table of messages
Data type: SPROT_UOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FILE_NOT_FOUND - Access to the file was not possibl
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PROT_NOT_INITIALIZED - INITIALIZE_PROTOCOL was not called
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_CALL - incorrect call
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for APPEND_PROTOCOL 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_xmsg | TYPE STANDARD TABLE OF SPROT_U, " | |||
| lv_file_not_found | TYPE SPROT_U, " | |||
| lv_accept_not_init | TYPE SPROT_I-XFELD, " ' ' | |||
| lv_close_file | TYPE SPROT_I-XFELD, " 'X' | |||
| lv_prot_not_initialized | TYPE SPROT_I, " | |||
| lv_condense | TYPE SPROT_I-XFELD, " 'X' | |||
| lv_wrong_call | TYPE SPROT_I, " | |||
| lv_master_langu | TYPE T100-SPRSL, " 'E' | |||
| lv_open_file | TYPE SPROT_I-XFELD, " 'X' | |||
| lv_iv_suppress_statistics | TYPE SPROT_I-XFELD. " ' ' |
|   CALL FUNCTION 'APPEND_PROTOCOL' " |
| EXPORTING | ||
| ACCEPT_NOT_INIT | = lv_accept_not_init | |
| CLOSE_FILE | = lv_close_file | |
| CONDENSE | = lv_condense | |
| MASTER_LANGU | = lv_master_langu | |
| OPEN_FILE | = lv_open_file | |
| IV_SUPPRESS_STATISTICS | = lv_iv_suppress_statistics | |
| TABLES | ||
| XMSG | = lt_xmsg | |
| EXCEPTIONS | ||
| FILE_NOT_FOUND = 1 | ||
| PROT_NOT_INITIALIZED = 2 | ||
| WRONG_CALL = 3 | ||
| . " APPEND_PROTOCOL | ||
ABAP code using 7.40 inline data declarations to call FM APPEND_PROTOCOL
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.| "SELECT single XFELD FROM SPROT_I INTO @DATA(ld_accept_not_init). | ||||
| DATA(ld_accept_not_init) | = ' '. | |||
| "SELECT single XFELD FROM SPROT_I INTO @DATA(ld_close_file). | ||||
| DATA(ld_close_file) | = 'X'. | |||
| "SELECT single XFELD FROM SPROT_I INTO @DATA(ld_condense). | ||||
| DATA(ld_condense) | = 'X'. | |||
| "SELECT single SPRSL FROM T100 INTO @DATA(ld_master_langu). | ||||
| DATA(ld_master_langu) | = 'E'. | |||
| "SELECT single XFELD FROM SPROT_I INTO @DATA(ld_open_file). | ||||
| DATA(ld_open_file) | = 'X'. | |||
| "SELECT single XFELD FROM SPROT_I INTO @DATA(ld_iv_suppress_statistics). | ||||
| DATA(ld_iv_suppress_statistics) | = ' '. | |||
Search for further information about these or an SAP related objects