openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWFMOD_CHECK_CUSTOMER_NAME:
    post:
      tags:
      - SWFMOD_WORKFLOW
      summary: Checks for the modeler if  name of action is OK
      operationId: /rfc/SWFMOD_CHECK_CUSTOMER_NAME
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_FIELDNAME:
                  type: string
                  maxLength: 30
                  description: Field Name
                IV_OBJECT_TYPE:
                  type: string
                  default: TABU
                  maxLength: 4
                  description: Object type
                IV_TABLEKEY:
                  type: string
                  maxLength: 120
                  description: Object name in object list
                IV_TABLENAME:
                  type: string
                  maxLength: 30
                  description: Table name
                ET_MESSAGE_LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      MSG_TYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      LINE:
                        type: string
                        maxLength: 273
                        description: Text line for message
                ET_MESSAGE_STRUCT:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
              required:
              - IV_FIELDNAME
              - IV_TABLEKEY
              - IV_TABLENAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_KEYFIELD_ALLOWED:
                    type: string
                    maxLength: 1
                    description: Flag ( 'X' or ' ' )
                  EV_RESERVED_IN_TRESC:
                    type: string
                    maxLength: 1
                    description: Flag ( 'X' or ' ' )
                  EV_RETCODE:
                    type: integer
                    format: int32
                    description: Return Value, Return Value After ABAP Statements
                  EV_SYSTEM_SAP:
                    type: string
                    maxLength: 1
                    description: Flag ( 'X' or ' ' )
                  EV_TABLE_NOT_FOUND:
                    type: string
                    maxLength: 1
                    description: Flag ( 'X' or ' ' )
                  ET_MESSAGE_LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        MSG_TYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        LINE:
                          type: string
                          maxLength: 273
                          description: Text line for message
                  ET_MESSAGE_STRUCT:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
