ORDCHG with accountings

Hi,
I need to transfer Purchase Orders from a 4.6 to an ECC 6.0.
I'm using IDOC ORDERS and ORDCHG. I have a purchase order in outbound and also a Purchase (not sales) order in Inbound, because document created in 4.6 should be copied in 6.0.
I added some custom segment to my IDOC i.e. account assignments. When I create the purchase order there is non problem, the IDOC is created and processed correctly, when I change my document I have some problem, infact if I change account assignment in my order I get error ME706 and IDOC is not created.
I tried to insert EKKN data in the change relevant table (T166C) but nothing changes, the IDOC is not created and I get the same error message.
Could you please help me?
Thank you very much
Paola

> the occurances used for both are same .orders is working fine but ordchg throws the above error if i change the occurance it is sucess but no output seen.(empty payload).What is the problem i am confused.
This kind of problem comes in mapping when you have not filled any mandatory node or field. So varify them all first. Because that is the reason when you change the occurence then it works.
Also check if you have mapped all Root nodes. Secondly make sure if you have used any condition on root nodes then they must fulfill the conditions. And lastly make sure you are using the correct data for testing.
Regards,
Sarvesh

Similar Messages

  • All Line Items need to send  in the PO Change EDI IDoC - ORDCHG

    Hi EDI Experts ,
    We have ECC 6.04.
    We are sending PO Change Message Tyep by using Message Type ORDCHG ( Basic Type ORDERS05)
    If PO Changes system trigger IDoc  and in Std IDoc it displays only that Line Item who had been changed .
    Requierment is that  if there is change in any single item, then  sytem should send entire/whole PO document ( all Line Items) .
    I think we need to write some code in teh routine /requierment ...etc.
    Can anyone suggest what I need to do to acehive the above ?
    Thanks
    NAP

    Hello NAP ,
         I have the same problem that you. I ´m using  the message type ORDCHG  with basic type ORDERS05.    when sending change order through Idoc only show me the updete/delete Item in segnment E1EDP01. 
    What object did you use for the message type ORDCHG ?
    What settings should I consider for this?
    Thanks in advance,
    Luis.-

  • IDOC: ORDCHG - ORDERS05 Question

    Hi
    Can i use ORDCHG messagetype and ORDERS05 for PO Change ?
    PO Change means adding new line item, deletion indicator, changes in existing line item.
    If yes, Deletion indicator is not there in any segments & Account Assignment segment is also not there in segments.
    Could anybody confirm this issues.
    Regards,
    rams

    Hi,
    but if we set ELIKZ in PO item, we just generate a ORDCHG with action=002 (change).
    But i can't see what was changed in the idoc.
    Do you know how we can report to an other system that ELIKZ was set and no more bookings are  allowed using this PO?
    Is it possible usinf ORDCHG or do we need an other IDoc-Type?
    Thanx
    Ralf

  • Automatic Output determination for PO for EDI

    I have a requirement to generate IDOCs automatically when POs are created/changed (only for certain plants) and send this PO to a certain plant which is set up as a customer ( KU partner type in Partner profile )
    I have done the following :
    1) Created a Z output type - Z005
    2) Created Partner profile with message determination for ORDERS with process code Me10 (also added ORDCHG with ME11 later).
    3) Create condition table - 925 with PO output type and Plant as criteria
    4) Maintained and activated requirement routine(here i check if Mat. type is 'RAW' and force sy-subrc = 0) and access sequence.
    5) Maintained message schema and added my condition type (Z005) and requirement routine(911) there.
    6) I have config to submit IDOCs immediately in Partner profile and in NACE.
    But somehow, the output type Z005 for EDI (6) is not automatically created when I create a PO that matches my conditions.
    I am able to create an Idoc when I manually Key in Z005 in PO header message.Once i save after manually enter the message type, it is auto generating on any further updates.
    Am I missing any config to auto generate Z00t type output for EDI  for the first time?
    Thanks in advance.
    Shareen

    Hi,
      Check this document for reference:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d4ce58df-0901-0010-a4be-9ae9eda61107
    cheers
    Aveek

  • Send PO idoc after release

    Hi SAP masters,
    The requirement is to send PO Idoc to the vendor after the purchase order is relaease. Does anybody know which message type and process code should I use?
    Thanks in advance to all.
    Fred

    Hi,
    With the message type ORDERS the Idoc is generated and send to the Vendor after PO is release. Works fine.
    The problem I have is that we are using Vendor Managed Inventory VMI and the vendor only can received as a PO confirmation message type ORDCHG (the one that SAP recommends for this functionality).
    The message type ORDCHG also works. But the problem with this is that SAP send this message when the PO is created, not when the PO is release. And that is a problem.
    One thing I discover is that the message type ORDCHG, with message variant VMI in partner profile, send the Idoc without any Output Message. SAP send the ORDCHG Idoc after received the Idoc which generate the PO in our system (ORDERS). And that is strange that I cannot control when send the PO confirmation Idoc to the vendor through the Output Type determination.
    So, I have problems with the two message type ORDERS and ORDCHG. The perfect solution would be send ORDCHG after the PO is release, but that do not work.
    Any suggestion?
    Thanks.

  • How to update multiple Sales Orders with one IDOC using IDOC_INPUT_ORDCHG

    Hi Gurus,
    Here's my scenario:
    Consider there are 2 Sales Orders for same Purchase Order -
    Open Quantity
    Sales Order 1
    Article A1
    1
    Sales Order 2
    Article A2
    1
    Say if I want to change Open Quantity of both SO 1 & SO2 by dispatching 1 Quantity each for Article A1 and A2 via ORDCHG, observed that in Include LVEDBF0N, XVBAK-VBELN is checked for only 1 Sales Order.
    Whether it is possible to update multiple SOs with one IDOC using IDOC_INPUT_ORDCHG?

    Hi,
    Check out this link, this deals with the problem you are facing.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/802f0ed1-a17a-2c10-7db4-d515a5b047ed
    Regards,
    Runal

  • Re-open EDI - ORDCHG for outbound sales order

    Re-opening post
    Hi Experts,
    I am trying to capture the changes done to a sales order
    in SD and outbound the information changed in the sales order?
    I was thinking that ORDCHG was the correct message type.
    But seems that this is used for captureing purchase order changes instead of sales order change.
    I know I can send a new idoc with ORDERSP but I want to capture what information was changed.
    Any help is greatly appreciated.

    Rolmega,
    There are two options to send out a IDOC when there is a sales order change.
    You need to do the message control customization and user exit programming in such a way that it triggers the output only when there is some change with the sale document.Tiggering output can be controlled for specific fields like 'Inco terms' (Header level) and 'Quantity' or 'Schedule lines' (item level).
    Generating an IDOC for a change can be controlled via this mechanism.This method we have already implemented for the requirement like this.
    The problem is generated IDOC would not only contain the changes done to the sale order.But this can be very well handled that at the other end by simply updating the sales order information based on the sales order number.
    (ii) In this method you can have a custom table to have all the changes done to the sales order.All the changed information can be captured at the user exit MV45AFZZ and updated with the custom table which you could for sending only the changed information to the sales order.
    With this method you can have a better control about sending the changes only once.
    If you are using CDHDR,CDPOS table how would you exactly captutre the information which have not been previously sent.Selecting the values from change documents table would affect the performace considerably.If you decided to go with the change document option then use function module 'CHANGEDOCUMENT_READ'.
    I would suggest you to take up the option 1 which is easy to implement ( Will guide you if you are intrested) and can be controlled in a better way.
    Thank you.
    Regards,
    Karun M

  • Issue with PO IDOC

    Hi,
    IDOCs for creation and change of PO is done successfully. But when I try to delete a particular line item in the PO (ME22N), the IDOC is not generated and when I try to issue the output manually, an error message No Items Found is displayed.
    Please let me know how to do testing for deletion of IDOC and also let me know whether generation of an IDOC is possible when there is deletion in the PO or not?
    Helpful answers will be rewarded.
    Thanks & Best Regards,
    Phani Kumar. S

    Hi
    have u configured the msg type ORDCHG in the outbound parameter of the Partner profile with the correspoding message control parameters?
    If so try to trigger the idoc manually form PO transaction.
    Cheers,
    Hakim
    Mark all useful answers

  • Update Purchase order number in Sales order item level from inbound ORDCHG iDoc

    Hi Gurus,
    I want to update purchase order number from the iDoc 'ORDCHG' to sales order item level (sold to party purchase order number) i.e, VBAK-BSTKD.
    Which exit I need to use?  where to update?  Can you please help.
    Thank you in advance.
    Regards,
    San

    Finally Resolved the problem by writing 2 exits.
    one exit 'EXIT_SAPLVEDB_007'  for identify correct item in the sales order by updating the customer purchase order item number i.e., VBAP-POSEX.  if we update the POSEX field then it wont create new item instead, it will update the item which it is referring to .
    2nd exit for updating the purchase order number. 
    I have tried to pass the program name, screen number, field name, field value etc to bdcdata in the exit 'EXIT_SAPLVEDB_002'. but I observed that it is not going to that screen in the debugging.
    when I try E1EDP02 with QUALF '044' it will update ship-to party's purchase order number.  so to update ship-to party's purchase order number it is going to that screen. 
    so I have used that thing to update purchase order number in sold-to party's purchase order number.
    so when it is going that screen iam changing the field name 'VBKD-BSTKD_E' to 'VBKD-BSTKD' in bdcdata.  Then it is worked.
    This is the solution I found in my time.
    Any way it is solved.  Hope it will be helpful for others who will get this problem.

  • EDI - triggering ORDCHG message when change in Sales Order

    Hi Experts,
    I am trying to capture the changes done to a sales order
    in SD and outbound the information changed in the sales order? 
    I was thinking that ORDCHG was the correct message type.
    But seems that this is used for captureing purchase order changes instead of sales order change.
    I know I can send a new idoc with ORDERSP but I want to capture what information was changed.
    Any help is greatly appreciated.

    Hi
    You can try this method.
    1. Typically what are the changes the customer is looking for is a) change in delivery schedule.
    b) New line added
    c)Change in order qnty
    d) change in Price
    List out all the changes that you want to capture.
    2. Create a table with sales order number, sales order line number, schedule line number, date ,time as the key and add other fields that you want to check if they are changed or not.
    3. write a program to update the table.
       The table is updated by checking if any of the data has been changed by comparing the data from this table and the one from standard tables like VBAK,VBAP,VBEP ETC.
    4. Define an output and assign the above program.
    5. Using the output determination procedure you can trigger the output.
    6. This will update the table.
    7. Write a program to check in this table if anything has been changed based on data and time stamp.
    8. Then call a BDC to trigger the output for the changed document.
    9. In the function module for sending ORDERSP write code to update what has changed and update the Idoc structure accordingly.
    It is hard to explain the whole process but this is good enough for a start a thought process.
    This works for me and hope it works for you as well.
    Reward if this helps
    Thanks

  • Invoke IDOC ORDCHG whenenver credit block of sales order is released.

    Hi All,
    Scenario : In the business process, whenever a sales order is created then a Purchase Order is created. And then an outbound ORDERS03 IDOC gets created. Now if the Sales Order is on credit block then a custom segment is dynamically created and sent through the IDOC. But if the later on the Sales Order credit block is released then I need to again send the IDOC with custom segment IN IDOC ORDCHG. As the change in credit block status in Sales Order does not reflect in the PO, so the IDOC doesnt get created. Please advice how to get the IDOC created even in case of credit block status change.
    Thanks in advance..
    Rahul.

    Hello,
    As you said the customer is over limit, after you release the order and do avialability check again, the order will again get blocked because of credit check. The system is behaving correctly as per standard SAP.
    Check the credit limit of the customer and the credit availed in FD32. If you want to deliver the order, you will need to release the credit block again.
    Prase

  • ORDCHG.ORDERS05.ZORDERS and ORDERS.ORDERS05 Idocs

    Hi all,
    We have two mappings for the message types ORDCHG and ORDERS.
    I have problem with the ORDCHG occurance.
    ZORDERS  1...1  -
    >Record set 0...unboundedfor both ORDCHG and ORDERS is used..
    When ever ORDCHG message type is used the below error thrown in test tab of message mapping.
    Cannot produce target element /ns0:MT_FILE_MUL/Recordset/Records. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
    the occurances used for both are same .orders is working fine but ordchg throws the above error if i change the occurance it is sucess but no output seen.(empty payload).What is the problem i am confused.
    Thanks Srinivasa

    > the occurances used for both are same .orders is working fine but ordchg throws the above error if i change the occurance it is sucess but no output seen.(empty payload).What is the problem i am confused.
    This kind of problem comes in mapping when you have not filled any mandatory node or field. So varify them all first. Because that is the reason when you change the occurence then it works.
    Also check if you have mapped all Root nodes. Secondly make sure if you have used any condition on root nodes then they must fulfill the conditions. And lastly make sure you are using the correct data for testing.
    Regards,
    Sarvesh

  • Addition Item getting added while posting Sales Order Changes - ORDCHG

    Hello,
    I have a requirement to post sales order changes - ORDCHG. Now, when I am adding the qualifier 002 at the item segment E1EDP01 with the existing Item number, it is creating another Item in the sales order rather than changing the existing one. What could be the reason? I am passing the below values in to the respective segments.
    E1EDK01-ACTION = '003' - Changes in one or more items
    E1EDP01-ACTION = '002' Item Changed.
    Please advise.
    Regards,
    Venkata Phani Prasad K

    I encountered the same problem.  As Vinit pointed out, it looks up the line item using field POSEX on VBAP instead of POSNR.  If you want to look up POSNR,  you can implement either user-exit ZXVDBU07 or ZXVDBU09 in IDOC_INPUT_ORDCHG and do the following.
    Loop through YVBAP and modify the internal table to set POSEX to be equal to POSNR.
    This will cause the IDOC to select the correct line item based on POSNR.  The only side-effect is that when the order is updated, it will also update field POSEX on table VBAP.

  • 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

  • ORDCHG - IDOC - ORDERS05  Issue IMP

    Hello,
    we have configured ORDERS- IDOC - ORDERS05 for ouput type ZSPO. User is going to trigger output manuallly in every case.
    If PO is changed still same output will trigger. Till this everything works fine.
    Now suppose one item is marked for deletion and output is triggered manually this item does not come in IDOC itself. And i want to send this with deletion indicator.
    How can I configure this? I tried adding ORDCHG - IDOC - ORDERS05  with same output type but still ORDERS IDoc gets triggred.
    Please suggets.......!!
    Thanks

    For orders change there is a different process code - ME11 for 'ORDCHG' and ME10 for 'ORDERS'.
    In case of changes make sure that in your partner profile setup (WE20) also the correct process code is assigned.
    Regards,
    Dominik Modrzejewski

Maybe you are looking for

  • How can i transfer my current itunes library to my new 3GS?

    Hey; i would be grateful if anyone could help me transfer my current itunes library synced with my 1st gen Touch to my new (ordered) 16gb 3GS? this probably seems like a stupid question but i am hardly an itunes expert! thank-you...

  • Equation Images from FM

    When exporting FM content "as HTML" FM exports equation images as gif files that look somewhat descent. When importing from RH a book or a file that contains an equation, equations are converted to jpeg files that are border-line unreadable. Is there

  • FCP 7 Why do I get these horizontal lines on my playback?

    I'm working in Final Cut with 1920x1080 Apple Pro Res footage. For some reason I keep getting these horizontal lines when I playback footage on my timeline or viewer. What is this?

  • User status for order confirmation

    Dear Expert My requirement is when system status for maintenance order is CNF and authorize person agreed with all data in confirmation, he will set user status and then only I can complete my order (Teco). Till now I created one user status OCAP (op

  • WRE54G version 3 uses all available DHCP connections causing all wireless connectivity to fail

    I couldn't find this problem via search so i've started a new thread.  Here is my problem. I have configured my WRE54G and everything seems to be working great, a Wireless connection that was LOW is not Excellent. a. I can connect to my router: 192.1