Fonction SAP BAPI_BUPA_ROLE_EXIST_CHECK_2 - SAP BP, BAPI: Check for Existence of BP Role

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ALL_BUSINESSPARTNERROLES BAPIBUS1006_X-MARK C 1 SPACE X Indicator: Check of All BP Roles for the BP Role Category
BUSINESSPARTNER BAPIBUS1006_HEAD-BPARTNER C 10 Business Partner Number
BUSINESSPARTNERROLE BAPIBUS1006_BPROLES-PARTNERROLE C 6 X BP Role
BUSINESSPARTNERROLECATEGORY BAPIBUS1006_BPROLES-PARTNERROLECATEGORY C 6 X BP Role Category
DIFFERENTIATIONTYPEVALUE BAPIBUS1006_BPROLES-DIFFTYPEVALUE C 20 X BP: Differentiation Type Value
VALIDDATE BAPIBUS1006_VALIDITY-VALID_DATE D 8 SY-DATLO X Date of validity

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 X Messages

Functionality
This BAPI allows you to check whether a business partner exists in arole that is entered in the parameter BUSINESSPARTNERROLE.
Only the existence of update-relevant roles (i.e. roles with an assignedrole category) can be checked.
The role to be checked is either transferred explicitly in parameterBUSINESSPARTNERROLE or derived from the role category in parameterBUSINESSPARTNERROLECATEGORY. When a role category is entered, the roleestablished through the standard assignment is created if the parameterALL_BUSINESSPARTNERROLES is not set. Otherwise, all the roles assignedto the role category are created. The result of the check is postiveif the business partner exists in at least one of the roles.
If a role category and a role are both transferred, a check is carriedout to determine whether an assignment exists between the category andthe role. In this case the explicitly transferred role is checked.
The role(s) to be checked can be determined in more detail by enteringa differentiation type value in the parameter DIFFERENTIATIONTYPEVALUE,as well as by entering a date on which the role should be valid inVALIDDATE. If no date is entered in VALIDDATE, then a check is carriedout for existence on the current date. If this parameter is blank, thenthe assignment of the role is checked independently of its validity.
Any errors that may occur, and also the non-existence of a roleare logged and issued in the table RETURN.

Description
Indicator that controls whether all the roles assigned to a category arechecked when the role category is transferred.
You may set the parameter only if you enter a role category.
If at least one of the roles assigned to the transferred role categoryis also assigned to the business partner, then it is assumed to exist.

Default
If you do not transfer the parameter, only the existence of role that isdefined via the standard assignment of the transferred role category, ischecked.

Description
Key that defines a business partner unambiguously in the system for eachclient.

Description
Roles whose existence is checked.

Description
Category of a role. Any number of roles can be assigned to a rolecategory, whereby one assignement is defined as the standard assignment.
If only the role category is transferred, then this results in thecreation of the role whose assignment to the transferred role categoryin table TB003 is selected as standard.

Value range
Role categories are defined in table TB003A.

Description
Differentiation type value of the role to be checked.

Description
Date by which the business partner role to be checked is found. All BProles are checked that were or are valid on this day.

Value range
01.01.0001 to 31.12.9999

Default
If the parameter is not transferred, then all the BP roles of thebusiness partner valid on the current date are checked.
If the value SPACE is transferred, then all the BP roles assigned to thebusiness partner are checked, regardless of their validity.

Description
This table contains the confirmations from the method call.