ReceiptWo

Create a Receipt Document for a Workorder position or Bill of Material position

Note: GET not possible. Use Receipt/ReceiptLines

 

Entity Collections Properties

Typ

Description

Table

OIGN

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

ReceiptLines Object

Define the lines

noQCOrder

Edm.Boolean

if true, the system don't create a QC order, if false, the system create QC order, if defined beas 2020.08

doNotClosePosition

Edm.Boolean

 

Post Examples

 

Note:

Follow fields are mandatory on line level:  BaseDocEntry, BaseLineNumber, ItemCode, Quantiy, WhsCode

Field Linking

BaseDocEntry=work order (BEAS_FTHAUPT.BELNR_ID)

BaseLineNumber=work order position (BEAS_FTPOS.BELPOS_ID)

BaseLineNumber2 (optional)= Bill of Material position (BEAS_FTSTL.POS_ID)

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

 

POST

HTTP: post new receipt document for wo 642 Position 10

odata4/v1/receipt

 

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

 

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

#define ls_json
{"Transaction":"ReceiptWo",
"DocumentLines":[
  {
    "BaseDocEntry":1382,
    "BaseLineNumber":10,
    "ItemCode":"RM",
    "Quantity":1,
    "WhsCode":"01"
  }
]
}
 
#end
instance bsl b
b.post=ReceiptWo=<ls_json>
messagebox=<b.ret_code> <b.ret_text> <b.ret_value>

 

Receipt Serial numbers

All Serial number functions are supported.

If not "manual entry" for the serial managed item is defined, the field "DocumentLines"."DistNumber" is not mandatory

If empty, the system generate the serial number automatically. You can define a quantity > 1

 

Serial number reservation active: The system use next free serial number. If not available, then the next serial number will be generated

Serial number not active: Use standard Serial number generation

 

You can define more then one Serial number in DistNumber field with Comma:

SerialNumber1,SerialNumber2,SerialNumber3 ....

 

You can define more then one Serial number with a format definition:

DistNumber = "xxx{counter}xxx "

The system replace the {counter} area with a number

Example: ABC{005}, Quantity 4: Create 4 Serial Numbers ABC005, ABC006, ABC007, ABC008