POST

Create an Issue document.

 

For a list of all Properties click here

For Document lines click here

 

Example:

 

odata4/v1/Receipt

 
{
"DocumentLines": [
  {"ItemCode": "RM_B",
   "WhsCode":"01",
   "BinCode":"001001",
   "DistNumber":"BT-014",
   "Quantity":2 
  }
  ]
}

 

 

Additional Properties on Header Level

Property

Description

PtiCode, Letter, FolioNumberFrom, FolioNumberTo

additional property for the Argentina region

PrintReport


Series

Define Series for document Numbering

BatchGroup

if true (standard), the system creates only one document line for all batches with the same item code.

GenerateQcOrder

Create QC order for this document? (only if defined). Standard = false

DocumentsOwner

define the document owner

SpecialLines

PriceType

TackingNumber

Define the tracking Number

TransportationCode

Define transportation code

U_xxx

Define UDF field. System support only String format

sort

 

 

 

Create receipt document with beas Service Layer

 

 

beasscript-logo-small

// Create a receipt document with 5 new serial numbers
// in this example you can see, how to work with place holder
instance bsl b
setvar=ls_json=
for ll_loop=1 to 5
   addvar=ls_json={"ItemCode":"RM_S","WhsCode":"01","DistNumber":"<time,hhmmss><ll_loop>","Quantity":1}
   if <ll_loop> <> 5 then
      addvar=ls_json=,
   end if
next
setvar=ls_json={"DocumentLines":[<ls_json>]}
// in post command use only variable. 
// follow is not working: b.post=receipt={"DocumentLines":[<ls_json>]}
// because the system convert placeholder only, if the string don't start with {
b.post=receipt=<ls_json>
 
messagebox=<b.ret_code> <b.ret_text> <b.ret_value>
destroy b

 

help-hinweis Example Notes