SAP TPM_TREA_FLOW_PROTOCOL Function Module for TREA. Flow Protocol
TPM_TREA_FLOW_PROTOCOL is a standard tpm trea flow 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 TREA. Flow Protocol 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 tpm trea flow protocol FM, simply by entering the name TPM_TREA_FLOW_PROTOCOL into the relevant SAP transaction such as SE37 or SE38.
Function Group: TPM_TREA_PROTOCOLS
Program Name: SAPLTPM_TREA_PROTOCOLS
Main Program: SAPLTPM_TREA_PROTOCOLS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TPM_TREA_FLOW_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 'TPM_TREA_FLOW_PROTOCOL'"TREA. Flow Protocol.
EXPORTING
* IV_EXT_ACC_POS = "Include External Acc.spec.flows
* IV_FLG_PLANNED = TPMCO_XTRUE "Include Planned Flows
* IV_FLG_REVERSED = "Include Reversed Flows
* IV_FLG_SIGNED_AMOUNTS = "Show signed amounts
* IV_USE_OO = TPMCO_XTRUE "Use OO Transaction
* IV_VARIANT = "Layout
* IT_OID = "Table of GUIDs
* IV_NO_DISPLAY = "New Input Values
* IV_OPERATIVE_POS = "Include flows from operative positions
* IV_ASSIGNMENT_POS = "Include Flows from Assignment positions
* IT_RNG_COMPANY_CODE = "Range Table for Company Code
* IT_RNG_DEAL_NUMBER = "Range Table for Transaction Number
* IT_RNG_EXT_ACCOUNT = "Range Table for External Account Number
* IT_RNG_DATE = "Range Table for Date
* IT_RNG_PAY_CURR = "Range Table: Transaction Currency
* IV_FLG_FIXED = TPMCO_XTRUE "Include Fixed Flows
IMPORTING
ET_ALV_FLOWS = "
IMPORTING Parameters details for TPM_TREA_FLOW_PROTOCOL
IV_EXT_ACC_POS - Include External Acc.spec.flows
Data type: FLAGOptional: Yes
Call by Reference: Yes
IV_FLG_PLANNED - Include Planned Flows
Data type: FLAGDefault: TPMCO_XTRUE
Optional: Yes
Call by Reference: Yes
IV_FLG_REVERSED - Include Reversed Flows
Data type: FLAGOptional: Yes
Call by Reference: Yes
IV_FLG_SIGNED_AMOUNTS - Show signed amounts
Data type: FLAGOptional: Yes
Call by Reference: Yes
IV_USE_OO - Use OO Transaction
Data type: FLAGDefault: TPMCO_XTRUE
Optional: Yes
Call by Reference: Yes
IV_VARIANT - Layout
Data type: SLIS_VARIOptional: Yes
Call by Reference: Yes
IT_OID - Table of GUIDs
Data type: TPMY_GUIDOptional: Yes
Call by Reference: Yes
IV_NO_DISPLAY - New Input Values
Data type: XFLAGOptional: Yes
Call by Reference: Yes
IV_OPERATIVE_POS - Include flows from operative positions
Data type: FLAGOptional: Yes
Call by Reference: Yes
IV_ASSIGNMENT_POS - Include Flows from Assignment positions
Data type: FLAGOptional: Yes
Call by Reference: Yes
IT_RNG_COMPANY_CODE - Range Table for Company Code
Data type: TRGR_COMPANY_CODEOptional: Yes
Call by Reference: Yes
IT_RNG_DEAL_NUMBER - Range Table for Transaction Number
Data type: TRGR_DEAL_NUMBEROptional: Yes
Call by Reference: Yes
IT_RNG_EXT_ACCOUNT - Range Table for External Account Number
Data type: TREAR_EXT_ACCOptional: Yes
Call by Reference: Yes
IT_RNG_DATE - Range Table for Date
Data type: TRGR_DATEOptional: Yes
Call by Reference: Yes
IT_RNG_PAY_CURR - Range Table: Transaction Currency
Data type: TRGR_TRANSACTION_CURROptional: Yes
Call by Reference: Yes
IV_FLG_FIXED - Include Fixed Flows
Data type: FLAGDefault: TPMCO_XTRUE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for TPM_TREA_FLOW_PROTOCOL
ET_ALV_FLOWS -
Data type: TREA1_TT_FLOW_ALVOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for TPM_TREA_FLOW_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_et_alv_flows | TYPE TREA1_TT_FLOW_ALV, " | |||
| lv_iv_ext_acc_pos | TYPE FLAG, " | |||
| lv_iv_flg_planned | TYPE FLAG, " TPMCO_XTRUE | |||
| lv_iv_flg_reversed | TYPE FLAG, " | |||
| lv_iv_flg_signed_amounts | TYPE FLAG, " | |||
| lv_iv_use_oo | TYPE FLAG, " TPMCO_XTRUE | |||
| lv_iv_variant | TYPE SLIS_VARI, " | |||
| lv_it_oid | TYPE TPMY_GUID, " | |||
| lv_iv_no_display | TYPE XFLAG, " | |||
| lv_iv_operative_pos | TYPE FLAG, " | |||
| lv_iv_assignment_pos | TYPE FLAG, " | |||
| lv_it_rng_company_code | TYPE TRGR_COMPANY_CODE, " | |||
| lv_it_rng_deal_number | TYPE TRGR_DEAL_NUMBER, " | |||
| lv_it_rng_ext_account | TYPE TREAR_EXT_ACC, " | |||
| lv_it_rng_date | TYPE TRGR_DATE, " | |||
| lv_it_rng_pay_curr | TYPE TRGR_TRANSACTION_CURR, " | |||
| lv_iv_flg_fixed | TYPE FLAG. " TPMCO_XTRUE |
|   CALL FUNCTION 'TPM_TREA_FLOW_PROTOCOL' "TREA. Flow Protocol |
| EXPORTING | ||
| IV_EXT_ACC_POS | = lv_iv_ext_acc_pos | |
| IV_FLG_PLANNED | = lv_iv_flg_planned | |
| IV_FLG_REVERSED | = lv_iv_flg_reversed | |
| IV_FLG_SIGNED_AMOUNTS | = lv_iv_flg_signed_amounts | |
| IV_USE_OO | = lv_iv_use_oo | |
| IV_VARIANT | = lv_iv_variant | |
| IT_OID | = lv_it_oid | |
| IV_NO_DISPLAY | = lv_iv_no_display | |
| IV_OPERATIVE_POS | = lv_iv_operative_pos | |
| IV_ASSIGNMENT_POS | = lv_iv_assignment_pos | |
| IT_RNG_COMPANY_CODE | = lv_it_rng_company_code | |
| IT_RNG_DEAL_NUMBER | = lv_it_rng_deal_number | |
| IT_RNG_EXT_ACCOUNT | = lv_it_rng_ext_account | |
| IT_RNG_DATE | = lv_it_rng_date | |
| IT_RNG_PAY_CURR | = lv_it_rng_pay_curr | |
| IV_FLG_FIXED | = lv_iv_flg_fixed | |
| IMPORTING | ||
| ET_ALV_FLOWS | = lv_et_alv_flows | |
| . " TPM_TREA_FLOW_PROTOCOL | ||
ABAP code using 7.40 inline data declarations to call FM TPM_TREA_FLOW_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_iv_flg_planned) | = TPMCO_XTRUE. | |||
| DATA(ld_iv_use_oo) | = TPMCO_XTRUE. | |||
| DATA(ld_iv_flg_fixed) | = TPMCO_XTRUE. | |||
Search for further information about these or an SAP related objects