Create a manual Work order Issue Document.
Note: GET is not possible. Use Issue/IssueLines.
 
Entity Collections Properties
Type 
 | 
Description 
 | 
Table 
 | 
OIGE 
 | 
Primary 
 | 
DocEntry 
 | 
Primary mandatory 
 | 
no 
 | 
GET 
 | 
no 
 | 
POST 
 | 
yes 
 | 
 
 
Fields (only Post)
Field 
 | 
Type 
 | 
Description 
 | 
Date 
 | 
Edm.Date 
 | 
Define the document date 
 | 
Ref 
 | 
Edm.String(11) 
 | 
Short reference 
 | 
Remarks 
 | 
Edm.String(255) 
 | 
Remarks. If empty, the system define this automatically 
 | 
U_xxx 
 | 
Any(x) 
 | 
Define a UDF 
 | 
DocumentLines 
 | 
IssueLines Object 
 | 
Define the lines 
 | 
PrintReport 
 | 
Edm.Boolean 
 | 
Print IssueDocumentReport 
 | 
ErrorText 
 | 
Edm.String 
 | 
Add this string to Error text  
 | 
CloseExtIssue 
 | 
Edm.Boolean 
 | 
Close external process (if related and defined in externaldocentry 
 | 
ExternalDocEntry 
 | 
Edm.Number 
 | 
Define external Document Entry for External Issue process 
 | 
TimeReceiptNumber 
 | 
Edm.Number 
 | 
DocEntry from TimeReceipt for linking the document 
 | 
ReceiptQuantity 
 | 
Edm.Number 
 | 
Receipt Quantity. Used for CheckMinMax 
 | 
CheckMinMax 
 | 
Edm.Boolean  
 | 
  
The CheckMinMax is only possible, if you make an issue only for one work order 
The system need additional properties on header level: 
  
Property 
 | 
Type 
 | 
Description 
 | 
 
DocEntry 
 | 
Edm.Number 
 | 
Work order Docentry 
 | 
 
LineNumber 
 | 
Edm.Number 
 | 
Work order position 
 | 
 
ExternalDocEntry 
 | 
Edm.Number 
 | 
If external process: The external docentry (PDN.U_BEAS_FPQ * -1) 
 | 
 
RoutingPosition 
 | 
Edm.Number 
 | 
The related Routing position 
 | 
 
ForQuantity 
 | 
Edm.Number 
 | 
Check quantity related to this quantity. 
0 = planned quantiy 
In external processes: always 0 
 | 
 
CheckBookedQuantity 
 | 
Edm.Boolean 
 | 
true=Check booked quantity  
(Standard: false) 
 | 
 
 
 
  
 | 
 
 
 
  
 | 
 
 
Post Examples
 
POST 
 | 
HTTP: post new issue document for WO 642, position 10, pos2 = 20 
odata4/v1/issue 
  
{ 
"Transaction":"issuewo", 
"DocumentLines": 
 [ 
    { 
     "Base_DocEntry":642, 
     "Base_LineNumber":10, 
     "Base_LineNumber2":20, 
     "ItemCode":"RM", 
     "Quantity":5, 
     "WhsCode":"Mc" 
    } 
 ] 
} 
  
 | 
HTTP: post issue with Serial numbers 195,196 
{ 
"Transaction":"issuewo", 
"DocumentLines": 
 [ 
    { 
     "Base_DocEntry":650, 
     "Base_LineNumber":10, 
     "Base_LineNumber2":40, 
     "ItemCode":"MATERIAL1", 
     "SerialNumbers":[ 
        {"DistNumber":"195","Quantity":1,"WhsCode":"Mc"}, 
        {"DistNumber":"196","Quantity":1,"WhsCode":"Mc"} 
     ] 
     } 
 ] 
} 
  
 | 
HTTP: post issue for the main assembly (Base_LineNumber2=0) 
{ 
"Transaction":"receiptwo", 
"Remarks":"", 
"DocumentLines": 
   [ 
   {"Base_DocEntry":642, 
        "Base_LineNumber":10, 
        "Base_LineNumber2":0, 
        "ItemCode":"7002000-726", 
        "IVersionId":"", 
        "Quantity":3, 
        "WhsCode":"Mc", 
        "DistNumber":"A00334"} 
   ] 
} 
 | 
  
 Create receipt document for Work order 1308, Position 10, Pos Id 30 
BaseDocEntry=work order, BaseLineNumber=work order position, BaseLineNumber2 = Bill of Material position 
  
#define ls_json 
{"DocumentLines": 
     [ 
     {"BaseDocEntry":1308,"BaseLineNumber":10,"BaseLineNumber2":30,"ItemCode":"9348-purchase", 
    "Quantity":1,"WhsCode":"01"} 
     ] 
} 
#end 
instance bsl b 
b.post=IssueWo=<ls_json> 
messagebox=<b.ret_code> <b.ret_text> <b.ret_value> 
 |