openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/UKM_ADD_TABLES_AND_CONTEXT:
    post:
      tags:
      - UKM_TOOLS
      operationId: /rfc/UKM_ADD_TABLES_AND_CONTEXT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IS_CONTEXT:
                  type: object
                  properties:
                    MAIN_CONTEXT_ID:
                      type: string
                      maxLength: 32
                      description: 'UKM: ID of the Main Context'
                    SUB_CONTEXT_ID:
                      type: string
                      maxLength: 32
                      description: 'UKM: ID of the Subcontext'
                    MAIN_CONTEXT:
                      type: string
                      maxLength: 4
                      description: 'UKM: Main Context of the Mapping'
                    SUB_CONTEXT:
                      type: string
                      maxLength: 1
                      description: 'UKM: Subcontext of the Mapping'
                    MAPPING_TYPE:
                      type: string
                      maxLength: 1
                      description: 'UKM: Mapping Type  enumValues: V=Vectorized mapping,G=Grouped mapping'
                      enum:
                      - V
                      - G
                    DISTRIBUTABLE:
                      type: string
                      maxLength: 1
                      description: 'UKM: Distribution-Relevant Mapping  enumValues: -=Undefined,X=True,""=False'
                      enum:
                      - '-'
                      - X
                      - ''
                    MAIN_NAMESPACE:
                      type: string
                      maxLength: 1
                      description: 'UKM: Object is in Generation Namespace  enumValues: -=Undefined,X=True,""=False'
                      enum:
                      - '-'
                      - X
                      - ''
                    SUB_NAMESPACE:
                      type: string
                      maxLength: 1
                      description: 'UKM: Object is in Generation Namespace  enumValues: -=Undefined,X=True,""=False'
                      enum:
                      - '-'
                      - X
                      - ''
                IT_COPY_TABLES:
                  type: array
                  items:
                    type: object
                    properties:
                      TARGET_TABLE:
                        type: string
                        maxLength: 16
                        description: 'UKM: Name of a Database Table'
                      SOURCE_TABLE:
                        type: string
                        maxLength: 16
                        description: 'UKM: Name of a Database Table'
                      ACTIVATE_TABLE:
                        type: string
                        maxLength: 1
                        description: 'UKM: Boolean Expression'
                      INCLUDE_INDEX:
                        type: string
                        maxLength: 1
                        description: 'UKM: Boolean Expression'
                      CREATED:
                        type: string
                        maxLength: 1
                        description: 'UKM: Boolean Expression'
                      CHANGE_FIELDS:
                        type: array
                        items:
                          type: object
                          properties:
                            NAME:
                              type: string
                              maxLength: 30
                              description: Field Name
                            LENGTH:
                              type: integer
                              format: int64
                              description: Internal Length in Bytes
              required:
              - IS_CONTEXT
              - IT_COPY_TABLES
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ES_MESSAGE:
                    type: object
                    properties:
                      MESSAGE_TYPE_INDICATOR:
                        type: object
                        properties:
                          TYPE_ABORT:
                            type: string
                            maxLength: 1
                            description: 'UKM: Indicator for message types  enumValues: -=Undefined,X=True,""=False'
                            enum:
                            - '-'
                            - X
                            - ''
                          TYPE_ERROR:
                            type: string
                            maxLength: 1
                            description: 'UKM: Indicator for message types  enumValues: -=Undefined,X=True,""=False'
                            enum:
                            - '-'
                            - X
                            - ''
                          TYPE_WARNING:
                            type: string
                            maxLength: 1
                            description: 'UKM: Indicator for message types  enumValues: -=Undefined,X=True,""=False'
                            enum:
                            - '-'
                            - X
                            - ''
                          TYPE_SUCCESS:
                            type: string
                            maxLength: 1
                            description: 'UKM: Indicator for message types  enumValues: -=Undefined,X=True,""=False'
                            enum:
                            - '-'
                            - X
                            - ''
                          TYPE_INFO:
                            type: string
                            maxLength: 1
                            description: 'UKM: Indicator for message types  enumValues: -=Undefined,X=True,""=False'
                            enum:
                            - '-'
                            - X
                            - ''
                      MESSAGES:
                        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
                            PARAMETER:
                              type: string
                              maxLength: 32
                              description: Parameter Name
                            ROW:
                              type: integer
                              format: int32
                              description: Lines in parameter
                            FIELD:
                              type: string
                              maxLength: 30
                              description: Field in parameter
                            SYSTEM:
                              type: string
                              maxLength: 10
                              description: Logical system from which message originates
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
