2008 Jun 17 10:10 AM
Hello Experts,
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
".
Diagnosis
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.
Please help.
Thanks,
Suma
Edited by: Suma B on Jun 17, 2008 11:12 AM
2008 Jun 17 10:26 AM
You need to specify multiple E1EDK14 segments on the IDoc. Look at transaction WE60 for a desc of the available optioins for this segment using the different qualifiers.
2008 Jun 17 10:26 AM
You need to specify multiple E1EDK14 segments on the IDoc. Look at transaction WE60 for a desc of the available optioins for this segment using the different qualifiers.
2008 Jun 17 10:28 AM
Suma,
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
Regards,
Kiran Bobbala
Edited by: kiran Bobbala on Jun 17, 2008 11:29 AM
2008 Jun 17 11:12 AM
Hello Kiran,
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?
Thanks
Suma
2008 Jun 17 2:49 PM
I would suggest you to create the Sales order manually and note all the required fields. Now create an idoc by filling all the required fields in the segments and try to post it.
Hope it may solveyour problem.
Regards,
Kiran Bobbala
2008 Jun 17 11:30 AM
Hello Suma
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:
VOE2
VOE4
Regards
Uwe
2008 Jun 17 1:31 PM
Hello Uwe
I have given the partner in the same field E1EDKA1-LIFNR.
As you have said, I have customized VOE2 and still find the same errro 'Fill in all required entry fields'.
Thanks,
Suma
2008 Jun 17 1:37 PM
Hello Suma
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>
Regards
Uwe
2008 Jun 18 9:06 AM
Hello Uwe,
After, I maintain "VOE4" still I am getting the same error.
Thanks
Suma
2008 Jun 18 10:23 AM
Hello Suma
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
...
Regards
Uwe
2008 Jun 18 3:48 PM
2011 Apr 02 5:28 AM
I faced with the same problem.
Through debug the inbound function .
I found it is casued by missing city in customer master data.
Frank Yue
2024 Aug 15 12:23 PM
you need to maintain VOE2 transaction and make sure that your BP is maintaind in the BP transaction for the sales organisation, distribution channel and division.