Order of Idocs

In a current integration project with SAP, we found that SAP processes inbound IDocs not necessarily in the order which they were received and meant to be posted; leading to undesired order of postings and inconsistent data replication across various systems.
As a result, another SAP developer and I designed a solution where my source system delivered the IDoc to the destination SAP system and we referenced a parent IDoc serial number in the IDoc header.   The IDoc processing engine examined this field and validated whether the IDoc referred by that serial number was successfully posted or not.   If not, the subsequent IDoc was left queued for processing; however, if the parent was posted successfully, it continued to post the subsequent IDoc.   This insured that the postings inside the destination SAP system were in the desired order the business required.
As we take a step in the future and look at streamlining our approach, strengthening our code base, and to continue to maintain business requirements between both the source system and SAP; I hope the developers here can help with my questions.
Is there a way to insure ordered processing of inbound IDocs to SAP without any special or heavy customizations? 
For example, if I post a 101 (po receipt) followed by a 201 (goods issue) to a remote SAP system and both Idocs are movements for the same item and storage location, I would want the 101 to be processed first and immediately followed by the 201.   Likewise if the movement order was a 102, 101, then 201; I'd like to force the Idoc processing engine to process the three movements specifically in this order without any type of "retry"/"reprocess" construct.
Is this possible?
From the SAP side, to give a baseline of which version/platform; I'm speaking specifically toward SAP release v4.6c and v4.7.
Thanks!

Moved to IDOC area; posted in wrong forum.

