cancel
Showing results for 
Search instead for 
Did you mean: 

EDI -> SO

Former Member
0 Kudos

Our company is going to be using EDI for orders soon and I had a few newbie questions is there any link between a sales order and an EDI doc? What is the relationship between EDI and IDOCs? Any other beginners info would be beneficial.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear James,

here some additional info, which may be will be helpful for you, if you are beginneer in SD-EDI area.

Concerning EDI concept in SD: the EDI concept is intended to realize the sales and distribution process completely automatically with the help of electronical documents. These documents are sent from one customer to another, are processed mostly on the background and give a possibility to realize the sales process extremely efficiently.

If MM-customer would like to purchase the goods then he creates the IDOC of type ORDERS and send it to SD-customer. On the SD-side the IDOC is processed via the function module IDOC_INPUT_ORDERS and creates the sales order. As confirmation the SD-side can send to MM-side the Order-Response IDOC (function IDOC_OUTPUT_ORDERS). The MM-customer can every thime send a change to the existiong order, then on SD side the ORDCHG IDOC will be processed. It can change the order like in VA02. The creation of the invoice can be made via IDOC of message type INVOIC (function IDOC_OUTPUT_INVOIC).

So, the process can be realized completely automatically between SD and MM partners with the help of IDOCs: ORDERS, ORDCHG, ORDRSP, INVOIC.

That's all concerning the SD-EDI.

Additional processes in SD, where EDI are used:

1) application of delivery schedules to the scheduling agreement: IDOC of type DELINS

2) creation of a delivery order to the scheduling agreement: IDOC of type DELORD

3) creation of external agent service delivery to scheduling agreement: IDOC of type EDLNOT

4) creation of credit advice / credit memo in the frames of self-billing: IDOCs of type GSVERF, SBWAP and for external invoice creation SBINV.

It is all processes which are realized in the SD module via EDI.

There is not so much Customizing for EDI. The most entries are required by EDI for the scheduling agreement processing (DELINS, EDLNOT, SBINV). The Customizing of these processes is located in the Customizing of scheduling agreements: SPRO => Sales and Distribution => Sales => Sales Documents => Scheduling agreements with delivery schedules => Control EDI Inbound processing.

General EDI Customizing in SD is available under: SPRO => Sales and Distribution => Electronic Data Interchange => EDI messages => ...

I hope this info helps.

Kind regards,

Akmal Vakhidov

Development Support SAP, Walldorf/Germany

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Let me try to explain what is EDI and IDOC.

Point

A) Idoc will get trigger only by output.

B) In you o/p determination, for the o/p condition type assing EDI is the medium of output.

C) While you create SO, by o/p determination method it will identify the o/p type and it will check the Medium

D) if your medium is EDI, then it will check to whom the idoc need to be send and what is the receiving system. ( say SP would like to receive the IDOC and that company uses some different ERP.)

E) System check the partner profile of the particular SP and their system mapping with SAP in Tcode WE20.

F) Every idoc has some different type according the nature of the messages it has carry. ( for example Sales order has ORDERS as the message type)

G) Every Idoc has list of segment, and every segment has list down

H) Here from your SO, it captures the value of the prelisted segments

I) Every stages of IDOC will be given by message . (say idoc completed 64 and idoc error 53)

Regards

Former Member
0 Kudos

Dear James,

please go to the transaction VA02 for the sales order. In the upper panel (to the left from the words "Change standard order ..." you will find the button (if it is activated by you) under the name "Services for Object". Press this button, and then in the coming menu press the button "Display relationships". If you do this, then you will see "Relationships for the sales order" and there the number of the IDOC and the message type will be displayed.

If no IDOC number will be shown, then it means, that the order is not created via IDOC.

It is how to see the IDOC number from the sales order.

If you want to see the sales order number from the IDOC, then you can go to the transaction WE02 for the IDOC, expand the option "Status" on the left panel. If the order has been successfully created then the last status message with the status 53 will show the message "Sales order number XXXXX has been created".

I hope, this info helps you further.

Kind regards,

Akmal Vakhidov

Development Support SD, SAP, Walldorf/Germany

Former Member
0 Kudos

I would try to give a broad view...

IDOCS are a the intermediate documents that carry information between 2 systems. In our scenario it may carry information from the Web (for e.g) to SAP. Let us assume that you are buying something on Amazon, you choose your products online and place your order. The information is converted into an IDOC and sent to the SAP system of Amazon(assuming that they use SAP as their core system). When the Idoc is processed a SO is created and it follows the usual routine of SD cycle.

Now if you want to know which particular Idoc created the SO then go to the Sales Order Environment--Services for object when you click this you will get the Idoc that created the order. It is a 1-1 relationship where in each idoc creates a single order.

The Idoc message type normally used is ORDERS with the Basic type being ORDERS04.

Hope this helps...

Former Member
0 Kudos

What would be the IDOC relationship to an EDI document? Where is this seen if possible? Do you know of or have any other beginners info that would help me? Much appreciated.

Former Member
0 Kudos

I still can't seem to find the IDOC that created a sales order, you mentioned Environment--Services but where is that?

Former Member
0 Kudos

Hi James,

For EDI the helpful transaction codes are WE20,WE41,WE02.

In WE20 you can maintain the partner profiles and can assign your EDI program which will send an EDI message to the partner whenever you save your document.

Reward points if it helps.

Regards

Karan