Fonction SAP BAPI_LAWSYSTEM_GETLIST - License Administration Workbench: Select Systems

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 Number of Selected Systems
SIZE BAPILAWMISC-BAPILAWXMLSIZE I 4 Size of an XML Document

Paramètre Reférence Long. Facultatif Description
CLIENTLIST BAPILAWCLIENT 77 X BAPI Structure: License Administration Workbench Client
COMPONENTLIST BAPILAWSYSCOMP 177 X BAPI Structure: License Administration Workbench Component of a System
RESULTLIST_XML BAPILAWXMLDOC 128 X License Administration Workbench: Structure for Output as XML Document
RETURN BAPIRET2 548 X Return Parameter
SELECTION_RANGE BAPILAWRGE_SYS 123 X BAPI Structure for Selection with the Range Table
SYSTEMLIST BAPILAWSYSTEM 164 X BAPI Structure: Description of a System in the License Administration Workbench

Functionality
This BAPI allows you to select data for systems that is stored in theLicense Administration Workbench (LAW). The selected system data istransferred using the SystemList table. The selection itself isspecified using the Selection_Range table.
In addition to the system data, you can also call information aboutclients (table ClientList) and system components (table ComponentList).
Alternatively, you can output the results of all three tables in anXML document.

Example
Report RSLAW_TEST_BAPI

Description
Returns the number of selected systems.

Description
If an XML document was requested, the size of this document is specifiedin this field.

Description
You can use this parameter to specify the maximum number of rows.In this way, you can limit the size of the result table Userlist

Value range
0 - 2 **32 -1

Default

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
Optional: the list of all clients for the selected systems.

Description
Optional: list of all system components for the selected systems.

Description
Tabel containing the result of the selection in the form of an XMLdocument. If you have restricted the number of rows, the result setmay have been prematurely closed.

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 BAPILAWSYSTEM structure is enteredin the PARAMETER field, if this attribute is to be used for theselection. All other fields are the usual fields for RANGE tables.The following fields can be used for selection:

    • SYSTEM_NO

    • INST_NO

    • SAP_SYSTEM

    • HW_KEY

    • SYS_STATUS

    • Note: For systems that have not yet been assigned a unique system number(SYSTEM_NO), a system is identified System using the three fieldsINST_NO, SAP_SYSTEM, and HW_KEY.

      Description
      Table containing the result of the selection (systems). If you haverestricted the number of rows, the result set may have been prematurelyclosed.