Sale Order from Inbound IDOC

I am testing creating Sale Order from inbound IDOC with WE19.
Partn. number = AAA001
Partn. type = KU
Partn.func = PY
Message Type = ORDERS
Process Code = ORDE
I get message 51 "Error: Application document not posted" in IDOC status:
VKORG, VTWEG, SPART cannot be determined for customer AAA001 , vendor                                                                               
Message no. VG 204                                                                               
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.                                                                               
Procedure                                                                               
If data on the sales organization, distribution channel and division   
    have not been entered in the IDOC, it must be determined using a user  
    exit defined in the program.

I will receive IDOC from external non-SAP system.
How can i populate E1EDK14 segment with appropriate values:
E1EDK14 -QUALF = 006
E1EDK14 -ORGID = Division (VBAK-SPART)
E1EDK14 -QUALF = 007
E1EDK14 -ORGID = Distribution Chanel (VBAK-VTWEG)
E1EDK14 -QUALF = 008
E1EDK14 -ORGID = Sales Organisation (VBAK-VKORG)
If external system does not know this values?
Edited by: S S on Feb 28, 2009 12:46 PM

Similar Messages

  • Error determining posting period(infostructure S008,Variant Z2,RC3) while creating Sales orders from Inbound IDOCS

    Hello,
    I am getting this Error message"error determining posting period(infostructure S008,Variant Z2,RC3)" while creating Sales order from Inbound Idocs in the IDOC,which is affecting sales order creation.
    While viewing this Info structure S008, I could see no records have been maintained. Wanted to know the reasons behind this Hard error?
    Is it something related to Date Field used in the Update Rules for this Infostructure which is causing this posting period error?
    Appreciate your inputs on this.
    Thanks and Regards
    Mohammed Roshan

    Thank you Jelena,I checked the Ship. Delivery dates in the IDOC which are for Current Fiscal Year- 20140703 and 20140711,Could there be any other reason for this error?
    Could it be an issue with e Update rule in this Infostructire S008
    Secondly when we try change the update rule thru MC25 for this Infostructure S008,It gives a message"
    "Maintenance of SAP standard updates not allowed"
    Kindly advice
    Thanks and Regards
    Mohammed Roshan

  • Item text not getting copied into sales order from inbound Idoc

    Hi All,
    I have a scenario where in we get the sales order created through a inbound 850 idoc .
    The trading partner sends the sales order information which gets through GENTRAN and gets posted as inbound idoc in SAP .
    The problem here is that ,there are segments with values for item text in the idoc ,but the item text is not getting carried over to the sales order which is getting created because of this idoc.
    There is no problem with the header text and it is present both at the idoc as well as the sales order level.
    I have checked the configuration for text determination and everything looks fine .
    Please let me know has anyone come across a scenario like this .This is important as our EDI is getting failed when an outbound 810 is sent from SAP for the simple reason that there is no item text .
    Thanks
    Sridhar

    Hello Sridhar
    Do you have access to the genuine 850 EDI message? Does it contain the item texts? If so then there is probably a problem with the (XSLT) mapping EDI 850 -> ORDERS.ORDERS05 IDoc.
    Are you able to test the mapping independent of the EDI transmission? This way you could nail down the problem.
    Regards
       Uwe

  • Issue while trying to create Sales Order from Inbound Idoc ORDER05

    Hi All,
    I am trying to create a sales order through an Inbound idoc ORDERS05 created out of a Purchase order. The header pricing conditions from the Purchase orders gets populated in E1EDK05 segment and this needs to go to the Sales order header conditions while trying to create the Sales order.
    But when the fields are getting incorrectly mapped to the Sales order. Issue  being, the segment E1EDK05-BETRG contains the condition value. But this fields gets populated to the KOMV-KWERT (condition value) screen field on the Sales order header conditions. But this should have got mapped to field KOMV-KBETR (Rate). If I look at the Purchase order, E1EDK05-BETRG is the field getting fetched from field KOMV-KBETR on the Purchase order. So this should have correspondingly got mapped to KOMV-KBETR on the Sales order as well.
    This looks like a standard behavior. But if any of you have encountered this issue before please let me know if any Correction instructions are available for the same. If this some issue in Pricing conditions configuration, do let me know.

    Hi Paaavan
    You can set a break-point include "FV45PFAP_VBAP_BEARBEITEN_VORBE" that is called by both the SAP Standard and BAPI where the data is prepared and checked in the internal table XVBAP. Compare both SAP standard VA01 and your 'Z' program for what may be different in XVBAP.
    I think the problem my be with regards to the business_object number that is hardcoded in the standard function module. It has given me issues before and hence I tend to use the function module  SD_SALESDOCUMENT_CREATE to create sales documents with.
    Regards,
    Marius

  • Purchase Order triggering Sales Order using Inbound Idocs

    Hi All,
    Can any one explain the flow of Purchase Order triggering Sales Order using Inbound Idocs..??
    Thanks & Regards
    Anoop

    Use search tool to find sample like Integrating MM & SD Modules in Same Client to Create Sales order in Supplying Company Code Using PO raised in Receiving Company Code By I-Doc Message Type ORDERS Part1,  Part 2 and Part 3.
    Regards,
    Raymond

  • Creation of  sales order using inbound idoc

    hello all,
             I have a scenario where i need to read data from a flat file, then create a sales order with the flat file data using IDOC. we can also create sales order using BAPI but the problem is that we need to handle serveral errors so we want to use IDOC.
           we are trying to use the function modules 'Idoc_input_orders'  but we are not sure how exactly we need to pass the parameters into the function module, actullays data control structure is asking for different parameters like partner, idoc number, idoc port etc which we need not have as we are processing it internally in the same system.
        It would be great if some one could help me regarding.
    Thanks
    krishnam raju N
    Message was edited by:
            krishnam Raju N
    krishnam Raju N

    Hi,
    see FUNCTION 'IDOC_INBOUND_FROM_FILE'
    Regards,
    Clemens

  • Creation of Sales order through inbound idoc

    Hi,
    I'm using two servers 100 and 200.In 100 i'm creating outbound IDOC for PO,In 200 sales order has to be created for that PO.I'm facing some problem in server 200.
    Error i'm facing  : Partner profile not available.
    I done all the basic setting like Logical system,Port and Partner profile creation in both servers.
    Kindly advice.
    By,
    Sathish.

    Hi Satish,
    Are you sure  WEL1 setting is correct?
            The message seems to be telling you that it is looking for a vendor with
    number 00000000 (zero) which doesn't sound too good to me.
    You therefore bill the intercompany customer in sales org 0021 (the
    intercompany receivable is in 0021). The intercompany payable is thus in
    company code 0043, so that looks right.
    Other things to check:
    1. Does your IV billing document get generated in sales organisation
    0043 with customer 300043 as the bill-to?
    2. Check the number of 0's you have in WEL1 Log.addr field. We use
    alphanumeric customer numbers for our "internal" customers so there's
    not an issue with leading zeroes, but it might be a problem for you. it
    seems you've got it right because you've padded with leading zeroes to
    get it to 10 long, but you never know.
    3. have you created your RD04 condition records in VV31 correctly?
    I guess u may find the answer to this link.
    http://sap.ittoolbox.com/groups/technical-functional/sap-log-sd/intercompany-billing-edi-partner-profile-not-available-1409203
    Thanks
    Mohinder Singh Chauhan

  • Creating Sales Order using inbound IDOC

    hi,
    Using test tool WE19 if i create sales order in foregound no error occurs and order is created successfully but if i try to create in backgound it gives error "No batch input data for screen SAPMSSY0 0120".
    please suggest a way out .

    I hope you do not have any popup windows during your order create, popups should be suppressed for batch-input.
    try to run it in foreground and check if there is any warning message which forces you to press Enter once more to bypass it.
    try to process it in "foreground after error" to see if it stops on any error/warning message.

  • Create Sales order from Internal Purchase Order using IDOC

    Hello Friends,
    I have requirement to create Sales Order from Internal Purchase Order Using IDOC.
    Backgorund, we have already configured IDOC orders05 to create Sales Order from external Purchase order from Inbound IDOC, and it is working fine.
    Now we have new requirement to create Sales Order from our own Purchase order, i.e. When PO is created in one plant corresponidng sales order automatically must needs to create in another Plant with respect PO.
    I m trying to design a solution for above problem as follows,
    1.create an Inbound Idoc from PO, by creatiing one new message type on PO save.
    2.Process that Inbound  IDOC same as it is from external PO.
    3.Once processed Sales order will create.
    Please help me in step 1. to create Inbound IDOC from PO.
    If you want any further clarification please write me.
    Thanks,
    Mahesh

    I had done a similar scenario before and we achieved it through SAP XI. The problem is with the control record. When we create a ORDERS IDOC from a PO the control record will be for outbound transmission. We sent the file to XI and XI resent it back with some data parsing and a new inbound control record. This way it went neat outbound and inbound.
    I'm not sure what kind of architecture you have. If you have to do it within your ECC/R/3, then you could create the outbound IDOC to a new port and write a fresh RFC to pick it up from the same folder and create a new control record for inbound processing.
    I haven't tried this; but there is a "processing w. trigger (inbound)" option on the outbound process code. May be you can explore into that a bit more.
    I'm sure there could be better approaches to handle this within ECC so if you stumble on any, do write back. I would like to know to update my knowledge .

  • Creation of sales order from idoc; items referencing to different contracts

    Hi All,
    My requirement is to create sales order from an idoc.
    IF a sale order contains multiple items , then the order should be created with contract referenced
    -at the So item level, the valid contract found for each material is different
    hence am not able to use the following bapis
    BAPI_SALESORDER_CREATEFROMDAT2  is not triggering the copy controls.
    BAPI_SALESDOCUMENT_COPY  i can give only one reference document
    Please help
    Thanks
    Deepa

    Hi Deepa,
    Following link can help you for creating sales order with reference
    http://msdn.microsoft.com/en-us/library/cc185190.aspx
    http://www.sap-img.com/fu036.htm
    Award points if useful
    Thanks,
    Ravee..

  • Reg. changing sales order through incoming idoc

    Hi,
    I am tyring to change a sales order from inbound edi through idoc type ORDERS05 and message type ORDCHG. Can you please provide me a link for sample mappings/gaps ?
    I am mainly trying to change line items/ quantity/prices. Please give me an idea about qualifiers and mappings to use.
    I appreciate.
    Thank you.

    Friends,
    Any ideas  about solution reg. this question ?
    Thank u.

  • Need to create sale order from the flat file & mail has to be sent

    Hi Experts,
              I have a requirement to create a sale order from a flat file and once the oder is created, mail has to be sent to customer as well as to internal user with the order details. I want to know how this process can be implemented and what adapters are needed to execute this.
    it would be very helpful, if i get an step-by-step procedure.
    Points assured for any helpful answers.
    Thanks in Advance
    Jai

    HI Jai,
    You need to create two interfaces as file will be sending the Sales oreder details that you need to capture in IDOC or RFC and then have to trigger to create the sales order. For this Standard BAPIs are also available.
    These RFC or BAPIs will response with Sales order details that you need to divert to Mail adapter with the use of BPM and also have to go for Async to Sync bridge.
    File -
    >XI (BPM) ---> BAPI/RFC  (Request)
    MailAdapter <- XI (BPM) <--- BAPI/RFC (Response)
    For this refer below links for step by step
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] - File to Mail
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm - Walk through BPM
    /people/siva.maranani/blog/2005/05/22/schedule-your-bpm - Schedule BPM
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi - Use of Synch - Asynch bridge in ccBPM
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] - Use of Synch - Asynch bridge in ccBPM
    If you will use IDOC then In IDOC inbound processing you need to trigger for Sales order creation and then have to send the Sales Order generated IDOC as an Outbound to Mail Adapter
    Flat file -
    > XI ---> IDOC
    IDOC -
    > XI ---> Mail
    This will be bit easy scenario to develope as compare to using BAPI with BPM
    /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping - Any flat file to any Idoc
    configuring IDOC-XI-Mail scenario using following web-log:
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/sravya.talanki2/blog/2005/08/18/triggering-e-mails-to-shared-folders-of-sap-is-u - Triggering Email from folder
    Thanks
    Swarup

  • I want to load a sales order from xml file. How can I do.

    Hi,
    I want to load a sales order from XML  file. How can I do ? how can i create the sales order?
    what are the necessary  setting for  create the sales orders.
    with Regards,
    Prakesh.

    Three options come to my mind.
    Option 1: Use SAP transaction SXDA_TOOLS (Object Type BUS2032), Program Type (BAPI) and Program (CREATEFROMDAT2).
    Option 2: Use SAP transaction SXDA_TOOLS (Object Type BUS2032), Program Type (DINP) and Program (RVINVB10).
    Option 3: Translate the xml to IDoc so that ORDER04 / ORDER05 Idoc can be used to create Sales order (WEDI transaction).

  • Transfer Sales orders from sap to non sap

    Hi,
    I want to tranfer the data meaning sales orders from my SAP system to
    external system
    Has anybody worked on this or any ideas.
    Rgds

    Hi,
    Use orders idoc and IDOC_OUTPUT_ORDERS Function module to sent the sales order data from SAP to other system. Please check you have all the ALE configuration done in your systems.
    KR Jaideep,

  • Creating inbound delivery without reference to PO - from inbound idoc

    Hi guys,
    I have a scenario wherein I need to create inbound delivery from inbound Idoc from external system without reference of PO. There is no PO created in SAP and this inbound delivery will be used just to receive material (purely for logistic purpose).
    I have identified DELVRY03 or 05 as Idoc type but I am not sure whether system will create inbound delivery without having reference PO. I have two questions here -
    1. Can we create inbound delivery without reference to PO?
    2. If yes, which Idoc type should I use to create such inbound delivery?
    Please help.
    Thanks,
    Parimal.

    Dear Parimal,
    In standard, An inbound delivery can be created as follows:
    With reference to a purchase order
    With collective processing for several purchase orders
    With reference to a stock transport order
    With reference to a customer return

Maybe you are looking for