POST

Allow to create receipts on work order

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

 

Example:

odata4/v1/receiptwo

{
"Transaction":"receiptwo",
"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 (optional)= Bill of Material position (BEAS_FTSTL.POS_ID)

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

 

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 defines this automatically.

U_xxx

Any(x)

Define a UDF

DocumentLines

ReceiptLines Object

Define the lines

noQCOrder

Edm.Boolean

If true, the system does not create a QC order. If false, the system creates a QC order, if defined. beas 2020.08

doNotClosePosition

Edm.Boolean

beas_fpq

Edm.Long


cancelation

Edm.Boolean

 

timereceiptnumber

Edm.Long

 

 

 

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

#define ls_json
{"Transaction":"receiptwo",
"DocumentLines":[
  {
    "Base_DocEntry":1382,
    "Base_LineNumber":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 no "manual entry" is defined for the serial managed item, the field "DocumentLines"."DistNumber" is not mandatory.

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

 

Serial number reservation active: The system uses the next free serial number. If not available, the subsequent serial number is generated.

Serial number not active: Use standard Serial number generation.

 

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

SerialNumber1,SerialNumber2,SerialNumber3 ....

 

You can define more than 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