E: Get Price from Item

In beas different ways exists for get price from an item

Using only SAP DI-API

Using beas Object with extended functionality

Beas Service Layer

 

Using only SAP DI-API

Use SAP B1 Standard functionaltiy for reading price
This is the original function delivered by SAP with limited functionality.

see DI-API itemprice

 

 

beasscript-logo-small

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

 

 

beasscript-logo-small

object=ue_artikelstamm=pricing=itemcode=A001

 

 

 

 

Beas Service Layer

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

 

postmanIcon

Item/GetPrice(ItemCode,WhsCode,CardCode,QuantityInStockUnit,Valuation)

 

Return

{

  "price": "20.9814"

}

 

beasscript-logo-small
// beas Script Example: Return calculation price
instance bsl b
b.get=Item(<itemcode>,<whscode>,<cardcode>,<quantity>,"K")
messagebox=&ltb.price>