BeAs Script: Material Issue with multiple batch/serial per item Answered

Joseff Anthony Angeles

Dear Experts,

I have the script below to create Material Issue for one of my work order

declare=res=ue_reservation
res=planned=new=issuewo
res=planned=addline=base_doctype=wo<tab>base_docentry=23<tab>base_linenum=80<tab>base_linenum2=20<tab>itemcode=
601E10-000171<tab>whscode=2600<tab>batchnum=MAS-10023<tab>quantity=1<tab>save
res=issuewo
if <value> = -1 then
// errorhandling
end if

Can you help me if i want to issue out another batch for the same item without adding another line in Goods Issue with:

batch number: MAS-10021

Warehouse: 2600

Quantity: 200

I tried mixing the two batch details on the same addline script but was not created successfully, I also created another addline script but it created 2 lines having the same itemcode.

Thanks,

Joseff

Comments

1 comment

  • Comment author
    Yaremi Miranda Lopez
    • Official comment

    Hello Joseff,

     

    Since this is an advance question I will create a ticket. Thank you for contacting Boyum IT.

Please sign in to leave a comment.