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: 

Regarding BAPI /AFS/BAPI_CONTRACT_CREATEFDATA

Former Member
0 Kudos

Hi,

I am facing a problem during creation of contract from quotation.

Suppose we are creating a contract from Quotation in U.S. where currency is Dollar.

The problem is in Quotation if the Sales ofiice(VBAK-VKBUR) currency is different from Target Currency(In this case $)

Then during contract creation it is throwing an error that Currency deviate from each other.

Can anyone help me in this problem?

Regards

Sandipan

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sandipan

Try using the below FM's to convert (VBAK-VKBUR) currency

into required currency.

CONVERT_TO_FOREIGN_CURRENCY Convert local currency to foreign currency.

CONVERT_TO_LOCAL_CURRENCY Convert from foreign currency to local currency

Reward if helpful

Regards

Lakshman

2 REPLIES 2

Former Member
0 Kudos

Hi Sandipan

Try using the below FM's to convert (VBAK-VKBUR) currency

into required currency.

CONVERT_TO_FOREIGN_CURRENCY Convert local currency to foreign currency.

CONVERT_TO_LOCAL_CURRENCY Convert from foreign currency to local currency

Reward if helpful

Regards

Lakshman

0 Kudos

Hi,

My problem is solved.

In my case it was determining the currency from the sales office.

So according to the standard program it was determining the sales office currency with the currency where Contract is created.

If these are diff. then i was getting the error that currency is not convertable.

So what i did was i passed the currency of the sales office to the BAPI .

It solved my problem

Another way is you have to copy the Standard routine and replace that with your own routine.

Regards

Sandipan