openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/EDI_DOCUMENT_STATUS_DISPLAY:
    post:
      tags:
      - EDI5
      summary: Display last status record for current IDoc
      operationId: /rfc/EDI_DOCUMENT_STATUS_DISPLAY
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTIONS:
                  type: object
                  properties:
                    FOREGROUND:
                      type: string
                      maxLength: 1
                      description: 'EDI control flag: Which action is active'
                    ERRORFOREG:
                      type: string
                      maxLength: 1
                      description: 'EDI control flag: Which action is active'
                    DELETEMARK:
                      type: string
                      maxLength: 1
                      description: 'EDI control flag: Which action is active'
                    BACKGROUND:
                      type: string
                      maxLength: 1
                      description: 'EDI control flag: Which action is active'
                    CLOSEPROCE:
                      type: string
                      maxLength: 1
                      description: 'EDI control flag: Which action is active'
                    WITHSYNERR:
                      type: string
                      maxLength: 1
                      description: 'EDI control flag: Which action is active'
                CALL_ASYN:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: in new session - internal use only -
                DOCNUM:
                  type: integer
                  format: int64
                  description: Number of current IDoc
                STATUS_KEY:
                  type: object
                  properties:
                    MANDT:
                      type: string
                      maxLength: 3
                      description: Client
                    DOCNUM:
                      type: integer
                      format: int64
                      description: IDoc number
                    LOGDAT:
                      type: string
                      format: date
                      description: Date of status information
                    LOGTIM:
                      type: string
                      maxLength: 6
                      description: Time of status information
                    COUNTR:
                      type: integer
                      format: int64
                      description: IDoc status counter
                TREE_DISPLAY:
                  type: string
                  default: Y
                  maxLength: 1
                  description: Use tree display?
              required:
              - DOCNUM
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ACTION:
                    type: string
                    maxLength: 70
                    description: Action to be executed
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
