openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/COM_PRODUCT_UNIT_CONVERSION:
    post:
      tags:
      - COM_PRODUCT_UNIT_API
      operationId: /rfc/COM_PRODUCT_UNIT_CONVERSION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IV_BASE_UNIT:
                  type: string
                  default: '   '
                  maxLength: 3
                IV_CURRENT:
                  type: string
                  default: X
                  maxLength: 1
                IV_FLAG_UNIT:
                  type: string
                  default: ' '
                  maxLength: 1
                IV_INPUT:
                  type: integer
                  format: int64
                IV_PRODUCT_GUID:
                  type: string
                  format: byte
                  description: Product
                IV_PRWB:
                  type: string
                  default: ' '
                  maxLength: 1
                IV_TIMESTAMP:
                  type: integer
                  format: int64
                IV_UNIT:
                  type: string
                  maxLength: 3
                IV_USE_NET_WEIGHT:
                  type: string
                  default: ' '
                  maxLength: 1
              required:
              - IV_INPUT
              - IV_PRODUCT_GUID
              - IV_UNIT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_ADD_CONST:
                    type: integer
                    format: int64
                  EV_BASE_UNIT:
                    type: string
                    maxLength: 3
                  EV_DENOMINATOR:
                    type: integer
                    format: int32
                  EV_NUMERATOR:
                    type: integer
                    format: int32
                  EV_OUTPUT:
                    type: integer
                    format: int64
                    description: Output Value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
