openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ENQUE_READ2:
    post:
      tags:
      - SENT
      operationId: /rfc/ENQUE_READ2
      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: string
                        maxLength: 10
                        description: Cumulation Counter for Logical Unit Of Work (LUW)
                      GUSEVB:
                        type: string
                        maxLength: 10
                        description: Cumulation Counter for Logical Unit Of Work (LUW)/ Update
                      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
                      GTCODE:
                        type: string
                        maxLength: 20
                        description: Transaction Code in the Lock Entry
                      GBCKTYPE:
                        type: string
                        maxLength: 1
                        description: Backup flag for lock entry
      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: string
                          maxLength: 10
                          description: Cumulation Counter for Logical Unit Of Work (LUW)
                        GUSEVB:
                          type: string
                          maxLength: 10
                          description: Cumulation Counter for Logical Unit Of Work (LUW)/ Update
                        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
                        GTCODE:
                          type: string
                          maxLength: 20
                          description: Transaction Code in the Lock Entry
                        GBCKTYPE:
                          type: string
                          maxLength: 1
                          description: Backup flag for lock entry
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
