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_SIMULATE Pricing Problem

Former Member
0 Kudos

Hi ,

I already posted this question, but there was no response so I am posting this again.

As per our business our client is in Retail business and Customer walks to our store to buy parts .

Then our users logs into Custom Sales Order transaction and enters the Header data for sales Order creation and comes to Items data and enters the Material Number .

At this moment I use BAPI_SALESORDER_SIMULATE to get the Customer Price and this function Module does return the price for me. But if the Price is ZERO then I come up with a popup asking user to enter the New Price so that I can create the same instantly on the same screen . Once user enters the necessary info like Vendor number , Cost and Sale Price , I got to VK11 to create the SD pricing and ME11 to create the Purchase info record. After the information is saved I again Call BAPI_SALESORDER_SIMULATE to get the Price of the Part entered . Now here some times the BAPI returns the price and some times it doesnt.

This happens when user is trying to enter more than 5 or 10 materials as the Price popup comes and ask users to enter the price if the price is expired and we are creating the Price in the same session after user enters the data and again calling BAPI to get the Price.

Its not always that BAPI fails to get the price its like 60% of the time it gets the prices and remaining time it doent get the price. I tried looking into the conditions record to see if they are created and its created . It looks like timming issue for me.

As I saw that when the popup was coming again even after entering the Price which was created , I closed the popup and manually entered the part on the screen and it pulls the price.

Kindly suggest me how to solve the problem ,

Thanks & Regards,

Venkat

1 REPLY 1

Former Member
0 Kudos

Duplicate post locked.

Please add the additional information to your original question and continue there.

Rob