Similar Messages

  • Problem when setting Reason of Rejection for a sales order using IDOC

    Hi All,
          I am working on a requirement where i need to put a reason for rejection as 'Item Cancelled' for a sales order via IDOC 'IDOC_INPUT_ORDCHG' in a third party scenerio where the PR is created automatically from the sales order . When the IDOC is run in the foreground I get the information message Subsequent function  " 'Purchase requisition from sales document' not possible Item & was rejected "(Message V1579) and the IDOC results in a error when run  in the background mode because of the same information message. The message should not appear when a sales order is being processed in the background but still the message is being displayed . Is there any way the message can be suppressed ? Thanks in Advance.
    Regards,
    Sowmya.

    can you send the program how you create a so or po using IDOC, as i've a assignment creating PO using IDOC & then creating a sales order of the PO. and i dont know how to create a IDOC. SO IF you have sample program it would be help full
    Thanxs

  • 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

  • Goods Receipt for Purchas Order - WBGMCR02 IDoc

    Hello all!
    I am attempting to create material documents for good receipts of a finished goods purchase order using IDoc WBGMCR02 and message type MBGMCR configured by vendor in WE20 (partner profiles). I am creating test data via WE19 and I'm fairly confident that my IDoc is complete with references to the PO, vendor, material and movement type 101. I am receiving the an error though when processing, to follow..
    CODE is not supported by BAPI2017_GOODSMVT_CREATE
    Message no. M7 259
    Any input is appreciated.
    Thank you.

    Well I got past this error, I had the wrong value in the the E1BP2017_GM_CODE..
    However, I am now facing a new error.. below.
    An error has occurred assigning data (E1BP2017_GM_ITEM_CREATE )
    Message no. B1 527
    Diagnosis
    To call a BAPI the IDoc data must first be assigned to the relevant BAPI interface parameters.
    An error has occured when carrying out this operation, possibly due to an incorrect data type or data format in the segment E1BP2017_GM_ITEM_CREATE.
    Procedure
    Check that the data types in the IDoc data record matches the data types in the BAPI parameter.
    I reviewed that data in this segment against the documentation found in WE60 - this segment allows for data from many different function areas of goods movements (sales, transfers, delivery, PO, etc) and since I am attempting to create a 101 movement against a finished good purchase order I am somewhat confident I have filled in all relevant data in the E1BP2017_GM_ITEM_CREATE segment.
    Does anyone know how to debug this error or have a decent road map for creating this movement type with this IDoc/message?
    Thanks!

  • Creating sales order using IDOC - Delivery hour

    Hi,
    i've a problem to solve. when creating a sales order i need that when the segment is E1EDK03 and the IDDAT is 002 i need to extract the delivery hour and insert it in the table vbak-vzeit, now what i'm doing in the exit EXIT_SAPLVEDA_001 is:
    DATA: hour LIKE vbak-vzeit.
    CHECK segment-segnam = 'E1EDK03'.
    IF segment-sdata(3) = '002'.
      hour = segment-sdata+11(6).
    ENDIF.
    and now i want to acess the value in hour in the exit EXIT_SAPLVEDA_002 to put it in the dxvbak struct tha i think that is the table correct to then internaly fill the vbak. the problem is that the variable hour is not available in the exit EXIT_SAPLVEDA_002. i do i do to pass the value that i want from the exit EXIT_SAPLVEDA_001  to be available in exit EXIT_SAPLVEDA_002  and then insert that value in the right place to fill vbak.

    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

  • ERROR IN CREATING SALES ORDER,USING IDOC TYPE ORDERS05

    I am using exit to write my code for creating sales order of IDOC Type ORDERS05 and order type ZDRX.
    IF I proceess the Idoc in background each time error message comes
    FIELD kuwev-kunnr(ship to party)is not an input field.
    but if i run in foreground in debugging mode,sales order is getting created..
    please suggest something.

    If thats not working..
    try BAPI_SALESORDER_CREATEFROMDAT2
    If BAPI is not working. try creating a bdc for the same if there's not error on trying from VA01

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

  • Do we not send Purchase order acknowledgement IDoc for order cancellation?

    Hi all,
    Is there a way to NOT send a Purchase order acknowledgement IDoc (POA) when we process an IDoc to cancel the order (or cancel all items)? The system now sends POA whenever there is a order create or order change (including cancellation) IDoc coming in but my customer wants not to receive POA in case of order cancellation.
    Thanks,
    Charles.

    Hi,
    Please give me your opinion and if we do not send the order response in case of order cancellation then please tell me how should I configure for that.
    Thanks,
    Charles.

  • Delivery order by IDOC

    Hi Experts,
    I'm trying to make a delivery order by IDOC type DELORD (ORDERS05). Does any one process with this type of massage?
    I create several orders, but I still have a problem with orders. They look almost the same but still not working.
    Could some one write me requirements for this massage? For example links between Idoc segments and fields from Schedule agreements.
    Any help will be appreciated.
    Edited by: Michal Jesionek on May 31, 2008 4:15 PM

    HI ,
    Please find the info  as follows.
    E1EDP20 : IDoc schedule lines
    Segment definition E2EDP20001 Released since Release 46C , Segment length: 0061
    WMENG : Scheduled quantity
    internal data type : CHAR
    Internal length : 000015 characters
    Position in segment : 001, Offset : 0063. external length : 000015
    AMENG : Previous scheduled quantity
    internal data type : CHAR
    Internal length : 000015 characters
    Position in segment : 002, Offset : 0078. external length : 000015
    EDATU : IDOC: Date
    internal data type : CHAR
    Internal length : 000008 characters
    Position in segment : 003, Offset : 0093. external length : 000008
    EZEIT : IDOC: Time
    internal data type : CHAR
    Internal length : 000006 characters
    Position in segment : 004, Offset : 0101. external length : 000006
    EDATU_OLD : IDOC: Date
    internal data type : CHAR
    Internal length : 000008 characters
    Position in segment : 005, Offset : 0107. external length : 000008
    EZEIT_OLD : IDOC: Time
    internal data type : CHAR
    Internal length : 000006 characters
    Position in segment : 006, Offset : 0115. external length : 000006
    ACTION : Action code for the item
    internal data type : CHAR
    Internal length : 000003 characters
    For more information use the idoc type see the structure in we60.
    Thanks,
    Pramod

  • Confirm sales order with idoc ORDERS05

    Hi everybody.
    I´d like to know if it´s possible to confirm a sales orders with idoc ORDERS05 and message type ORDCHG and posting FM IDOC_INPUT_ORDCHG_VMI.
    How would I have to fill the idoc data??
    Thanks a lot

    Hi,
    For inbound idoc you can use  the message Orders , process code ORDE and the function mdoule IDOC_INPUT_ORDERS to create  a sales order.
    Regards,
    Nagaraj

  • ORDERS 05 idoc sold to and ship to party?

    As far as i know the ORDERS 05 idoc is for sales order which we get from the customer who wants to but products from our company.
    In the idoc there is a segment E1EDKA1 contain sold to party and ship to party fields. What is the significance of these fields? What values are filled for these fields? Are these 2 fields also part of any other idoc?
    In real time from xi point of view from which system to which system this data will move?
    I have checked few documents on sold to and ship to party but ended up getting more confused.
    Please help me with the answers.
    Regards,
    Suresh.

    Hi Suresh,
    The Sold to and Ship to party details from posted IDOC type ORDERS 05  are not at all in relation with the data moving from XI to whcih are sender and receiver systems.
    You are right as the ORDERS 05 is used for Sales Order.
    While creating the sales order we need to specify the Sold to party and ship to party information. this gives the information about the party against which you have generated the sales order and the the ship to party will indicate the location specific branch of the customer party.
    For.eg. the customer will be requesting for the sales order and he wish to deliver the order at his particular branch then Sold to party--Customer No and Ship to party i.e. Location specific details are required.
    Thanks
    Swarup

  • Status field into order response IDoc

    Hello friends,
    We have a problem in order response Idoc. The order response Idoc contains all the data from a sales order except the fields Order status. In the screen VA03 --> Header Info --> Status we can see the delivery status fields, but it is not present in ORDRSP IDoc. The technical detail to the corresponding field data is VBSTT-LFSTA_BEZ. We just want to include this field in the order response IDoc.
    Please help
    f.kökce

    Hi there,
    In IDOC structure WE30, in the IDOC segments add a new segment through 'extensions' if you need a separate segment for status. Give the field mappings to the segment with the help of an ABAPer.
    If you want to include the filed in the existing segemnt ask your ABAPer go add the field VBSTT-LFSTA_BEZ into an existing segment.
    Hope this helps.
    Regards,
    Sivanand

  • Settings to trigger Order response IDOC

    We need send order reponse to external customers using IDOC. What are the settings/steps to generate order response or any outbound IDOC from CRM (5.0, 6.0, 7.0)?  We are planning to use IDOC type CRMXIF_ORDER_SAVE_M02.
    Prompt response highly appreciated.
    Regards,
    Netaji Nikam

    if you want the order response , you need to consider this as inbound interface . you need to configure a new interface for this and make the following settings in the R/3 and XI
    R/3
    WE20 - Add the order response in the Inbound parameter for the r/3 partner type.
    XI
    Import the meta data of the order reponse idoc in IDX1.
    Configure IR and ID objects seperately.
    Thanks

  • Process Orders, send idoc (LOIPRO) when its released and saved.

    Hi ,
    Here is my requirement.
    For process Orders, send idoc (LOIPRO) when its released and saved. (COR2).
    Here are the options I have tried.
    - Create an enhancement spot after the commit statement, and submit RCCLORD
    For some strange reason Submit to RCCLORD isn't working. Even I have tried to execute it independently, It isn't working properly. It is working fine from POIT, but not independently...
    - Call CLOI_MASTERIDOC_CREATE_LOIPRO function module, but for this I have to get all the related data into proper tables, and I am not sure if it works either.
    I have searched here in SDN to for some help, the closest thread talks about creating a ZFM for IDOC creation, but I dont have much of the details of that.
    Re: Process Orders, send idoc (LOIPRO) while creation/modification(COR1+BADI)
    Need some help on this.
    Thanks & Regards,
    Kalyan Venigalla.

    Hi!
    not sure, but maybe it will help you:
    RCCLORD have code with check already sent orders
    Try add this code before submit RCCLORD
    *         -> free global table for collecting order numbers
              free memory id 'LOIAUFNRTAB'.                        "

  • IORD for sending Order via Idocs

    Hi SAP Experts,
    Does anybody know how to use T-Code IORD for sending Idocs, every time I run this T-Code not a single Idoc gets created.
    Also I would like to know what does 'Status Profile/User status to be set' mean on the selection-screen, I think its happening due to this only.
    I've done lots of Idoc Integration using HR Idocs but this is a first Idoc Integration for me in PM module so not sure what should be the best way of sending Order via Idocs to 3rd Party system.
    Any help would be appreciated.
    Thanks,
    Sunny Thakur

    Hi Pete,
    We are trying to send SAP PM Work Order for production equipment changes , I came to know that IORD generates Idocs for Order but somehow whenever we try to run this T-Code all the orders are getting rejected. Also I've noticed Idoc Type IORDER cannot be used for sending Delta changes , is it true? I can't find any entry for this message type in BD60 so makes me think SAP did not design this Idoc type for delta changes, even though I know we could customize it
    Do you know what should be the best way of sending SAP PM Work Order to external system , should we create one custom Idoc type?
    Let me know in case you could help me out.
    Thanks,
    Sunny Thakur

  • Sales Order Using Idoc

    Hello All,
    We are creating Sales Order through Idocs : Basic Type  - ORDERS05   Message Type - ORDERS
    Sales Order is being created but for few Items , Reason for Rejection is set (thts not required in our case).
    I am trying to figure out why for some items its happening ?
    I tried to check the reason by Processing the Idoc in WE19 but could get through.
    Also tried to process the   Idoc using FM IDOC_INPUT_ORDERS in Debugging but not able to process further as getting error message : 'Idoc Has Different Status'.
    Any input on this would be helpful.
    Thanks
    Praveen

    This problem due to your config in the system, try to create a sales order for the item that posted via Idoc then see same item got rejected.. If yes discuss wtih your funtional guys....

Maybe you are looking for