SAP TB_DEAL_PAYMENT_DATA_MAINTAIN Function Module for Maintain Payment Details for Financial Transaction
TB_DEAL_PAYMENT_DATA_MAINTAIN is a standard tb deal payment data maintain SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Maintain Payment Details for Financial Transaction 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 deal payment data maintain FM, simply by entering the name TB_DEAL_PAYMENT_DATA_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.
Function Group: TB25
Program Name: SAPLTB25
Main Program: SAPLTB25
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TB_DEAL_PAYMENT_DATA_MAINTAIN 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_DEAL_PAYMENT_DATA_MAINTAIN'"Maintain Payment Details for Financial Transaction.
EXPORTING
APPLICATION = "Treasury application
COMPANYCODE = "Company Code
COUNTERPARTY = "Payer/Payee
* CURRENCY = ' ' "Currency
DEALNUMBER = "Kennummer des Geschäfts
* DISPLAY = ' ' "Display Mode
DYNNR = "Dynpronummer für das Kopf-Subscreen
REPID = "Reportidentifikation für das Kopf-Subscreen
IMPORTING
DATAR = "Eingabe erfolgt?
TABLES
PAYMENT_DATA = "Payment Details
EXCEPTIONS
COMPANYCODE = 1 CURRENCY = 2 PARTNER = 3
IMPORTING Parameters details for TB_DEAL_PAYMENT_DATA_MAINTAIN
APPLICATION - Treasury application
Data type: VTBZVGLB-RANTYPOptional: No
Call by Reference: No ( called with pass by value option)
COMPANYCODE - Company Code
Data type: VTBZVGLB-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
COUNTERPARTY - Payer/Payee
Data type: VTBZVGLB-RPZAHLOptional: No
Call by Reference: No ( called with pass by value option)
CURRENCY - Currency
Data type: VTBZVGLB-WAERSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DEALNUMBER - Kennummer des Geschäfts
Data type: VTBFHA-RFHAOptional: No
Call by Reference: No ( called with pass by value option)
DISPLAY - Display Mode
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNNR - Dynpronummer für das Kopf-Subscreen
Data type: SY-DYNNROptional: No
Call by Reference: No ( called with pass by value option)
REPID - Reportidentifikation für das Kopf-Subscreen
Data type: SY-REPIDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TB_DEAL_PAYMENT_DATA_MAINTAIN
DATAR - Eingabe erfolgt?
Data type: SY-DATAROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for TB_DEAL_PAYMENT_DATA_MAINTAIN
PAYMENT_DATA - Payment Details
Data type: VTBZVOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
COMPANYCODE - Company Code
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CURRENCY - Currency
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARTNER - Geschäftspartner 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_DEAL_PAYMENT_DATA_MAINTAIN 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_datar | TYPE SY-DATAR, " | |||
| lv_application | TYPE VTBZVGLB-RANTYP, " | |||
| lv_companycode | TYPE VTBZVGLB, " | |||
| lt_payment_data | TYPE STANDARD TABLE OF VTBZV, " | |||
| lv_currency | TYPE VTBZV, " | |||
| lv_companycode | TYPE VTBZVGLB-BUKRS, " | |||
| lv_partner | TYPE VTBZVGLB, " | |||
| lv_counterparty | TYPE VTBZVGLB-RPZAHL, " | |||
| lv_currency | TYPE VTBZVGLB-WAERS, " SPACE | |||
| lv_dealnumber | TYPE VTBFHA-RFHA, " | |||
| lv_display | TYPE VTBFHA, " SPACE | |||
| lv_dynnr | TYPE SY-DYNNR, " | |||
| lv_repid | TYPE SY-REPID. " |
|   CALL FUNCTION 'TB_DEAL_PAYMENT_DATA_MAINTAIN' "Maintain Payment Details for Financial Transaction |
| EXPORTING | ||
| APPLICATION | = lv_application | |
| COMPANYCODE | = lv_companycode | |
| COUNTERPARTY | = lv_counterparty | |
| CURRENCY | = lv_currency | |
| DEALNUMBER | = lv_dealnumber | |
| DISPLAY | = lv_display | |
| DYNNR | = lv_dynnr | |
| REPID | = lv_repid | |
| IMPORTING | ||
| DATAR | = lv_datar | |
| TABLES | ||
| PAYMENT_DATA | = lt_payment_data | |
| EXCEPTIONS | ||
| COMPANYCODE = 1 | ||
| CURRENCY = 2 | ||
| PARTNER = 3 | ||
| . " TB_DEAL_PAYMENT_DATA_MAINTAIN | ||
ABAP code using 7.40 inline data declarations to call FM TB_DEAL_PAYMENT_DATA_MAINTAIN
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 DATAR FROM SY INTO @DATA(ld_datar). | ||||
| "SELECT single RANTYP FROM VTBZVGLB INTO @DATA(ld_application). | ||||
| "SELECT single BUKRS FROM VTBZVGLB INTO @DATA(ld_companycode). | ||||
| "SELECT single RPZAHL FROM VTBZVGLB INTO @DATA(ld_counterparty). | ||||
| "SELECT single WAERS FROM VTBZVGLB INTO @DATA(ld_currency). | ||||
| DATA(ld_currency) | = ' '. | |||
| "SELECT single RFHA FROM VTBFHA INTO @DATA(ld_dealnumber). | ||||
| DATA(ld_display) | = ' '. | |||
| "SELECT single DYNNR FROM SY INTO @DATA(ld_dynnr). | ||||
| "SELECT single REPID FROM SY INTO @DATA(ld_repid). | ||||
Search for further information about these or an SAP related objects