T-CODE: OB08
BAPI: READ_EXCHANGE_RATE
The calculation formula for converting foreign currency to local currency is as follows:
Amount in local currency = Amount in foreign currency * EXCHANGE_RATE * LOCAL_FACTOR / FOREIGN_FACTOR
Another BAPI directly takes out the result
CONVERT_TO_LOCAL_CURRENCY