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

BAPI_BUPA_ROLE_ADD_2 Add Business Partner Role

Adds a business partner role (for example FLCU01 customer, FLVN01 vendor or a custom role) to an existing business partner with an optional validity period. It is used after BAPI_BUPA_CREATE_FROM_DATA in partner migrations and interfaces. Pass BUSINESSPARTNERROLE and the validity dates, check RETURN and call BAPI_TRANSACTION_COMMIT; role-specific data such as company code data is maintained with other APIs.

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

Importing parameters

ParameterTypeDescriptionRequired
BUSINESSPARTNERBAPIBUS1006_HEAD-BPARTNERBusiness partner numberYes
BUSINESSPARTNERROLECATEGORYBAPIBUS1006_BPROLES-PARTNERROLECATEGORYBusiness partner role category—
ALL_BUSINESSPARTNERROLESBAPIBUS1006_X-MARKAdd all roles of the category—
BUSINESSPARTNERROLEBAPIBUS1006_BPROLES-PARTNERROLEBusiness partner role—
DIFFERENTIATIONTYPEVALUEBAPIBUS1006_BPROLES-DIFFTYPEVALUEDifferentiation type value—
VALIDFROMDATEBAPIBUS1006_BPROLE_VALIDITY-BPROLEVALIDFROMValid from—
VALIDUNTILDATEBAPIBUS1006_BPROLE_VALIDITY-BPROLEVALIDTOValid to—

Tables parameters

ParameterTypeDescriptionRequired
RETURNBAPIRET2Return messages—

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_ROLE_ADD_2'
  EXPORTING
    businesspartner = lv_businesspartner
  TABLES
    return = lt_return.

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