SAP TB_CF_SELECT Function Module for Select TR Transactions in the Netting Structure (Only Postable Flows)









TB_CF_SELECT is a standard tb cf select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Select TR Transactions in the Netting Structure (Only Postable 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 cf select FM, simply by entering the name TB_CF_SELECT 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_SELECT 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_SELECT'"Select TR Transactions in the Netting Structure (Only Postable Flows)
EXPORTING
* I_BUKRS = "Company Code
* I_RFHA = "Transaction
* I_RPZAHL = "Payer
* I_DZTERM = "Payment Date

TABLES
T_CF = "Kompensationsdaten
* I_SO_BUKRS = "Buchungskreis als Ranges-Tab
* I_SO_RFHA = "Geschäft als Ranges-Tab
* I_SO_RPZAHL = "Regulierer als Ranges-Tab
* I_SO_DZTERM = "Zahlungstermin als Ranges-Tab
* I_SO_RANTYP = "Anwendung (4:Devisen/5:Geld/6:Derivate)
* I_SO_SANLF = "Product Category as Range
* I_SO_SGSART = "Product Type as Range
* I_SO_SFHAART = "Transaction Type as Range
.



IMPORTING Parameters details for TB_CF_SELECT

I_BUKRS - Company Code

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

I_RFHA - Transaction

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

I_RPZAHL - Payer

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

I_DZTERM - Payment Date

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

TABLES Parameters details for TB_CF_SELECT

T_CF - Kompensationsdaten

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

I_SO_BUKRS - Buchungskreis als Ranges-Tab

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

I_SO_RFHA - Geschäft als Ranges-Tab

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

I_SO_RPZAHL - Regulierer als Ranges-Tab

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

I_SO_DZTERM - Zahlungstermin als Ranges-Tab

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

I_SO_RANTYP - Anwendung (4:Devisen/5:Geld/6:Derivate)

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

I_SO_SANLF - Product Category as Range

Data type: TBREF_SO_SANLF
Optional: Yes
Call by Reference: Yes

I_SO_SGSART - Product Type as Range

Data type: TBREF_SO_SGSART
Optional: Yes
Call by Reference: Yes

I_SO_SFHAART - Transaction Type as Range

Data type: TBREF_SO_SFHAART
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for TB_CF_SELECT 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_t_cf  TYPE STANDARD TABLE OF VTB_CF, "   
lv_i_bukrs  TYPE VTBFHAPO-BUKRS, "   
lv_i_rfha  TYPE VTBFHAPO-RFHA, "   
lt_i_so_bukrs  TYPE STANDARD TABLE OF TBREF_SO_BUKRS, "   
lv_i_rpzahl  TYPE VTBFHAPO-RPZAHL, "   
lt_i_so_rfha  TYPE STANDARD TABLE OF TBREF_SO_RFHA, "   
lv_i_dzterm  TYPE VTBFHAPO-DZTERM, "   
lt_i_so_rpzahl  TYPE STANDARD TABLE OF TBREF_SO_RPZAHL, "   
lt_i_so_dzterm  TYPE STANDARD TABLE OF TBREF_SO_DZTERM, "   
lt_i_so_rantyp  TYPE STANDARD TABLE OF TBREF_SO_RANTYP, "   
lt_i_so_sanlf  TYPE STANDARD TABLE OF TBREF_SO_SANLF, "   
lt_i_so_sgsart  TYPE STANDARD TABLE OF TBREF_SO_SGSART, "   
lt_i_so_sfhaart  TYPE STANDARD TABLE OF TBREF_SO_SFHAART. "   

  CALL FUNCTION 'TB_CF_SELECT'  "Select TR Transactions in the Netting Structure (Only Postable Flows)
    EXPORTING
         I_BUKRS = lv_i_bukrs
         I_RFHA = lv_i_rfha
         I_RPZAHL = lv_i_rpzahl
         I_DZTERM = lv_i_dzterm
    TABLES
         T_CF = lt_t_cf
         I_SO_BUKRS = lt_i_so_bukrs
         I_SO_RFHA = lt_i_so_rfha
         I_SO_RPZAHL = lt_i_so_rpzahl
         I_SO_DZTERM = lt_i_so_dzterm
         I_SO_RANTYP = lt_i_so_rantyp
         I_SO_SANLF = lt_i_so_sanlf
         I_SO_SGSART = lt_i_so_sgsart
         I_SO_SFHAART = lt_i_so_sfhaart
. " TB_CF_SELECT




ABAP code using 7.40 inline data declarations to call FM TB_CF_SELECT

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 VTBFHAPO INTO @DATA(ld_i_bukrs).
 
"SELECT single RFHA FROM VTBFHAPO INTO @DATA(ld_i_rfha).
 
 
"SELECT single RPZAHL FROM VTBFHAPO INTO @DATA(ld_i_rpzahl).
 
 
"SELECT single DZTERM FROM VTBFHAPO INTO @DATA(ld_i_dzterm).
 
 
 
 
 
 
 


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!