We are trying to create a sales order using the IDoc ORDERS05 with process code ORDE for creating sales order. I am getting the following error "VKORG, VTWEG, SPART cannot be determined for customer 0000006000 , vendor
No sales organization, distribution channel or division were sent to the IDOC. This data is necessary if a sales order is to be added automatically. If this data is unavailable, you cannot create a sales order document.
I was not able to find the fields to fill the distribution channel and divison in the Idoc structure. I have filled in Sales organization in E1EDK14 segment as 3000.
I am not able to figure out the cause for the error.
Same data works fine from BAPI_SALESORDER_CREATEFROMDAT2.
Edited by: Suma B on Jun 17, 2008 11:12 AM
Idoc ORDERS05 should contain the segment E1EDK14 with the following qualifiers:
008 - Sales Organization
006 - Division,
007 - Distribution channel
Check the domain of the QUALF field of the E1EDK14 segment. Fill the E1EDK14 with the above qualifiers and their respective values. This results in creating multiple E1EDK14 segments with the above qualifiers. This will solve your problem.
*******Reward points if useful
Edited by: kiran Bobbala on Jun 17, 2008 11:29 AM
Thanks for your valuable reply, that problem was sorted. I am getting a new error "Fill in all required entry fields" and in the procedure it has been given as "Enter all required information. Fields in which you must enter data are prefilled with a question mark ("?") by the system. If the current screen contains tabs, check all tabs to make sure you have filled in all required fields. Then restart the action.
How can I do this?
Given the error message I assume that the customer number 0000006000 in provided in field E1EDKA1-LIFNR.
If so the system check the EDI customizing (table EDSDC) whether it can map the external customer number into a SAP debitor number including the sales area.
Transactions for EDI customizing:
Then it is likely that the customizing of table EDPAR is missing as well (VOE4).
The EDI orders are coming into our system via a "dummy" partner (WE20) called "CUSTOMER".
Thus, in EDPAR we would have the following record:
KUNNR = 'CUSTOMER PARVW = 'SP' (Sold-to-party) EXPNR = '<external number of customer>' INPNR = <SAP debitor>
In this case I would recommend to debug the IDoc processing.
Call transaction WE19 and start the inbound processing of your IDoc in debugging mode. The error message will most likely occur in function module IDOC_INPUT_ORDERS.
... LOOP AT idoc_contrl. * SET/GET Parameter und interne Tabellen neu initialisieren * initialize SET/GET Parameter and internal tables PERFORM initialize_organizational_data. * IDOC-Segmente in die entsprechenden Anwendungsdaten übernehmen * Move IDOC to internal tables PERFORM interpret_idoc_orders. "<= check here * Prüfen ob gewisse Segmente gefüllt sind * check IDOC-Segments PERFORM check_idoc_segments. "<= check here * Prüfen und Ermitteln von Organisationsdaten * check internal tables and determine organization data ...