Transfer

Create a transfer document

 

Entity Collections Properties

Typ

Description

Table

OWTR

Primary

DocEntry

Primary mandatory

no

GET

yes

POST

yes

 

 

 

Fields

Property

Type

GET

POST

Description

DocEntry

Number

X


Internal DocEntry Number

DocNum

Number

X


Visible Document Number

DocumentLines

DocumentLines

X

X

Reference to Document Lines

Attention: Use alway "ObjectTyp"Lines in GET Command

Example: ReceiptLines, IssueLines, PoReceiptLines

Date

Date


X

Document Date

Reference2

String(11)

X

X

Reference 2

Remarks

String(100)

X

X

Remarks (end of document)

CardCode

String(20)

X

X

Card Code number (not in all document types)

ToWareHouse

string(20)


X

Transfer object: Target WareHouse

ToBinCode

string(20)


X

Transfer object: Target BinCode

ToRfid

string(20)


X

Transfer object: Target Rfid

Belnr_Id

Number


X

Reference to Work order Number

Belpos_Id

Number


X

Reference to Work order position Number

Pos_Id

Number


X

Reference to Work order Bill of Material Number

FPQ

Number


X

Internal reference external work processes

BaseType

string(10)


X

Reference Document Type

BaseDocEntry

Number


X

Reference Document Number (Internal DocEntry Number)

BaseLine

Number


X

Reference Document Line Number (Internal line Number)

DelReservation

boolean


X

if the document based on reservation, you must define the reservation information on line level

resDocEntry = DocEntry from reservation

resLineNumber = Line Number from reservation
 
Note:

Not supported for

- Workorder Issue

- Transfer processes (the system move the reservations automatically)

Series

Strin(10)


X

User alternative Document Number Series (Table NNM1) related to current used Document Type

BatchGroup

boolean


X

true = Allocate all batches in one Document Line (Standard)
false = Create one document line by batch

PriceType

String


X

"fromplandocument" = price from Property "Price"

empty (Standard) = no price or standard price if contStock is disabled

GenerateQcOrder

boolean


X

Generate a Quality Control Order after creating this document

Address

String


X

Address, if you want to overwrite Standard address (not in every document type)

CardName

String

X

X

CardName, if you want to overwrite Standard CardName (not in every document type)

CloseId

Number


X

if you've more then one position for same line, the system check only last line

Configuration wizzard - Setting "close automatically" ignored!

 

 

 

 

Post

For Post documents you've special properties

hmtoggle_plus1See the complete List

 

Field

Type

Description

DocumentDate

Date

Document Date. Default=Today

TaxDate

Date

Tax Date. Default=SAP Standard

DocDueDate

Date

Sets or returns the document due date (for example, Delivery Date in sales orders, Value Date in invoices, Valid To in quotations, and so on). Mandatory in Sales documents

Reference2

String(11)

Reference 2 on document level

Comments

String(255)

Long comments

CardCode

String(20)

Business Partner

CardName

String(100)

Name of Business Partner

Address

String(255)

Address of Business Partner

NumAtCard

String

Define the Reference Number from Business Partner

TrackingNumber

String

Define the Tracking Number

TransportationCode

String

Define the Transportation code

DocumentsOwner

String

Define the Document Owner

WoDocEntry

Number

Linked Work order DocEntry

WoLineNumber

Number

Linked Work order Line Number

Allocation

Boolean

Use this for Work order allocation function

only for transfer function

 

1. Define "Alocation":true

2. Define Work order reference on line level

 

beasscript-logo-small

instance bsl b
setvar=ll_workorder1=20
b.post=Transfer={"allocation":false,"DocumentLines":[&
  {"ItemCode":"RM","Quantity":0.1,"WhsCode":"01","ToWhsCode":"02","BaseType":"wo","BaseDocEntry":<ll_workorder1>,"BaseLinenumber":10,"BaseLineNumber2":10}]}

ExternalDocEntry

Number

Use this for provision - transfer process

set the externalDocentry (from ExternalPurchaseOrder) and Allocation:true

WoLineNumber2

Number

Linked Work order Bill of Material position

RetrievalDocument

boolean

true=Retrieval document from SAP Document

Example Sales order to Delivery order

 

Note:

Define BaseDocument on LineLevel true

Header information are not copied from target to source document !

 

beas support "Expenses Management" from Sales Order to a target document

