Hello all,
I am facing a problem with acquiring material price from SAP.
I try to get price which is somehow determined when placing new order. I assume this is price from last order.
Firstly I tried to get it from Material Data with BAPI_MATERIAL_GETALL. I am able to get NET_PRICE, which is sometimes empty.
So this is the reason I want the price from the last order.
Secondly I got the price from BAPI_INFORECORD_GETLIST. But then again I get sometimes even more than 20 inforecords. I sorted out all prices which were outdated, but I still get many records. Even the price of this record varies from eg. 0.7€ to 60€ for the same material.
I am using C# and SAP .net connector.
Example:
Material | InfoR 1 | InfoR 2 | InfoR 3 | InfoR 4 |
50802 | 2,7 | 2,8 | ||
50818 | 6,4 | 62,83 | 7,65 | 7,88 |
50812 | 7,95 | 8,56 | ||
197996 |
In the above tabel there are a few lookups for different materials, one has zero inforecords, two have two inforecords and yet another has four inforecords. Those results are already filtered and are shown only valid prices: (purchaseData[i].GetString("PRICE_DATE") == "9999-12-31")
Please help