Application Development and Automation 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: 
Read only

Freight Value reset when updated using BAPI_CUSTOMERCONTRACT_CHANGE

Former Member
0 Likes
362

Hi,

When I'm updating the contract using BAPI_CUSTOMERCONTRACT_CHANGE the freight rate value is getting reset.

I have done some analysis and following are my findings:

We are using a BAPI 'BAPI_CONTRACT_CREATEFROMDATA' to create a contract from Portal.

There is a freight rate condition in the contract created. When contract is created from portal if we see the condition details the condition origin for freight rate is 'Maually Entered' while when the same contract is created in ECC using VA41 the condition origin is 'Automatic Pricing'.

I don't know why this difference between contract created using BAPI and one created using standard transaction.

Also, I have debugged the standard code and found that code is behaving different for the contract created through BAPI and through ECC i.e., to say when I update the contract created through ECC using BAPI particular check fails while the same check is successful for the contract created through portal.

Thanks in advance for your help!!!

Thanks and Regards,

Nilesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
318

Hi,

I checked the conract created from portal and the one created from ECC the Incoterm2 was missing in the contract created from Portal. Hence, during update it was redetermining the freight rate.

Thanks and Regards,

Nilesh

1 REPLY 1
Read only

Former Member
0 Likes
319

Hi,

I checked the conract created from portal and the one created from ECC the Incoterm2 was missing in the contract created from Portal. Hence, during update it was redetermining the freight rate.

Thanks and Regards,

Nilesh