openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/EDI_IDOC_SYNTAX_GET:
    post:
      tags:
      - EDI8
      summary: Read syntax table for (basic) IDoc type
      operationId: /rfc/EDI_IDOC_SYNTAX_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                PI_CIMTYP:
                  type: string
                  maxLength: 30
                PI_IDOCTYP:
                  type: string
                  maxLength: 30
                PT_SYNTAX_TABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      IDOCTYP:
                        type: string
                        maxLength: 30
                        description: Basic type
                      CIMTYP:
                        type: string
                        maxLength: 30
                        description: Extension
                      NR:
                        type: integer
                        format: int64
                        description: Sequential Number of Segment in IDoc Type
                      SEGTYP:
                        type: string
                        maxLength: 27
                        description: Segment type
                      PARSEG:
                        type: string
                        maxLength: 27
                        description: Name of parent segment
                      PARPNO:
                        type: integer
                        format: int64
                        description: Sequential number of parent segment
                      PARFLG:
                        type: string
                        maxLength: 1
                        description: 'Flag for parent segment: Segment is start of segment group  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      MUSTFL:
                        type: string
                        maxLength: 1
                        description: 'Flag: Mandatory entry  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      OCCMIN:
                        type: integer
                        format: int64
                        description: Minimum number of segments in sequence
                      OCCMAX:
                        type: integer
                        format: int64
                        description: Maximum number of segments in sequence
                      HLEVEL:
                        type: integer
                        format: int64
                        description: Hierarchy level of IDoc type segment
                      REFSEGTYP:
                        type: string
                        maxLength: 30
                        description: Segment type in 30-character format
              required:
              - PI_CIMTYP
              - PI_IDOCTYP
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  PT_SYNTAX_TABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        IDOCTYP:
                          type: string
                          maxLength: 30
                          description: Basic type
                        CIMTYP:
                          type: string
                          maxLength: 30
                          description: Extension
                        NR:
                          type: integer
                          format: int64
                          description: Sequential Number of Segment in IDoc Type
                        SEGTYP:
                          type: string
                          maxLength: 27
                          description: Segment type
                        PARSEG:
                          type: string
                          maxLength: 27
                          description: Name of parent segment
                        PARPNO:
                          type: integer
                          format: int64
                          description: Sequential number of parent segment
                        PARFLG:
                          type: string
                          maxLength: 1
                          description: 'Flag for parent segment: Segment is start of segment group  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        MUSTFL:
                          type: string
                          maxLength: 1
                          description: 'Flag: Mandatory entry  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        OCCMIN:
                          type: integer
                          format: int64
                          description: Minimum number of segments in sequence
                        OCCMAX:
                          type: integer
                          format: int64
                          description: Maximum number of segments in sequence
                        HLEVEL:
                          type: integer
                          format: int64
                          description: Hierarchy level of IDoc type segment
                        REFSEGTYP:
                          type: string
                          maxLength: 30
                          description: Segment type in 30-character format
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
