Fonction SAP BAPI_LAWCONSUSR_GETLIST - License Administration Workbench: Select Consolidated Users

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)

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
CONSUSERLIST BAPILAWCONSUSER 40 X BAPI Structure: Consolidated LAW Users
CONSUSERLIST_XML BAPILAWXMLDOC 128 X License Administration Workbench: Structure for Output as XML Document
RETURN BAPIRET2 548 X Return Parameter
SELECTION_RANGE BAPILAWRGE_CUSR 123 X BAPI Structure for Selection with the Range Table

Functionality
This BAPI allows the selection of consolidation data about SAP users,that is stored in the License Audit Workbench (LAW). The selected usersare output using table ConsUserlist. The selection itself isdetermined using the table Selection_Range. It is possible to selectby user name and user types (license types). The result can becreated as tables with the structure ConsUserlist or as an XMLdocument.

Example
Report RSLAW_TEST_BAPI

Description
Returns the number of selected users.

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

Description
You can use this parameter to determine the maximum number of rows inthe set of hits. In this way, you can limit the size of the resulttable Userlist.

Value range
0 - 2 **32 -1

Default
0 , No limit

Description
Formatting of the XML document in accordance with the documentstructure. This is very helpful in test cases.

Value range
' ',,Without formatting
'X',,With formatting

Default
' ',,Without formatting

Description
List of the users consolidated by LAW. If consolidation was not possiblefor certain users, the users are listed consecutively. In this case,the field CONS_STATUS is filled with "E" (Error) or "W" (Warning).

Description
Table for the result of the selection in the form of an XML document.If you restrict the number of lines, the result set may beprematurely closed.

Description
Standard BAPI return table. It contains all error messages thatoccurred during 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 BAPILAWCONSUSER structure isentered in the PARAMETER field, if this attribute is to used forselection. All other fields are the normal fields for RANGE tables. Thefollowing fields can be used for selection:

    • USER

    • CONS_STATUS

    • LIC_TYP