Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Exchange rate not reflecting in PO created thru bapi for foreign currency!

Former Member
0 Kudos

hi friends,

am creating PO thru BAPI_PO_CREATE1...in the input file, i have given currency as USD and Exchange rate as 0.5, but in the created PO, i am able to see only 1 as the exchange rate...i even tried changing it using BAPI_PO_CHANGE, but no luck..but in case of local currency, which is EUR, am able to translate from the file whatever the value as exchange rate of the PO...this problem only comes if it's a foreign currency..am i missing something? pl advice

Regards,

Muthu

1 REPLY 1

Former Member
0 Kudos

Hai,

Try like this:

If you are populating Header conditions you must divide it by 10 as following:

wa_hdrcond-cond_value = wa_hdrcond-cond_value / 10.

If you are populating Item level conditions you must follow as:

IF wa_itmcond-currency IS INITIAL OR

wa_itmcond-currency EQ '%'.

wa_itmcond-cond_value = wa_itmcond-cond_value / 10.

ENDIF.

This will solve your problem. In the BAPI, it multiplies exchange rate by 10 for the header conditions.

Where as Item condition value(exchange rate) is multiplied by 10 when it satifies the above conditions.

So we must follow the same criteria as we did above.