Triggering an ORDRSP IDoc

Dear all,
I need to trigger an outbound Standard IDoc - ORDRSP. The scenario is described blow.
System-A gets an inbound IDoc from System-B. Based on the information in this IDoc, an SO is created in System-A. Once this SO is created, automatically a Delivery Block is set. This block is then manually removed.
Now, the requirement is when this Delivery Block is removed, an IDoc  - ORDRSP - should get triggered.
Second requirement is, if values of any of the fields of SO: delivery quantity,Ordered quantity & Confirmed quantity is changed, an IDoc should be resent - multiple times.
What is the solution? Can the settings be done through output type (NACE/SPRO)?

Hello,
          Here is the Step by Step procedure to Trigger the ORDRSP Idoc.
1. Configure the Output Type using the Transaction VK01 in which you can define Access Sequences & Output Type.
3. Maintain Partner Profiles for the ORDRSP Message Type & for the IDoc Type ORDERS05.
4. Maintain Condition Records for the Output Type using NACE Transaction.
5. If required, you'll have to write Code in the Transaction VOFM in which you'll check some Conditions whether the Delivery Block is removed. If it is, then Set the SY-SUBRC = 0 else SY-SUBRC  =  4.
6. The Outbound Function Module IDOC_OUTPUT_ORDRSP will be already assigned to the Process Code SD10.
7. Just maintain Condition Records & Partner Profiles and the IDoc will be generated Automatically.
Hope this was helpful.
Thanks and Regards,
Venkat Phani Prasad Konduri

