openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BCOS_CREATE_MSG_NEW:
    post:
      tags:
      - BCOS
      operationId: /rfc/BCOS_CREATE_MSG_NEW
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CATEGORY:
                  type: string
                  default: ' '
                  maxLength: 12
                  description: Character field of length 12
                LANGUAGE:
                  type: string
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                PRIORITY:
                  type: string
                  default: '4'
                  maxLength: 1
                  description: Single-Character Flag
                PROCESSOR:
                  type: string
                  default: ' '
                  maxLength: 12
                  description: SAP System, User Logon Name
                REPORTER:
                  type: string
                  maxLength: 12
                  description: SAP System, User Logon Name
                SEND_2_SAP_IM:
                  type: string
                  default: ' '
                  maxLength: 1
                SUBJECT:
                  type: string
                  maxLength: 60
                  description: Text length 60
                TWB_CALL:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Single-Character Flag
                TYPE_NOTIF:
                  type: string
                  default: SLF1
                  maxLength: 6
                  description: Character field of length 6
                TE_RETURN:
                  type: array
                  items:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                TI_APPX_HEAD:
                  type: array
                  items:
                    type: object
                    properties:
                      DESCR:
                        type: string
                        maxLength: 60
                        description: Appendix Short Text
                      APPXNO:
                        type: integer
                        format: int64
                        description: Appendix Number
                      FILETYP:
                        type: string
                        maxLength: 3
                        description: 'Transfer file format (upload/download)  enumValues: IBM=ASCII with IBM code page conversion (DOS),WK1=Spreadsheet format,DAT=ASCII data table with column tab,DBF=DBASE format,ASC=ASCII,BIN=Binary'
                        enum:
                        - IBM
                        - WK1
                        - DAT
                        - DBF
                        - ASC
                        - BIN
                      FILENAM:
                        type: string
                        maxLength: 128
                        description: Local file for upload/download
                      FILELEN:
                        type: integer
                        format: int64
                        description: Length of a PC file (number of bytes)
                      FIRSTL:
                        type: integer
                        format: int64
                        description: Appendix Starting Line
                      LASTL:
                        type: integer
                        format: int64
                        description: Appendix End Line
                      FILEFM_UL:
                        type: string
                        maxLength: 3
                        description: 'Format of the transfer data (uploads only)  enumValues: IBM=ASCII with IBM code page conversion (DOS),DAT=ASCII data table with column tab,ASC=ASCII,BIN=Binary'
                        enum:
                        - IBM
                        - DAT
                        - ASC
                        - BIN
                      TIMESTAMP:
                        type: integer
                        format: int64
                        description: Time Stamp (In UTC)
                      LAST_USR:
                        type: string
                        maxLength: 12
                        description: Last Changed By
                      OBJKEY:
                        type: string
                        maxLength: 70
                        description: Object key
                TI_APPX_LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 255
                        description: 'Text field length 255: texts'
                TI_APPX_LINES_BIN:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: 'SAPoffice: Binary data, length 255'
                TI_ATTRIBUTES:
                  type: array
                  items:
                    type: object
                    properties:
                      FIELD:
                        type: string
                        maxLength: 32
                        description: Character field, length 32
                      VALUE:
                        type: string
                        maxLength: 255
                        description: Text, 255 Characters
                TI_TEXT_HEADER:
                  type: array
                  items:
                    type: object
                    properties:
                      TXT_NUM:
                        type: integer
                        format: int64
                        description: Four-digit number
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language Key of Current Text Environment
                      TYPE_TEXT:
                        type: string
                        maxLength: 2
                        description: Version Number Component
                      TIMESTAMP:
                        type: integer
                        format: int64
                        description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                      LAST_USR:
                        type: string
                        maxLength: 12
                        description: User Name
                TI_TEXT_LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      TXT_NUM:
                        type: integer
                        format: int64
                        description: Four-digit number
                      TDFORMAT:
                        type: string
                        maxLength: 2
                        description: Tag column
                      TDLINE:
                        type: string
                        maxLength: 132
                        description: Text Line
              required:
              - LANGUAGE
              - REPORTER
              - SUBJECT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MSG_DEST:
                    type: string
                    maxLength: 32
                    description: Logical Destination (Specified in Function Call)
                  MSG_KEY:
                    type: string
                    maxLength: 24
                    description: Character field, length 24
                  MSG_KIND:
                    type: string
                    maxLength: 1
                    description: Type of Message Target System
                  R_CODE:
                    type: integer
                    format: int32
                    description: Return Value, Return Value After ABAP Statements
                  SAP_KEY:
                    type: string
                    maxLength: 24
                  TE_RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                  TI_APPX_HEAD:
                    type: array
                    items:
                      type: object
                      properties:
                        DESCR:
                          type: string
                          maxLength: 60
                          description: Appendix Short Text
                        APPXNO:
                          type: integer
                          format: int64
                          description: Appendix Number
                        FILETYP:
                          type: string
                          maxLength: 3
                          description: 'Transfer file format (upload/download)  enumValues: IBM=ASCII with IBM code page conversion (DOS),WK1=Spreadsheet format,DAT=ASCII data table with column tab,DBF=DBASE format,ASC=ASCII,BIN=Binary'
                          enum:
                          - IBM
                          - WK1
                          - DAT
                          - DBF
                          - ASC
                          - BIN
                        FILENAM:
                          type: string
                          maxLength: 128
                          description: Local file for upload/download
                        FILELEN:
                          type: integer
                          format: int64
                          description: Length of a PC file (number of bytes)
                        FIRSTL:
                          type: integer
                          format: int64
                          description: Appendix Starting Line
                        LASTL:
                          type: integer
                          format: int64
                          description: Appendix End Line
                        FILEFM_UL:
                          type: string
                          maxLength: 3
                          description: 'Format of the transfer data (uploads only)  enumValues: IBM=ASCII with IBM code page conversion (DOS),DAT=ASCII data table with column tab,ASC=ASCII,BIN=Binary'
                          enum:
                          - IBM
                          - DAT
                          - ASC
                          - BIN
                        TIMESTAMP:
                          type: integer
                          format: int64
                          description: Time Stamp (In UTC)
                        LAST_USR:
                          type: string
                          maxLength: 12
                          description: Last Changed By
                        OBJKEY:
                          type: string
                          maxLength: 70
                          description: Object key
                  TI_APPX_LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 255
                          description: 'Text field length 255: texts'
                  TI_APPX_LINES_BIN:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: 'SAPoffice: Binary data, length 255'
                  TI_ATTRIBUTES:
                    type: array
                    items:
                      type: object
                      properties:
                        FIELD:
                          type: string
                          maxLength: 32
                          description: Character field, length 32
                        VALUE:
                          type: string
                          maxLength: 255
                          description: Text, 255 Characters
                  TI_TEXT_HEADER:
                    type: array
                    items:
                      type: object
                      properties:
                        TXT_NUM:
                          type: integer
                          format: int64
                          description: Four-digit number
                        LANGUAGE:
                          type: string
                          maxLength: 1
                          description: Language Key of Current Text Environment
                        TYPE_TEXT:
                          type: string
                          maxLength: 2
                          description: Version Number Component
                        TIMESTAMP:
                          type: integer
                          format: int64
                          description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                        LAST_USR:
                          type: string
                          maxLength: 12
                          description: User Name
                  TI_TEXT_LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        TXT_NUM:
                          type: integer
                          format: int64
                          description: Four-digit number
                        TDFORMAT:
                          type: string
                          maxLength: 2
                          description: Tag column
                        TDLINE:
                          type: string
                          maxLength: 132
                          description: Text Line
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