("CINF"."EnblExpns"=Y, system read entries from Table "RDR3")
Base document is the Document, which is defined in first line

 

false=save only link to another document (in beas fields)

BaseType

String

Example: 17=Sales Order, 13=PreInvoice

Note:

Only  if RetrievalDocument=false

Base Information on Header Level have higher Priority. But use base information on line Level

BaseDocEntry

Number

Base DocEntry or Work order

BaseLineNumber

Number

Base Line Number (example RDR1.LineNumber)

PDocType

String

empty: Read from Reservation. Define filter in property "Filter"

bsl: you define the line in the JSON string

all other: You read this from table BEAS_PLANDOCUMENT_LINE

Define the filter in "Filter" and the DocEntry in Parameter "PDocEntry"

 

Related to follow Properties

Filter=[filter for BEAS_RESERVATION" or "BEAS_PLANDOCUMENT_LINE"]

PDocEntry=[BEAS_PLANDOCUMENT_LINE.LineNumber]

DocumentPerWorkOrder

boolean

true=If you defined WoDocEntry, the system split this for every Work order

PriceType

string

Define the price determination for every line

manuell  = use price defined in BEAS_PLANDOCUMENT_LINE or Json String

none = no price (use SAP Standard functionality)

zeroprice = price is always 0

 

if not defined:

if this is a retrieval document, then "none"

for all other: use beas standard price determination

(Related to setting "mw_zubuchen_price_e" and "mw_zubuchen_price_k"

 

Series

string

Define the Document Series
See Administration -> System Initialization -> Document Numbering

BatchGroup

boolean

Define the batch grouping

true (standard) = one line for all batches with same item code

false = for every batch a new item line

DontDelete

boolean

don't delete entries from table BEAS_PLANDOCUMENT_LINE

DelReservation

boolean

Delete all resevation entries, which defined in

ReservationDocEntry,ReservationLineNumber

ReservationDocEntry


Link to Reservation BEAS_RESERVATION_LINE.RES_DOCENTRY

ResevationLineNumber


Link to Reservation BEAS_RESERVATION_LINE.RES_LINENUM

GenerateQcOrder

boolean

if true, the system create a QC document, if a QC document is defined for this transaction and item

Current supported:

- Manual Receipt

Sort

string(255)

none:  use same sorting as defined in JSON String
Example: "Sort":"none"

empty (=Not defined, Standard):
Retrieval document: By base line number, Warehouse, DistNumber

      New documents: By Warehouse, ItemCode, DistNumber

or define own order (DataWindow syntax)

Example: base document line descending: "Sort:","base_linenum desc"

Field names: See table BEAS_PLANDOCUMENT_LINE

DocumentLines

DocumentLines

This define the Document lines

More see the Line object from this document

 

Note: Current Text- and Sum line types not supported

specialLines

String

Not available in Incoming Goods or Work order receipt/issue function

 

This allow to define special lines in one String

 

lineType=afterLine [=Text] ++ lineType=afterLine [=Text] ++

 

lineType: T = Test, S=Summary

afterLine: -1 = in first row, all other: Number of item line

text = for Text lines:

 

Example:

specialline

you need follow string

T=-1=Text at first row++T=0=my textline++S=0

 

beas 2020.08

PTICode

String

Point of Issue User Association. Reference to table USR8/OPTI for location Argentinia. beas 2020.09

 

 

POST

HTTP: post new transfer document

odata4/v1/receipt

 

{
"DocumentLines": [
  {"ItemCode": "po_baetman",
   "WhsCode":"01",
   "BinCode":"001001",
   "ToWareHouse":"02",
   "ToBinCode":"11001",
   "DistNumber":"BT-014",
   "Quantity":2 
  }
  ]
}

beasscript-logo-small

(Create a stock transfer based on a stock transfer request)

 

setvar=ls_json=&
{ "RetrievalDocument":"Y", &
"DocumentLines": &
    [ &
    {"BaseDocType":"5", "BaseDocEntry":13, "BaseLineNum":0, "ItemCode":"RM_B","Quantity":1,"WhsCode":"01","ToWareHouse":"02", &
      "BatchNumbers": [  {"DistNumber": "111", "Quantity":1} ]&
     } &
    ] &
}
instance bsl b
b.post=Transfer=<ls_json>
messagebox=<b.ret_code> <b.ret_text> <b.ret_value>