Fonction SAP BAPI_LAWUSER_GETLIST - LAW: Select User

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
MAX_ROWS BAPILAWMISC-BAPIMAXROW I 4 0 X Maximum Number of Lines of Hits
PRETTY_PRINT BAPILAWMISC-BAPILAWPTPRINT C 1 ' ' X Formatting of an XML Document (Line Breaks)
WITH_PERS BAPILAWMISC-BAPILAWPSFL C 1 ' ' X Add Personalization Objects to Users

Paramètre Reférence Type Long. Description
ROWS BAPILAWMISC-BAPIROWS I 4 No. of users selected
SIZE BAPILAWMISC-BAPILAWXMLSIZE I 4 Size of an XML Document

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 X Return Parameter
SELECTION_RANGE BAPILAWRGE_USR 123 X BAPI Structure for Selection with the Range Table
USERLIST BAPILAWUSER 1085 X BAPI Structure: LAW Users with All Known Attributes
USERLIST_XML BAPILAWXMLDOC 128 X License Administration Workbench: Structure for Output as XML Document

Functionality
This BAPI allows you to select SAP users that are stored in the LicenseAdministration Workbench (LAW). The selected users are output using thetable Userlist. The selection itself is determined using theSelection_Range table. In this way, you can select using all userattributes that are known in the LAW. The result can be created astables with the structure Userlist or as an XML document.

Example
Report RSLAW_BAPI_TEST

Description
Returns the number of selected users.

Description
If an XML document was requested, the size of this document isspecified in this field.

Description
You can use this parameter to specify the maximum number of rows in theset of hits. In this way, you can limit the size of the result tableUserlist.

Value range
0 - 2 **32 -1

Default
0 , No limit

Description
Formatting of the XML document in accordance with the documentstructure. Very helpful in test cases.

Value range
' ' No formatting
'X' With formatting

Default
' ' No formatting

Description
You can use this parameter to request the output of customer-specificpersonlization objects.

Value range
' ',,Do not output personalization objects
'X',,Output personalization objects

Default
' ',,Do not output personalization objects

Description
Standard BAPI return table. Contains all error messages that occurredduring processing.

Value range
The following error messages are possible:

  • You are not authorized to display LAW data

  • Selection criterion does not contain any parameters

  • Selection criterion <(>&<)>1-&2 is not supported

  • There is no conversion for database field &1

  • Internal error: BAPI structure &1 does not exist

  • Internal error at &1, &2
  • Description
    Table containing the selection parameters. This is an extended RANGEtable. The name of a field from the BAPILAWUSER structure is entered inthe PARAMETER field if this attribute is to be used for selection. Allother fields are the usual fields for RANGE tables. You can use allfields for selection.
    Note: For systems that have not yet been assigned a unique system number(SYSTEM_NO), a system is identified using the three fields INST_NO,SAP_SYSTEM, and HW_KEY.

    Description
    Table containing the result of the selection. If you have restrictedthe number of rows, the result set may have been prematurely closed.

    Description
    Table for the result of the selection in the form of an XML document.If you have restricted the number of rows, the result set may have beenprematurely closed.