I am using BAPI_SALESORDER_SIMULATE to get the price for a Material Entered by user in our Custom Transaction to show the Sales price once entered on the screen. If BAPI returns me ZERO price then we give a Popup to users to enter the Price and we create the same in VK11 transaction using the Condition type and this we do using Call Transaction and its synchronous . After this is called I am again using BAPI to get the price but some times BAPI returns me the price where as some times it doesn't return and as per the code the popup again comes infront of user to enter the price .
I am not sure why BAPI simulate works like this its not consistent in getting the price always which is creating problems as popup would come for users to re-enter the price again and again . When I see VK13 price is already created.
Guys can you come up with suggestions as of where I am going wrong, any tips would be helpful.
Thanks & Regards,