openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TR40_ORDER_CREATE:
    post:
      tags:
      - STRQ
      operationId: /rfc/TR40_ORDER_CREATE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_CATEGORY:
                  type: string
                  maxLength: 4
                  description: Request Category
                IV_CORRECTION:
                  type: string
                  maxLength: 1
                IV_KURZTEXT:
                  type: string
                  maxLength: 60
                  description: Short description of request
                IV_LAYER:
                  type: string
                  default: DFLT
                  maxLength: 4
                IV_OWNER:
                  type: string
                  default: ' '
                  maxLength: 12
                  description: Owner of request
                IV_REPAIR:
                  type: string
                  maxLength: 1
                TT_MSG:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message ID
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message type (E, I, W,...)
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message number
                      MSGTEXT:
                        type: string
                        maxLength: 200
                        description: Log line
                TT_USERLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      AS4USER:
                        type: string
                        maxLength: 12
                        description: Last Changed by
                      CORRECTION:
                        type: string
                        maxLength: 20
                        description: Correction
                      CORRERRMSG:
                        type: integer
                        format: int32
                        description: Current Line
                      REPAIR:
                        type: string
                        maxLength: 20
                        description: Repair
                      REPAERRMSG:
                        type: integer
                        format: int32
                        description: Current Line
                      UNCLASTASK:
                        type: string
                        maxLength: 20
                        description: Unclassified Task
                      UNCLERRMSG:
                        type: integer
                        format: int32
                        description: Current Line
              required:
              - IV_CATEGORY
              - IV_KURZTEXT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_EXCEPTION:
                    type: string
                    maxLength: 50
                  EV_TRKORR_ORDER:
                    type: string
                    maxLength: 20
                    description: Request number
                  TT_MSG:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message ID
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message type (E, I, W,...)
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message number
                        MSGTEXT:
                          type: string
                          maxLength: 200
                          description: Log line
                  TT_USERLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        AS4USER:
                          type: string
                          maxLength: 12
                          description: Last Changed by
                        CORRECTION:
                          type: string
                          maxLength: 20
                          description: Correction
                        CORRERRMSG:
                          type: integer
                          format: int32
                          description: Current Line
                        REPAIR:
                          type: string
                          maxLength: 20
                          description: Repair
                        REPAERRMSG:
                          type: integer
                          format: int32
                          description: Current Line
                        UNCLASTASK:
                          type: string
                          maxLength: 20
                          description: Unclassified Task
                        UNCLERRMSG:
                          type: integer
                          format: int32
                          description: Current Line
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
