Many variants are possible to print a work order
Print from Sales order with B1UP Macro
Pool List Print work order with Beas Script
Example: Print work order on actual printer and set work order as printed.
beasFunction(PrintWorkOrder|DocEntry|LineNumber|print||true);
application.beasFunction("PrintWorkOrder",DocEntry,LineNumber,"print","",true);
beasFunction=PrintWorkOrder=DocEntry=LineNumber=print==true
more see beasFunction
Print from Sales order with B1UP Macro
Soure Code for universal function
@STORE1=SQL(select top 1 cast("BELNR_ID" as varchar(20))+'|'+cast("BELPOS_ID" as varchar(20)) from "BEAS_FTPOS" where "BaseDocNum"=$[$8.0.NUMBER])
IF(@STORE1='') BEGIN
MessageBox(No work order linked!);
END
IF(@STORE1<>'') BEGIN
BeasFunction(PrintWorkorder|@store1);
END
Pool List Print work order with Beas Script
Pool list -> Open -> Window Operation Edit -> New Button "Print Work order"
fert_Afo_anmelden.src
global function form_loaded
create=button=name=printworkorder,text=Print Work order
end global
global function dw_master_item_button_printworkorder_click
beasfunction=PrintWorkorder=<str_parm.belnr_id>=<str_parm.belpos_id>
end global
Now the machine can send the request, example:
woPrint/6002482/10