POST

 

Allow to create issue on work order

It's possible to create issue for multiple work order positions and work orders.

 

Example:

odata4/v1/issuewo

{
"Transaction":"issuewo",
"Remarks":"",
"DocumentLines":
    [
       {"Base_DocEntry":642,"Base_LineNumber":10,"Base_LineNumber2":0,"ItemCode":"7002000-726","IVersionId":"","Quantity":3,"WhsCode":"Mc","BinCode":""}
    ]
}

 

Field Linking

Base_DocEntry=work order (BEAS_FTHAUPT.BELNR_ID), Mandatory

Base_LineNumber=work order position (BEAS_FTPOS.BELPOS_ID), Mandatory

Base_LineNumber2= Bill of Material position (BEAS_FTSTL.POS_ID)

CloseId (optional): Close this position after receipt beas 2020.02

 

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

 

 

 

beasscript-logo-small Create issue document for Work order 1382, Position 10

#define ls_json
{"Transaction":"issuewo",
"DocumentLines":[
  {
    "Base_DocEntry":1382,
    "Base_LineNumber":10,

    "Base_LineNumber2":0,
    "ItemCode":"RM",
    "Quantity":1,
    "WhsCode":"01"
  }
]
}
 
#end
instance bsl b
b.post=IssueWo=<ls_json>
messagebox=<b.ret_code> <b.ret_text> <b.ret_value>