openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/IDX_META_SYNTAX_READ:
    post:
      tags:
      - IDXN
      operationId: /rfc/IDX_META_SYNTAX_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CIMTYP:
                  type: string
                  default: ' '
                  maxLength: 30
                  description: Enhancement
                DOCTYP:
                  type: string
                  maxLength: 30
                  description: Basic Type
                T_EDISDEF:
                  type: array
                  items:
                    type: object
                    properties:
                      SEGTYP:
                        type: string
                        maxLength: 27
                        description: Segment type
                      VERSION:
                        type: integer
                        format: int64
                        description: 'IDoc development: Segment version'
                      SEGDEF:
                        type: string
                        maxLength: 30
                        description: 'IDoc Development : Segment definition'
                      RELEASED:
                        type: string
                        maxLength: 4
                        description: 'IDoc development: Release of segment definition'
                      CLOSED:
                        type: string
                        maxLength: 1
                        description: 'IDoc Development : Segment definition release ID  enumValues: ""=Blank,X=Selection flag'
                        enum:
                        - ''
                        - X
                      CREDATE:
                        type: string
                        format: date
                        description: 'IDoc development: Creation date'
                      CRETIME:
                        type: string
                        maxLength: 6
                        description: 'IDoc development: Creation time'
                      LDATE:
                        type: string
                        format: date
                        description: 'IDoc development: Last changed on'
                      LTIME:
                        type: string
                        maxLength: 6
                        description: 'IDoc development: Time of last change'
                      FIELDNUM:
                        type: integer
                        format: int64
                        description: 'Idoc development: No.of fields in IDoc segment definition'
                      EXPLENG:
                        type: integer
                        format: int64
                        description: 'IDoc development: Export length of segment definition'
                      APPLREL:
                        type: string
                        maxLength: 10
                        description: 'IDoc Development: Application Release of Segment Definition'
                T_EDSAPPL:
                  type: array
                  items:
                    type: object
                    properties:
                      SEGTYP:
                        type: string
                        maxLength: 27
                        description: Segment type
                      POS:
                        type: integer
                        format: int64
                        description: Position of the field in the table
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      ROLLNAME:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      EXPLENG:
                        type: integer
                        format: int64
                        description: 'IDoc development: Export length of segment field'
                      ISOCODE:
                        type: string
                        maxLength: 1
                        description: 'IDoc development: ISO code ID in field  enumValues: ""=Blank,X=Selection flag'
                        enum:
                        - ''
                        - X
                T_IDOCSYN:
                  type: array
                  items:
                    type: object
                    properties:
                      IDOCTYP:
                        type: string
                        maxLength: 30
                        description: Basic type
                      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
              required:
              - DOCTYP
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  T_EDISDEF:
                    type: array
                    items:
                      type: object
                      properties:
                        SEGTYP:
                          type: string
                          maxLength: 27
                          description: Segment type
                        VERSION:
                          type: integer
                          format: int64
                          description: 'IDoc development: Segment version'
                        SEGDEF:
                          type: string
                          maxLength: 30
                          description: 'IDoc Development : Segment definition'
                        RELEASED:
                          type: string
                          maxLength: 4
                          description: 'IDoc development: Release of segment definition'
                        CLOSED:
                          type: string
                          maxLength: 1
                          description: 'IDoc Development : Segment definition release ID  enumValues: ""=Blank,X=Selection flag'
                          enum:
                          - ''
                          - X
                        CREDATE:
                          type: string
                          format: date
                          description: 'IDoc development: Creation date'
                        CRETIME:
                          type: string
                          maxLength: 6
                          description: 'IDoc development: Creation time'
                        LDATE:
                          type: string
                          format: date
                          description: 'IDoc development: Last changed on'
                        LTIME:
                          type: string
                          maxLength: 6
                          description: 'IDoc development: Time of last change'
                        FIELDNUM:
                          type: integer
                          format: int64
                          description: 'Idoc development: No.of fields in IDoc segment definition'
                        EXPLENG:
                          type: integer
                          format: int64
                          description: 'IDoc development: Export length of segment definition'
                        APPLREL:
                          type: string
                          maxLength: 10
                          description: 'IDoc Development: Application Release of Segment Definition'
                  T_EDSAPPL:
                    type: array
                    items:
                      type: object
                      properties:
                        SEGTYP:
                          type: string
                          maxLength: 27
                          description: Segment type
                        POS:
                          type: integer
                          format: int64
                          description: Position of the field in the table
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        ROLLNAME:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                        EXPLENG:
                          type: integer
                          format: int64
                          description: 'IDoc development: Export length of segment field'
                        ISOCODE:
                          type: string
                          maxLength: 1
                          description: 'IDoc development: ISO code ID in field  enumValues: ""=Blank,X=Selection flag'
                          enum:
                          - ''
                          - X
                  T_IDOCSYN:
                    type: array
                    items:
                      type: object
                      properties:
                        IDOCTYP:
                          type: string
                          maxLength: 30
                          description: Basic type
                        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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
