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..

Similar Messages

  • Creation of sales order via IDoc ORDERS05 - specify a reason of rejectio

    Hi,
    I want to create a sales order via IDoc (type:ORDERS05), i specify for an E1EDP01 segment a reason of rejection (ABGRU),
    The sales order is created succefully by calling the FM IDOC_INPUT_ORDERS but the order quantity of the item where i have specified a reason of rejection is equals to 0.
    Is this normal? i want that this will take 3 value either 0?
    Could anyone help me?
    Thx

    Hi,
    Thank you for ur answer.
    I've followed the procedure that you have explained and the Quantity 3 have been succefully passed to VA01 but is set to zero when i execute the next OK-CODE (=UER2, i think it is llike Enter button ). I simulate the same procedure by creating a sales order on VA01 and i've finally found the problem : at item level, if i enter the Material (MATNR), the order Quantity (KWMENG) and the Reason of rejection (ABGRU), the quantity is set to zero after clicking the enter button ; but if i enter only The material and The quantity followed by enter button, and enter after the Reason of rejection, it works fine, the Quantity doesn't change.
    What is the solution that you propose to me?
    I've try this one on debugger mode:
    The FM which interpret the Idoc create the sales order by CALLING TRANSACTION 'VA01' USING bdcdata....
    I've modified the bdcdata to implement the sequence of the steps before (MATNR + QTY <ENTER> ABGRU <ENTER>).
    1. Is it possible to code this modification?
    2. Is there a way to structure the Idoc for having this sequence in bdcdata?
    Thanks in advance!
    Narivelo

  • Creation of Sales Order from Notification

    Hi Friends,
    I want create Sales Order from notification..
    As per Std .. Repair Order is there for Service related Sales Order Creation..
              This is Based on  QM06_FM_TASK_RMA_ORDER_CREATE  function Module ..
      I want i want normal Sales order creation from Notification..
      Is there any BADI or User EXIT is there for Sales order creation or calling Sales order creation Trnsaction from Notification..
    please Suggest the solution..

    Why not copy function module QM06_FM_TASK_RMA_ORDER_CREATE  and change as required?
    PeteA

  • Creation of sales order from Non Sap to Sap using sap xi

    hi
    can any body expalin me how to create sales order in sap from data  in MS Sql with highest performance becz the sales order is going to be of around 1000 items ,
    sales order needs to be created in sap
    pl help immediately as its anongoing project
    rgds
    shazia

    Hi,
    Please refer below link for ABAP proxy on server side
    ABAP Server Proxies -- /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    Example for creating proxies and call BAPI via the Exchange
    Infrastructure
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7038b290-0201-0010-41a9-83b61d951c1d
    Setting Up Point-to-Point Connections with proxy
    http://help.sap.com/saphelp_nw04s/helpdata/en/85/78af1bf407434796aaf8dbd6d4e7b7/frameset.htm
    Reliable Messaging – EOIO in ABAP Proxies
    /people/arulraja.ma/blog/2006/08/18/xi-reliable-messaging-150-eoio-in-abap-proxies
    /people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3dfac358-0d01-0010-5598-d4900e81a30c
    RFC/BAPI Communication
    http://help.sap.com/saphelp_nw04/helpdata/en/67/6d0540ba5ee569e10000000a155106/content.htm
    Configuring the Sender RFC Adapter - step by step
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    XI: RFC or ABAP Proxy ? ....ABAP Proxies with attachments
    /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    ABAP Proxy Generation --
    http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/content.htm
    Actiave ABAP Proxies -- /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    ABAP Client Proxies -- /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    Thanks
    Swarup

  • Creation of Sales Order from Service Order

    Hi All,
    I am usind BADI Workorder_update and method at_save to create a Sales Order while saving the Service Order.
    I have created the ZBAPISALESORDER_CREATEFROMDAT2 which is a copy of BAPI_SALESORDER_CREATEFROMDAT2(Since order type was ZDR).
    I have written the following stmt for Debt Memo.
                BUSINESS_OBJECT         = 'BUS2096'              " Debit Memo
    This BAPI is working fine and giving the Sales Order Number as a pop-up for information.
    But now, the problem is coming with Service Order Creation (In the transaction IW31). It is giving short dump while saving the service order after creating the sales order.
    I have checked in the standard code of Service Order. Dump is coming at
    Include : LCOZFU64
    Function Module:CO_ZF_PROJECT_BUDGET_CHECK
    Line : 258
    IF caufvdg-netzkont IS INITIAL.
              CALL FUNCTION 'STATUS_CHECK'
                EXPORTING
                  objnr             = caufvdg-objnr
                  status            = stk_vkt
                EXCEPTIONS
                  object_not_found  = 01
                  status_not_active = 02.
              subrc = sy-subrc.
            ELSE.
            ...ansonsten kann man das an NETZKONT erkennen!
              IF caufvdg-netzkont EQ con_kont_kopf.
                subrc = 02.                "kopfkontiert
              ELSE.
                subrc = 00.                "vorgangskontiert
              ENDIF.
            ENDIF.
    With my code of BAPI, it is returning sy-subrc = 01 (Object not found).
    Without my code of BAPI (Standard code of IW31), it is returning sy-subrc = 02 (status not active) which is the right one.
    Kindly help me in this regard.
    Regards,
    Priyanka Vasudeva.

    Hi,
    There are various scenarios to support end to end work managmenet process in IS-U find attached detail document at link below.
    [http://help.sap.com/saphelp_utilities472/helpdata/en/6a/1a6c35a018d041e10000009b38f839/frameset.htm]
    Scenario A describes process of creating sales order based on service order.

  • TEsting Creation of Sales ORder from we19

    Hi,
    I am trying to create Sales ORder using we19, Idoc isgetting created with eror message as 
    EDI: Partner profile not available
    When posting an Idoc in inbound using Message type where can we maintain the Partner Profiel, is it likem it will look for the partnmer profile of the Kunnr we provided in the IDOC data.
    Please let me know .......
    Thanks and Regards,
    Varun.K

    You need to maintain thru transaction code WE21 and WE20
    Please search here for how to assign message type to partner profile

  • Creation of sales order using IDOC

    Hello All,
    PO is created in a website,which comes to SAP as a Idoc.Sales order need to be created with this idoc information. We are extending ORDERS05, since we are in need to add z segment as a child segment of E1EDKA1 to hold 3 email addresses.
    Could anyone say how to handle these email addresses in SAP and which exit is to be used for the same?
    Is that EXIT_SAPLVEDA_001 or EXIT_SAPLVEDA_004.
    Thanks in advance.
    Meenakshi

    Hi,
    its EXIT_SAPLVEDA_001.
    Regards

  • Creation of Sales order from Purchase Order ( reversal of SO-to-PO)

    Dera friends
    My client has two companies ( two company codes.EPC & EPM)
    EPC- Gives PO to EPM
    EPM will supply the goods. So EPM will accept the PO and send the SO to EPC
    Both the companies are in same client ( 100)
    My client requirement is : Once they create PO from EPC, system should create SO automatically treating PO number as SO no. and all the parameters are same.
    Can any body suggest me a suitable solution for this.
    Thanks & regards
    Atchyuth

    Hi Pradeep
    Basic idea is to generate SO automatically.
    Even it can work from STO also ok. Even in STO we have to create the SO manually, right.
    And also, STO had not been configured for them.
    So they used normal PO process and asked for SO generation.
    Actually, I do not have complete idea about STO and creation of SO. If that can solve the purpose, it would be great. Please suggest me with tips
    Thanks & regards
    Atchyuth

  • Creation of Sales Order and Service Contract from Inbound IDOC

    Hi Experts,
    My requirement is to create a Sales Order as well as a Service Contract from one Inbound IDOC. I am getting the Inbound IDOC from a third Party. The message type is ORDERS and Basic Type is ORDERS02. How ever i am using an extension type IDOC which carries all the required data for Sales Order and Service Contract. My requirement is like, to create a Sales Order first.
    I have created a Z FM which is attached to the Process Code and subsequently to the message type. Inside the FM i an calling FM 'IDOC_INPUT_ORDERS' for creation of Sales Order. After that i am changing the IDOC data for the Document Type. I am changing the document type which is responsible for Contract Creation.
    Then I am again calling the FM 'IDOC_INPUT_ORDERS' for creation of Contract with the help of IDOC data. But here the Contract is not getting created. It's getting failed during the Batch input session.
    I need to solve this problem as soon as possible. Please help me. If there are any other options also please share.
    Thanks in Advance.
    Regards,
    Priyabrata

    Actually there is problem with BDCDATA. Inside the FM it's calling transaction with help of BDCDATA. If i am creating a Sales order or contract alone its creating successfully. But when i am trying to create both, it's retuning sy-subrc '1001' after calling the transaction on the second attempt. Is there any problem with BDCDATA like we can't handle with less time gap? Please help and give your inputs.
    Regards,
    Priyabrata

  • Creating Sales Orders from Quantity Contract - ORDERS05 IDOC

    Hi,
    I have created a Quantity Contract in ECC. Now I want sales orders to be created w.r.t to the Contract through ORDERS05.
    Can anyone suggest which IDOC Segment and Qualf i have to populate to achive the same.
    Also say once I am able to achive the creation of Release Orders from the Contract through ORDERS05. If I surpass the Qty of the Contract . The IDOC should be have a field for notifying the same.
    REgards,
    BInayak

    Hello Binayak
    You  may use the following segment and fields for reference data:
    Segment: E2EDK02
    Fields:
    QUALF : IDOC qualifier reference document - I think for contracts this is '001'.
    BELNR : IDOC document number
    POSNR : Item number
    As per a flag to indicate that the contract quantity is surpassed, I doubt there will be anything like that becasue is an Idoc is before you created the order and how will the system know you have surpassed until an order is entered?
    I think you need to use 'completion rule' and copy control 'update document flow' features to work on this.
    Hope this helps.

  • IDoc and creation of sales order!!

    Hi,
    I need to create sales order using IDoc and the file will have multiple line items for sales order and it has to be dynamic, so whats the best way to do this?
    Regards
    Gunjan

    Hi
    Check for the related IDOC types in EDBAS table and for related Message Types
    in table EDMSG. take relavent one for your requirement and use.
    Data Creation in Idoc
    IDocs are text encoded documents with a rigid structure that are used to exchange data between R/3 and a foreign system. Instead of calling a program in the destination system directly, the data is first packed into an IDoc and then sent to the receiving system, where it is analyzed and properly processed. Therefore an IDoc data exchange is always an
    asynchronous process. The significant difference between simple RFC-calls and IDoc data exchange is the fact, that every action performed on IDocs are protocolled by R/3 and IDocs can be reprocessed if an error occurred in one of the message steps.
    While IDocs have to be understood as a data exchange protocol, EDI and ALE are typical use cases for IDocs. R/3 uses IDocs for both EDI and ALE to deliver data to the receiving system. ALE is basically the scheduling mechanism that defines when and between which partners and what kind of data will be exchanged on a regular or event triggered basis. Such a set-up is called an ALE-scenario.
    IDoc is a intermediate document to exchange data between two SAP Systems.
    *IDocs are structured ASCII files (or a virtual equivalent).
    *Electronic Interchange Document
    *They are the file format used by SAP R/3 to exchange data with foreign systems.
    *Data Is transmitted in ASCII format, i.e. human readable form
    *IDocs exchange messages
    *IDocs are used like classical interface files
    IDOC types are templates for specific message types depending on what is the business document, you want to exchange.
    WE30 - you can create a IDOC type.
    An IDOC with data, will have to be triggered by the application that is trying to send out the data.
    FOr testing you can use WE19.
    How to create idoc?
    *WE30 - you can create a IDOC type
    For more information in details on the same along with the examples can be viewed on:
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm#_Toc8400404
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a6620507d11d18ee90000e8366fc2/frameset.htm
    http://www.sappoint.com/presentation.html
    http://www.allsaplinks.com/idoc_search.html
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://www.erpgenie.com/sapedi/idoc_abap.htm
    To Create Idoc we need to follow these steps:
    Create Segment ( WE31)
    Create Idoc Type ( WE30 )
    Create Message Type ( WE81 )
    Assign Idoc Type to Message Type ( WE82 )
    Creating a Segment
    Go to transaction code WE31
    Enter the name for your segment type and click on the Create icon
    Type the short text
    Enter the variable names and data elements
    Save it and go back
    Go to Edit -> Set Release
    Follow steps to create more number of segments
    Create IDOC Type
    Go to transaction code WE30
    Enter the Object Name, select Basic type and click Create icon
    Select the create new option and enter a description for your basic IDOC type and press enter
    Select the IDOC Name and click Create icon
    The system prompts us to enter a segment type and its attributes
    Choose the appropriate values and press Enter
    The system transfers the name of the segment type to the IDOC editor.
    Follow these steps to add more number of segments to Parent or as Parent-child relation
    Save it and go back
    Go to Edit -> Set release
    Create Message Type
    Go to transaction code WE81
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter
    Click New Entries to create new Message Type
    Fill details
    Save it and go back
    Assign Message Type to IDoc Type
    Go to transaction code WE82
    Change the details from Display mode to Change mode
    After selection, the system will give this message “The table is cross-client (see Help for further info)”. Press Enter.
    Click New Entries to create new Message Type.
    Fill details
    Save it and go back
    Check these out..
    Re: How to create IDOC
    Check below link. It will give the step by step procedure for IDOC creation.
    http://www.supinfo-projects.com/cn/2005/idocs_en/2/
    ALE/ IDOC
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.docs
    go trough these links.
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.sappoint.com/abap/ale.pdf
    http://www.sappoint.com/abap/ale2.pdf
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/0b/2a60bb507d11d18ee90000e8366fc2/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/78/217da751ce11d189570000e829fbbd/frameset.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sappoint.com/abap.html
    http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    http://www.sapgenie.com/sapgenie/docs/ale_scenario_development_procedure.doc
    http://edocs.bea.com/elink/adapter/r3/userhtm/ale.htm#1008419
    http://www.netweaverguru.com/EDI/HTML/IDocBook.htm
    http://www.sapgenie.com/sapedi/index.htm
    http://www.allsaplinks.com/idoc_sample.html
    http://http://help.sap.com/saphelp_erp2004/helpdata/en/dc/6b835943d711d1893e0000e8323c4f/content.htm
    An IDoc is simply a data container that is used to exchange information between any two processes that can understand the syntax and semantics of the data...
    1.IDOCs are stored in the database. In the SAP system, IDOCs are stored in database tables.
    2.IDOCs are independent of the sending and receiving systems.
    3.IDOCs are independent of the direction of data exchange.
    The two available process for IDOCs are
    Outbound Process
    Inbound Process
    AND There are basically two types of IDOCs.
    Basic IDOCs
    Basic IDOC type defines the structure and format of the business document that is to be exchanged between two systems.
    Extended IDOCs
    Extending the functionality by adding more segments to existing Basic IDOCs.
    To Create Idoc we need to follow these steps:
    Create Segment ( WE31)
    Create Idoc Type ( WE30)
    Create Message Type ( WE81)
    Assign Idoc Type to Message Type ( WE82)
    imp links
    http://www.allsaplinks.com/idoc_sample.html
    http://www.sapgenie.com/sapedi/idoc_abap.htm
    www.sappoint.com
    --here u can find the ppts and basic seetings for ALE
    http://sappoint.com/presentation.html
    www.sapgenie.com
    http://www.sapgenie.com/ale/index.htm
    Reward points if useful
    Regards
    Anji

  • 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

  • No commitment Item Update while creation of Sales order

    hi,
    I have  maintained Derivation Rule
    Co Code / GL/ BA/ Plant / S Loc/ = Fund / Comitement / Fund Center.
    Stil in that case at the time of creation of Sales order, systeme is giving error (++No commitment Item Update M V2225++)
    And also i have maintained the Comitement Item in GL master.
    Could you give me some solution.
    Thanks
    Nilesh R

    Hi Nilesh R,
    Please check the following information of Consulting Note 1268001 (the same for funds center is valid to commitment item):
    1.  You receive the error message in a Sales Order (SD) process.
       a) SD customizing settings for FM objects.
       You can set "commitment item" as an optional entry in SD customizing settings for field status. This can be checked in the IMG path: SPRO -> Public Sector Management -> Funds Management Government-> Actual and Commitment Update/Integration -> Integration ->
       Maintain Field Status for Assigning FM Account Assignments
       You should have a record with Object type = '04' (sales order).
       It is not necessary to have the field as required (unless you want to insert it in the origin process) due to the fact that
       this can avoid the account assignment derivation between CO objects and FM objects. The field can not be hidden otherwise it will be not derived.
       For more information, check note 572729.
    The system response depends on how you defined the fields of the FM dialog box using Customizing activity 'Maintain Field Status for Assigning FM Account Assignments':
         -  The fields of the FM dialog box are defined as ready for input ('Opt. entry' or 'Req. entry') in Customizing:
            If you change the reference object in the sales order, the system does not re-derive FM data automatically. For that, you
            must navigate to the FM dialog box and, by choosing icon 'Redetermine account (F5)', trigger the derivation manually.
         -   The fields of the FM dialog box are defined as not changeable ('Display') in Customizing:
             If the reference object is changed in the order, FM data is redetermined automatically.
         -  The fields of the FM dialog box are defined as not displayable ('Hide') in Customizing:
             FM data is not determined.
    Therefore, set the field status to optional permit the user to enter the FM objects manually and still benefit from the possibility to
    automatically derive the FM objects from a CO object.
    For more information on integrating Plant Maintenance, Sales and Distribution and Project System, see the SAP Library Accounting -> Public Sector Management -> Funds Management -> Actual and Commitment Update -> Integration with Plant Maintenance, Integration with Sales and Distribution and Integration with Project System (Network).
    You can also check the documentation available in the IMG menu of the status (written above).
       b) If you do not want to integrate sales order process within PSM-FM, you should consider to deactivate this integration in
          customizing transaction OFUP. In release EA-PS 1.10 and 2.00 modification note 591573 is available.
    Please also check consulting note 1267998 and let me know if you have used FMDERIVE trace tool.
    If you want to have SD integrated to FM, please check if in OFUP the flag of this integration is accordingly set.
    If you work with free-of-charge sales order line items mixed with line items having value, please consider to apply note 1441847 (if it is valid to your current release/package).
    I hope this answer your inquiry.
    Best Regards,
    Vanessa Barth.

  • 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

  • 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 .

