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

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

ParameterTypeDescriptionRequired
BUSINESSPARTNEREXTERNBAPIBUS1006_HEAD-BPARTNERExternal business partner number—
PARTNERCATEGORYBAPIBUS1006_HEAD-PARTN_CATBusiness partner categoryYes
PARTNERGROUPBAPIBUS1006_HEAD-PARTN_GRPBusiness partner grouping—
CENTRALDATABAPIBUS1006_CENTRALCentral dataYes
CENTRALDATAPERSONBAPIBUS1006_CENTRAL_PERSONCentral data for a person—
CENTRALDATAORGANIZATIONBAPIBUS1006_CENTRAL_ORGANCentral data for an organization—
CENTRALDATAGROUPBAPIBUS1006_CENTRAL_GROUPCentral data for a group—
ADDRESSDATABAPIBUS1006_ADDRESSStandard address—
DUPLICATE_MESSAGE_TYPEBAPIBUS1006_HEAD-CONTROLDUPLICATEMESSAGEMessage type for duplicate check—
ACCEPT_ERRORBAPI4001_1-ACCEPT_ERRAccept regional structure errors as warnings—

Exporting parameters

ParameterTypeDescription
BUSINESSPARTNERBAPIBUS1006_HEAD-BPARTNERCreated business partner number

Tables parameters

ParameterTypeDescriptionRequired
TELEFONDATABAPIADTELTelephone numbers—
FAXDATABAPIADFAXFax numbers—
E_MAILDATABAPIADSMTPE-mail addresses—
URIADDRESSDATABAPIADURIURI addresses—
ADDRESSNOTESBAPIAD_REMAddress notes—
COMMUNICATIONUSAGEBAPIADUSECommunication usages—
TELEFONDATANONADDRESSBAPIADTELTelephone numbers (address-independent)—
E_MAILDATANONADDRESSBAPIADSMTPE-mail addresses (address-independent)—
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_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.

Request a custom report