SAP FI_TERMS_OF_PAYMENT_PROPOSE Function Module for









FI_TERMS_OF_PAYMENT_PROPOSE is a standard fi terms of payment propose SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fi terms of payment propose FM, simply by entering the name FI_TERMS_OF_PAYMENT_PROPOSE into the relevant SAP transaction such as SE37 or SE38.

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



Function FI_TERMS_OF_PAYMENT_PROPOSE 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 'FI_TERMS_OF_PAYMENT_PROPOSE'"
EXPORTING
I_BLDAT = "Document date
I_BUDAT = "Posting date
* I_CPUDT = SY-DATUM "CPU date
* I_ZFBDT = "Payment Baseline Date
I_ZTERM = "Terms of payment
* I_REINDAT = "Invoice Receipt Date
* I_LIFNR = "Account Number of Vendor
* I_BUKRS = "Company Code

IMPORTING
E_ZBD1T = "Days for cash discount terms 1
E_T052 = "
E_ZBD1P = "Percentages for cash discount terms 1
E_ZBD2T = "Days for cash discount terms 2
E_ZBD2P = "Percentages for cash discount terms 2
E_ZBD3T = "Days for net due date
E_ZFBDT = "Payment Baseline Date
E_SPLIT = "Terms of payment are split
E_ZSCHF = "
E_ZLSCH = "

EXCEPTIONS
TERMS_NOT_FOUND = 1
.



IMPORTING Parameters details for FI_TERMS_OF_PAYMENT_PROPOSE

I_BLDAT - Document date

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

I_BUDAT - Posting date

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

I_CPUDT - CPU date

Data type: SY-DATLO
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ZFBDT - Payment Baseline Date

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

I_ZTERM - Terms of payment

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

I_REINDAT - Invoice Receipt Date

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

I_LIFNR - Account Number of Vendor

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

I_BUKRS - Company Code

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

EXPORTING Parameters details for FI_TERMS_OF_PAYMENT_PROPOSE

E_ZBD1T - Days for cash discount terms 1

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

E_T052 -

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

E_ZBD1P - Percentages for cash discount terms 1

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

E_ZBD2T - Days for cash discount terms 2

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

E_ZBD2P - Percentages for cash discount terms 2

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

E_ZBD3T - Days for net due date

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

E_ZFBDT - Payment Baseline Date

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

E_SPLIT - Terms of payment are split

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

E_ZSCHF -

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

E_ZLSCH -

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

EXCEPTIONS details

TERMS_NOT_FOUND -

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

Copy and paste ABAP code example for FI_TERMS_OF_PAYMENT_PROPOSE 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_e_zbd1t  TYPE BSEG-ZBD1T, "   
lv_i_bldat  TYPE SY-DATLO, "   
lv_terms_not_found  TYPE SY, "   
lv_e_t052  TYPE T052, "   
lv_e_zbd1p  TYPE BSEG-ZBD1P, "   
lv_i_budat  TYPE SY-DATLO, "   
lv_e_zbd2t  TYPE BSEG-ZBD2T, "   
lv_i_cpudt  TYPE SY-DATLO, "   SY-DATUM
lv_e_zbd2p  TYPE BSEG-ZBD2P, "   
lv_i_zfbdt  TYPE SY-DATLO, "   
lv_e_zbd3t  TYPE BSEG-ZBD3T, "   
lv_i_zterm  TYPE T052-ZTERM, "   
lv_e_zfbdt  TYPE BSEG-ZFBDT, "   
lv_i_reindat  TYPE BKPF-REINDAT, "   
lv_e_split  TYPE T052-XSPLT, "   
lv_i_lifnr  TYPE BSEG-LIFNR, "   
lv_e_zschf  TYPE T052-ZSCHF, "   
lv_i_bukrs  TYPE BKPF-BUKRS, "   
lv_e_zlsch  TYPE T052-ZLSCH. "   

  CALL FUNCTION 'FI_TERMS_OF_PAYMENT_PROPOSE'  "
    EXPORTING
         I_BLDAT = lv_i_bldat
         I_BUDAT = lv_i_budat
         I_CPUDT = lv_i_cpudt
         I_ZFBDT = lv_i_zfbdt
         I_ZTERM = lv_i_zterm
         I_REINDAT = lv_i_reindat
         I_LIFNR = lv_i_lifnr
         I_BUKRS = lv_i_bukrs
    IMPORTING
         E_ZBD1T = lv_e_zbd1t
         E_T052 = lv_e_t052
         E_ZBD1P = lv_e_zbd1p
         E_ZBD2T = lv_e_zbd2t
         E_ZBD2P = lv_e_zbd2p
         E_ZBD3T = lv_e_zbd3t
         E_ZFBDT = lv_e_zfbdt
         E_SPLIT = lv_e_split
         E_ZSCHF = lv_e_zschf
         E_ZLSCH = lv_e_zlsch
    EXCEPTIONS
        TERMS_NOT_FOUND = 1
. " FI_TERMS_OF_PAYMENT_PROPOSE




ABAP code using 7.40 inline data declarations to call FM FI_TERMS_OF_PAYMENT_PROPOSE

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 ZBD1T FROM BSEG INTO @DATA(ld_e_zbd1t).
 
"SELECT single DATLO FROM SY INTO @DATA(ld_i_bldat).
 
 
 
"SELECT single ZBD1P FROM BSEG INTO @DATA(ld_e_zbd1p).
 
"SELECT single DATLO FROM SY INTO @DATA(ld_i_budat).
 
"SELECT single ZBD2T FROM BSEG INTO @DATA(ld_e_zbd2t).
 
"SELECT single DATLO FROM SY INTO @DATA(ld_i_cpudt).
DATA(ld_i_cpudt) = SY-DATUM.
 
"SELECT single ZBD2P FROM BSEG INTO @DATA(ld_e_zbd2p).
 
"SELECT single DATLO FROM SY INTO @DATA(ld_i_zfbdt).
 
"SELECT single ZBD3T FROM BSEG INTO @DATA(ld_e_zbd3t).
 
"SELECT single ZTERM FROM T052 INTO @DATA(ld_i_zterm).
 
"SELECT single ZFBDT FROM BSEG INTO @DATA(ld_e_zfbdt).
 
"SELECT single REINDAT FROM BKPF INTO @DATA(ld_i_reindat).
 
"SELECT single XSPLT FROM T052 INTO @DATA(ld_e_split).
 
"SELECT single LIFNR FROM BSEG INTO @DATA(ld_i_lifnr).
 
"SELECT single ZSCHF FROM T052 INTO @DATA(ld_e_zschf).
 
"SELECT single BUKRS FROM BKPF INTO @DATA(ld_i_bukrs).
 
"SELECT single ZLSCH FROM T052 INTO @DATA(ld_e_zlsch).
 


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!