BAPI_BUPA_CREATE_FROM_DATA Create Business Partner
Creates an SAP Business Partner (person, organization or group) with central data, a standard address and communication data, like transaction BP. It is used in master data migration and in interfaces from CRM or portal systems that create new partners. Set PARTNERCATEGORY (1 person, 2 organization, 3 group) and the matching central data structure, check RETURN and call BAPI_TRANSACTION_COMMIT; roles are added afterwards, for example with BAPI_BUPA_ROLE_ADD_2.
- Function group
- BUBA_3
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| BUSINESSPARTNEREXTERN | BAPIBUS1006_HEAD-BPARTNER | External business partner number | — |
| PARTNERCATEGORY | BAPIBUS1006_HEAD-PARTN_CAT | Business partner category | Yes |
| PARTNERGROUP | BAPIBUS1006_HEAD-PARTN_GRP | Business partner grouping | — |
| CENTRALDATA | BAPIBUS1006_CENTRAL | Central data | Yes |
| CENTRALDATAPERSON | BAPIBUS1006_CENTRAL_PERSON | Central data for a person | — |
| CENTRALDATAORGANIZATION | BAPIBUS1006_CENTRAL_ORGAN | Central data for an organization | — |
| CENTRALDATAGROUP | BAPIBUS1006_CENTRAL_GROUP | Central data for a group | — |
| ADDRESSDATA | BAPIBUS1006_ADDRESS | Standard address | — |
| 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 |
|---|---|---|
| BUSINESSPARTNER | BAPIBUS1006_HEAD-BPARTNER | Created business partner number |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| TELEFONDATA | BAPIADTEL | Telephone numbers | — |
| FAXDATA | BAPIADFAX | Fax numbers | — |
| E_MAILDATA | BAPIADSMTP | E-mail addresses | — |
| URIADDRESSDATA | BAPIADURI | URI addresses | — |
| ADDRESSNOTES | BAPIAD_REM | Address notes | — |
| COMMUNICATIONUSAGE | BAPIADUSE | Communication usages | — |
| TELEFONDATANONADDRESS | BAPIADTEL | Telephone numbers (address-independent) | — |
| E_MAILDATANONADDRESS | BAPIADSMTP | E-mail addresses (address-independent) | — |
| 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_CREATE_FROM_DATA'
EXPORTING
partnercategory = lv_partnercategory
centraldata = lv_centraldata
IMPORTING
businesspartner = lv_businesspartner
TABLES
telefondata = lt_telefondata
faxdata = lt_faxdata
e_maildata = lt_e_maildata
uriaddressdata = lt_uriaddressdata
addressnotes = lt_addressnotes
communicationusage = lt_communicationusage
telefondatanonaddress = lt_telefondatanonaddress
e_maildatanonaddress = lt_e_maildatanonaddress
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.