Cancel a Sales Order via IDOC processing

Hello,
I am trying to cancel an item within a sales order using ORDERS05 (IDOC_INPUT_ORDCHG).
My IDOC contains the following data:
E1EDK01-ACTION = 003 (Changes in one or more items)
E1EDK02-QUALF  = 002 (Vendor Order)
E1EDK02-BELNR  = SAP Sales Order Number to be updated.
E1EDP01-POSEX  = SAP Sales Order Item Number to be deleted (eg. 000010).
E1EDP01-ACTION = 003 (Item cancelled)
E1EDP19-QUALF  = 002 (Material number used by vendor)
E1EDP19-IDTNR  = SAP Material Number of Item to be deleted
However it does not seem to be working correctly. Instead of removing the item from the sales order - it actually creates a new item.
Has anyone had any experience with successfully cancelling an item using IDOC processing?
Any assistance would be greatly appreciated.
Thanks and Regards,
Corinne

Hi Corinne,
I don't think you'll get back the response you want from SAP.  This idoc was originally created to support the EDI scenario where your customer makes a change to their purchase order.  The EDI message would be sent to SAP to update the corresponding sales order in your system (after being mapped to an Idoc).
As your customer does not normally not have your sales order item number in their system, they can only send their own purchase order item number.  SAP then uses this number to look up the corresponding SAP sales order item number via the VBAP-POSEX field (which in this scenario is originally populated by the Idoc which created the order from the customers original purchase order EDI message).
So, I dont think SAP will change this functionality.  They may offer, however, a work around!
What I still think is strange though, is that, having not found a match for your item on the POSEX field, SAP ignores the deletion flag and adds a new item to your order.  At the very least you would expect it to just ignore the item (a quick look at the code in 4.7 seems to imply that this is what SAP is trying to do - maybe a change from your version?).
Hope that helps.
Brad

