Initiate Sales Order IDOC creation

I configured Message Control for sending IDOC on Sales Orders create / change in VA01 / VA02. It works.
IDOC type: ORDERS05
FM: IDOC_OUTPUT_ORDRSP
2 questions:
1) How can i send the same IDOC from my program whenever i want. In other words - initiate Sales Order IDOC creation.
2) Will be IDOC sent when Sales Order status is changed:
- Delivery in VL01N
- Sales Order is canceled

Hi,
Please clarify if you want to send all the sales order by a report or sales order for specified condition. If you are able to find a standard program that populates ORDERS05 idoc type and send it is well and good. other wise you need to fill these segments by custom select statement and send it.
Thanks & Regards
Ramachandran Babu

Similar Messages

  • Sales Order IDOC creation using IDOC_INPUT_ORDERS

    I am trying to create a Sales order IDOC (Inbound) from a flat file using the FM - IDOC_INPUT_ORDERS .
    I am able to create the sales order. But I don't see the idoc getting generated anywhere.
    I see the import parameter - DOCUMENT_NUMBER coming blank. Why is the IDOC not getting generated ?
    Any tips will be useful ?
    Can we create Inbound SAles Order IDOC using 'MASTER_DISTRIBUTE_IDOC'  FM ?
    THanks.

    Hi Shareen Hegde 
    To create Inbound...idoc
    Use the Function Module in you Program : IDOC_INBOUND_WRITE_TO_DB to create the Inbound idoc
    Pass the Control record and Data record in FM.....
    Use Message type : Orders
    IDoc type : Orders01 or 02 or 03 or 04 or 05 ....  which ever suite for your requirement....
    Process Code : ORDE
    When ever your custom program for creating the inbound sales order with  runs .....
    it call the internally FM IDOC_INPUT_ORDERS to create the Sales order...
    or
    If you are getting the inbound idoc from subsystem .....then check you partner profile ,Message type ed and Process code is correct or not....
    I hope this resolves your issuse..
    Ramesh

  • How to transfer sales order idoc from R/3 to CRM

    Hi,
          I want to generate the sales order idoc in R/3 (ORDERS) and replicates to CRM through XIF adapter.
    The sales documents are not realy existing in R/3. We can only get the information from related biling documents and try to gerenate ORDERS idoc.
    The problem is how to map R/3 idoc to CRM idoc(CRMXIF_ORDER_SAVE_M01). The administration console seems can only send the idocs but not receiving them.
    Thanks,
    Ina

    Hello Yina,
    Can you please answer the questions? I am a little bit confused.
    If you don't have the order in R/3, are you not going to create one when creating the ORDERS IDoc? If yes, then this order will go to CRM automatically if you have the middleware set properly.
    If you are NOT creating any order in R/3 during the IDoc step, Why would you want the order in CRM when you don't have it in R/3?
    Are you not going to keep the middleware between R/3 and CRM open? If you keep it open, the order from CRM will crossover to R/3 - in which case you could have created the order in R/3 in the first step itself !!!
    If you are not keeping the middleware open between R/3 and CRM - I don't know why would you want to keep the orders in CRM, but not in R/3. Is it because of lack of good CRM consultants in the project?
    Easwar Ram
    http://www.parxlns.com

  • No batch input data for screen SAPMSSY3 0131 in Sales order IDOC

    I am processing Sales order IDOCS in status 64 using RBDAPP01 .Some of them error out to status 51 with the message -
    No batch input data for screen SAPMSSY3 0131 .
    I know the standard IDOC inbound process tries to simulate the posting in a BDC like process.
    Now, I went to we19 and the screen hangs up in a pop up in the partners tab with partner type 'WE' and my shipto (which is actually filled in the IDOC), missing..upon repeatedly hitting enter, it goes thru and an idoc is posted in status 53. But still unable to get through the root of this issue.
    Any, insight will help.

    Hi,
    I think the pop-up is generated through and user-exit for which recording is missing. This is why your idoc stays in status 64...
    Handle the screen recording in the user exit IDOC_INPUT_ORDERS
    user exit routine
    PERFORM customer_function_dynpro.
    FORM CUSTOMER_FUNCTION_DYNPRO.
      CALL CUSTOMER-FUNCTION '002'
        EXPORTING DXVBAK   = XVBAK
                  DVTCOMAG = VTCOMAG
                  DLAST_DYNPRO = LAST_DYNPRO
                  DXMESCOD = IDOC_CONTRL-MESCOD
        TABLES    DXBDCDATA = BDCDATA
                  DXVBAP    = XVBAP
                  DXVBEP    = XVBEP
                  DYVBEP    = YVBEP
                  DXVBADR   = XVBADR
                  DYVBADR   = YVBADR
                  DXVBPA    = XVBPA
                  DXVBUV    = XVBUV
                  DIDOC_DATA = IDOC_DATA
                  DXKOMV    = XKOMV
                  DXVEKP    = XVEKP
                  DYVEKP    = YVEKP
        EXCEPTIONS
                  USER_ERROR = 01.
    Regards,
    Krishnakumar

  • Error in Sales Order idoc - No appropriate entry found in table ADRT

    Hello SAP Gurus,
    When I am retriggering a sales order idoc I am getting the following error message.
    No appropriate entry found in table ADRT
    How can I resolve this issue.
    Thanks,
    Narayan.

    Hello Lakshmipati,
    I have checked up the customer master. There was no communication method maintained for any of the customers.
    But even then the order idoc is triggered to our XI system.
    For the one that failed I have maintained the communication method and retriggered again. It had the same failure message.
    Any helpful thoughts is highly appreciated.
    Thanks & Regards,
    Narayan.

  • PRICING Procedure in SAP for an Incomming Sales Order IDOC

    Hi Friends,
    Here is a situation what we have and what we intend to do.
    We would be getting a Sales Order IDOC and when it hits the SAP..it comes with
    -Material, Qty and Price per material
    -Total Freight
    -Total Tax
    i.e the Pricing conditions are not maintained in SAP at all..we would just get the IDOC externally and the SAP needs to read the material, Qty at line item,
    take the total freight as it comes, and total Tax as it comes in the Idoc.
    My thoughts were to have all the Conditons PR00 (ZR00), KF00 (ZF00), UTXJ (ZTXJ) . ZR00 to set as Manual condition. ZF00 as header Freight and Manual condition, ZTXJ as header condition and Manual.
    I therefore was trying to figure out the best way to set the pricing procedure.
    Please let me know if I am on right track if not which is the way I need to set.
    Thank you
    Ravi

    HI Ravi,
    I think your issue is solved now...so for the benefit of SDN members....can you share the solution..as I am also working on the same requirement !!
    Thanks in advance
    Mayank

  • Creating inbound Sales Orders IDOC within SAP

    Hi,
    I receive a flat file containing sales order information. I would like to create inbound Sales Order IDOCs from this flat file. I know I can use BAPI_SALESORDER_CREATEFROMDAT2 to create sales orders however I would like to retain the benefits of IDOCs e.g. error retention and re-processing.
    There are a number of functions MASTERIDOC_CREATE* to create various IDOCs but I can't seem to find one for message type ORDERS. I know I can create a 'Z' version but would like to avoid that as much as possible as development budget is tight.
    Any help would be greatly appreciated in the form of reward points.
    Thanks and regards,
    Liam

    Hi,
    Can u tell me the steps to create a sales order using idoc, i've created a bapi but thats a temprory use. I wanted to created a sales order automatically when a purchase order is saved.
    Please let me know if u can help me, i wanted to do it using idoc
    Regards
    Sanju

  • Sales order delivery creation in background

    Hi,
    my requirement is i want to create create sales order delivery creation  in background . how to do it.
    any sample code plz .
    with regards
    sri.

    hi,
    use this function module.
    WS_DELIVERY_UPDATE_TO_CREATE

  • Sales Order iDoc from SAP SCM 7.0

    Hi Experts
    I have two question fro you guys.
    1. Can we generate VMI sales order idoc from SAP SCM 7.0? I know is can generate xml message. If we can generate idoc for VMI sales order from SAP SCM , please give me some direction or path to explore.
    2. Can I use idoc to to create to VMI sales order in ECC skiping CIF. But the changes in ECC to these order should use the CIF to update the VMI orders in SAP SCM.
    Please share your experience on this.

    Hi,
    Did you set up this scenario? I want something similar, but I want an ERP order to be created. Do you know if that is possible? Do you have som tips?
    regards Camilla

  • Sales order idoc error only on ORDCHG message type (ORDERS01)

    Hi. I am adding segment E1EDK04 to our sales order idocs in order to pass tax jurisdiction code to R3. When I create the order (message type ORDERS), I am extracting tax jurisdiction code from the idoc and I am adding it to the ship-to address screen via a BDC table within user exit include zxvedu04. The new order gets saved with the TXJCD, and this works fine.
    I am now testing maintenance scenarios. For ORDCHG message types, I am inserting the TXJCD within user exit include ZXVDBU02. The idoc processor abends in 51 status with message:
    "Control data in the IDoc E1EDK04 has been transferred. Check data".
    If I walk the same status 51 idoc through BALE without changing anything, I see the TXJCD get posted to the order, and the order is saved correctly the second time.
    Does this mean I need to add something additional to the idoc control data on an ORDCHG or something?
    Thank you.
    Brendan

    I was not able to get any farther on this. It would seem that when the idoc is processed in the foreground, something is being populated that is not present when the idoc come across to R3...
    The thing is, when I walk through the idoc in the forground, there are no errors that pop up. I can save the idoc after foreground processing and it moves into 53 status.
    Thanks for any ideas that you might have on how to gather more infromation.

  • User exits for route determination in Sales order & Deliver creation

    Hi Gurus,
    I need to do some change in the route determination for both sales order & Delivery creation.
    Can anyone suggest me which user exit I have to use.
    Appropriate answers will be awarded.

    Hi,
    You can use the following exit for route determination - EXIT_SAPL0VRF_001.
    The FM documentation is below. Check the functionality:
    "The customer exit can be used for customer-specific route determination or to modify the inbound data for the company's own route determination.
    The following data is transferred to support customer-specific route determination:
    I_VBAK current order header (for route determination in sales order)
    I_VBKD order business data (for route determination in sales order)
    I_VBAP current order item (for route determination in sales order)
    I_VBPA current sales partner
    I_LIKP current delivery header (for route determination in delivery)
    The following data can be modified and transferred back to the standard route determination or used for a specific route determination:
    C_ALAND Country of departure
    C_AZONE Departure zone
    C_LLAND Destination country
    C_LZONE Receiving zone
    C_VSBED Shipping condition
    C_TRAGR Transportation group
    C_GRULG Weight group
    C_FLAG_GEN_VT Flag: Route determination with generic shipping
    requirements/transportation group.
    C_FLAG_INCR_GRULG Flag: Increase weight group if no route
    If you want to use a standard route determination with different parameters, trigger the exception 'CONTINUE_WITH_STANDARD'.
    In the log table C_PROT, the log data from the customer-specific route determination can be transferred back. In this case, the log entries always refer to customer-specific messages. To add a message to the log table, the function module SD_ROUTE_DET_LOG can be used (see below).
    If a route is determined in the customer-specific route-determination, it can be transferred back in the E_ROUTE field. If no route was found, the exception 'NO_ROUTE_FOUND' is to be triggered."
    Thanks.

  • Sales Order IDOC on creation and on modification

    Hi All,
    I need to generate an IDOC each time i create a sales order or change a sales order. Please tell me what all the settings should i do in NACE Transaction.
    As this is an urgent requirement, pls reply fast...
    Thanks in Advance,
    Anil

    Hello,
    I have followed your instructions but I have one follow-up issue. I have setup the output determination to run automatically after saving a new Sales Order. After I create a new sales order via va01, the Sales Order header info output displays a red dialog box. I choose the processing logging information button and the log states I do not have a receiptent found in the ALE model for ORDRSP.
    I have defined this as an outbound message type for the source system in ALE. I am able to to send via the IDOC test tool so I believe I have this configured properly.
    But when I am in transaction NACE and I maintain the condition record for BA00, if I click the communcation button, the error message of no communication data has been defined for transmission medium A appears in the info bar at the bottom.
    Please help,

  • Sales order IDOC process

    Hi Guys
    I need the ALE/IDoc entire process to receive sales order master data from clients
    Also IDoc using BADI when a sales order is created please help, I have not worked with IDOCS before.
    Points will be rewarded
    Thanks in advanced
    Regards

    One way to do what you have described:
    1.     Set the partner profiles for the inbound ORDERS message to u201CTrigger by background program.u201D  This will put the inbounds into status 64 until they are selected for processing by a user.
    2.     Write a custom report to list status 64 ORDERS according to relevant control record data (like sender and date received).
    3.     Build into the output screen of the custom report the ability to u201Cdrill intou201D an IDoc and display the information that your Sales folks need to make a decision. 
    4.     Build two command button actions into the u201Cdrill downu201D screen
    u2022     Process the IDoc (using a call-transaction to standard program RBDMANI2).
    u2022     Reject the IDoc and change the status to something other than 64 (like 67 or 68).
    May I suggest another approach? 
    Configure the document type that gets created by the ORDERS IDocs to default with a delivery block upon creation.  Then your Sales folks can review it and decide whether to remove the block or reject the entire order. 
    Regards,
    zKen

  • Sales order IDOC process Using FM J_4A_IDOC_INPUT_ORDERS

    Hi ABAP gurus,
    i am working on Sales order creation using IDOC .
    while i am Filling idoc i am filling reference document number and
    item number .(VGBEL and VGPOS). but when i process idoc i am not getting reference document number at item level.  here we processed idoc using FM J_4A_IDOC_INPUT_ORDERS.
    Please suggest me which segment do i neeed to fill for getting reference document number at item level .right now i am using E1j3p02 segment.
    or do i need to implement user exit for this.
    thanks,
    Neo.

    Hi Shareen Hegde 
    To create Inbound...idoc
    Use the Function Module in you Program : IDOC_INBOUND_WRITE_TO_DB to create the Inbound idoc
    Pass the Control record and Data record in FM.....
    Use Message type : Orders
    IDoc type : Orders01 or 02 or 03 or 04 or 05 ....  which ever suite for your requirement....
    Process Code : ORDE
    When ever your custom program for creating the inbound sales order with  runs .....
    it call the internally FM IDOC_INPUT_ORDERS to create the Sales order...
    or
    If you are getting the inbound idoc from subsystem .....then check you partner profile ,Message type ed and Process code is correct or not....
    I hope this resolves your issuse..
    Ramesh

  • Problem in creatinga sales order idoc into XML file in the same appl server

    Hai....friends....
    I am tring to send an  sales order as iDOC  to a xml port in the same application server....
    1. have created a xml port with path..\usr\sap\RRM\SYS\global\.
    2. assigned it to logical system.
    3.Have a RFC destination of TCP/ip(LOCAL_EXEC)
    but in bd64 after creating  model view when i am generating partner profiles  a tRFC PORT has been automatically created.
    then finally the IDOc has been created but its saying....IDOC CANNOT OR SHOULD NOT BE SENT...
    Pls help me regarding this...
    thx,
    ram

    Hi Thanks for your updates,
    But I got the same error, while pass the data from abap into XML.
    error message,what I am getting is
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource 'file:///C:/tempcustomers.xml'. Line 1, Position 1
    #<?xml version="1.0" encoding="utf-16"?>
    Thanks
    Gowrishankar

Maybe you are looking for

  • I have windows 7 installed in imac. It sometimes starts up and sometimes it hangs on the windows logo.

    I have installed my windows using bootcamp. I don't now why is happening. I have scanned for viruses. Updated windows. Windows behaves like it is very moody, it has own wish whether it wants to startup or not.

  • How to install Software Deployment Manager

    Hi!, I have downloaded the PDK files and want to deploy it? How do I deploy them? As per help I need SDM ( Software Deployment manager to deploy this files, from where I will get software deployment manager and how to use SDM to deploy PDK files...pl

  • Integration Server

    Hi SAP Gurus, Please give me a generic answer, if you could: How many pipelines are there in the Integration Server? 1. Receiver Identification, Interface Identification, Message Branch, Request Message Branch, Outbound Binding, Call Adapter, Request

  • ILife Like Aperture Backups?

    I have been searching the forums here and elsewhere to get a good answer to the DVD backup issue. Is there a DVD backup process like iPhoto for Aperture (i.e. it backs up to a DVD, and when you insert the DVD you get a read-only copy in the interface

  • N96 Firmware v12

    Has anyone updated to this firmware yet in the UK and if so has it finally sorted the WiFi bug ppl have been having with the Sky/Netgear broadband router x