openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/BAPI_EXCHANGERATE_GETFACTORS:
    post:
      tags:
      - BUS1093
      summary: Read Relevant Exchange Rate Relationships for Currency Pair
      operationId: /rfc/BAPI_EXCHANGERATE_GETFACTORS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DATE:
                  type: string
                  format: date
                  description: Date Relevant for Selection
                FROM_CURR:
                  type: string
                  maxLength: 5
                  description: From Currency
                RATE_TYPE:
                  type: string
                  maxLength: 4
                  description: Exchange Rate Type
                TO_CURRNCY:
                  type: string
                  maxLength: 5
                  description: To Currency
              required:
              - DATE
              - FROM_CURR
              - RATE_TYPE
              - TO_CURRNCY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FROM_FACTOR:
                    type: integer
                    format: int64
                    description: Ratio for the "From" Currency Units
                  RETURN:
                    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
                  TO_FACTOR:
                    type: integer
                    format: int64
                    description: Ratio for the "To" Currency Units
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
