openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/EDI_DOCUMENT_READ_LAST_STATUS:
    post:
      tags:
      - EDI1
      summary: 'IDoc interface: Read last/current status record for IDoc'
      operationId: /rfc/EDI_DOCUMENT_READ_LAST_STATUS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DOCUMENT_NUMBER:
                  type: integer
                  format: int64
                  description: IDoc number
              required:
              - DOCUMENT_NUMBER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  STATUS:
                    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
                      CREDAT:
                        type: string
                        format: date
                        description: Date status record was created
                      CRETIM:
                        type: string
                        maxLength: 6
                        description: Time status record was created
                      STATUS:
                        type: string
                        maxLength: 2
                        description: Status of IDoc
                      UNAME:
                        type: string
                        maxLength: 12
                        description: User name
                      REPID:
                        type: string
                        maxLength: 30
                        description: Program Name
                      ROUTID:
                        type: string
                        maxLength: 30
                        description: Name of subroutine (routine, function module)
                      STACOD:
                        type: string
                        maxLength: 8
                        description: Status code
                      STATXT:
                        type: string
                        maxLength: 70
                        description: Text for status code
                      SEGNUM:
                        type: integer
                        format: int64
                        description: Number of SAP segment
                      SEGFLD:
                        type: string
                        maxLength: 30
                        description: Field Name in SAP Segment
                      STAPA1:
                        type: string
                        maxLength: 50
                        description: Parameter 1
                      STAPA2:
                        type: string
                        maxLength: 50
                        description: Parameter 2
                      STAPA3:
                        type: string
                        maxLength: 50
                        description: Parameter 3
                      STAPA4:
                        type: string
                        maxLength: 50
                        description: Parameter 4
                      STATYP:
                        type: string
                        maxLength: 1
                        description: 'Type of system error message (A, W, E, S, I)  enumValues: W=Warning,A=Cancel,E=Error,I=Information,S=Success message'
                        enum:
                        - W
                        - A
                        - E
                        - I
                        - S
                      STAMQU:
                        type: string
                        maxLength: 3
                        description: Status message qualifier
                      STAMID:
                        type: string
                        maxLength: 20
                        description: Status message ID
                      STAMNO:
                        type: integer
                        format: int64
                        description: Status message number
                      TID:
                        type: string
                        maxLength: 24
                        description: Transaction ID
                      APPL_LOG:
                        type: string
                        maxLength: 20
                        description: Application Log
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
