Fonction SAP BAPI_BUPA_ROLES_GET_2 - SAP BP, BAPI: Determine All Roles

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BUSINESSPARTNER BAPIBUS1006_HEAD-BPARTNER C 10 Business Partner Number
VALIDDATE BAPIBUS1006_VALIDITY-VALID_DATE D 8 SY-DATLO X Date of validity

Paramètre Reférence Long. Facultatif Description
BUSINESSPARTNERROLES BAPIBUS1006_BPROLES 48 X Business Partner Roles
RETURN BAPIRET2 548 X Messages

Functionality
This BAPI allows you to determine the roles assigned to a businesspartner that is entered in the parameter BUSINESSPARTNER. The data isreturned in the structure BUSINESSPARTNERROLES.
You can enter the selection date in the parameter VALIDDATE if youwant to restrict the number of roles to be determined to the rolesthat are valid on a certain date.
Any errors that may occur when the data is read are logged and issuedin the table RETURN.

Example

Notes

Description
Key that identifies a business partner unambiguously for each client
in the system.

Description
Date used in the search for business partner roles. All BP roles arereturned that were or are valid on this day.

Value range
01.01.0001 to 31.12.9999

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

Description
In the table parameter 'Business Partner Roles', the BP roles arereturned for which the business partner is maintained.

Description
This table contains the confirmations from the method call.