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
| Parameter | Type | Description | Required |
|---|---|---|---|
| BUSINESSPARTNER | BAPIBUS1006_HEAD-BPARTNER | Business partner number | Yes |
| ADDRESSDATA | BAPIBUS1006_ADDRESS | Address data | Yes |
| DUPLICATE_MESSAGE_TYPE | BAPIBUS1006_HEAD-CONTROLDUPLICATEMESSAGE | Message type for duplicate check | — |
| ACCEPT_ERROR | BAPI4001_1-ACCEPT_ERR | Accept regional structure errors as warnings | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| ADDRESSGUID | BUT020-GUID | GUID of the new address |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| BAPIADTEL | BAPIADTEL | Telephone numbers | — |
| BAPIADFAX | BAPIADFAX | Fax numbers | — |
| BAPIADSMTP | BAPIADSMTP | E-mail addresses | — |
| BAPIADURI | BAPIADURI | URI addresses | — |
| BAPIAD_REM | BAPIAD_REM | Address notes | — |
| BAPIADUSE | BAPIADUSE | Communication usages | — |
| ADDRESSUSAGE | BAPIBUS1006_ADDRESSUSAGE | Address usages | — |
| RETURN | BAPIRET2 | Return messages | — |
| ADDRESSDUPLICATES | BAPIBUS1006_ADDRESS_DUPLICATES | Possible 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.