Object for pre-calculation
AnsweredHi,
It would be nice to have object for pre-calculation.
Now, with a large quotation you have to right-click on every position, choose calculation, do some more clicks before you have a calculation.
This takes a lot of time.
Regards, John
-
Official comment
Hi,
in most of sap documents we incuded the sbo_all.src file.
In this we declared the global function "createcalcuationline"you can call this for every line
in variable "ll_calcrow" you must define, which line you want to calculatebeas calculate this line and insert the price in field 38.14
if you set the variable "il_calcprice" to 1 then beas save this in 38.37
if the variable have an other value as 0 or 1, then you can define this self. The price is available in variable <lc_price>
Example:
item.38.row.<ll_calcrow>.col.37.value=<value> <lc_price,tosbonum>
Example calc all lines
// Calculate price for all assembly lines
setpointer=hourglass!
setvar=ll_row=%sub(<item 38=rowcount>,1)
for ll_calcrow=1 to <ll_row>
if <item.38.row.[ll_calcrow].column.257> = "" and <item.38.row.[ll_calcrow].column.39> <> "l" and <item.38.row.[ll_calcrow].column.31.value> = "" &
and <item.38.row.[ll_calcrow].column.U_beas_precalcnr> n= 0 then
select "PrcrmntMtd","U_dispo" into ls_prcrmntmdt,ls_dispo from "OITM" where "ItemCode"=<item.38.row.[ll_calcrow].col.1.value,dbstring>
if <ls_prcrmntmdt> = "M" then
item.38.setrow=<ll_calcrow>
setpointer=hourglass!
batch=sbo_all:createcalcuationline()
end if
end if
next
end event -
Hi Martin,
Thanks.
From what Version is this available?
-
Hi,
i think, since beas 9.2 PL 0
regards
Please sign in to leave a comment.
Comments
3 comments