SAP TB_COVR_FI_CALC_EXPECTED_PAYM Function Module for Determine Expected Payment Amount/Payment Date for Document Type D/K/S









TB_COVR_FI_CALC_EXPECTED_PAYM is a standard tb covr fi calc expected paym SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine Expected Payment Amount/Payment Date for Document Type D/K/S 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 covr fi calc expected paym FM, simply by entering the name TB_COVR_FI_CALC_EXPECTED_PAYM into the relevant SAP transaction such as SE37 or SE38.

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



Function TB_COVR_FI_CALC_EXPECTED_PAYM 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_COVR_FI_CALC_EXPECTED_PAYM'"Determine Expected Payment Amount/Payment Date for Document Type D/K/S
EXPORTING
I_BKPF = "Belegwährung (aus Belegkopf)
I_BSEG = "FI- Belegzeile komplett
* I_PAYMENT_HISTORY = ' ' "

IMPORTING
EXPECTED_PAYMENT_AMOUNT = "errechneter Zahlungs(-eingangs)betrag
EXPECTED_PAYMENT_DATE = "errechneter Zahlungstermin
.



IMPORTING Parameters details for TB_COVR_FI_CALC_EXPECTED_PAYM

I_BKPF - Belegwährung (aus Belegkopf)

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

I_BSEG - FI- Belegzeile komplett

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

I_PAYMENT_HISTORY -

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

EXPORTING Parameters details for TB_COVR_FI_CALC_EXPECTED_PAYM

EXPECTED_PAYMENT_AMOUNT - errechneter Zahlungs(-eingangs)betrag

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

EXPECTED_PAYMENT_DATE - errechneter Zahlungstermin

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

Copy and paste ABAP code example for TB_COVR_FI_CALC_EXPECTED_PAYM 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_bkpf  TYPE BKPF, "   
lv_expected_payment_amount  TYPE BSEG-FDWBT, "   
lv_i_bseg  TYPE BSEG, "   
lv_expected_payment_date  TYPE BSEG-FDTAG, "   
lv_i_payment_history  TYPE KNB1-XZVER. "   SPACE

  CALL FUNCTION 'TB_COVR_FI_CALC_EXPECTED_PAYM'  "Determine Expected Payment Amount/Payment Date for Document Type D/K/S
    EXPORTING
         I_BKPF = lv_i_bkpf
         I_BSEG = lv_i_bseg
         I_PAYMENT_HISTORY = lv_i_payment_history
    IMPORTING
         EXPECTED_PAYMENT_AMOUNT = lv_expected_payment_amount
         EXPECTED_PAYMENT_DATE = lv_expected_payment_date
. " TB_COVR_FI_CALC_EXPECTED_PAYM




ABAP code using 7.40 inline data declarations to call FM TB_COVR_FI_CALC_EXPECTED_PAYM

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 FDWBT FROM BSEG INTO @DATA(ld_expected_payment_amount).
 
 
"SELECT single FDTAG FROM BSEG INTO @DATA(ld_expected_payment_date).
 
"SELECT single XZVER FROM KNB1 INTO @DATA(ld_i_payment_history).
DATA(ld_i_payment_history) = ' '.
 


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!