FI
Function module
Used the same way in S/4HANA
FI_TERMS_OF_PAYMENT_PROPOSE Propose Terms of Payment
Calculates and proposes the baseline date, cash discount days and percentages, payment method and installment indicator for a payment terms key based on the document and posting date. It is used in upload programs that fill due date data before creating FI or SD documents and in reports that simulate due dates. Always pass the document and posting date; if the payment terms are not defined the TERMS_NOT_FOUND exception is raised.
- Function group
- FACS
- Remote-enabled (RFC)
- No
- Type
- Function module
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| I_ZTERM | T052-ZTERM | Terms of payment key | Yes |
| I_BLDAT | SY-DATLO | Document date | Yes |
| I_BUDAT | SY-DATLO | Posting date | Yes |
| I_ZFBDT | SY-DATLO | Baseline date | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| E_ZFBDT | BSEG-ZFBDT | Proposed baseline date |
| E_ZBD1T | BSEG-ZBD1T | Cash discount days 1 |
| E_ZBD1P | BSEG-ZBD1P | Cash discount percentage 1 |
| E_ZBD2T | BSEG-ZBD2T | Cash discount days 2 |
| E_ZBD2P | BSEG-ZBD2P | Cash discount percentage 2 |
| E_ZBD3T | BSEG-ZBD3T | Net payment terms period (days) |
| E_ZLSCH | T052-ZLSCH | Payment method |
| E_ZSCHF | T052-ZSCHF | Payment block key |
| E_SPLIT | T052-XSPLT | Installment payment indicator |
| E_T052 | T052 | Terms of payment definition |
Exceptions
- TERMS_NOT_FOUND — Terms of payment not found
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'FI_TERMS_OF_PAYMENT_PROPOSE'
EXPORTING
i_zterm = lv_i_zterm
i_bldat = lv_i_bldat
i_budat = lv_i_budat
IMPORTING
e_zfbdt = lv_e_zfbdt
e_zbd1t = lv_e_zbd1t
e_zbd1p = lv_e_zbd1p
e_zbd2t = lv_e_zbd2t
e_zbd2p = lv_e_zbd2p
e_zbd3t = lv_e_zbd3t
e_zlsch = lv_e_zlsch
e_zschf = lv_e_zschf
e_split = lv_e_split
e_t052 = lv_e_t052
EXCEPTIONS
terms_not_found = 1
OTHERS = 2.Related tables
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.