openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ENQUE_READ:
    post:
      tags:
      - SENT
      summary: Read lock entries from the C layer. Not for general use !
      operationId: /rfc/ENQUE_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                GARG:
                  type: string
                  default: ' '
                  maxLength: 150
                  description: Granularity value(->values of key fields)
                GCLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                  description: Client
                GNAME:
                  type: string
                  default: ' '
                  maxLength: 30
                  description: Granularity name (-> table name)
                GUNAME:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: User name
                ENQ:
                  type: array
                  items:
                    type: object
                    properties:
                      GNAME:
                        type: string
                        maxLength: 30
                        description: Elementary Lock of Lock Entry (Table Name)
                      GARG:
                        type: string
                        maxLength: 150
                        description: Argument String (=Key Fields) of Lock Entry
                      GMODE:
                        type: string
                        maxLength: 1
                        description: Lock Mode (Shared/Exclusive) of a Lock Entry
                      GUSR:
                        type: string
                        maxLength: 58
                        description: Lock Owner, ID of Logical Unit of Work (LUW)
                      GUSRVB:
                        type: string
                        maxLength: 58
                        description: Lock Owner, ID of Logical Unit of Work (LUW) /Update Task
                      GUSE:
                        type: integer
                        format: int32
                        description: Cumulative Counter for Lock Entry /Dialog
                      GUSEVB:
                        type: integer
                        format: int32
                        description: Cumulative Counter for Lock Entry / Update Task
                      GOBJ:
                        type: string
                        maxLength: 16
                        description: Name of Lock Object in the Lock Entry
                      GCLIENT:
                        type: string
                        maxLength: 3
                        description: Client in the lock entry
                      GUNAME:
                        type: string
                        maxLength: 12
                        description: User name in lock entry
                      GTARG:
                        type: string
                        maxLength: 50
                        description: Argument String of Lock Entry (Table Key Fields)
                      GTCODE:
                        type: string
                        maxLength: 20
                        description: Transaction Code in the Lock Entry
                      GBCKTYPE:
                        type: string
                        maxLength: 1
                        description: Backup flag for lock entry
                      GTHOST:
                        type: string
                        maxLength: 32
                        description: Host Name in the Lock Owner ID
                      GTWP:
                        type: integer
                        format: int64
                        description: Work Process Number in Lock Owner ID
                      GTSYSNR:
                        type: integer
                        format: int64
                        description: SAP System Number in Lock Owner ID
                      GTDATE:
                        type: string
                        format: date
                        description: Date within lock owner ID
                      GTTIME:
                        type: string
                        maxLength: 6
                        description: Time in Lock Owner ID
                      GTUSEC:
                        type: integer
                        format: int64
                        description: Time/Microseconds Share in Lock Owner ID
                      GTMARK:
                        type: string
                        maxLength: 1
                        description: Selection Indicator of Lock Entry
                      GUSETXT:
                        type: integer
                        format: int64
                        description: Cumulative Counter for Lock Entry /Dialog
                      GUSEVBT:
                        type: integer
                        format: int64
                        description: Cumulative Counter for Lock Entry / Update Task
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NUMBER:
                    type: integer
                    format: int32
                    description: Number of chosen lock entries
                  SUBRC:
                    type: integer
                    format: int32
                    description: Error code of the enqueue call
                  ENQ:
                    type: array
                    items:
                      type: object
                      properties:
                        GNAME:
                          type: string
                          maxLength: 30
                          description: Elementary Lock of Lock Entry (Table Name)
                        GARG:
                          type: string
                          maxLength: 150
                          description: Argument String (=Key Fields) of Lock Entry
                        GMODE:
                          type: string
                          maxLength: 1
                          description: Lock Mode (Shared/Exclusive) of a Lock Entry
                        GUSR:
                          type: string
                          maxLength: 58
                          description: Lock Owner, ID of Logical Unit of Work (LUW)
                        GUSRVB:
                          type: string
                          maxLength: 58
                          description: Lock Owner, ID of Logical Unit of Work (LUW) /Update Task
                        GUSE:
                          type: integer
                          format: int32
                          description: Cumulative Counter for Lock Entry /Dialog
                        GUSEVB:
                          type: integer
                          format: int32
                          description: Cumulative Counter for Lock Entry / Update Task
                        GOBJ:
                          type: string
                          maxLength: 16
                          description: Name of Lock Object in the Lock Entry
                        GCLIENT:
                          type: string
                          maxLength: 3
                          description: Client in the lock entry
                        GUNAME:
                          type: string
                          maxLength: 12
                          description: User name in lock entry
                        GTARG:
                          type: string
                          maxLength: 50
                          description: Argument String of Lock Entry (Table Key Fields)
                        GTCODE:
                          type: string
                          maxLength: 20
                          description: Transaction Code in the Lock Entry
                        GBCKTYPE:
                          type: string
                          maxLength: 1
                          description: Backup flag for lock entry
                        GTHOST:
                          type: string
                          maxLength: 32
                          description: Host Name in the Lock Owner ID
                        GTWP:
                          type: integer
                          format: int64
                          description: Work Process Number in Lock Owner ID
                        GTSYSNR:
                          type: integer
                          format: int64
                          description: SAP System Number in Lock Owner ID
                        GTDATE:
                          type: string
                          format: date
                          description: Date within lock owner ID
                        GTTIME:
                          type: string
                          maxLength: 6
                          description: Time in Lock Owner ID
                        GTUSEC:
                          type: integer
                          format: int64
                          description: Time/Microseconds Share in Lock Owner ID
                        GTMARK:
                          type: string
                          maxLength: 1
                          description: Selection Indicator of Lock Entry
                        GUSETXT:
                          type: integer
                          format: int64
                          description: Cumulative Counter for Lock Entry /Dialog
                        GUSEVBT:
                          type: integer
                          format: int64
                          description: Cumulative Counter for Lock Entry / Update Task
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
