ue_api_batchnumber

beasscript-logo-small

With DI-API you cannot set batch-properties, but with this Object it is possible.

This object checks the SAP version and works with the correct tables (in sap8.8 this are other tables as in sap2007)

 

Example:

 

declare=lbatch=ue_api_batchnumber
lbatch=get=A0001=B443044
lbatch=status=1
lbatch=update

 

Working with "update oibt" may randomly malfunction, and therefore it is recommended to to work with this API.

 

setstatus=itemcode=batchnumber=newstatus=newqty

Sets the new status directly without load and update-Function

Example:

object=ue_api_batchnumber=A0001=B443044=1

set status to 1

allowed status: 0=free,1=not free, 2=locked

if you set the Quantity, Beas checks the QC-Order-List. If a QC-Order exists  for this Batch number and the QC-Order-Status is OK, Beas set the status allways to 0 (free)

get=itemcode=batchnumber

loads the batch number. See example

update

saves the batch number-Properties - compatible to sap 2007 and 8.8

located

Property

expdate

Property

prddate

Property