E1EDK03 ORDRSP IDOC_OUTPUT_ORDRSP

Hello Experts,
I have a quote with valid to date and I've been wanting to copy that date into e1edk03 013 segment in ORDRSP message type. The idoc type is ORDERS02 and the fm is IDOC_OUTPUT_ORDRSP.  Your expertise to adding E1EDK03 013 in the ORDRSP is greatly appreciated.
Sean

Hi Sean,
You can use user exits EXIT_SAPLVEDC_003 to append the quotation date (supplier).
You can code something like this.
data: wa_edidd   like edidd,
       wa_e1edk03 like e1edk03.
loop at dint_edidd.
   if dint_edidd-segnam = 'E1EDK03'.
     move dint_edidd-sdata to wa_e1edk03.
     if wa_e1edk03-iddat = '013'.
       exit.
     else.
       clear wa_edidd.    
       clear wa_e1edk03.
       move dint_edidd to wa_edidd.
       wa_e1edk03-iddat = '013'.
<b>       wa_e1edk03-datum = <quotation date> </b> 
       move wa_e1edk03 to wa_edidd-sdata.
       append wa_edidd-sdata to dint_edidd.
     endif.
   endif.
endloop.
Hope this will help.
Regards,
Ferry Lianto

Similar Messages

  • Could not find the enhancement for IDOC_OUTPUT_ORDRSP

    Dear All,
    I am using message type ORDRSP, basic type ORDERS05 and IDOC function module is IDOC_OUTPUT_ORDRSP.
    I have done all required settings and idoc also created as per standard.
    But my problem is i couldn't find VBAK-ERNAM and VBAK-ERDAT in segments data. I decided to add these two in one of the provided customer function.
    I found below customer functions in IDOC_OUTPUT_ORDRSP function module.
    EXIT_SAPLVEDC_004
    EXIT_SAPLVEDC_001
    EXIT_SAPLVEDC_003
    But i couldn't find the enhancement in smod. Can you please provide the correct enhancement name so that i can activate and add my code inside the customer function.
    Thanks in advance
    Cris

    Hi,
    IDOC ORDERS05 does contain creation date. Check segment <b>E1EDK03</b> ( document header data segment ) for <b>qualifier '012'</b> ( document date ). It should be populated with creation date.
    There is not field on idoc for "document creator". But where are you planning to populate it. You will have to create a custom segment and and extension idoc from ORDERS05 to populate this field.
    If you need this field to reach only to middleware so they can pass along to the business partner, you can use header level text segments <b>E1EDKT1</b> and <b>E1EDKT2</b> with some unused text type to populate the user name here.
    The useexit you can use is <b>EXIT_SAPLVEDC_003</b> which is in enhancement <b>SDEDI001</b>.
    Let me know if you need any other information.
    Regards,
    RS

  • SENDING WBS ELEMENT IN OUTBOUND IDOC  ORDRSP

    Hi Experts,
    i need to update idoc ORDRSP (to distribute Sales order) with field WBS ELEMENT  , you can find this under item tab "Account assignment" field COBL-PS_POSID
    I generated outbound idoc on several sales orders but none of them has this information.
    do you know how to have this information populated in this idoc ?
    Thanks and regards

    Hi,
    You need to do the following steps to create a custom segment and populate values into that:-
    1. Create a custom segment using the T Code WE31
    2. Add the created custom segment to the orders05 basic type by creating a new extension using WE30 transaction
    3. Maintain a new entry in WE82 transaction for the message type, basic type and extension
    4. Update the extension in all the necessary partner profiles WE20
    5. You have lot of function exits in the function module IDOC_OUTPUT_ORDRSP, you can see them as customer function in that function module. You need to write the code in that include
    6. Create a project for the function exit and activate the project.
    Once you do all the above 6 steps then you can see values populated into the custom segment.
    Thansk,
    Mahesh.

  • 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

  • IDOC : ORDRSP, Fucntion Module

    Hi Experts,
    We are using Message type ORDRSP and Basic type /AFS/ORDERS05.
    Can any one tell me the name of Function module, which is used for standard outbound processing for the same IDOC ?
    Regards,
    Study SAP

    Hi,
       you can use standard outbound process code SD10.
       which has function module of idoc_output_ordrsp
       for sale order confirmation.
    regards
    mahesh.

  • IDOC : ORDRSP, Fucntion Module for debugging.

    Hi Experts,
    We are using idoc Message type ORDRSP and Basic Type /AFS/ORDERS05. As Outbound.
    When we are creating this idoc by using (WE19) Test idoc tcode, it is not stopping in the function module J_4A_IDOC_OUTPUT_ORDRSP  and IDOC_OUTPUT_ORDRSP. 
    We have putted External Brake Point in both the FM.
    We are using the processing "Standard Outbound Processing"
    Please help me to solve this problem,
    Is there any mistake with Function Module where we are putting these breakpoints are not used during the process ?
    It is really urgent,
    Regards,
    Study SAP

    Hi, Inbound process code for WP_PLU message type -
       WP_P.
    reward pts if it helps...

  • 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

  • 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

  • Maintain outgoing EDI-connection data for partner 199093 during ORDRSP

    Hi Experts,
          We are trying to send the "Order Confirmation" using "ORDRSP" IDOC message type. So we created the new Output type as ZBA0 (Copy of BA00) and assigned with the sales output pricing procedure.
            Then we maintained the "partner profile" in WE20 in the "Outbound" parameter. Then we tried to send the Order confirmation in the sales order. During that time, we are getting the error as "Maintain outgoing EDI-connection data for partner 199093". 
    After maintaining the relevant configuration and partner profile maintenance also we are getting the above mentioned error message. Kindly give your valuable comments on this issue, which will help us to speed up the process.
    Warm Regards,
    Nag

    Hi Nag,
    The message '"Maintain outgoing EDI-connection data for partner 199093" comes if the partner profile settings are not maintained properly.
    Please check wehther the customer 199093 is maintained under the partner type KU. If it is maintained, please check whether the message type 'ORDRSP' is configured in the outbound parameters for the customer 199093.
    If the above settings are done properly, please check whether the output type ZBAO is configured based on the partner type of the customer 199093.
    Hope this solves your problem.
    Regards,
    Vijaymadhur.

  • Error in Message Mapping "Target message IDOC: ORDRSP.ORDERS02 does not exi

    Hi,
    I have joined newly to the team.
    When I tried to open one message mapping it throwinf follwing error...
    "Target message IDOC: ORDRSP.ORDERS02 does not exist in software component version ID: 44423362454456485465..
    Check whether the software component version ID: 44423362454456485465 is in Enterprise Service Repository. Import this version if necessary"
    Is there any impact because of which in the message flow?
    In my case some of the messages are failing with mapping error "runtime exception occured during application mapping com/sap/xi/tf/_SUS2MMOrderResponse_; java.lang.NullPointerException: while trying to invoke the method java.util.Map.get(java.lang.Object) of an object loaded from field com.sap.aii.map`"
    And some of the messages are processed sucessfully and they also using the same mapping program 'SUS2MMOrderResponse'.
    Could someone tell me is there any relation for the above error in XML messages and to the message mapping?
    Regards
    Baskaran K

    Could someone tell me is there any relation for the above error in XML messages and to the message mapping?
    The error mentions that you have used an IDOC in your mapping program which is not found in the ESR....you need to check if the IDOC is present in the ESR and is present under the correct SWCV.
    Once you have done the check do some dummy change to the mapping and activate it (if in DEV) and then check the CACHE.

  • IDOC:inbound scenario for posting Message type ORDRSP

    Hi All,
    I am doing a inbound scenraio to post message type ORDRSP.
    Acknowledgement gets created in Purchase order successfully but texts at header level and item level are not getting updated in the purchase order
    I am using the segment E1EDKT1 and E1EDKT2 for header texts . For item texts I am using the segments E1EDPT1 and  E1EDPT2.
    Any pointers to this is appreciable.
    Thanks in advance.

    Hi,
    Depending on whether the Order is a third party order are not, the texts are picked up from either SO or PO.
    Put a break point on line 842 in the Include LEINMF11 and debug, this should help you get to the root cause of the issue.
    Regards,
    Chen

  • Different PO numbers on item level in 1 ORDRSP?

    Hello all
    Couldn't find some useful info to my question until now. So here we go:
    We send POs (ORDERS05-IDocs) to one of our suppliers. The process at the suppliers side merges items from different of our POs into 1 sales order and then creates 1 order response containing items from different POs and sends it back to us as ORDRSP-IDoc.
    Example:
    PO number 123
    item 10, article A, quantity 10
    item 20, article B, quantity 5
    item 30, article C, quantity 7
    PO number 456
    item 10, article X, quantity 3
    item 20, article Y, quantity 1
    item 30, article Z, quantity 15
    The order response coming back from our supplier contains (example):
    Order Response number 789
    item 10, article A, quantity 10 (reference PO number = 123, item 10)
    item 20, article B, quantity 5 (reference PO number = 123, item 20)
    item 30, article X, quantity 3 (reference PO number = 456, item 10)
    When processing the incoming ORDRSP-IDoc it fails because PO-number in item is not equal to PO number in header.
    Is there any possibility to solve this? Our supplier can't change its process, so mergers of different PO items into 1 sales order will remain.
    Thanks in advance
    Renaud

    Hi,
    Check on :-
    http://www.erpgenie.com/sapedi/idoc_interface.htm
    Re: Create Sales order using ORDERS05 idoc
    WE60/WE63. > Goto > User settings. Here you must set the indicator for 'Display of the documentation' under 'Display attributes for IDOC types' and then save the change.
    pherasath

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

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

  • 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

