openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/CLVD_CREATE_CLSMAS:
    post:
      tags:
      - CLVD
      operationId: /rfc/CLVD_CREATE_CLSMAS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CHANGE_NUMBER:
                  type: string
                  maxLength: 12
                  description: Change number
                DLOCK_IGNORE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Ignore distribution lock
                KEY_DATE:
                  type: string
                  format: date
                  default: SY-DATUM
                  description: Date
                KLART:
                  type: string
                  maxLength: 3
                  description: Class type
                KLASSE:
                  type: string
                  maxLength: 18
                  description: Class
                T_IDOC_DATA:
                  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:
              - KLART
              - KLASSE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  T_IDOC_DATA:
                    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.