Similar Messages

  • Problem with "Confirmation" changes in PO using ORDRSP Idoc

    Hi all,
    I have an issue when changing "Confirmations" tab in PO.
    I configured Output Message Z001 that should be determined when I change values in that tab. That scenario is working fine, but the real change will be done by ORDRSP Idoc. Using that Idoc, change is done in the PO but no output message is determined (condition records are fine). I need to send a Custom Idoc once that change is done so I need to determine the output message.
    I searched for an OSS note, as it should work using Idoc process, but I didn't found anything. Does anyone know if it exist?
    Thanks in advance for your help.
    Regards.
    David.

    Thanks for your answer Jelena,
    The main problem here is that all the flow works fine if I execute if manually:
    Change in "Confirmations" tab is done --> output message Z001 is generated --> Custom Idoc Z is created.
    Therefore, WE20 is correctly configured and also all the required fields that can be changed in "Confirmations" section.
    The problem is that real scenario should modify that values using ORDRSP inbound Idoc (ORDERS05). That Idoc is changing the PO, but that change is not triggering any output message (although the same change did it manually), so custom Idoc Z is not created.
    Maybe I didn't explain myself very well in my previous message.
    Thanks & Regards,
    David.

  • Automatic ORDRSP idoc creation problem for customer order

    Requirement;
    When client received order from customer through EDI, while creating order it has to check is there any difference in the order quantity and confirmed quantity. If any difference reason code should set up automatically at line item level (I configured reason code as "Quantity short" and it's not big deal to get this in user exit). After inbound  EDI order process, order response should invoke only one time that too first time (Not all the time for all orders) when there are line items exist with "Quantity short".
    First I'm trying to kick out ORDRSP Idoc from manually created order. While creating order which has confirmed quantity less than order quantity I setup item level reason code as "Quantity Short".
    I created condition table with conditions Sales org, Order type, Sold to party(from KOMKBV1) and item level reason code (from KOMPBV1).  I maintained condition record, partner profile.  But Idoc is not generating automatically after I created order manually with reason code at line item level.
    Can any one help me on this.
    Thanks in advance.

    >
    Ram_Lin wrote:
    > Requirement;
    >
    > When client received order from customer through EDI, while creating order it has to check is there any difference in the order quantity and confirmed quantity. If any difference reason code should set up automatically at line item level (I configured reason code as "Quantity short" and it's not big deal to get this in user exit). After inbound  EDI order process, order response should invoke only one time that too first time (Not all the time for all orders) when there are line items exist with "Quantity short".
    >
    > First I'm trying to kick out ORDRSP Idoc from manually created order. While creating order which has confirmed quantity less than order quantity I setup item level reason code as "Quantity Short".
    >
    > I created condition table with conditions Sales org, Order type, Sold to party(from KOMKBV1) and item level reason code (from KOMPBV1).  I maintained condition record, partner profile.  But Idoc is not generating automatically after I created order manually with reason code at line item level.
    >
    > Can any one help me on this.
    >
    > Thanks in advance.
    There are two things here
    1) the Output not getting generated
    2) Output is triggered but IDOC isnot generated.
    I feel the Output must not have triggered. this may be because generally the response IDOCs are riggered from the Header level and in the communication struture ( or in the condition record ) you have inserted a field from the Item level, so when the system is trying to trigger the output , the field value may be blank, you can check this in the determination analsysis and you may find an yellow icon in the field agains item reason code. you may have to modify the user exist to pass the correct value to this field.
    an alternative way is to trigger the output manually and see if the idoc is geenrated or not.
    If the output is triggered and the idoc is not generated. again look in the Processing log. there must be some error description why the IDOC is not triggered. Let us know the description of the error codes so that we can give an idea of where could you have gone wrong.
    Thanks,

  • VMI - ORDRSP IDOC to create a Purchase Order automatically

    Hello All,
    I would like to simulate the VMI process. Which data in a ORDRSP IDOC (Message variant VMI) has to be filled at least, so that from it an Purchase Order is created automatically? Does anyone of you have an example IDOC - maybe in the XML format?
    Thanks in advance
    BR
    RMP

    Hi Hanuma,
    For creation productin order IDoc, you can use standard program RCCLORD and FM CLOI_MASTERIDOC_CREATE_LOIPRO.
    For creation purchase order IDoc, you can use FM IDOC_OUTPUT_ORDCHG or IDOC_OUTPUT_ORDERS.
    There is customer exit available for you to populate new status and order number.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • ORDRSP idoc user exit exit_sapleinm_007

    i have problem with inbound EDI for po acknowledgment(855) ,message type used ordrsp process code ORDR and basic type is orders05 and function idoc_input_ordrsp
    Vendor is sending only vendor material number (IDTNR) and qualifier 002 is used. During IDOC processing I am using user exit exit_sapleinm_007 to get the SAP material number based on Purchase order number.
    In user exit I am trying to collect the SAP number based on vendor number (IDTNR)and purchase order from EKPO table
    When processing the segment E1EDP19 using the exit_sapleinm_007, I am unable to pass the PO number (EBELN) and therefore I am unable to extract the corresponding SAP number (Customer Number), which resulted in failure of IDOC.
    IDOC error message : Material number differs from the ordered material number.
    Purchase order (EBELN) is present in segment E1EDP02 and this segment is processed before E1EDP19.
    I am not sure how this can be resolved? Is their any other user exit that can be used for ORDRSP idoc in extracting SAP number (customer material number) from vendor material number (IDTNR)

    Hi Ashutosh,
    All the exits for listed are too early in the flow for you to know if the DN was created successfully or not, like Christian has suggested you will have to use the customer exits/BAIDs available within "GN_DELIVERY_CREATE" to achieve your requirement. There seem to be a couple of customer function exits available, and a BADI - SHP_BADI_GN_DELIVERY_CREATE try them.
    Also calling an FM in update task wouldn't help you, unless you have some key information with which you can check if the DN was successfully created.
    Regards,
    Chen

  • Outbound ORDRSP IDOC not created while processing  using ALE_PROCESSING .

    HI ALL,
    i have done all the requiured config for o/b message control for ORDRSP idoc along with config in sale for dist.. model and assigning msg type to model etc and when i save my PO i can see the o/p being proposed but when i process that with A as medium, it is incorectly processed and no ordrsp idoc is created.i am using std idoc_output_ordrsp FM,  when i debug the code the see an error in ALE_PROCESSING IN the perform new_dyn_perform
    can anyone pls tell me why the idoc is not created.
    thanks,

    Hi eswar,
    i have configured the partner profile for the LOGICAL SYSTEM that i hav created along with the message control deatils in msg ctrl tab( which i think should not really matter) as i have already created a distrib. model for my log. sys and attached my msg typ to that.
    when i debug the flow ( rsnast00-rsnasted-ale_processing-idoc_output_ordrsp) i think the error is somewhere in the call function tede1-routid( idoc_output_ordrsp) in the new_dyn_perform subroutine.
    but that FM is holding good for other ORDRSP idocs.i am really unable to understand where the error actually is.
    thanks

  • What is the filed in ORDRSP idoc to stop changes in PO?

    Hi,
    SO gets created from PO and when ORDRSP idoc comes from SO to PO, there should be filed in the IDoc that will not allow to change PO anymore when ORDRSP is received to PO. Could anyone let me know the filed in IDoc and where in that will be in the ORDRSP idoc to stop the PO from being changed. appreciate your help. Thank you!

    i think you should use the BADI ME_PROCESS_PO_CUST to check if there is an entry in table EKES. If yes, the Method FILDSELECTION_HEADER or FIELDSELECTION_ITEM have to be used to set the the whole PO to 'display only'
    Edited by: Gabor Harsfalvi on Aug 4, 2010 4:40 PM

  • Different PO references in one (inbound) ORDRSP-IDoc possible?

    Hello all
    We send PO's to our vendor. Each one as individual ORDERS05-IDoc. On the vendor side multiple PO's sometimes are combined to a single sales order (SD) containing all items from our different PO's.
    When vendor sends us back his confirmation as an ORDRSP-IDoc it contains different PO references per item.
    We're still in conceptual phase and will shortly begin implementation in order to process such order responses from our vendor.
    I'd like to know if SAP standard is able to successfully process such order responses?
    Thanks anyone in advance.
    Renaud

    Dear Zakir,
    Thanks a lot for your favorable response. The query is solved now by defaulting rules.
    Regards
    Kaleem A. Bhatti

  • Workflow to be triggered if Inbound Idoc is successful

    Hi,
    Kindly help me out with the following senario:
    After the vendors are created in MDM, they are distributed to an R/3 (ECC 5.0) system via XI. XI uses  the message type CREMAS to distribute the vendors. When the inbound Idoc is successsful, a workflow should be triggered to the concerned user about the vendors created in the R/3 system.
    How can we find out which event gets triggered when the Idocs were successful such that we can trigger a custom/standard workflow??
    Thanks in advance
    Regards
    Kishan

    This report might help you
    RSEIDOCM
    Otherwise maybe in ALE customising you could create an event in a user program and use FM SAP_WAPI_START_WORKFLOW to launch your workflow.
    You will have the IDOC message types coming in and the process codes which are executed so you should be able to monitor the process and take whatever action you need during the process..
    (Customising -- use transaction SALE) 
    cheers
    jimbo

  • Create ORDRSP Idoc on creation, change or deletion of outbound delivery

    We have ORDRSP Idocs being created when a sales order is created or modified.  Now our customer would like an ORDRSP Idoc sent to them when the outbound delivery is created for the sales order.    The reason that the customer would like an additional ORDRSP sent is because the time between the entry of the sales order and the creation of the outbound delivery may be a few weeks or more and the actual delivery may not be able to satisfy the quantity ordered.  The customer is not set up to allow partial deliveries.
    The customer uses the ORDRSP to feed into their billing system and would like updated quantities at delivery time.  They do not want an ASN record.
    Does anyone have any ideas or suggestions on how to trigger the ORDRSP Idoc when the delivery is created, modified or deleted?  We are on SAP release ECC 6.0
    Thanks for any help,
    Russell

    Vinit and Abhishek,
    Thanks for your replies and information.  Sorry I was not clear in my question.  The ORDRSP Idoc is already being created when the order is created or changed.  ORDRSP works fine.  The partner profile is set up, NACE is already configured for ORDRSP, change pointer is working properly, output determination is configured and working, the ORDRSP Idoc is being created. 
    What I would additionally like to do is trigger the creation of an ORDRSP Idoc when the delivery for the order is created or modified.  I suspect this will require using a user exit in the delivery program to trigger the ORDRSP Idoc and not standard SAP configuration.   This is what I would like help on (trigger the creation of an ORDRSP Idoc when the delivery for the order is created or modified).
    Also this site is a small shop.  I am the ABAP programmer, the functional consultant and the EDI consultant for all SAP modules.  There is no one else on the team here other than one person that does transports and security for SAP.
    Thanks,
    Russell

  • How to find the Program that triggered the outbound idoc

    Hi,
    I need to find the program that triggers a particular Outbound IDoc.
    I have the IDoc number/segment/message type.
    We need to Debug the Outbound IDoc but we do not know from where the IDoc got triggered.
    Is there a way we can find which program triggered it?
    Thanks!

    Hi Suresh,
    Go to tcode WE20, select ur partner profile type, which configured in output type for EDI documents.
    On right side, double click on the Message type in outbound parameters.
    go to message control Tab, double click on process code variable to see FM triggers for the IDOC.
    same as for Inbound also.
    Regards
    Syed A

  • What is the mean IDDAT field of ORDRSP idoc's E1EDP01/E1EDP03 segment

    Hi experts,
    I'm trying to use ORDRSP idoc to map to a target structure.
    I need to know mean of IDDAT field of ORDRSP idoc's E1EDP01/E1EDP03 segment.
    For example if IDDAT = 024  what does it mean?
    Is there a list shows means of fields with different values?
    Thanks.

    Hi,
    the segment E1EDP03 is a  "qualified" segment.
    The possible values of a qualifier field are defined in DDIC as domain value range (fixed values or by value table)  of the corresponding data element.
    In your case, the qualifier (data element) IDDAT has the domain DATID assigned with the T54C5 value table.
    So the possible values are contained in the value table T54C5.
    Using the maintenance transaction SM30 itu2019s possible change the value list; for this reason check in your system the meaning of the qualifier IDDAT = u2018024u2019.
    Regards,
    Andrea

  • How to find PO number from ORDRSP Idoc.

    Hi,
    Can  anybody let me know how to find the PO number from the Idoc ORDRSP.
    Scenario is as below:
    SAP system1 will send PO to SAP system2.(Idoc type ORDRS05).
    When SO is created in SAP system2, it will send a confirmatory Idoc of message type ORDRSP.
    From this I have to find  the PO number as I can find only VBLNR.
    Points assured for workful solutions.
    -B S B

    Hi BSB,
    CHECK THIS CODE
    DATA : BEGIN OF itab_status OCCURS 0,
              idoc           LIKE edids-docnum,
              date_stauus    LIKE edids-logdat,
              status_counter LIKE edids-countr,
              status         LIKE edids-status,
              descrp(70),
              ponumber       LIKE ekpo-ebeln,
              mess           LIKE edidc-mestyp,
    END OF itab_status.
    DATA: text111        LIKE e1mbxyi.
    DATA: text11         LIKE e1edp02.
    IF itab_status-MESS = 'WMMBXY'.
       select single * from edid4  INTO ITAB where segnam = 'E1MBXYI' AND
                     HLEVEL = '02' AND DOCNUM = itab_status-idoc.
    MOVE  : ITAB-SDATA  TO TEXT111 ,
    text111-EBELN TO itab_status-ponumber.
    ELSE.
    YOUR CASE FALLS IN THIS CATEGORY****
    select single * from edid4  INTO ITAB where segnam = 'E1EDP02' AND
                     HLEVEL = '03' AND DOCNUM = itab_status-idoc.
    MOVE  : ITAB-SDATA  TO TEXT11 ,
    text11-BELNR TO itab_status-ponumber.
    ENDIF.
    endif.
    LET ME KNOW IF YOU NEED ANYTHING ELSE.
    THANKS
    VENKI

  • User Exit RV60AFZZ not Triggered When Processing IDOC

    Hi,
    I'm writing to seek some advice on why is the user exit RV60AFZZ not getting triggered when I do a vf01 bdc inside my inbouund IDOC function module. But when I try SHDB the user exit is getting triggered normally.
    Thanks,
    Mawi

    Hi,
    Yes I'm creating invoice using delivery orders, inside the idoc function module I'm using bdc call transaction vf01 but somehow it does not trigger the user exit.
    But when I do manual vf01 in sap, the user exit is getting triggered.
    I cant figure out why this is the behavior of sap.
    Regards,
    Mawi

  • Workitem not triggered for Inbound IDOC Error (ORDERS05)

    Hi,
    The work item is triggered for the Syntax Error in the Idoc (EDI: Partner profile Not Available).
    But, as per my requirement i need to get the idoc error status (as Workitem) , any help regarding the resolution of this issue is highly appreciated.
    Regards,
    Rusidar S.

    Hi Uwe,
      Many thanks for your response, well i did run the report name that you said me.. when i executed that report i got a workitem as "ALARM Message from Active IDoc Monitoring" and workitem for EDI  syntax errors"EDI: Partner profile inbound not available"
    But my objective remains unsolved.. i need the error status of idoc to be generated, do u have any idea or solutions, kindly share it as its the 3rd day that am still into the same task....
    Regards,
    Rusidar S.

Maybe you are looking for