Hey guys,
I am facing an issue with Shipment BOD. I have done a small enhancement in order to pick the sales price from M3 and add it in the UserArea. I am following the below steps in my code.
1) Calling OIS017MI.LstPriceList - Retrieve 'FromDate' in order to get the prices from the right price list
2) Creating a function - I am storing the above retrieved value in a Global variable.
3) Calling OIS017MI.GetBasePrice to retrieve the actual price of the item.
The issue that i am facing is, I am not getting price at all the times. Even when i pass the same inputs, sometimes i get the prices for all the lines and sometimes i am not getting prices for any of the lines. What seems strange is, in all the case i am passing the same inputs and that should produce the same output when my M3 setup is untouched. Not sure why i am getting such results.
Any idea to fix this issue?