pricelist

sap-sdk

pricelist-object from itemobject

 

myitem=pricelist=property=value

 

setcurrentline=<value>


count

return count into variable value

myitem=pricelist=count

setvar=e_count=<value>

for=loop=0=<e_count>

..

currency

set currency

price

set price

pricelist

get the index from the current pricelist into variable value

pricelistname

get the name from the current pricelist into variable value

 

In follow example we define a new price for item "RM" in second price list and set new price to 25

 

pricelistexample

beasscript-logo-small

declare itemprice=ue_api_sbo
itemprice.getbusinessobject=oitm
// Read item
itemprice.getbykey=RM
// use second price list (0-based)
itemprice.pricelist.setcurrentline=1
itemprice.pricelist.price=25
itemprice.update
destroy=itemprice