openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MASTERIDOC_CREATE_REQ_CLFMAS:
    post:
      tags:
      - CLA1
      summary: Distribution of Classification Data
      operationId: /rfc/MASTERIDOC_CREATE_REQ_CLFMAS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CHANGE_NUMBER:
                  type: string
                  maxLength: 12
                  description: Change number
                CLASS_TYPE:
                  type: string
                  maxLength: 3
                  description: Class type
                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: With 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
                T_OBJECTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJEKT:
                        type: string
                        maxLength: 50
                        description: Key of object to be classified
                      ANZAUS:
                        type: integer
                        format: int64
                        description: No. of Char. Value Records for an Object of the Class
                      MAFID:
                        type: string
                        maxLength: 1
                        description: 'Indicator: Object/Class'
                      OBTAB:
                        type: string
                        maxLength: 30
                        description: Name of database table for object
              required:
              - CLASS_TYPE
              - 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
                  T_OBJECTS:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJEKT:
                          type: string
                          maxLength: 50
                          description: Key of object to be classified
                        ANZAUS:
                          type: integer
                          format: int64
                          description: No. of Char. Value Records for an Object of the Class
                        MAFID:
                          type: string
                          maxLength: 1
                          description: 'Indicator: Object/Class'
                        OBTAB:
                          type: string
                          maxLength: 30
                          description: Name of database table for object
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
