Está en la página 1de 3

Inbound Mapping for 810 invoice

810 data used by our current system:


GS segment:

uses Corp-supplier- number to decide if interunit (last 5 bytes blank)


retrieves supplier info from CPS to get invoice processor processor
& suppliers country (suppliers country becomes the default currency)

All 6 byte dates are extended to 8 byte dates via the corporate splitter date routine so is year 2000 capable
BIG segment:

Invoice-date
- used for invoice-date
Invoice-number - uses right most 12 non-blank bytes
PO-number
- uses as line PO when no line Po exists

CUR segment: Currency-cde

- would overlay currency set earlier from supplier

REF segment: Ref-nbr-qlf


Ref-nmb

- PK (packing list number) (only PK is used)


- uses right most 13 non-blank bytes of packing list number

DTM segment: Date-time-qlf


Date

- 011 (shipped date) (only 001 is used)


- used for material-shipped-date

IT1 segment:

Qty-invoiced
- used for invoice-line-quantity
Unit-price
- used with Qty-invoiced & Bas-unt-pr-cde to get line-extension
Bas-unt-pr-cde - used with Qty-invoiced & Unit-price to get line-extension
Prod-srv-qlf
- PN or PI or BP (item number), RC (returnable container),
PO (purchase order number)
Prod-srv-id
- If item number, use right most 12 non-blank bytes & used for
invoice-line-item-number
If purchase order number use leftmost 6 bytes & use for invoiceline-PO-number
If returnable container, conversion routine is called to convert to
CAPS container code. If conversion unsuccessful, leftmost 3 bytes
is used. It is used for container-code
Prod-srv-qlf-2 same as Prod-srv-qlf
Prod-srv-id-2 same as Prod-srv-id
Prod-srv-qlf-3 same as Prod-srv-qlf
Prod-srv-id-3 same as Prod-srv-id

IT3 segment:

Nbr-units-shp

when non-zero, Qty-invoiced from IT1 becomes line-alternatequantity & this becomes invoice-line-quantity

ITA segment: Allow-crg-ind


Spec-srv-cde
Spec-crg-cde
Allow-crg-tot

A or C, If A multiple Allow-crg-tot by -1
many codes accepted
many codes accepted
can become many fields: freight-equalization, tax, tax2, freight,
special-charge (invoice header), added to line extension, a container
line, special-charge (invoice detail)

SAC segment Allow-crg-ind


(this seg
Spac-code
replaces
ITA in
Amount
3030)

A or C, If A multiple Allow-crg-tot by -1
many codes accepted

can become many fields: freight-equalization, tax, tax2, freight,


special-charge (invoice header), added to line extension, a container
line, special-charge (invoice detail)

CTT segment:

used along with TDS segment to indicate whether an ITA segment


is in detail or summary area

TXI segment: Tax-type-cd


Amount

GS (goods & services tax) (only GS is used)


becomes invoice-tax2

TDS segment: Tot-inv-amt

becomes invoice-total-amount

INVOIC01 IDoc mapping from RDJET810 layout for Inbound 810 for MM Invoice

IDoc Seg

Field

EDI Seg

E2EDK01

CURCY
BSART

CUR

inv-

COBOL Field Name

Hard Code

currency-cde
CRME (only populate this if Totamt of TDS seg is less than

0)
E2EDKA1 PARVW
PARTN

Any rec

LF

E2EDKA1 PARVW
NAME1

N1

name (for Bill-to)

E2EDK02 QUALF
BELNR

BIG

invoice-number

BIG

invoice-date

RE
009

E2EDK03

IDDAT
DATUM

E2EDK05

ALCKZ
KSCHL
KOTXT
BETRG

ITA
ITA
ITA
ITA

E2EDK05

ALCKZ
KSCHL
KOTXT
BETRG

SAC
SAC
SAC
SAC

E2EDK14

QUALF
ORGID

GS

in

corp-supplier-number

012

allow-crg-ind (A = -, C = +)
spec-srv-cde if non-blank else spec-crg-cde
description
allow-crg-tot
allow-crg-ind (A = -, C = +)
spac-code
description
amount

(this ITA must be after the


TDS segment)

(this SAC must be after the


TDS segment)

011
Company Code based on receiver-id
GS segment

E2EDP01

MENGE
MENEE
BMNG2
VPREI

IT3
IT1
IT1
IT1
IT1

nbr-units-shp (if exists) else


qty-invoiced
unt-meas-cde
qty-invoiced
unit-price

PEINH
corresponding

IT1

Bas-unt-pr-cde

(converted to
number ie. 10, 100,

1000)

(above 3 fields for documentation only - not

used
E2EDP02

E2EDP19

E2EDP26

001
IT1

ZEILE

IT1

PO-number (see above to determine)


Or RC if this is a returnable container line (Prod-srv-qlf = RC)
PO-line-nbr

QUALF
IDTNR

IT1

001
item-number or returnable-container number

QUALF
BETRG

IT1

E2EDP05

ALCKZ
KSCHL
KOTXT
BETRG

ITA
ITA
ITA
ITA

E2EDP05

ALCK Z
KSCHL
KOTXT
BETRG

SAC
SAC
SAC
SAC

E2EDS01

by SAP)

QUALF
BELNR

SUMID
SUMME

003
calculated line-extension

(BMNG2 *
(VPREI / PEINH)

allow-crg-ind (A = -, C = +)
(this ITA must be after IT1
spec-srv-cde if non-blank else spec-crg-cde
seg & before TDS seg )
description
allow-crg-tot
allow-crg-ind (A = -, C = +)
spac-code
description
amount

(this SAC must be after IT1


seg & before TDS seg)

011
TDS

tot-inv-amt

More Details
E2EDK05

For each ITA seg in summary area build this segment. If a charge (C) then use + if
allowance (A) then use -.
This will be for documentation only SAP does not use this info

E2EDP05
if

For each ITA seg for this detail line build this segment. If a charge (C) then use +
allowance (A) then use
This will be for documentation only SAP does not use this info

When an IT1 seg has an occurrence of RC (returnable container) then a P01, P02 (with RC), P19 (with container
code), and P26 need to be built for this returnable container.

También podría gustarte