openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MASTERIDOC_CREATE_REQ_KNOMAS:
    post:
      tags:
      - CLD2
      operationId: /rfc/MASTERIDOC_CREATE_REQ_KNOMAS
      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 of change
                MESSAGE_TYPE:
                  type: string
                  maxLength: 30
                  description: Logical output type
                PARALLEL:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Parallel processing
                RCVPFC:
                  type: string
                  maxLength: 2
                  description: Partner function of recipient
                RCVPRN:
                  type: string
                  maxLength: 10
                  description: Partner number of recipient
                RCVPRT:
                  type: string
                  maxLength: 2
                  description: Partner type of recipient
                SNDPFC:
                  type: string
                  maxLength: 2
                  description: Partner function of sender
                SNDPRN:
                  type: string
                  maxLength: 10
                  description: Partner number of sender
                SNDPRT:
                  type: string
                  maxLength: 2
                  description: Partner type of sender
                DEPENDENCIES:
                  type: array
                  items:
                    type: object
                    properties:
                      DEP_INTERN:
                        type: string
                        maxLength: 30
                        description: Internal name of dependency
                      DEP_EXTERN:
                        type: string
                        maxLength: 30
                        description: External Dependency Name
              required:
              - MESSAGE_TYPE
              - RCVPFC
              - RCVPRN
              - RCVPRT
              - SNDPFC
              - SNDPRN
              - SNDPRT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CREATED_COMM_IDOCS:
                    type: integer
                    format: int32
                    description: Number of IDocs created
                  DEPENDENCIES:
                    type: array
                    items:
                      type: object
                      properties:
                        DEP_INTERN:
                          type: string
                          maxLength: 30
                          description: Internal name of dependency
                        DEP_EXTERN:
                          type: string
                          maxLength: 30
                          description: External Dependency Name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
