openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SIC_BAS_CALL_SERVICE:
    post:
      tags:
      - SIC_BAS_ADDRESS_INDEXING
      summary: Call services for indexing with TREX
      operationId: /rfc/SIC_BAS_CALL_SERVICE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_FIELD_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      ADDRNUMBER:
                        type: string
                        maxLength: 10
                        description: Address number
                      PERSNUMBER:
                        type: string
                        maxLength: 10
                        description: Person number
                      ADDR_TYPE:
                        type: string
                        maxLength: 1
                        description: Address type (1=Organization, 2=Person, 3=Contact person)
                      DATE_FROM:
                        type: string
                        format: date
                        description: Valid-from date - in current Release only 00010101 possible
                      NATION:
                        type: string
                        maxLength: 1
                        description: International address version ID
                      PERCENTAGE:
                        type: integer
                        format: int64
                        description: 'Percentage: Similarity in Duplicate Check'
                      ADSRCHLIST:
                        type: array
                        items:
                          type: object
                          properties:
                            TABLENAME:
                              type: string
                              maxLength: 30
                              description: 'Duplicate check: Indexable address field table name'
                            FIELDNAME:
                              type: string
                              maxLength: 30
                              description: 'Duplicate check: Indexable address field name'
                            CONTENT:
                              type: string
                              maxLength: 255
                              description: Error-tolerant search selection field contents
                IV_APPL_OBJECT_TYPE:
                  type: object
                  properties:
                    APPLICATION:
                      type: string
                      maxLength: 20
                      description: Application
                    OBJECT_TYPE:
                      type: string
                      maxLength: 30
                      description: Object Type
                    OBJECT_SUBTYPE:
                      type: string
                      maxLength: 30
                      description: Object Subtype
                IV_DESTINATION:
                  type: string
                  maxLength: 32
                  description: RFC Destination for SES or Catalog for MDM
                IV_INDEX:
                  type: string
                  maxLength: 10
                  description: Index object for SES or Catalog for MDM
                IV_INDEX_OBJECTTYPE:
                  type: string
                  maxLength: 10
                  description: Type of the indexed object
                IV_NODE_NAME:
                  type: string
                  maxLength: 30
                  description: Node name
                IV_PROFILE:
                  type: string
                  maxLength: 30
                  description: Service Profile
                IV_SERVICE_NAME:
                  type: string
                  maxLength: 30
                  description: Name of a service
                IV_UPDATE_FLAG:
                  type: string
                  maxLength: 1
                  description: Address transfer structure change flag
                IV_USE_QUEUESERVER:
                  type: string
                  default: '  '
                  maxLength: 1
                  description: Indicator
              required:
              - IT_FIELD_LIST
              - IV_APPL_OBJECT_TYPE
              - IV_INDEX
              - IV_INDEX_OBJECTTYPE
              - IV_NODE_NAME
              - IV_SERVICE_NAME
              - IV_USE_QUEUESERVER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_MESSAGES:
                    type: array
                    items:
                      type: object
                      properties:
                        SERVICE_NAME:
                          type: string
                          maxLength: 30
                          description: Name of Service
                        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.
