Fonction SAP BAPI_LAWUTYPE_GETLIST - License Administration Workbench: Select User Types

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CLIENT_COL BAPILAWMISC-BAPILAWCLFL C 1 ' ' X Fill Client Column and Use it During Evaluation
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_TEXT BAPILAWMISC-BAPILAWTXFL C 1 ' ' X Add Texts to User Types

Paramètre Reférence Type Long. Description
ROWS BAPILAWMISC-BAPIROWS I 4 Number of Selected User Types
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_UTY 123 X BAPI Structure for Selection with the Range Table
USERTYPELIST BAPILAWUTYPE 129 X BAPI Structure: Statistics for User Types of a System
USERTYPELIST_XML BAPILAWXMLDOC 128 X License Administration Workbench: Structure for Output as XML Document

Functionality
This BAPI allows the selection of user types that are stored in theLicense Administration Workbench (LAW). The selected users aretransferred using the table UserTypeList. The selection itself isdetermined using the Selection_Range table. It is possible to selectby systems, clients, and types. The result can be created as a tablewith the structure UserTypeList or as an XML document.

Example
,,Report RSLAW_TEST_BAPI

Description
Returns the number of selected user types.

Description
If an XML document was requested, this field contains the size of thisdocument.

Description
You can use this parameter to specify whether the client column isfilled, and used during the consolidation evalution.
This parameter is independent of a possible selection by clients.

Value range
' ',,Client column is not filled, consolidation by systems
'X',,Client column is filled, consolidation by systems and clients

Default
' ',, Client column is not filled, consolidation by systems

Description
You can use this parameter to determine the maximum number of rows forthe set of hits. In this way, you can limit the size of the resultstable UtypeList.

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
' ',,Without formatting
'X',,With formatting

Default
' ',,Without formatting

Description
You can use this parameter to request the extension of the output listto include texts for the user types and special versions.

Value range
' ',,Output without text
'X',,Output with text

Default
' ',,Output without text

Description
Standard BAPI return table. 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 structure BAPILAWUTYPE is enteredin the PARAMETER field, if this attribute is to be used for selection.All other fields are the usual fields for RANGE tables. You can use thefollowing fields for selection:

    • SYSTEM_NO

    • INST_NO

    • SAP_SYSTEM

    • HW_KEY

    • CLIENT

    • LIC_TYP

    • 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.