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

BAPI_BUPA_ADDRESS_ADD Add Business Partner Address

Adds a further address with its communication data (telephone, fax, e-mail and so on) to an existing business partner and returns the address GUID. It is used in migrations and interfaces when partners have several addresses, for example separate delivery or billing addresses. Assign address usages in ADDRESSUSAGE if needed, check RETURN and call BAPI_TRANSACTION_COMMIT.

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

Importing parameters

ParameterTypeDescriptionRequired
BUSINESSPARTNERBAPIBUS1006_HEAD-BPARTNERBusiness partner numberYes
ADDRESSDATABAPIBUS1006_ADDRESSAddress dataYes
DUPLICATE_MESSAGE_TYPEBAPIBUS1006_HEAD-CONTROLDUPLICATEMESSAGEMessage type for duplicate check—
ACCEPT_ERRORBAPI4001_1-ACCEPT_ERRAccept regional structure errors as warnings—

Exporting parameters

ParameterTypeDescription
ADDRESSGUIDBUT020-GUIDGUID of the new address

Tables parameters

ParameterTypeDescriptionRequired
BAPIADTELBAPIADTELTelephone numbers—
BAPIADFAXBAPIADFAXFax numbers—
BAPIADSMTPBAPIADSMTPE-mail addresses—
BAPIADURIBAPIADURIURI addresses—
BAPIAD_REMBAPIAD_REMAddress notes—
BAPIADUSEBAPIADUSECommunication usages—
ADDRESSUSAGEBAPIBUS1006_ADDRESSUSAGEAddress usages—
RETURNBAPIRET2Return messages—
ADDRESSDUPLICATESBAPIBUS1006_ADDRESS_DUPLICATESPossible address duplicates—

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_BUPA_ADDRESS_ADD'
  EXPORTING
    businesspartner = lv_businesspartner
    addressdata = lv_addressdata
  IMPORTING
    addressguid = lv_addressguid
  TABLES
    bapiadtel = lt_bapiadtel
    bapiadfax = lt_bapiadfax
    bapiadsmtp = lt_bapiadsmtp
    bapiaduri = lt_bapiaduri
    bapiad_rem = lt_bapiad_rem
    bapiaduse = lt_bapiaduse
    addressusage = lt_addressusage
    return = lt_return
    addressduplicates = lt_addressduplicates.

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