Ansicht
Dokumentation
BAPI_BUPA_ROLE_REMOVE - SAP BP, BAPI: Delete BP Role
CPI1466 during Backup BAL Application Log DocumentationThis documentation is copyright by SAP AG.
Functionality
With this BAPI a role of a business partner defined in the parameter BUSINESSPARTNER is deleted.
The existence of the business partner in the role to be deleted is checked.
The role to be deleted is either transferred explicitly in parameter BUSINESSPARTNERROLE or derived from the role category in the parameter BUSINESSPARTNERROLECATEGORY. When a role category is entered, the role established through the standard assignment is deleted if the parameter ALL_BUSINESSPARTNERROLES is not set. Otherwise, all the roles assigned to the role category are deleted. If the business partner does not exist in one of the roles then an error is issued and the deletion does not take place.
If both a role category and a role is transferred, a check is carried out to see if there is an assignment between the category and role. In this case the role that is explicitly transferred is deleted.
A value can be transferred in the parameter DIFFERENTIATIONTYPEVALUE to further differentiate the role to be deleted. This is allowed only for differentiation type-dependent roles. (Whether or not a role can be differentiated depends on the value of the differentiation type assigned to the role category. Differentiation types not equal to 0 that are assigned to the role category may be used for entering a differentiation type value.)
The parameter IV_X_ALL_DFVAL can be set in order to delete all instances of a role with regard to its existence with different differentiation type values. In this case you are not allowed to transfer an explicit differentiation type value in IV_DIFFTYPEVALUE.
Any errors that may occur are logged and issued in the table RETURN.
Example
When a role is deleted then a check is carried out to determine whether this deletion is allowed from the point of view of the application(s) that use this role, by means of processing the event RLDEL. If the result of the check is negative then the business partner role cannot be deleted.
Notes
Further information
Parameters
ALL_BUSINESSPARTNERROLESALL_DIFFERENTIATIONTYPEVALUES
BUSINESSPARTNER
BUSINESSPARTNERROLE
BUSINESSPARTNERROLECATEGORY
DIFFERENTIATIONTYPEVALUE
RETURN
Exceptions
Function Group
BUBA_3ABAP Short Reference rdisp/max_wprun_time - Maximum work process run time
This documentation is copyright by SAP AG.
Length: 3189 Date: 20240523 Time: 090344 sap01-206 ( 60 ms )