Upload
sony209
View
217
Download
0
Embed Size (px)
Citation preview
7/26/2019 Mapping a Customers EDI Field in to and Then Out of SAP - EDIGenie
1/11
Home Mapping Templates Sample EDI Specs EDI Standards EDI Translators SAP EDI
Communication Services About EDI
Home> Home of all things EDI> EDI Related Posts>
posted May 18, 2015, 9:21 PM by Kevin Wilson [ updated May 18, 2015, 9:27 PM ]
Customers that transact Orders to you via an EDI X12 850 often need you to sendcertain, customer specific, fields back to them on subsequent documents. This is often arequirement at both the header and item levels of the order. A common example of aheader field would be the department number. It makes sense for the customer to havethe department number returned on subsequent documents but we don't have any use forthat number in our SAP system other than to store the details and pass it to subsequent
documents.
In this example I am going to use the Internal Vendor number as my example at theheader level and Customer's PO item number as my example at the item level.
Note: Best practice is to map the Customer PO number to the "Purchase Order Item" field
as shown in the diagram below.
EDI Links
EDI Forum
About EDI
EDI Related Posts
EDI articles on ERPGenie
Looking for EDI experts to
contribute to
EDIGenie.COM
Sitemap
Announcements
July 24th, 2015 - Is EDI
dead? Take the EDI
survey - Click Here
May 18th, 2015 - Ifanyone wishes tocontribute to the newlyrenovatedEDIGenie.COM pleaseContact Us.
May 1st, 2015 - Be sureto subscribe toERPGenie.COM's emaillist - Every 10thregistration is going to geta FREE book!
Other Genie Sites
Genieholdings.com
ERPGenie.COM
Genie Press
Site ownersKevin Wilson
Ok, got it More details
ing a Customers EDI field in to and then out of SAP - EDIGenie.COM http://edi.erpgenie.com/home/home-of-all-things-edi/edi-posts/m
1 12/16/2015 1
7/26/2019 Mapping a Customers EDI Field in to and Then Out of SAP - EDIGenie
2/11
Contents
1 Understanding the Overall Design
2 Following the process
3 STEP 1: Understanding the 850 message
4 STEP 2: Mapping the 850 to the ORDERS IDoc
4.1 Header Mapping
4.2 Item Mapping
5 STEP 3: The ORDERS IDoc
6 STEP 4: The Sales Order
7 STEP 5: Create the Invoice / Billing Document
8 STEP 6: The INVOIC IDoc
9 STEP 7: Mapping the INVOIC IDoc to the 810
9.1 Header Text Mapping
9.2 Item Text Mapping
10 STEP 8: Reviewing the 810 message
11Advantages of doing it this way?
12 Other considerations
ing a Customers EDI field in to and then out of SAP - EDIGenie.COM http://edi.erpgenie.com/home/home-of-all-things-edi/edi-posts/m
1 12/16/2015 1
7/26/2019 Mapping a Customers EDI Field in to and Then Out of SAP - EDIGenie
3/11
Understanding the Overall Design
Any data that your customer want to be returned to them in subsequent EDI documents,
that you don't have a use for, will be passed in and out of sales order header and item textaccordingly. You will need to configure an "EDI Technical Text" for the sales order headerand line as well as for the billing document header and line. You will then use text copycontrol (shown in the diagram below) to copy the text from the sales order on to the billingdocument. This text will then automatically appear in the corresponding INVOIC IDoc and
thus available at mapping time.
The decision tree for customer required fields is as follows:
Is there a standard place for this in SAP1.IF "YES" then map it there1.IF "NO" then2.
Do you require this data for your own process?1.
IF "YES" then create and map to ZFIELD (custom append toVBAK, VBAP)
1.
IF "NO" then map to text field described in this paper2.
Following the process
To describe the process let's refer to the process diagram below and follow the steps bynumber.
ing a Customers EDI field in to and then out of SAP - EDIGenie.COM http://edi.erpgenie.com/home/home-of-all-things-edi/edi-posts/m
1 12/16/2015 1
7/26/2019 Mapping a Customers EDI Field in to and Then Out of SAP - EDIGenie
4/11
ing a Customers EDI field in to and then out of SAP - EDIGenie.COM http://edi.erpgenie.com/home/home-of-all-things-edi/edi-posts/m
1 12/16/2015 1
7/26/2019 Mapping a Customers EDI Field in to and Then Out of SAP - EDIGenie
5/11
STEP 1: Understanding the 850 message
The ANSI X12 850 from the customer has the following 2 segments:
REF*IA*115~
PO1*20* 5*EA* 7. 00** KB* 17* VA* 3234~
The REF segment is qualified by the 1st field (REF01) as "IA" which implies that thecustomer's internal vendor number for us is "115". The customer would like for thisnumber to be returned on the REF segment in the associated 810 Invoice. We canachieve this by updating the external reference field for this customer in master data, but
for the purposes of this paper we will map it in and out of text.
The PO1 segment indicates that the customer's PO item number is "20". Once again thecustomer requires us to pass back this number in subsequent EDI transactions. For thepurposes of this paper we will map it in and out of text.
STEP 2: Mapping the 850 to the ORDERS IDoc
I have used Gentran Server NT's mapping tool to demonstrate what I am doing here.
Header Mapping
Referring to the diagram below you can see that when I am mapping the REF segment Iam looking at the first field (the qualifying field for the segment). If I find the value to be"IA" then I know that I am dealing with the Internal Vendor number so I need to map fieldREF02 to my EDI technical text with the prefix of "Internal Vendor:" (stored in temporaryelement REF_IA). The prefix is important because we will be looking for this text exactlyas is when we map the outbound INVOIC IDoc to the 810 in STEP 7. Element REF_IA is
mapped to TDLINE in the E1EDKT2 segment.
Item Mapping
Referring to the diagram below you can see that I am mapping the PO1 segment element
ing a Customers EDI field in to and then out of SAP - EDIGenie.COM http://edi.erpgenie.com/home/home-of-all-things-edi/edi-posts/m
1 12/16/2015 1
7/26/2019 Mapping a Customers EDI Field in to and Then Out of SAP - EDIGenie
6/11
1 (Item number of the customer) to my EDI technical text for the item, with the prefix of"PO101:". The prefix is important because we will be looking for this text exactly as iswhen we map the outbound INVOIC IDoc to the 810 in STEP 7.
STEP 3: The ORDERS IDoc
The resulting ORDERS IDoc Header text segment looks like this:
ing a Customers EDI field in to and then out of SAP - EDIGenie.COM http://edi.erpgenie.com/home/home-of-all-things-edi/edi-posts/m
1 12/16/2015 1
7/26/2019 Mapping a Customers EDI Field in to and Then Out of SAP - EDIGenie
7/11
And the resulting ORDERS IDoc item text segment looks like this:
STEP 4: The Sales Order
The resulting Sales Order EDI technical header text looks like this:
And the resulting Sales Order EDI Technical Item text looks like this:
ing a Customers EDI field in to and then out of SAP - EDIGenie.COM http://edi.erpgenie.com/home/home-of-all-things-edi/edi-posts/m
1 12/16/2015 1
7/26/2019 Mapping a Customers EDI Field in to and Then Out of SAP - EDIGenie
8/11
STEP 5: Create the Invoice / Billing Document
Now it's time to create the subsequent document for the sales order, namely the billingdocument. Because of the Text copy control from the sales order to the invoice we nowhave the following text on the billing document at the header level:
And the following text on the Invoice / Billing Document item level:
ing a Customers EDI field in to and then out of SAP - EDIGenie.COM http://edi.erpgenie.com/home/home-of-all-things-edi/edi-posts/m
1 12/16/2015 1
7/26/2019 Mapping a Customers EDI Field in to and Then Out of SAP - EDIGenie
9/11
STEP 6: The INVOIC IDoc
The creation of the INVOIC IDoc is typically triggered through output determination. Oncethe INVOIC IDoc for the invoice has been created the EDI Technical text for the headerlooks like this:
And the item text looks like this:
ing a Customers EDI field in to and then out of SAP - EDIGenie.COM http://edi.erpgenie.com/home/home-of-all-things-edi/edi-posts/m
1 12/16/2015 1
7/26/2019 Mapping a Customers EDI Field in to and Then Out of SAP - EDIGenie
10/11
STEP 7: Mapping the INVOIC IDoc to the 810
Header Text Mapping
IF E1EDKT2-TDLINE(16) = Internal Vendor: then map the following:REF01 = IA;
REF02 = E1EDKT2-TDLINE+17(20); "Starting at position 17 read for 20 chars
Item Text Mapping
IF E1EDPT2-TDLINE(6) = PO101: then map the following:IT101 = E1EDPT2-TDLINE+7(10); "Starting at position 7 read for 10 chars
STEP 8: Reviewing the 810 message
The resulting ANSI X12 810 message now has the data that was sent in via the 850 in
STEP 1.
REF*IA*115~
IT1*20* 5*EA* 7. 99*VA* 3234~
Advantages of doing it this way?
With this technique you can do this for any fields that the customers needs back for anyoutbound EDI message to them that come from SAP and linked to the Sales Orderdocument flow. I.e. The requirement for an ASN 856 can be met the same way.
Advantages of this approach include:
No custom fields required to store the dataNo custom code required to implement the solutionOnce the config of the EDI Technical text types are in place any further changes
ing a Customers EDI field in to and then out of SAP - EDIGenie.COM http://edi.erpgenie.com/home/home-of-all-things-edi/edi-posts/m
11 12/16/2015 1
7/26/2019 Mapping a Customers EDI Field in to and Then Out of SAP - EDIGenie
11/11
needed can be completely handled by the EDI mapping team. This is desirablebecause it really is a pure EDI requirement to return a value to the customer thatwe actually have no interest in
Other considerations
Since the EDI technical text is really only utilized by the EDI mapping team andreally should not be seen or at least changed by anyone, consider implementing
some change control or authorizations in order to ensure the integrity of the text ismaintained (i.e. it is not changed)You cannot allow for the manual creation of line items on EDI orders as they willnot contain the EDI text - It is bad practice to allow for the creation of line items onEDI orders so refrain from that practice.
If you have any comments or suggestions just leave a comment below.
Privacy| Terms and Conditions| Contact Us
2015 Genieholdings.com, Inc.
Sign in | Recent Site Activity | Report Abuse | Print Page | Powered By Google Sites
ing a Customers EDI field in to and then out of SAP - EDIGenie.COM http://edi.erpgenie.com/home/home-of-all-things-edi/edi-posts/m