SD Function module Used the same way in S/4HANA

SD_PRINT_TERMS_OF_PAYMENT Format Terms of Payment for Printing

Converts a payment terms key (T052) into readable text lines based on the document date and language; due dates, discount percentages and installment splits are turned into text. It is used in invoice, order confirmation and pro forma forms to print the payment terms text. Pass the document, posting or entry date for correct due dates; if the payment terms are not defined the TERMS_OF_PAYMENT_NOT_IN_T052 exception is raised.

Function group
VPRI
Remote-enabled (RFC)
No
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
TERMS_OF_PAYMENTT052-ZTERMTerms of payment keyYes
BLDATVBRK-ERDATDocument date—
BUDATVBRK-FKDATPosting date—
CPUDTVBRK-ERDATEntry date—
LANGUAGENAST-SPRASLanguage—
COUNTRYKNA1-LAND1Country—
DOCUMENT_CURRENCYVBRK-WAERKDocument currency—

Exporting parameters

ParameterTypeDescription
BASELINE_DATEVBRK-FKDATBaseline date
PAYMENT_SPLITVBDKR-P_SPLITInstallment payment indicator
ZFBDTVBDKR-ZFBDTBaseline date for due date calculation

Tables parameters

ParameterTypeDescriptionRequired
TOP_TEXTVTOPISTerms of payment text linesYes

Exceptions

  • TERMS_OF_PAYMENT_NOT_IN_T052 — Payment terms not in T052

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 'SD_PRINT_TERMS_OF_PAYMENT'
  EXPORTING
    terms_of_payment = lv_terms_of_payment
  IMPORTING
    baseline_date = lv_baseline_date
    payment_split = lv_payment_split
    zfbdt = lv_zfbdt
  TABLES
    top_text = lt_top_text
  EXCEPTIONS
    terms_of_payment_not_in_t052 = 1
    OTHERS = 2.

Related tables

Solutions using this function

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.

Request a custom report