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: 

BAPI_SALESORDER_CREATEFROMDAT2 and Sales Contract

Former Member
0 Kudos

We're having trouble with BAPI_SALESORDER_CREATEFROMDAT2 getting a corresponding sales contract price.

For some reason the BAPI can not get a price from corresponding sales contract.There is a statement in the standard SAP program that checks if there is a function call and skips a peice of logic I think is checking for preceding sales document.

I couldnu2019t find any OSS note that will fix this.It seems like a pretty common business scenario. Has anyone run into this before, and if so, how did you fix it?

1 REPLY 1

krishnendu_laha
Active Contributor
0 Kudos

Hi Friend,

The BAPI does not check preceding document for price.

Please check program is passing proper condition type and price to the BAPI parameter ORDER_CONDITIONS_IN. And also check ORDER_CONDITIONS_INX is getting populted with proper values.

Hope it will help you.

Regards

Krishnendu