E: Print Work order

Many variants are possible to print a work order

Print from Sales order with B1UP Macro

Pool List Print work order with Beas Script

Print automatically after creation (user event)

WEB APP over Beas Service Layer

 

 
Example: Print work order on actual printer and set work order as printed.
formel_bup beasFunction(PrintWorkOrder|DocEntry|LineNumber|print||true);

formel_jbs application.beasFunction("PrintWorkOrder",DocEntry,LineNumber,"print","",true);

formel_bscript 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"

beasscript-logo-small
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

 

 

Print automatically after creation (user event)

Idea: After creation of the work order the system has to print directly the work order document

More see Print work order automatically

 

WEB APP over Beas Service Layer

 

WEB Application (or other service) want to print a work order:

odata4/WorkorderPos/Print(6002479,10,"print","",false)

 

Now the machine can send the request, example:

woPrint/6002482/10

 

 

help-hinweis Example Notes