Similar Messages

  • 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

  • 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

  • BAPI/IDOC to cancel the sales order ?

    Hi folks,
    What is BAPI /IDOC to cancel the sales order in ECC via PI .
    Thanks.,
    Shiva

    Hi Shiva,
    To my thinking you can use the BAPI for canceling and updating the sales order.
    For further reference you can have a look on the below link:
    BAPI SALESORDER CHANGE
    In this link you will find the values to be filled for performing different function for the BAPI.
    Regards
    Ravi Anand

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

  • Price conditions on Sales Orders via EDI

    Hi,
    I need to know if there is a way to bring prices over on the IDOC while posting a sales order via EDI. I have a situation where the price does not have to be determined based on condition records setup within SAP but rather update the price sent on the IDOC itself.
    Thanks
    MR

    Hi,
    Let the inbound Idoc have the price field and the price of the material. And keep the price condition type open/manual entry allowed. Once this is done the system will not do it from the condition record and will populate the data that is there in the Idoc.
    Hope this helps.
    Kind Regards
    Chakradhar

  • Issue with UPC codes in Inbound sales orders via EDI.

    Hi All
    We are on ECC 6.0. We have incoming sales orders through EDI IDOCS. In the incoming IDCO the customer can provide either of the following information in that sequence.
    1.  GTIN number
    2.  Customer material number
    3.  UPC code
    4.  Old Product code.
    We need to derive the correct material number for each customer. Now I can achieve this through standard material determination using material determination type access sequences in the order specified above. However I cannot do the same, as we need to use material determination for genuine promotions. For example I can maintain a material determination record to map UPC 123456789 to Material number ABC in SAP R/3. However we do have situation where in for a particular season or depending upon the ATP situation we may have to derive Material XYZ (SAP material number) in case customer orders material ABC. So in other words if I use material determination to derive my SAP material number for in-coming IDOCS based on UPC codes then I would need to have multi level material determination. I.e. From an IDOC for UPC code 1234566789 I derive material ABC and then for material ABC derive material XYZ.
    I tried setting up these two layers of material determination in the standard system. It is possible only if I use a substitution reason which copies the material entered as a sub-item. We do not want to maintain the sub-item in sales order and relevant documents for a lot of other reasons. Is there a way I can use standard Material determination/substitution to derive this multi level search without haveing to copy the sub-item in sales order? Am I missing some settings here? If not is it possiblt to suppress the sub item from being derived in SAP using some user exit in sales order processing?
    For an IDOC I could have used standard SAP tables to identify SAP material number based on UPC code. However the problem is we have multiple SAP material numbers assigned to one UPC code. So it is not possible to identify a unique material number just based on the UPC code.
    I would like to know if any of you experts have encountered a similar situation and if so what is the ideal way to resolve this issue. Any comments/suggestions/guidance is welcome. You can also reply at my e-mail id [email protected].
    Thanks

    Hi Daniel,
    Can you please which IDoc message type you are using to create sales order using IDoc?
    Also check in IDoc, what is the value of ACTION & EINKZ fields in segment E1EDP01?
    Regards,
    Amit

  • 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

  • Error adding Sales order via DI-SERVER Posting Date deviates from the defin

    When adding a sales order via the DI-API we have started receiving the following error:
    Error: Posting Date deviates from the defined range. To complete the operation, define the posting period to match the entered Posting Date. [(----) 131-204]
    I have verified that the posting dates within the document exist within the defined posting periods in SAP and that the posting period in question is unlocked.
    I can add the document within the SAP B1 interface without any issues.
    This process and code was also working up until the start of the new financial year.  There have been no changes to the code or the financial periods in the new year.
    There is a  peculiarity with the financial periods for this company in that they have moved from calendar periods in the past to financial periods.  Has anyone come accross any issues with posting dates and the DI SERVER API?
    The dates in the XML document that we are trying to add are shown below.
    <Documents>
    <row>
    <DocDate>20100310</DocDate>
    <DocDueDate>20100310</DocDueDate>
    <CardCode>C9999</CardCode>
    The following are the financial period values from OFPR
    Posting Date From/To:       06.03.10     02.04.10
    Due Date From/To:            01.01.10     01.04.11
    Document Date From/To:  01.01.10     02.04.10
    Start of Fiscal Year:         01.01.10
    Regards,
    Sean

    Hi Gordon,
    Our customer has moved their financial year end from 1 April / 31 March using calendar months to a 4/4/5 financial period model with a year start date from Jan.
    This was necessary after the company was purchased by a US firm that wanted to align the reporting calendars.
    Under the 4/4/5 model their financial year start date does not start 1st January. Hence the 3/1/2010 being the first date of the January period.
    No matter how the periods are setup the financial year start date in SAP Business One cannot be anything other than the 1st of the month.
    All posting within SAP appears to be working fine, it is only via the DI SERVER requests that we seem to be having problems.
    However, we suspect that the issue may be unrelated to the posting periods due to some other testing performed.
    Regards,
    Sean

  • How to cancel the sales order - header and line status are in Entered Stage

    Dears,
    I have some sales order to be cancelled in which the header and line status are in *"Entered"*. I am not able to cancel these sales order.
    Also note that these orders are for maintenance service.Once i book these orders the lines will change to closed status.
    So it is not possible to book and cancel the lines.
    Kindly me to resolve this.

    926530 wrote:
    Boss,
    If i do Action-->cancel on header, it just makes the qty to zero.But the header and line status still showing as entered.It will not cancel the order.
    The problem for me is that these lines are coming in my monthly reports. This is what your question says...be more specific as what is your issue..which in turn is your problem
    How to cancel the sales order - header and line status are in Entered Stage
    Coming to your Action-->cancel...as far as i know ...the header status will change to canceled..
    unless until you have some processing constraints in place...which is stopping you...
    HTH
    Mahendra

  • Cancellation of Sale Order

    Hi all,
    I have an issue with SD/FI.   The details are given below:
    I would like to cancel a Sales Order due to wrong sold-to-party selected. There is an existing accounting document created.
    How do I proceed with the cancellation of the Sales Order? I want to prevent this SO from being used.
    This is the first transaction.   Actually, the Accounting document generated through Billing Document and the same was cleared against down payment. 
    Is it possible to cancel the Sale Order to change the sold-to-party without affecting the Sale Order.
    As per my observation, it is not possible once the accounting document generated.
    If we want to cancel the Sale Order, is it possible?
    Reverse the clearing document, down payment document & billing document.
    Then cancel the billing document. 
    Hence, we can cancel the Sale Order.  
    It will affect the previous period balances.   Is it correct??
    Can any one give some guidelines.  Whether I am correct or not??
    Thanks & Regards,
    SAP

    Thanks for all your efforts and replies.
    As per discussion, I convinced to make JV for subsequent adjustment.  
    How to protect the concern sale order to avoid future use.
    I hv tested in SO through development after selecting "Cancel Sales Deal" in the field Reason for Rejection.
    Tried for billing and it is not allowing.
    Can I suggest this methodology??
    Pls note that there is no sales scenario.    The contract and deposit money transactions handled
    through SD.
    Please give your opinon or give some more stop to prevent the SO.
    Regards,
    SAP

  • How to Cancel a Sale Order without cancelling the subsequent document.

    Dear All,
                 I want to cancel sale order but the sale order have a subsequent document is there is any soulution that when i cancel the sale order all the subsequent document, outbound delivery and invoice cancelled in jn\ust one step, if not then what is the other way to solve that problem.

    Hi
    You can reject the sales order by going to VA02
    Go to-> Item -> Enter Reason for Rejection
    and save the order.
    This will reject the order even if the subsequent documents are created so that no further open quantities can be delivered.
    Reward points if useful.
    Regards,
    Nimit
    Edited by: Nimit Raiya on Jul 3, 2008 4:03 PM

  • Auto cancellation of sales order

    Dear All,
    Here we are having make to stock scenario. Is it possible to put any expiry date limit for the sales order like quotation??? also is it possible to auto cancel of sales order which are expired ???
    Regards,
    Sagar Wairagade

    Hi Sagar,
    suggestion:
    get a program developed to pick up SOs older than some date or whatever you like to define..
    setup a variant and setup a bkgd job to run everynight to delete or reject all line items with a reason code.
    I hope this helps.
    Regards,
    Raghu.

  • Error in VA01 - "Sales order cannot be processed. Check customer type."

    Hi,
    While creating a Sales Order in VA01, I receive this error message - "Sales order cannot be processed. Check customer type."
    Could you please tell me what could be the reason for this.
    Thank you,

    Hi,
    U Can Find the Customer Type in Extras> Account Group Information> Customer Types.
    There U can Make the Customer Type.
    Regards..
    Praveen Kumar.D

  • Error creating sales order via Interaction Center

    While creating a sales order via Interaction Center, I am getting an error "Error while creating member activity for order 5129793", as a result the points are not getting accrued for the account.
    Can anyone please help? I am very new to this
    Regards,
    Harsh

    Hi,
    Check the partner determination profile in spro for this activity. Try to use a standard profile and see what happens.
    Best regards,
    Caíque Escaler

Maybe you are looking for

  • Info about external startup on pavilion c20

    would like to start my pavilion c 20 by using a cd/dvd or flash drive can this be done the machine is running windows 8

  • Automatic trim of too long strings

    Hi, if I try to insert a too long string value into a VARCHAR column, I get the error ORA-12899. Is it possible to set the Oracle database so that too long strings get trimmed automatically? Thank you.

  • Populating values in interactive form drop

    Hi, I have created an adobe form, in which I have to create drop down box which has to read values from simple type. for this i have created context attribute whose type is simple type, and i have draged that context attribute in adobe form, and made

  • Diff btw ITS and webdynpro

    Hi All Can anybody throw a flavour on Diff between ITS and webdynpro In SRM 5.0 they are using ITS But in SRM 6.0 they are using webdynpro technology regards dugyala

  • Adding attributes

    I tried to add a string attributes (not read only) using the IFS manager (in: Developer's Tasks / Class Objects / PUBLICOBJECT). The new attribute is added to any new and existing document. But I didn't find a way to save information in the new attri