openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_GET_MSSDEADLCK:
    post:
      tags:
      - SFMSS_MISC
      summary: Get deadlock info from MSSDEADLCK
      operationId: /rfc/MSS_GET_MSSDEADLCK
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DEADLOCKS:
                  type: array
                  items:
                    type: object
                    properties:
                      OCCURTSTMP:
                        type: string
                        maxLength: 14
                        description: Timestamp for deadlock tracking
                      SPID:
                        type: integer
                        format: int32
                        description: MS SQL Server process ID
                      SPNAME:
                        type: string
                        maxLength: 128
                        description: Stored procedure name
                      ABAPREPORT:
                        type: string
                        maxLength: 40
                        description: Name of the ABAP report
                      ABAPLOCAT:
                        type: integer
                        format: int32
                        description: Offset of a Processing Control Block
                      HOSTNAME:
                        type: string
                        maxLength: 32
                        description: Name of Application Server
                      HOSTPID:
                        type: integer
                        format: int32
                        description: Process ID on app. server
                      WP_NUM:
                        type: integer
                        format: int32
                        description: Work process number
                      WP_TYPE:
                        type: string
                        maxLength: 2
                        description: Work process type
                      WINNER:
                        type: string
                        maxLength: 1
                        description: Survivor of deadlock flag
                      SEQ:
                        type: integer
                        format: int32
                        description: Deadlock sequence number
                      TNAME:
                        type: string
                        maxLength: 128
                        description: Table name
                      MESSAGE:
                        type: string
                        maxLength: 255
                        description: Deadlock message
                      TCODE:
                        type: string
                        maxLength: 20
                        description: Transaction code
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DEADLOCKS:
                    type: array
                    items:
                      type: object
                      properties:
                        OCCURTSTMP:
                          type: string
                          maxLength: 14
                          description: Timestamp for deadlock tracking
                        SPID:
                          type: integer
                          format: int32
                          description: MS SQL Server process ID
                        SPNAME:
                          type: string
                          maxLength: 128
                          description: Stored procedure name
                        ABAPREPORT:
                          type: string
                          maxLength: 40
                          description: Name of the ABAP report
                        ABAPLOCAT:
                          type: integer
                          format: int32
                          description: Offset of a Processing Control Block
                        HOSTNAME:
                          type: string
                          maxLength: 32
                          description: Name of Application Server
                        HOSTPID:
                          type: integer
                          format: int32
                          description: Process ID on app. server
                        WP_NUM:
                          type: integer
                          format: int32
                          description: Work process number
                        WP_TYPE:
                          type: string
                          maxLength: 2
                          description: Work process type
                        WINNER:
                          type: string
                          maxLength: 1
                          description: Survivor of deadlock flag
                        SEQ:
                          type: integer
                          format: int32
                          description: Deadlock sequence number
                        TNAME:
                          type: string
                          maxLength: 128
                          description: Table name
                        MESSAGE:
                          type: string
                          maxLength: 255
                          description: Deadlock message
                        TCODE:
                          type: string
                          maxLength: 20
                          description: Transaction code
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