Maybe you are looking for

  • My g5 wont let me download anything. everytime i try it says cannot open because it is not supported by this architecture someone please help

    IM HAVING TROUBLE DOWNLOADING THINGS ON MY MY MAC G5. EVERYTIME I TRY TO DOWNLOAD SOMETHING A SCREEN POPS UP SAYING "CANNOT OPEN APPLICATION BECAUSE IT IS NOT SUPPORTED BY THIS ARCHITECTURE" SOMEONE PLEASE HELP

  • Question about parallels desktop

    Hello! I have a little problem with my Parallels Desktop. I have installed a windows xp operating system with parallels desktop, but the virtual video card's memory is only 256Mb. In Mac OS X i have 2 video cards. One with 256Mb memory and one with 5

  • Poker in NJ

    Party Poker platform does not recognize me in New Jersey.  Was told I need to remove remote desktop softway by: Using the activities monitor in utilities folder and dragging to trash. Can anyone put this in terms I can understand?  I have OS X 10.9.

  • Solve: instr/substr

    Please help solve this question i am stuck on We have the following value that we can use: Numeric: 0-34 and 80-100 only or Non Numberic X S U D- D D+ Have to use INSTR and SUBSTR functions to test that the value is a valid (for now only trying to cr

  • Need help making indented dots

    I'd like to make some dots similar to this attached clip. I have tried embossing, etc. but they don't look quite like this. I'm on a MAC, Photoshop CS3. Thanks in advance for your help!