In Beas different ways exists for getting a price of an item.
Using Beas Object with extended functionality
Use SAP B1 Standard functionality for reading a 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>