SAP TB_GENERATED_FLOWS_DETERM_BFFR Function Module for Define Current SI Derived Flows
TB_GENERATED_FLOWS_DETERM_BFFR is a standard tb generated flows determ bffr SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Define Current SI Derived Flows 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 generated flows determ bffr FM, simply by entering the name TB_GENERATED_FLOWS_DETERM_BFFR into the relevant SAP transaction such as SE37 or SE38.
Function Group: TB06
Program Name: SAPLTB06
Main Program: SAPLTB06
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TB_GENERATED_FLOWS_DETERM_BFFR 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_GENERATED_FLOWS_DETERM_BFFR'"Define Current SI Derived Flows.
EXPORTING
COMPANYCODE = "Company Code
* COUNTERPARTY = "Partner (optional)
* SFHAART = ' ' "Transaction Type
SGSART = "Product Type
* I_ZGP = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
IMPORTING
GEN_FLOWS_ALLOCATION = "Derived Flows
TABLES
* PARTNER_R = "Partnerrangestabelle als Rückgabe
* GENERATED_FLOWS_ENTRY = "Derived Flows
EXCEPTIONS
ALLOCATION_NOT_FOUND = 1 SFHAART_NOT_FOUND = 2 SGSART_NOT_FOUND = 3
IMPORTING Parameters details for TB_GENERATED_FLOWS_DETERM_BFFR
COMPANYCODE - Company Code
Data type: T001-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
COUNTERPARTY - Partner (optional)
Data type: VTBSTA4-PARTNROptional: Yes
Call by Reference: No ( called with pass by value option)
SFHAART - Transaction Type
Data type: VTBSTA4-SFHAARTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SGSART - Product Type
Data type: VTBSTA4-SGSARTOptional: No
Call by Reference: No ( called with pass by value option)
I_ZGP - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for TB_GENERATED_FLOWS_DETERM_BFFR
GEN_FLOWS_ALLOCATION - Derived Flows
Data type: VTBSTA4Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for TB_GENERATED_FLOWS_DETERM_BFFR
PARTNER_R - Partnerrangestabelle als Rückgabe
Data type: BPAR_PART1Optional: Yes
Call by Reference: No ( called with pass by value option)
GENERATED_FLOWS_ENTRY - Derived Flows
Data type: VTBSTA4Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ALLOCATION_NOT_FOUND - Keine Standing Instruction vorhanden
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SFHAART_NOT_FOUND - Geschäftsart ist nicht vorgesehen
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SGSART_NOT_FOUND - Produktart ist nicht vorgesehen
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TB_GENERATED_FLOWS_DETERM_BFFR 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_partner_r | TYPE STANDARD TABLE OF BPAR_PART1, " | |||
| lv_companycode | TYPE T001-BUKRS, " | |||
| lv_allocation_not_found | TYPE T001, " | |||
| lv_gen_flows_allocation | TYPE VTBSTA4, " | |||
| lv_counterparty | TYPE VTBSTA4-PARTNR, " | |||
| lv_sfhaart_not_found | TYPE VTBSTA4, " | |||
| lt_generated_flows_entry | TYPE STANDARD TABLE OF VTBSTA4, " | |||
| lv_sfhaart | TYPE VTBSTA4-SFHAART, " SPACE | |||
| lv_sgsart_not_found | TYPE VTBSTA4, " | |||
| lv_sgsart | TYPE VTBSTA4-SGSART, " | |||
| lv_i_zgp | TYPE BOOLE-BOOLE. " |
|   CALL FUNCTION 'TB_GENERATED_FLOWS_DETERM_BFFR' "Define Current SI Derived Flows |
| EXPORTING | ||
| COMPANYCODE | = lv_companycode | |
| COUNTERPARTY | = lv_counterparty | |
| SFHAART | = lv_sfhaart | |
| SGSART | = lv_sgsart | |
| I_ZGP | = lv_i_zgp | |
| IMPORTING | ||
| GEN_FLOWS_ALLOCATION | = lv_gen_flows_allocation | |
| TABLES | ||
| PARTNER_R | = lt_partner_r | |
| GENERATED_FLOWS_ENTRY | = lt_generated_flows_entry | |
| EXCEPTIONS | ||
| ALLOCATION_NOT_FOUND = 1 | ||
| SFHAART_NOT_FOUND = 2 | ||
| SGSART_NOT_FOUND = 3 | ||
| . " TB_GENERATED_FLOWS_DETERM_BFFR | ||
ABAP code using 7.40 inline data declarations to call FM TB_GENERATED_FLOWS_DETERM_BFFR
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 BUKRS FROM T001 INTO @DATA(ld_companycode). | ||||
| "SELECT single PARTNR FROM VTBSTA4 INTO @DATA(ld_counterparty). | ||||
| "SELECT single SFHAART FROM VTBSTA4 INTO @DATA(ld_sfhaart). | ||||
| DATA(ld_sfhaart) | = ' '. | |||
| "SELECT single SGSART FROM VTBSTA4 INTO @DATA(ld_sgsart). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_zgp). | ||||
Search for further information about these or an SAP related objects