openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_LAWUTYPE_GETLIST:
    post:
      tags:
      - LAW_BAPI_UTYPES
      summary: 'License Administration Workbench: Select User Types'
      operationId: /rfc/BAPI_LAWUTYPE_GETLIST
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLIENT_COL:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Fill Client Column and Use it During Evaluation
                MAX_ROWS:
                  type: integer
                  format: int32
                  default: 0
                  description: Maximum Number of Lines of Hits
                PRETTY_PRINT:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Formatting of an XML Document (Line Breaks)
                WITH_TEXT:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Add Texts to User Types
                SELECTION_RANGE:
                  type: array
                  items:
                    type: object
                    properties:
                      PARAMETER:
                        type: string
                        maxLength: 30
                        description: 'Parameter Name  enumValues: INST_NO=Installation Number,SYSTEM_NO=Unique System ID from SAPLICENSE,SAP_SYSTEM=SAP System, Name of SAP System,HW_KEY=Hardware Key,LIC_TYPE=SAP R/3 User Type ID,CLIENT=Client'
                        enum:
                        - INST_NO
                        - SYSTEM_NO
                        - SAP_SYSTEM
                        - HW_KEY
                        - LIC_TYPE
                        - CLIENT
                      SIGN:
                        type: string
                        maxLength: 1
                        description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                        enum:
                        - E
                        - I
                      OPTION:
                        type: string
                        maxLength: 2
                        description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                        enum:
                        - NB
                        - NP
                        - LE
                        - EQ
                        - BT
                        - CP
                        - GT
                        - NE
                        - LT
                        - GE
                      LOW:
                        type: string
                        maxLength: 45
                        description: '''Generic'' SELECT-OPTION for Dynamic Selections'
                      HIGH:
                        type: string
                        maxLength: 45
                        description: '''Generic'' SELECT-OPTION for Dynamic Selections'
                USERTYPELIST:
                  type: array
                  items:
                    type: object
                    properties:
                      SYSTEM_NO:
                        type: string
                        maxLength: 18
                        description: Unique System ID from SAPLICENSE
                      INST_NO:
                        type: string
                        maxLength: 10
                        description: Installation number
                      SAP_SYSTEM:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      HW_KEY:
                        type: string
                        maxLength: 11
                        description: Hardware Key
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      LIC_TYP:
                        type: string
                        maxLength: 2
                        description: ID for the User Types of the SAP System
                      SPEC_VERS:
                        type: string
                        maxLength: 2
                        description: Assignment to special version
                      SURCHARGE:
                        type: integer
                        format: int64
                        description: Percentage Country Surcharge
                      NUMBER:
                        type: integer
                        format: int64
                        description: 'LAW: Counter (Users, Units, and so on)'
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      LANGU_ISO:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      TEXT_LIC_TYP:
                        type: string
                        maxLength: 30
                        description: Short text for user types
                      TEXT_SPEC_VERS:
                        type: string
                        maxLength: 30
                        description: Special version
                USERTYPELIST_XML:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: XML Stream
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ROWS:
                    type: integer
                    format: int32
                    description: Number of Selected User Types
                  SIZE:
                    type: integer
                    format: int32
                    description: Size of an XML Document
                  RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
                  SELECTION_RANGE:
                    type: array
                    items:
                      type: object
                      properties:
                        PARAMETER:
                          type: string
                          maxLength: 30
                          description: 'Parameter Name  enumValues: INST_NO=Installation Number,SYSTEM_NO=Unique System ID from SAPLICENSE,SAP_SYSTEM=SAP System, Name of SAP System,HW_KEY=Hardware Key,LIC_TYPE=SAP R/3 User Type ID,CLIENT=Client'
                          enum:
                          - INST_NO
                          - SYSTEM_NO
                          - SAP_SYSTEM
                          - HW_KEY
                          - LIC_TYPE
                          - CLIENT
                        SIGN:
                          type: string
                          maxLength: 1
                          description: 'Inclusion/exclusion criterion SIGN for range tables  enumValues: E=Exclusive of defined values/range,I=Inclusive of defined values/range'
                          enum:
                          - E
                          - I
                        OPTION:
                          type: string
                          maxLength: 2
                          description: 'Selection operator OPTION for range tables  enumValues: NB=Outside lower and upper value (x < Low und High < x ),NP=Does not contain the pattern,LE=less than or equal to (<= Low),EQ=equal to (= Low),BT=Between lower and upper value (Low <= x <= High),CP=Contains the pattern,GT=greater than than (> Low),NE=not equal to (<> Low),LT=less than than (< Low),GE=greater than or equal to  (>=Low)'
                          enum:
                          - NB
                          - NP
                          - LE
                          - EQ
                          - BT
                          - CP
                          - GT
                          - NE
                          - LT
                          - GE
                        LOW:
                          type: string
                          maxLength: 45
                          description: '''Generic'' SELECT-OPTION for Dynamic Selections'
                        HIGH:
                          type: string
                          maxLength: 45
                          description: '''Generic'' SELECT-OPTION for Dynamic Selections'
                  USERTYPELIST:
                    type: array
                    items:
                      type: object
                      properties:
                        SYSTEM_NO:
                          type: string
                          maxLength: 18
                          description: Unique System ID from SAPLICENSE
                        INST_NO:
                          type: string
                          maxLength: 10
                          description: Installation number
                        SAP_SYSTEM:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        HW_KEY:
                          type: string
                          maxLength: 11
                          description: Hardware Key
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Client
                        LIC_TYP:
                          type: string
                          maxLength: 2
                          description: ID for the User Types of the SAP System
                        SPEC_VERS:
                          type: string
                          maxLength: 2
                          description: Assignment to special version
                        SURCHARGE:
                          type: integer
                          format: int64
                          description: Percentage Country Surcharge
                        NUMBER:
                          type: integer
                          format: int64
                          description: 'LAW: Counter (Users, Units, and so on)'
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        LANGU_ISO:
                          type: string
                          maxLength: 2
                          description: Language according to ISO 639
                        TEXT_LIC_TYP:
                          type: string
                          maxLength: 30
                          description: Short text for user types
                        TEXT_SPEC_VERS:
                          type: string
                          maxLength: 30
                          description: Special version
                  USERTYPELIST_XML:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: XML Stream
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
