SAP TB_CF_UPDATE_TRD Function Module for Change Flows for Transactions in a Netting
TB_CF_UPDATE_TRD is a standard tb cf update trd SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change Flows for Transactions in a Netting 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 cf update trd FM, simply by entering the name TB_CF_UPDATE_TRD into the relevant SAP transaction such as SE37 or SE38.
Function Group: TBPS
Program Name: SAPLTBPS
Main Program: SAPLTBPS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TB_CF_UPDATE_TRD 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_CF_UPDATE_TRD'"Change Flows for Transactions in a Netting.
EXPORTING
* PI_TESTRUN = ' ' "'X' = Kompenation prüfen, sonst = fortschreiben
PI_OREF_PROTOCOL = "Protocol Manager
TABLES
T_FHA = "Financial Transaction
* T_FHAZU = "Transaction Activity
T_FHAPO = "Financial Transaction Flow
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for TB_CF_UPDATE_TRD
PI_TESTRUN - 'X' = Kompenation prüfen, sonst = fortschreiben
Data type: TB_XAFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PI_OREF_PROTOCOL - Protocol Manager
Data type: CL_PROTOCOL_HANDLER_TRPOptional: No
Call by Reference: Yes
TABLES Parameters details for TB_CF_UPDATE_TRD
T_FHA - Financial Transaction
Data type: VTBFHAOptional: No
Call by Reference: Yes
T_FHAZU - Transaction Activity
Data type: VTBFHAZUOptional: Yes
Call by Reference: Yes
T_FHAPO - Financial Transaction Flow
Data type: VTBFHAPOOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR - Error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for TB_CF_UPDATE_TRD 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_error | TYPE STRING, " | |||
| lt_t_fha | TYPE STANDARD TABLE OF VTBFHA, " | |||
| lv_pi_testrun | TYPE TB_XAFELD, " SPACE | |||
| lt_t_fhazu | TYPE STANDARD TABLE OF VTBFHAZU, " | |||
| lv_pi_oref_protocol | TYPE CL_PROTOCOL_HANDLER_TRP, " | |||
| lt_t_fhapo | TYPE STANDARD TABLE OF VTBFHAPO. " |
|   CALL FUNCTION 'TB_CF_UPDATE_TRD' "Change Flows for Transactions in a Netting |
| EXPORTING | ||
| PI_TESTRUN | = lv_pi_testrun | |
| PI_OREF_PROTOCOL | = lv_pi_oref_protocol | |
| TABLES | ||
| T_FHA | = lt_t_fha | |
| T_FHAZU | = lt_t_fhazu | |
| T_FHAPO | = lt_t_fhapo | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " TB_CF_UPDATE_TRD | ||
ABAP code using 7.40 inline data declarations to call FM TB_CF_UPDATE_TRD
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_pi_testrun) | = ' '. | |||
Search for further information about these or an SAP related objects