SAP TB_PROT_CREATE_PROTOCOL Function Module for Treasury Posting Log: Initialize Log
TB_PROT_CREATE_PROTOCOL is a standard tb prot create protocol SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Treasury Posting Log: Initialize 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 tb prot create protocol FM, simply by entering the name TB_PROT_CREATE_PROTOCOL into the relevant SAP transaction such as SE37 or SE38.
Function Group: TB_POSTING_PROTOCOL
Program Name: SAPLTB_POSTING_PROTOCOL
Main Program: SAPLTB_POSTING_PROTOCOL
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TB_PROT_CREATE_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 'TB_PROT_CREATE_PROTOCOL'"Treasury Posting Log: Initialize Log.
EXPORTING
* I_FLG_SIMULATION = ' ' "Flag Testlauf ja/nein
* I_APPLICATION_NAME = SY-TITLE "Bezeichnung der aufrufenden Anwendung
IMPORTING
EX_PROTOCOL = "Reference to Posting Protocol
IMPORTING Parameters details for TB_PROT_CREATE_PROTOCOL
I_FLG_SIMULATION - Flag Testlauf ja/nein
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_APPLICATION_NAME - Bezeichnung der aufrufenden Anwendung
Data type: SY-TITLEDefault: SY-TITLE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TB_PROT_CREATE_PROTOCOL
EX_PROTOCOL - Reference to Posting Protocol
Data type: IF_PROTOCOL_TRPOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for TB_PROT_CREATE_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: | ||||
| lv_ex_protocol | TYPE IF_PROTOCOL_TRP, " | |||
| lv_i_flg_simulation | TYPE C, " SPACE | |||
| lv_i_application_name | TYPE SY-TITLE. " SY-TITLE |
|   CALL FUNCTION 'TB_PROT_CREATE_PROTOCOL' "Treasury Posting Log: Initialize Log |
| EXPORTING | ||
| I_FLG_SIMULATION | = lv_i_flg_simulation | |
| I_APPLICATION_NAME | = lv_i_application_name | |
| IMPORTING | ||
| EX_PROTOCOL | = lv_ex_protocol | |
| . " TB_PROT_CREATE_PROTOCOL | ||
ABAP code using 7.40 inline data declarations to call FM TB_PROT_CREATE_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.| DATA(ld_i_flg_simulation) | = ' '. | |||
| "SELECT single TITLE FROM SY INTO @DATA(ld_i_application_name). | ||||
| DATA(ld_i_application_name) | = SY-TITLE. | |||
Search for further information about these or an SAP related objects