Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 993

How to get Material price

$
0
0

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:

 

MaterialInfoR 1InfoR 2InfoR 3InfoR 4
508022,72,8
508186,462,837,657,88
508127,958,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


Viewing all articles
Browse latest Browse all 993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>