openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CONVERT_INT_TREE_TO_EXT_SYNTAX:
    post:
      tags:
      - EDI8
      operationId: /rfc/CONVERT_INT_TREE_TO_EXT_SYNTAX
      requestBody:
        content:
          application/json:
            schema:
              properties:
                PT_ATTR:
                  type: array
                  items:
                    type: object
                    properties:
                      SEGTYP:
                        type: string
                        maxLength: 27
                        description: Release-independent name of segment in EDI IDoc type
                      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
                      PARSEG:
                        type: string
                        maxLength: 27
                        description: Name of parent segment
                      HLEVEL:
                        type: integer
                        format: int64
                        description: Hierarchy level of IDoc type segment
                      REFNODE:
                        type: string
                        maxLength: 1
                        description: 'General Flag  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                        enum:
                        - X
                        - ''
                PT_CIMSYN:
                  type: array
                  items:
                    type: object
                    properties:
                      REFSEGTYP:
                        type: string
                        maxLength: 27
                        description: Segment type
                      NR:
                        type: integer
                        format: int64
                        description: Sequential Number of Segment in IDoc Type
                      SEGTYP:
                        type: string
                        maxLength: 27
                        description: Name of segment in extension
                      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
                PT_TREE:
                  type: array
                  items:
                    type: object
                    properties:
                      ID:
                        type: integer
                        format: int64
                        description: 'Internal: Node ID'
                      TYPE:
                        type: string
                        maxLength: 4
                        description: Node type
                      NAME:
                        type: string
                        maxLength: 30
                        description: Object name
                      TLEVEL:
                        type: integer
                        format: int64
                        description: Node level
                      LINK:
                        type: string
                        maxLength: 1
                        description: Link ID
                      COMPRESS:
                        type: string
                        maxLength: 1
                        description: 'Internal: Compression ID'
                      LEAF:
                        type: string
                        maxLength: 1
                        description: 'Internal: Page ID'
                      TLOCK:
                        type: string
                        maxLength: 1
                        description: 'Internal: Selection ID'
                      PARENT:
                        type: integer
                        format: int64
                        description: 'Internal: Node ID'
                      CHILD:
                        type: integer
                        format: int64
                        description: 'Internal: Node ID'
                      NEXT:
                        type: integer
                        format: int64
                        description: 'Internal: Node ID'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  PT_ATTR:
                    type: array
                    items:
                      type: object
                      properties:
                        SEGTYP:
                          type: string
                          maxLength: 27
                          description: Release-independent name of segment in EDI IDoc type
                        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
                        PARSEG:
                          type: string
                          maxLength: 27
                          description: Name of parent segment
                        HLEVEL:
                          type: integer
                          format: int64
                          description: Hierarchy level of IDoc type segment
                        REFNODE:
                          type: string
                          maxLength: 1
                          description: 'General Flag  enumValues: X=Flag set. Event has occurred.,""=Flag is Not Set'
                          enum:
                          - X
                          - ''
                  PT_CIMSYN:
                    type: array
                    items:
                      type: object
                      properties:
                        REFSEGTYP:
                          type: string
                          maxLength: 27
                          description: Segment type
                        NR:
                          type: integer
                          format: int64
                          description: Sequential Number of Segment in IDoc Type
                        SEGTYP:
                          type: string
                          maxLength: 27
                          description: Name of segment in extension
                        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
                  PT_TREE:
                    type: array
                    items:
                      type: object
                      properties:
                        ID:
                          type: integer
                          format: int64
                          description: 'Internal: Node ID'
                        TYPE:
                          type: string
                          maxLength: 4
                          description: Node type
                        NAME:
                          type: string
                          maxLength: 30
                          description: Object name
                        TLEVEL:
                          type: integer
                          format: int64
                          description: Node level
                        LINK:
                          type: string
                          maxLength: 1
                          description: Link ID
                        COMPRESS:
                          type: string
                          maxLength: 1
                          description: 'Internal: Compression ID'
                        LEAF:
                          type: string
                          maxLength: 1
                          description: 'Internal: Page ID'
                        TLOCK:
                          type: string
                          maxLength: 1
                          description: 'Internal: Selection ID'
                        PARENT:
                          type: integer
                          format: int64
                          description: 'Internal: Node ID'
                        CHILD:
                          type: integer
                          format: int64
                          description: 'Internal: Node ID'
                        NEXT:
                          type: integer
                          format: int64
                          description: 'Internal: Node ID'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
