SAP TB_FLOWS_GENERATE_FOR_FLOWS Function Module for Generate Derived Flows









TB_FLOWS_GENERATE_FOR_FLOWS is a standard tb flows generate for flows SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generate 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 flows generate for flows FM, simply by entering the name TB_FLOWS_GENERATE_FOR_FLOWS into the relevant SAP transaction such as SE37 or SE38.

Function Group: TB15
Program Name: SAPLTB15
Main Program: SAPLTB15
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TB_FLOWS_GENERATE_FOR_FLOWS 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_FLOWS_GENERATE_FOR_FLOWS'"Generate Derived Flows
EXPORTING
* SABVERF = "Derivation Procedures
RANTYP = "Application
SAUTOBUCH = "Automatic Posting Release
* SRNDNG = "Rounding
T_FHAPO_IN = "Bewegungen - eingehend
* S_FHA_IN = "Transaction

IMPORTING
T_FHAPO_EX = "Bewegungen - ausgehend
.



IMPORTING Parameters details for TB_FLOWS_GENERATE_FOR_FLOWS

SABVERF - Derivation Procedures

Data type: AT21-SABVERF
Optional: Yes
Call by Reference: No ( called with pass by value option)

RANTYP - Application

Data type: AT21-RANTYP
Optional: No
Call by Reference: No ( called with pass by value option)

SAUTOBUCH - Automatic Posting Release

Data type: AT10-SAUTOBUCH
Optional: No
Call by Reference: No ( called with pass by value option)

SRNDNG - Rounding

Data type: VTBFHA-SRNDNG
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_FHAPO_IN - Bewegungen - eingehend

Data type: TRTB_TFHAPO
Optional: No
Call by Reference: No ( called with pass by value option)

S_FHA_IN - Transaction

Data type: VTBFHA
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for TB_FLOWS_GENERATE_FOR_FLOWS

T_FHAPO_EX - Bewegungen - ausgehend

Data type: TRTB_TFHAPO
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for TB_FLOWS_GENERATE_FOR_FLOWS 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_sabverf  TYPE AT21-SABVERF, "   
lv_t_fhapo_ex  TYPE TRTB_TFHAPO, "   
lv_rantyp  TYPE AT21-RANTYP, "   
lv_sautobuch  TYPE AT10-SAUTOBUCH, "   
lv_srndng  TYPE VTBFHA-SRNDNG, "   
lv_t_fhapo_in  TYPE TRTB_TFHAPO, "   
lv_s_fha_in  TYPE VTBFHA. "   

  CALL FUNCTION 'TB_FLOWS_GENERATE_FOR_FLOWS'  "Generate Derived Flows
    EXPORTING
         SABVERF = lv_sabverf
         RANTYP = lv_rantyp
         SAUTOBUCH = lv_sautobuch
         SRNDNG = lv_srndng
         T_FHAPO_IN = lv_t_fhapo_in
         S_FHA_IN = lv_s_fha_in
    IMPORTING
         T_FHAPO_EX = lv_t_fhapo_ex
. " TB_FLOWS_GENERATE_FOR_FLOWS




ABAP code using 7.40 inline data declarations to call FM TB_FLOWS_GENERATE_FOR_FLOWS

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 SABVERF FROM AT21 INTO @DATA(ld_sabverf).
 
 
"SELECT single RANTYP FROM AT21 INTO @DATA(ld_rantyp).
 
"SELECT single SAUTOBUCH FROM AT10 INTO @DATA(ld_sautobuch).
 
"SELECT single SRNDNG FROM VTBFHA INTO @DATA(ld_srndng).
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!