Maybe you are looking for

  • How do I use the „Apple Mail To Do" Folder on multiple Macs?

    Hi, I'm using the Apple Mail To Do Folder respectively the "To Do" function in mail on my iMac and my MacBook. I will find To Dos created on the MacBook in the "Apple Mail To Do" Folder on my iMac, but the iMac doesn't show these To Dos in the associ

  • Development and Production Requirements for a Forms/Report application

    Dear all, We have an application witch run in client/Server mode using Forms/Reports 6i For 300 users.We want to migrate it on Forms/Reports 9I using Oracle 9IAS and Oracle 9IDB. I would like to have advises about material requirements of both develo

  • Can't submit serial during installation

    During the installation of Flash Builder 4.7 Standard, at the point where I entered my serial number, the installer is unable to connect to Adobe's server. My Internet connection is working as I am able to browse the web, but the installer just would

  • Performance Issue - higher fetch count

    Hi, The database version is 10.2.0.4. Below is the tkprof report of an application session having performance issue. We shared the screens of application team and were able to see the lag in report generation. It shows an elapsed time of 157 seconds,

  • Conflict between RealPlayer and QuickTime on a MacBook Pro

    I am trying to open a .wma file and RealPlayer is saying it cannot open the file with the current version of QuickTime installed. Any insights?