openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SKWG_BCS_PHIOS_SEND_NEW:
    post:
      tags:
      - SKWG_BCS
      operationId: /rfc/SKWG_BCS_PHIOS_SEND_NEW
      requestBody:
        content:
          application/json:
            schema:
              properties:
                COMMIT:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: 'KW Framework: Boolean Flag (''X'' Set, '' '' Deleted)'
                EMAIL_ADDRESSES:
                  type: array
                  items:
                    type: string
                    maxLength: 241
                    description: E-Mail Address
                FAX_ADDRESSES:
                  type: array
                  items:
                    type: object
                    properties:
                      COUNTRY:
                        type: string
                        maxLength: 3
                        description: Country for telephone/fax number
                      NUMBER:
                        type: string
                        maxLength: 30
                        description: 'Fax number: dialling code+number'
                PHIOS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJTYPE:
                        type: string
                        maxLength: 1
                        description: 'KW Framework: IO type'
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                SENDER_ID:
                  type: string
                  maxLength: 12
                SUBJECT:
                  type: string
                  maxLength: 50
                  description: Short description of contents
                TEXT:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 255
                        description: 'Text field length 255: texts'
                USERS:
                  type: array
                  items:
                    type: string
                    maxLength: 12
                    description: User Name
              required:
              - PHIOS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ERROR:
                    type: object
                    properties:
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      TYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      'NO':
                        type: integer
                        format: int64
                        description: Message Number
                      V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
