This example return receipt quantity from a work order
instance bsl b
setvar=ll_DocEntry=6002479
setvar=ll_LineNumber=10
// Note: use Pipeline, becaus comman in place holder not supported
setvar=lc_bookedQty=<bsl.WorkorderPos([ll_DocEntry]|[ll_LineNumber]).QuantityProduced/$Value>
messagebox=booked quantity: <lc_bookedQty>