<taPMDistribution>

Element name

Data type

Length

Required

Default

Description

DOCTYPE

i4

2

Y

Not applicable

Document type:

1=Invoice;

2=Finance charge;

3=Miscellaneous charge;

4=Return;

5=Credit memo;

6=Manual checks

VCHRNMBR

string

17

Y

Not applicable

Voucher number/payment number; if passing a manual check, pass in payment number

VENDORID

string

15

Y

Not applicable

Vendor ID

DSTSQNUM

i4

4

N

0

Sequence number

DISTTYPE

i4

2

Y

Not applicable

Distribution type:

1=Cash;

2=Pay;

3=Avail;

4=Taken;

5=Fnchg;

6=Purch;

7=Trade;

8=Misc;

9=Freight;

10=Taxes;

11=Write;

12=Other;

13=Gst;

14=Wh;

15=Unit;

16=Round

DistRef

string

30

N

<blank>

Distribution reference

ACTINDX

i4

4

N

0

Account index

ACTNUMST

string

75

N

<blank>

Account number string

DEBITAMT

number

21

N

0

Debit amount

CRDTAMNT

number

21

N

0

Credit amount

RequesterTrx

i4

2

N

0

Requester transaction:

0=False;

1=True (if True, it populates requester shadow table)

USRDEFND1

string

50

N

<blank>

User-defined field--developer use only

USRDEFND2

string

50

N

<blank>

User-defined field--developer use only

USRDEFND3

string

50

N

<blank>

User-defined field--developer use only

USRDEFND4

string

8000

N

<blank>

User-defined field--developer use only

USRDEFND5

string

8000

N

<blank>

User-defined field--developer use only

The following are the valid distribution types (DISTYPE) for each document type (DOCTYPE):

DOCTYPE

Distribution types

1

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

2

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

3

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

4

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

5

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

6

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

Hint: If you set the DISTTYPE element to 15 (unit accounts), a unit account index is required.

Notice that all the distribution types are valid except DISTTYPE=16. DISTTYPE=16 is reserved. The system uses this distribution type when it needs to automatically create a multi-currency rounding difference.

This node uses document exchange for updates. All existing values are overwritten with the value specified by the update document. If a field in the update is blank, the existing value is changed to be blank.