With the following post command PreAssign document for a work order can be generated.
It is possible to create a PreAssign document which can be read with get PreAssign or to return all information directly as JSON.
post PreAssign
{"BaseDocEntry":103,
"BaseLineNumber":10}
Returns
The PreAssign document information can be read with the following command:
get PreAssignLines?§filter=DocEntry = 5
The PreAssign document information related to the bill of material position can be read with the following command:
get WorkorderBom?$select ItemCode,Quanitty,PreAssignLines
&$filter=DocEntry eq 103 and LineNumber eq 10
&$expand=PreAssignLines($filter=DocEntry eq 5)
Property for the POST command |
Type |
Description |
|
BaseDocEntry |
Edm.Int32 |
Work order DocEntry (BEAS_FTPOS.BELNR_ID) |
|
BaseLineNumber |
Edm.Int32 |
Work order LineNumber (BEAS_FTPOS.BELPOS_ID) |
|
RoutingPosition |
Edm.Int32 |
|
|
Quantity |
Edm.Decimal |
Goods Receipt Quantity in Production UoM of the assembly The system calculates the required quantity based on planned quantity and defined quantity. |
|
Scrap |
Edm.Decimal |
|
|
WhsCode |
Edm.String |
Backflushing only from this warehouse (optional). |
|
SetBatchNumber |
Edm.String |
true/false assign BatchNumbers |
|
SetSerialNumbers |
Edm.String |
true/false assign SerialNumbers |
|
Format |
Edm.String |
JSON = Return Result as Json String "" = Create document and return Docenrty |
|
CreateMessage |
Edm.Boolean |
If true, the system returns the Shortage in JSON format. |
|
ExternalDocEntry |
Edm.Number |
External Docentry (External production process) |
|
PDocType |
Edm.String |
|
|
Extern |
Edm.String |
|
Returns the following information:
Property for the POST Command |
Type |
Description |
||||||||||||||||||||||||||||||||||
Canceled |
Edm.Bolean |
Return true if the process is canceled, for example if there is not enough material with the do not continue setting. |
||||||||||||||||||||||||||||||||||
OpenEntries |
Edm.Bolean |
Return true if Entries exist without enough stock. |
||||||||||||||||||||||||||||||||||
EntryFound |
Edm.Bolean |
Return true if Preassign Material exists. |
||||||||||||||||||||||||||||||||||
Shortage |
|
Return Array of not Preassigned Material only, if CreateMessage=true. |
||||||||||||||||||||||||||||||||||
ShortageMessage |
Edm.String |
Returns the "not enough memory" in language of the current user, if CreateMessage=true. |
||||||||||||||||||||||||||||||||||
PreAsssign |
|
Return Array of assigned material if Format=Json. |
(Format=Json and CreateMessage=true): { |
Follow return values are aviable (Powerbuilder: gbsl.iu_return.[property]
|