openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/EDI_SEGMENTS_ADD_BLOCK:
    post:
      tags:
      - EDI1
      summary: 'EDI interface: Add block of data records'
      operationId: /rfc/EDI_SEGMENTS_ADD_BLOCK
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IDENTIFIER:
                  type: integer
                  format: int64
                  description: IDoc identifier
                IDOC_CONTAINERS:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      DOCNUM:
                        type: integer
                        format: int64
                        description: IDoc number
                      SEGNUM:
                        type: integer
                        format: int64
                        description: Number of SAP segment
                      SEGNAM:
                        type: string
                        maxLength: 27
                        description: Segment type
                      PSGNUM:
                        type: integer
                        format: int64
                        description: Number of the hierarchically higher SAP segment
                      HLEVEL:
                        type: integer
                        format: int64
                        description: Hierarchy level
                      DTINT2:
                        type: integer
                        format: int32
                        description: Length field for VARC field
                      SDATA:
                        type: string
                        maxLength: 1000
                        description: Application data
              required:
              - IDENTIFIER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IDOC_CONTAINERS:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        DOCNUM:
                          type: integer
                          format: int64
                          description: IDoc number
                        SEGNUM:
                          type: integer
                          format: int64
                          description: Number of SAP segment
                        SEGNAM:
                          type: string
                          maxLength: 27
                          description: Segment type
                        PSGNUM:
                          type: integer
                          format: int64
                          description: Number of the hierarchically higher SAP segment
                        HLEVEL:
                          type: integer
                          format: int64
                          description: Hierarchy level
                        DTINT2:
                          type: integer
                          format: int32
                          description: Length field for VARC field
                        SDATA:
                          type: string
                          maxLength: 1000
                          description: Application data
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
