IDoc - ORDERS05 - Inbound - IHREZ_E

What segment/field/qualif should I be using to populate the field VBKD-IHREZ_E at the header level?
When creating a new sales order, I am able to populate VBKD-IHREZ_E at the item level by using E2EDP02/BELNR and qualifyier 044.
However, i would like to populate the field at the header level but haven't been able to find the right segment/field
Thank you for your help

I'm not suer about you scenario, but we create sales orders with IDoc ORDERS05 (since SAP R3 46C).
We create segment E1EDK02 with QUALF "069" and BELNR "XY". After IDoc processing we have the value "XY" in VBKD-IHREZ_E.

Similar Messages

  • Problem creating sales order using IDoc ORDERS05 (Inbound)

    Hello Experts,
    We are trying to create a sales order using the IDoc ORDERS05 with process code ORDE for creating sales order. I am getting the following error "VKORG, VTWEG, SPART cannot be determined for customer 0000006000 , vendor
    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.
    I was not able to find the fields to fill the distribution channel and divison in the Idoc structure. I have filled in Sales organization in E1EDK14 segment as 3000.
    I am not able to figure out the cause for the error.
    Same data works fine from BAPI_SALESORDER_CREATEFROMDAT2.
    Please help.
    Thanks,
    Suma
    Edited by: Suma B on Jun 17, 2008 11:12 AM

    Hello Suma
    In this case I would recommend to debug the IDoc processing.
    Call transaction WE19 and start the inbound processing of your IDoc in debugging mode. The error message will most likely occur in function module IDOC_INPUT_ORDERS.
      LOOP AT idoc_contrl.
    * SET/GET Parameter und interne Tabellen neu initialisieren
    * initialize SET/GET Parameter and internal tables
        PERFORM initialize_organizational_data.
    * IDOC-Segmente in die entsprechenden Anwendungsdaten übernehmen
    * Move IDOC to internal tables
        PERFORM interpret_idoc_orders.                    "<= check here
    * Prüfen ob gewisse Segmente gefüllt sind
    * check IDOC-Segments
        PERFORM check_idoc_segments.                 "<= check here
    * Prüfen und Ermitteln von Organisationsdaten
    * check internal tables and determine organization data
    Regards
      Uwe

  • PO Creation Using IDOC ORDERS05 - Inbound Issue

    Hi Experts,
    I am new to the ALE/IDOCs. I am trying to create a PO in one client and trasnferring it to another client using the IDOC extension. I am using Message type ORDERS and Basic type ORDERS05 (Extended). I have craeted Partner Profile for both Inbound and outbound in their respective clients.From Outbond the Purchase order is sent successfully to the Port. On the inbound the PO is failing due to incorrect function mudule chosen for processing through process code. I have tried process codes like ORDE,ORDS,DELO and ME11.
    Please Let me know the corrects process code in the inbound, to process IDOC as PO.
    If i need to go for all together a different mesasge type. Please give me all the relevant details like BASIC type, Process code in Inbound and outbound . And i want the BASIC type to be extensible.
    Thanks,
    Murali

    Hi,
    In the inbound side create a new entry in WE57 tcode.. with the functio mdoule as "IDOC_INPUT_ORDERS", basic type "ORDERS05", extn< specify the extn u created at outbound side>, message type "ORDERS". Now see if it is working.
    Regards,
    Nagaraj

  • Creation of a line item in the existing PO by inbound idoc (ORDERS05)

    Hi friends,
       I have the following requirement.This is for the  inbound idoc ( orders05).
    If there is an extra item line in the confirmation idoc, for which no corresponding purchase order line is found, check if the extra line's NOB-number is found in the new NOB-number check -table.
    Fetch NOB-number check table with database keys:
    E1EDP19-IDTNR (when E1EDP19-QUALF = ZNO) = NOB-number in the table
    EKPO-WERKS (from 1st purchase order item line) = site number in the table.
    If the NOB-number + WERKS is found in the control table, create a new item line in the purchase order.
    If the NOB-number + WERKS is not found in the control table, put the idoc into error.
    Can you please tell me that how to create a new item line in the purchase order.
    Waiting for your help.
    With Regards,
    Ajit Prasad.

    You like to add new line item in existing purchase order or new po.
    Thanks,
    Narayan

  • Inbound IDoc ORDERS05

    HI,
    I have to design an Inbound IDoc for create an Sales Order from a plain file
    The Idoc I use is ORDERS05
    Can anybody help me with some easy example???
    I have some problem when I tried to match the fields in the segments of the Idoc and the fields in the transaction VA01....

    Hi,
    Please check this links for inbound IDOC ORDERS05 data mapping.
    http://www.erpgenie.com/sapgenie/docs/sapedi/ordersin.xls
    http://www.erpgenie.com/sapgenie/docs/sapedi/ordedi.xls
    http://www.erpgenie.com/sapgenie/docs/sapedi/ordi1.doc
    If the above links do not work for you, then please try to use WE19 (IDoc testing tool) for data mapping and simulate the inbound sales order. You can also use this tool for testing purposes as well.
    Once done, then you can try to process your inbound IDoc file using standard program RSEINB00 to read the file and generate IDoc(s). Please ensure all your ALE and IDoc configuration are done such as distrribution model (BD64), partner profile (WE20), IDoc Port Processing (WE21) and so on.
    Hope this will help to start with.
    Regards,
    Ferry Lianto

  • IDOC-Orders05 extension for Inbound process

    Hi experts,
    Here am struggling with one IDOC requirement,the requirement is Updating the data for the three fields in VBKD through inbound idoc.
    since those fields are standard fields that is missing in the segment of standard IDOC-Orders05,so here am doing the extension of orders05 the basic steps like segment creation,assigning message type,assigning functional module has been done,now am copied the standard function module IDOC_INPUT_ORDERS to Z and now i have to find out the exact point where i have to insert my logic to update those fields.
    No where am finding the option to modify the VBKD table,Can you please help me on this.

    Hi Dinesh,
    Please try to use  BAPI 'BAPI_CUSTOMERCONTRACT_CHANGE' to update your required  data in VBKD  table , Please use this BAPI in inside your IDOC  FM.
    Below Sample code are there , Please try to use.
    d_VBELN = '50000172'.
    contract_header_inx-updateflag = 'U'.
    CLEAR contract_items_in.
    contract_items_in-itm_number = '100'.
    contract_items_in-material = 'H51-YY019'.
    contract_items_in-target_qty = '2'.
    APPEND contract_items_in.
    contract_items_inx-updateflag = 'U'.
    contract_items_inx-itm_number = '100'.
    contract_items_inx-material = 'X'.
    contract_items_inx-target_qty = 'X'.
    APPEND contract_items_inx.
    CALL FUNCTION 'BAPI_CUSTOMERCONTRACT_CHANGE'
    EXPORTING
    SALESDOCUMENT = D_VBELN
    contract_header_in = contract_header_in
    contract_header_inx = contract_header_inx
    TABLES
    return = return
    contract_item_in = contract_items_in
    contract_item_inx = contract_items_inx.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Regards,
    Prasenjit

  • Purchase Requisitioner in ORDERS05 Inbound IDOC

    Hi:
    I have a scenario where a sales order is created based on Inbound ORDERS05 IDOC. Based on the 'Z' Item Category tab a PR is automatically created. In our system settings Purchase Requisitioner name is being asked while a PR is getting created automatically based on ORDERS05 inbound sales order IDOC.
    In order to get PR automatically created I have to pass Purchase requisitioner name in the IDOC. Can you please let me know in which segment I need to pass this Purchase Requisitioner (EKKO-AFNAM)?
    Thanks.

    Hi!
    I have been looking for this and i think in the ORDERS05 idoc type doesn't come this data. I think you need BNAME and TELF1 fields from VBAK table.
    Both would have to be informed in E1EDK01 but it doesn't appears.
    You probably have to do an extended idoc type with a segment including both fields. I think you are using IDOC_INPUT_ORDERS as function inbound. You have to use FUNCTION EXIT_SAPLVEDA_001 user exit for capture your segment.
    Regards.

  • Inbound IDoc ORDERS05 : PO Rejection Indicator Issue

    Hello,
    We are receiving idoc ORDERS05 with message type ORDRSP from vendor(PO Confirmation) with 003 as ACTION in field E1EDP01-Action.
    but still rejection indicator for PO item is not getting Set.Hence we see PO item is not marked deleted.
    Could you please suggest what we are missing ?

    Hi,
    check the step by step config setting for purchase order..
    The transaction codes that are required for this method are
    We81
    We30
    We31
    We82
    We21
    We20
    Bd64
    Nace
    Me22n (purchase order), va02 (sales order) etc.
    Ex: purchase order.
    Message type: ORDERS
    Idoc type: ORDERS05
    Outbound process code for purchase order: me10
    The steps that are to be followed are:
    Check for the message type in the transaction in we81.
    check for the idoc type in the transaction we30.
    check we82 in which the link between message type and idoc type is there.
    create the port in we21.
    Configure the partner profiles in we20.
    Click on the + button outbound parameters and give the message type, receiver port,Idoc type.
    Now press on the message control tab, this is the place where u give the outbound process code. The message type in the message control is the output type that is used in the nace transaction.
    Create a distribution model in bd64.
    Go to purchase order transaction (me22n).and press the messages tab
    In the messages tab give the output type and the distribution medium as distribution-ale and then save it.
    Reward if helpful.
    Regards,
    Nagaraj

  • Inbound Sales Order IDoc ORDERS05

    Hi there,
    I'm using the Idoc ORDERS05 Process Code ORDE to create Sales Order, all the process it's working perfectly. I would like to know if I can fill the header text of the order using the Idoc. The FM that I'm using is IDOC_INPUT_ORDERS
    I have included in the idoc the following segments:
    E1EDKT1                     003 EN   0001      0001
        E1EDKT2                     XXXXXXXXXXXXXXXXX
    but the header text in the order created is empty.
    Any idea about this, thanks in advance.
    Alexis Ramirez

    Hello Alexis
    Below you see part of the XSLT mapping (on SAP-XI) for EDI purchase orders which are mapped to ORDERS.ORDERS05 IDocs (-> sales order).
    I assume that in your case the name of TDOBJNAME (here = 'String') is missing.
                             <E1EDKT1 SEGMENT="1">
                                  <TDID>Z091</TDID>
                                  <TSSPRAS>D</TSSPRAS>
                                  <TSSPRAS_ISO>DE</TSSPRAS_ISO>
                                  <TDOBJECT>VBBK</TDOBJECT>
                                  <TDOBNAME>String</TDOBNAME>
                                  <E1EDKT2 SEGMENT="1">
                                       <TDLINE>
                                            <xsl:if test="../S_UNB/C_S002/D_0004='12345'">
                                                 <xsl:value-of select="S_BGM/D_1004"/>
                                                 <xsl:text>/RY</xsl:text>
                                            </xsl:if>
                                            <xsl:value-of select="S_FTX/C_C108/D_4440"/>
                                       </TDLINE>
                                       <TDFORMAT/>
                                  </E1EDKT2>
                             </E1EDKT1>
    Regards
      Uwe

  • 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

  • Problems with idoc ORDERS05

    Hi experts,
    I created a new Z segment for idoc ORDERS05 and it works fine. This idoc is generated whenever a PO is created or modified. But if the PO has locked or deleted items, there is no segment for this items in the IDOC. Should I modify any code or something in SPRO??
    Thanks in advance,
    Maria

    Hi again...
    I'm trying to make a copy of the standr FM IDOC_OUTPUT_ORDERS because I think it may be easier to add the segments I need. I have also created in tx. WE41a new operation code ZME10 with my new fm. An in tx. WE20 I have assigned ZME10.
    The problem is when I run ME9F i get this error:
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_FUNC',
    was neither
    caught nor passed along using a RAISING clause, in the procedure
    "NEW_DYN_PERFORM" "(FORM)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    The program "RSNASTED" contains the CALL FUNCTION statement.
    The name of the function module to be called is "ZIDOC_OUTPUT_ORDERS".
    but "ZIDOC_OUTPUT_ORDERS" cannot be found in its function group.
    Any idea ??
    thanks in advance !

  • Idoc - for inbound delivery order confirmation

    Hi,
    Can some body give me the idoc for Inbound SO Delivery Order Confirmation and if any BAPI method is there to create Delivery order confirmation.
    With Regards
    Vasu

    Hi Vasu,
    Below is the link to find out the IDOC name for ur Inbound IDOC scnario
    http://help.sap.com/bp_bpmv130/Documentation/K17_BPP_EN_US.doc
    Hope this willl help you.
    Reward if helpful.

  • Problem in message mapping (outbound IDOC ORDERS05 from SAP R/3)

    Hi to all,
    I have an outbound interface from sap r3
    sap r3 --> XI --> ftp server
    idoc --> XI --> text file
    Using IDOC orders05
    The problem is in segment E1EDP01/E1EDP19
    Segment E1EDP01 is unbounded and i map it well. If it contains E1EDP19, works fine. But in some cases, E1EDP19 not appears at E1EDP01segments. So then XI fails at mapping:
    IDOC OUTPUT (OK)
    1-E1EDP01/E1EDP19
    2-E1EDP01
    3-E1EDP01/E1EDP19
    4-E1EDP01
    XI WRITES (FAILURE)
    1-E1EDP01/E1EDP19
    2-E1EDP01/E1EDP19 (INFORMATION FROM LINE 3)
    3-E1EDP01 (WRONG)
    4-E1EDP01 (WRONG)
    You can take a look of Mapping mode here:
    <a href="http://img505.imageshack.us/my.php?image=orders05mappingcj8.jpg">[IMG]http://img505.imageshack.us/img505/1536/orders05mappingcj8.th.jpg[/IMG]</a>
    We don't use BPM and wanna use a solution without it.
    Pls ask me for more information if necessary.
    Thanks a lot for your help; Regards

    Hi all,
    The mapping function includes an exists and a mapwithdefault.
    Now the creation of the segment is handled ok, but not as well its fields. Its unable to determine the write of the second E1EDP19 segment and it does:
    1- OK
    2- OK
    3- Writes E1EDP20 but not the 19
    4- OK
    Thanks for your interesting

  • SM58 - IDoc adapter inbound: IDoc data record table contains no entries

    Trying to send Idocs from SAP ECC6.0 via PI 7.0 up until 2 days ago there was no problem.
    Since yesterday, only one specific type of Idoc does not make it into XI (PI). In the Idoc monitor (WE02) the idocs that were created gives status 3 which is good. But all Idocs of that specific type (ZRESCR01) does not go to XI. I can only find them bakc in SM58 where it gives the following message:
    IDoc adapter inbound: IDoc data record table contains no entries
    I have checked SAP notes 1157385 and also 940313, none of them gives me any more insight into this error. I have also checked all the configuration in WE20, SM59, and in XI (repository and directory) and in XI IDX1, IDX2 but could not find anything that would cause this. I can also not think of anything that changed since 2 days ago.
    Please point me in the right direction.

    hi,
    i think in sm 58 u can find entries only when there is some failure in login credential .
    if there is change in IDoc structure than you have to reimport the idoc metadata defination at IDX2.otherwise not requird.
    please check the logical system name pointing to the your requird target system....
    please also verify thet your port should not be blocked.
    pls find the link it may help
    Monitoring the IDOC Adapter in XI/PI using IDX5
    regards,
    navneet

  • How to post idoc ORDERS05 from ABAP standalone program to the same R3 syst?

    Hi Masterminds,
    I need to post IDoc from ECC to same R/3 system. For that i need to develop a standalone program which will post Idoc 'ORDERS05'.
    I had the following data:
    E1EDKA1                         - PARTN
    E1EDK02; QUALF = 001        - BELNR
    E1EDP19; QUALF = 003     - IDTNR
    E1EDP02; QUALF = 997        - BELNR
    E1EDP01     MENGE               - Space
    E1EDP02; QUALF = 999        - BELNR
    E1EDK01     BSART               - Space
    E1EDP19; QUALF = 002        - IDTNR
    E1EDP01     ABGRU              - Space
    E1EDKA1     PARVW              - Space
    Please provide me details how to write the program and what necessary steps do i need to follow.
    Thanks......

    Hi,
    Do ALE settings and Fill two tables of type EDIDD and structure of type  EDIDC
    and pass it to function module 
    CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
        EXPORTING
          MASTER_IDOC_CONTROL                  = P_WA_EDIDC
      OBJ_TYPE                                              = ''
      CHNUM                                                   = ''
        TABLES
          COMMUNICATION_IDOC_CONTROL           = P_I_EDIDC
          MASTER_IDOC_DATA                                = P_I_EDIDD
       EXCEPTIONS
         ERROR_IN_IDOC_CONTROL                        = 1
         ERROR_WRITING_IDOC_STATUS               = 2
         ERROR_IN_IDOC_DATA                              = 3
         SENDING_LOGICAL_SYSTEM_UNKNOWN       = 4
         OTHERS                                                            = 5.

Maybe you are looking for