object=ue_reservation=incomminggoods=<propertie>
issue bom from a planned document
return: in <value> -1 = error, 0=ok
date |
Bookingdate in Format yyyy/mm/dd |
ref |
Reference-Text |
comments |
Comments-Text |
docentry |
the document number from planning document |
report |
if you wan't a Print: the window-Name, in which you defined the Makro |
all |
create for all entries a delivery po. Otherwise only for the first purcase order |
background=true |
if true, then beas send the bin-transaction to the background-process. see ue_common |
Worksteps:
1. Create a Planned document
2. Create a issue from Reservation
--
Create Reservation for Workorder 68 Pos 60 Bom 50, Item C15748, Warehouse 01, Qty 2
declare=res=ue_reservation
// Create planned document
res=planned=new=incommingpo
// add all lines
res=planned=addline=<..> (see planned)
res=planned=addline=<..>
if the item is batchnumber-related or warehouse is a bin-warehouse, then you must set this information in the planned document
(example: ...batchnum=A1234<char 9>bincode=1000<char 9>...)
then create the incomming goods
res=incomminggoods=all
or with more details
res=incomminggoods=all<tab>date=<documentdate yyyy/mm/dd><tab>ref=<reference text<tab>comments=<your comment>
WEBAPP
Create the planned document
declare=res=ue_reservation
res=planned=new=incomminggoods
setvar=col_pdocentry=<pdocentry>
destroy=res
Add the Lines
declare=res=ue_reservation
res=planned=docentry=<col_pdocentry>
res=planned=addline=<...>
destroy=res
Create incomminggoods
declare=res=ue_reservation
res=incomminggoods=all<tab>docentry=<col_pdocentry>
if <value> = -1 then
// errorhandling
end if
destroy=res