ExternalPurchaseDelivery

 

This object is for creating external purchase delivery from external purchase order

The system create a normal purchase delivery document in SAP

GET: Return the Purchase delivery document

POST: For this a special document type is available

 

post ExternalPurchaseDelivery

{"ExternalDocEntry":Number,"NumAtCard":String,

 "DocumentLines":[{"BaseEntry":Number,"BaseLineNumber":number...}]}

 

 

Get:

ExternalPurchaseDelivery

 

Property

Description

Table

OPDN

Primary key

DocEntry/i

$transaction

no

$branch

no

$mask

no

 

Fields

Name

Type

Description

DocEntry

Edm.Int32

Entity Relation: PurchaseDeliveryLines -> DocEntry

Database: "OPDN"."DocEntry"

DocNumber

Edm.Int32

Database: "OPDN"."DocNum"

Reference2

Edm.String(11)

Database: "OPDN"."Ref2"

TaxDate

Edm.DateTimeOffset

Database: "OPDN"."TaxDate"

DocumentDate

Edm.DateTimeOffset

Database: "OPDN"."DocDate"

DocDueDate

Edm.DateTimeOffset

Database: "OPDN"."DocDueDate"

BPLId

Edm.DateTimeOffset

Database: "OPDN"."BPLId"

Remarks

Edm.DateTimeOffset

Database: "OPDN"."Comments"

CardCode

Edm.String(20)

Entity Relation: BusinessPartner -> CardCode

Database: "OPDN"."CardCode"

CardName

Edm.String(1)

Database: "OPDN"."CardName"

Printed

Edm.Int32

Database: "OPDN"."Printed"

DocumentStatus

Edm.String(1)

Database: "OPDN"."DocStatus"

ExternalDocEntry

Edm.Int32

Database: "BEAS_OWING_DELIVERY"."DocEntry"

ExternalStatus

Edm.String(1)

Database: case when coalesce("BEAS_FTAPL"."ABGKZ",'')<>'J' and "PDN1"."LineStatus"='O' and coalesce("BEAS_OWING_DELIVERY"."DocStatus",'C') <> 'C' then 'O' else 'C' end

 

Relations

Join to Entiy Object

Relation

PurchaseDeliveryLines

DocEntry

BusinessPartner

CardCode

WorkorderRouting


WorkorderPos


Workorder


 

Post: Follow Properties available

 

Header

Property

Type

Description

ExternalDocEntry

Number

External DocEntry

Can be 0, if no material is linked

PTICode

String

Argentina: the PTICode (optional)

NumAtCard

String

Supplier information

CardCode

String

Supplier id (you don't need to set this)

ShipDate

Date

Shipping date. Standard = today

BaseDocEntry

Number

DocEntry from Purchase order.

Alternative set this on line level

BaseLineNumber

Number

LineNumber (0-Based)

Alternative set this on line level

 

LineLevel

The system support more then one line. But all lines must have the same BaseDocEntry

No additional check

Property

Type

Description

BaseDocEntry

Number

DocEntry from Purchase order.

Alternative set this on header level
Note: The system read only the Docentry from first line. All other ignored. No additional check.

BaseLineNumber

Number

LineNumber (0-Based)

Alternative set this on header level

Quantity

Number

Quantity

Scrap

Number

Scrap quantity