SAP TB_REF_TRTM_DEAL_READ Function Module for Read Payment Flows from Financial Transactions/Loans/Securities Orders









TB_REF_TRTM_DEAL_READ is a standard tb ref trtm deal read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Payment Flows from Financial Transactions/Loans/Securities Orders 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 ref trtm deal read FM, simply by entering the name TB_REF_TRTM_DEAL_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function TB_REF_TRTM_DEAL_READ 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_REF_TRTM_DEAL_READ'"Read Payment Flows from Financial Transactions/Loans/Securities Orders
EXPORTING
* I_BUKRS = ' ' "Company Code
* I_RFHA = ' ' "Transaction
* I_NORDER = '00000000' "WP-Ordernummer
* I_RANLD = ' ' "Loan Number
* I_DZTERM = '00000000' "Fälligkeit/Zahlungstermin
* I_KONTRH = ' ' "Counterparty

TABLES
T_FLOWS = "Zahlungsstroeme
* I_SO_BUKRS = "Buchungskreis als Ranges-Tab
* I_SO_RFHA = "Geschäft als Ranges-Tab
* I_SO_KONTRH = "Kontrahent als Ranges-Tab
* I_SO_DZTERM = "Zahlungstermin als Ranges-Tab
* I_SO_RANTYP = "Anwendung(' ' heißt alles selektieren)
* I_SO_SANLF = "Product Category as Range
* I_SO_SGSART = "Product Type as Range
* I_SO_SFHAART = "Transaction Type as Range

EXCEPTIONS
DEAL_NOT_FOUND = 1 WRONG_PAYMENT_DATE = 2 WRONG_PARTNER = 3 POSITIONS_NOT_FOUND = 4 WRONG_CALL = 5
.



IMPORTING Parameters details for TB_REF_TRTM_DEAL_READ

I_BUKRS - Company Code

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

I_RFHA - Transaction

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

I_NORDER - WP-Ordernummer

Data type: VTB_CP-NORDER
Default: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RANLD - Loan Number

Data type: VTB_CP-RANLD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DZTERM - Fälligkeit/Zahlungstermin

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

I_KONTRH - Counterparty

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

TABLES Parameters details for TB_REF_TRTM_DEAL_READ

T_FLOWS - Zahlungsstroeme

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_KONTRH - Kontrahent 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(SPACE heißt alles selektieren)

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

EXCEPTIONS details

DEAL_NOT_FOUND - Geschäft(e) nicht gefunden

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

WRONG_PAYMENT_DATE - falsche Fälligkeit/Zahlungsdatum

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

WRONG_PARTNER - falscher Kontrahent

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

POSITIONS_NOT_FOUND - keine (passenden) Bewegungen gefunden

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

WRONG_CALL - Funktionsbaustein falsch aufgerufen (RANTYP?)

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

Copy and paste ABAP code example for TB_REF_TRTM_DEAL_READ 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_i_bukrs  TYPE VTB_CP-BUKRS, "   SPACE
lt_t_flows  TYPE STANDARD TABLE OF VTB_CF, "   
lv_deal_not_found  TYPE VTB_CF, "   
lv_i_rfha  TYPE VTB_CP-RFHA, "   SPACE
lt_i_so_bukrs  TYPE STANDARD TABLE OF TBREF_SO_BUKRS, "   
lv_wrong_payment_date  TYPE TBREF_SO_BUKRS, "   
lv_i_norder  TYPE VTB_CP-NORDER, "   '00000000'
lt_i_so_rfha  TYPE STANDARD TABLE OF TBREF_SO_RFHA, "   
lv_wrong_partner  TYPE TBREF_SO_RFHA, "   
lv_i_ranld  TYPE VTB_CP-RANLD, "   SPACE
lt_i_so_kontrh  TYPE STANDARD TABLE OF TBREF_SO_RPZAHL, "   
lv_positions_not_found  TYPE TBREF_SO_RPZAHL, "   
lv_i_dzterm  TYPE VTBFHAPO-DZTERM, "   '00000000'
lv_wrong_call  TYPE VTBFHAPO, "   
lt_i_so_dzterm  TYPE STANDARD TABLE OF TBREF_SO_DZTERM, "   
lv_i_kontrh  TYPE VTBFHA-KONTRH, "   SPACE
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_REF_TRTM_DEAL_READ'  "Read Payment Flows from Financial Transactions/Loans/Securities Orders
    EXPORTING
         I_BUKRS = lv_i_bukrs
         I_RFHA = lv_i_rfha
         I_NORDER = lv_i_norder
         I_RANLD = lv_i_ranld
         I_DZTERM = lv_i_dzterm
         I_KONTRH = lv_i_kontrh
    TABLES
         T_FLOWS = lt_t_flows
         I_SO_BUKRS = lt_i_so_bukrs
         I_SO_RFHA = lt_i_so_rfha
         I_SO_KONTRH = lt_i_so_kontrh
         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
    EXCEPTIONS
        DEAL_NOT_FOUND = 1
        WRONG_PAYMENT_DATE = 2
        WRONG_PARTNER = 3
        POSITIONS_NOT_FOUND = 4
        WRONG_CALL = 5
. " TB_REF_TRTM_DEAL_READ




ABAP code using 7.40 inline data declarations to call FM TB_REF_TRTM_DEAL_READ

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 VTB_CP INTO @DATA(ld_i_bukrs).
DATA(ld_i_bukrs) = ' '.
 
 
 
"SELECT single RFHA FROM VTB_CP INTO @DATA(ld_i_rfha).
DATA(ld_i_rfha) = ' '.
 
 
 
"SELECT single NORDER FROM VTB_CP INTO @DATA(ld_i_norder).
DATA(ld_i_norder) = '00000000'.
 
 
 
"SELECT single RANLD FROM VTB_CP INTO @DATA(ld_i_ranld).
DATA(ld_i_ranld) = ' '.
 
 
 
"SELECT single DZTERM FROM VTBFHAPO INTO @DATA(ld_i_dzterm).
DATA(ld_i_dzterm) = '00000000'.
 
 
 
"SELECT single KONTRH FROM VTBFHA INTO @DATA(ld_i_kontrh).
DATA(ld_i_kontrh) = ' '.
 
 
 
 
 


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!