In beas different ways exists for get price from an item
Using beas Object with extended functionality
Use SAP B1 Standard functionaltiy for reading price
This is the original function delivered by SAP with limited functionality.
see DI-API itemprice
declare=itemprice=ue_api_sbo
itemprice=getitemprice=itemcode=FP<tab>cardcode=110441
destroy=itemprice
message=<currency> <price> <discount>
destroy=itemprice
Using beas Object with extended functionality
This is a beasScript object with complete functionality of Beas based on functionality of SAP DI-API GetItemPrice function.
This function has lot of more functionaltiy. See ue_artikelstamm.pricing
object=ue_artikelstamm=pricing=itemcode=A001
Allow to use BeasService Layer to get price with extended Beas functionality over SAP DI-API
This is beasd on ue_artikelstamm.pricing but allow you to use it over service in simple way.
See Item/GetPrice
Item/GetPrice(ItemCode,WhsCode,CardCode,QuantityInStockUnit,Valuation)
Return
{
"price": "20.9814"
}
// beas Script Example: Return calculation price
instance bsl b
b.get=Item(<itemcode>,<whscode>,<cardcode>,<quantity>,"K")
messagebox=<b.price>