MM BAPI RFC Used the same way in S/4HANA

BAPI_VENDOR_GETDETAIL Vendor Detail Information

Returns the general data of a vendor (name, address, tax numbers), the company code data when requested, and the bank/IBAN details. It is used in interfaces that pass vendor information to external systems and in form and report programs. Fill COMPANYCODE for company code data; in S/4HANA vendor data is maintained through the business partner, but this BAPI still works for reading.

Function group
LC01
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
VENDORNOBAPIVENDOR_01-VENDOR_NOVendor numberYes
COMPANYCODEBAPIVENDOR_01-COMP_CODECompany code—

Exporting parameters

ParameterTypeDescription
GENERALDETAILBAPIVENDOR_04General data
COMPANYDETAILBAPIVENDOR_05Company code data
RETURNBAPIRET1Return message

Tables parameters

ParameterTypeDescriptionRequired
BANKDETAILBAPIVENDOR_06Bank details—
VENDORIBANDETAILBAPIVENDOR_02IBAN details—

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 'BAPI_VENDOR_GETDETAIL'
  EXPORTING
    vendorno = lv_vendorno
  IMPORTING
    generaldetail = lv_generaldetail
    companydetail = lv_companydetail
    return = lv_return
  TABLES
    bankdetail = lt_bankdetail
    vendoribandetail = lt_vendoribandetail.

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.

Request a custom report