Sales Order item Delete

Hi gyes,
    in va02 when i delete the sales order item,is any user exit is fiaring.please help me
Thanks Jinna

Hi,
The following are the User_Exits in Va01/Va02:-
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
<u>Place a breakpoint in these user exit.
Delete a sales order item and see which exits are called and in which order.</u>
Regards,
Sameena

Similar Messages

  • Sales Order Items Deletion

    We had a LO Extraction problem and the LO queues got deleted from R/3.
    So, we lost some Sales Order Items. We recovered from that by doing a manual setup of those documents and we loaded all the missing documents.
    However, there was another problem which was overlooked. Those Sales Order Items that were deleted at time when queues were deleted, are no longer existing in R/3 but are present in BW.
    We identified those documents and items to be deleted as 14 in number, which isn't that bad, but which is the best way to delete them in BW?
    1) Selective Deletion - doesn't work as we dont have Document number at Cube level.
    All helpful inputs will be rewarded.

    > dear Venky,
    > i think ...
    > try 'export' these 14 docs to text file (csv)
    > and add 0recordmode or 0storno with value 'X',
    > then assign the infosource with new source system
    > 'flat file' and create transfer structure with
    > fields/infoobjects sequence as downloaded file,
    > if you are using ods, i think you may try just the
    > keyfieds.
    > try simulate this in development, first without
    > 0recordmode/0storno = X to add the records to
    > ods/infocube, then give 0recordmode/0storno = x, and
    > see if they are deleted smoothly.
    > hope this helps.
    AHP:
    I was working on last week doing the same, What ended up happening was that The record still existed with all key figures ended up becoming zeroes.
    My flat file had this:
    X;0106662496;X;40
    X;0106662547;X;10
    I tried, X, R & D for the reversal Indicator and the result was same, record still existed and key figures became zeroes in ODS.
    Updating to cube(which doesn't have Doc number) is still another long way to go for me.

  • Contract and sales order  item deletion

    Dear Experts
    I am facing a problem in a praticular scenario.In our process we are making quotation(thru VA21)>Sales order>delivery>PGI>Billing
    Now if we have a material code Z with qty as 10 in quotation the same gets copied to the sales order.But if i wish to delete the same line item in sales order , system prompts that this item refers to the quotation so it cannot be deleted.
    Now if i go to quotation and try to delete the same line item , then also the system prompts that the sales order XXXX refers to this line item , you cannot delete it.
    I wish to delete the same from sales order as well as the Quotation also.Kindly advise
    Regards
    Naveen
    Edited by: Naveen Sharma on Apr 16, 2010 11:11 AM

    Hi Raga
    But my problem is for ex. i have prepared quotation for Material codes
    X-->5 QTY
    Y-->6QTY
    Z-->7 QTY
    Now the sales order is also having the same 3 material codes.After this we had done the delivery for lets say only X & Y.We dont wish to do the delivery for Z material so even i am going back to VA02 and trying to delete it the system prompts the earlier messages which i had explained
    My requirement is to delete only Z from SO & Quotation

  • How to make a sales order item deleted in ECC while in CRM just status changed?

    Hi expert,
    I have a requirment, that is:
    1. the user will change the USER STATUS in a line item of sales order to "CANCEL".
    2. When the order was replicated to ECC,the item should be deleted totally and the ITEM in CRM should not be affected.
    How can I implement this? Is there any resolution by just make some configuration?
    Thanks in advance.
    Jerry

    Hi Jerry,
    As per standard SAP, the line item is not deleted (in ECC) based on the status changes at the line item (in CRM)
    You need to do the development to achieve this.  Following points to be considered if you are doing any custom enhancement.
    1. What triggers the sales order replication ? Is it status change at header level ?  If yes, then you need to define a program which will first check the line item status in CRM Sales Order.
    2. Wherever a line item status is CANCEL, it may store in some internal table and then it will call an RFC to delete these line items in the replicated ECC Sales Order.  (without deleting the line items in CRM Sales Order)
    3. Mind you that, this will be a complex enhancement and may give lot of challenges in the sales order replication to ECC.
    Drawback of this requirement -
    1. If your client prefer to have this scenario, then it is fine, but I could see the data inconsistency in all such sales orders.  There will be a mismatch between the sales order in ECC and CRM
    Hope this will be useful
    Thanks and Regards
    DJ

  • Deleting all linked documents per sales order/item

    We have documents linked to our sales orders/items (which can be seen via CV03N).  I would like to run a batch program to selectively delete all of these linked documents.  There is a function module CV140_LINKS_DELETE that looks will do the trick if you supply DOKAR, DOKNR, DOKVR, DOKTL, DOKOB and OBJKY.  In our case DOKAR is 'ZQN', DOKVR is '00', DOKTL is '0000' DOKOB is 'VBAP' and OBJKY is a combination of sales order/line.  How would DOKNR be filled in if I want to delete all documents?
    Thank you.

    In my case, I'm trying to delete the following:
    DOKAR = 'ZQN'
    DOKNR = (can have 34 different values ranging from Q01-Q34)
    DOKVR = 00
    DOKTL = 0000
    DOKOB = VBAP
    OBJKY = sales order/line - I have this in an internal table I loop thru
    My issue is with the DOKNR value.  Is there a way to delete all document links for a sales order/line when you don't have a DOKNR value?

  • Deletion of Sales Order Items

    (Have also posted this on Security forum but hope someone on here can help)
    We need to be able to block users from deleting sales order items. The objects V_VBAK_VKO and V_VBAK_AAT can be used at the 'order header' level but these do not prevent a user deleting an individual item in an order. Does anyone know of a way of achieving this through authorisations?

    Dear Peter
    Following are some of the sale order user exits which you can make use of  to achieve your requirement.
    -  User exits in the program MV45AFZZ - USEREXIT_READ_DOCUMENT
    -  User exits in the program MV45AFZZ - USEREXIT_SAVE_DOCUMENT
    -  User exits in the program MV45AFZB - USEREXIT_CHECK_VBAP
    Tell the logic to your ABAPer and ask him / her to write a code in any of the above user exits which can definitely be achieved.
    thanks
    G. Lakshmipathi

  • Where Can I settle an enhancement to delete a sales order item according to the data in BDOC from CRM?

    Hi expert,
    I have an urgent requirement from the client.
    Delete the sales order item totally in ECC.
    I planned to implement this enhancement in ECC. Check the data in BDOC from CRM middleware, according to the user status in the order item,decide whether the item can be deleted.
    My question is,where can I settle this enhancement? The BADI name,user exit?
    Thanks in advance.
    Jerry.

    Hi Jerry,
    It may be delayed. you may found the solution.
    Use BADI CRM_DATAEXCHG_BADI and try the code in MBDOC_FILL or BAPI_FILL method.
    Regards,
    Bala

  • Utility Report to delete incomplete sales order items

    Does anyone know the name of the SAP report that is used to delete incomplete sales order items.
    When you save an order with multiple order items and later delete one of more of the items, SAP sometimes  leaves an entry in one of the internal tables and flags the sales order as "incomplete"; while referencing order items that no longer belong to the sales order.
    Prior to ECC6.0, SAP provided a utility report that could be used to delete these items .
    Does anyone have the name of this report  ?
    Points for help

    HI,
    try
    V_UC                 Incomplete SD Documents
    V_UC_7               Incomplete SD Documents
    Thanks,
    Pramod

  • Sales Order - Returns change the sales order item delivery status

    Hi All,
    we have the following requirement from our users:
    after creating a return, the original sales order should have the
    delivery item status changed.The system should permit that a new
    delivery can be created for sales order item already delivered / billed (a new delivery with the quantity that has being returned) but has a return document,
    without increasing the sales order quantity.
    Does any body got the same requirement ?
    Thanks in advance,
    Marcus

    Hi Marcus,
      After creating return order you have to do the goods receipts.But this doesn't mean that you will be able to create a delivery with the old order itself.
      You have to create the order again and ahve to create a new delivery,goods issue and billing.
      Another option is as Roberto said that you have to reverse the goods issue thru VL09 and then cancel(delete) your delivery and then you can create a new delivery wr.t to your original sales order.
      Reward points if it helps.
    Regards
    Karan

  • BAPI_SALESORDER_CHANGE to update reason for rejection of sales order item

    Hi,
    The FM BAPI_SALESORDER_CHANGE is not working properly as I am getting below error when try to update the reason for rejection at sales order item level.
    The delivery is done for this salesorder. Is it because the reason for rejection field is not as an input field when delivery done?
    error in return table is " Field 'ABGRU' cannot be changed, VBAPKOM 000010  ready for input"
    Request your suggestions to avoid this error.
    Thanks

    >
    anikaushi wrote:
    > Hi,
    > The delivery is done for this salesorder. Is it because the reason for rejection field is not as an input field when delivery done?
    >
    >  error in return table is " Field 'ABGRU' cannot be changed, VBAPKOM 000010  ready for input"
    >
    >
    > Thanks
    Yes, Most likely.. You can confirm this by trying to change a order without delivery and see if it goes thru (to ensure that you have passed correct parameters)...
    you may have to delete the delivery (and if billing document exist, cancel it), before you can reject the line item... it would be safer to raise an error message and let the users manually delete delivery document as long as you don't have large volumes of this scenario..
    Please see the SDN thread for how you can avoid this error...
    Re: Cancel Sale Order after Issued Billing

  • Sales Order Item Data & Sales Order Schedule Lines

    Hello,
    I have a Sales Orders cube which is pulling data from two DSOs (one for sales order item data and the other for sales order schedule data). The common fields between these two DSOs is the Sales Order number but in my cube I have dual entries for each Sales Order document (item and schedule info).
    Example of how the data looks now:
    <b>Sales Order . . Item Cat. . . Article . . . Net Price . . . Delivery . . .  Act GI Date</b>
    1. . . . . . . . . ...TAN. . . . . ABC123. . . .10  
    1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 . . . . . . . . 01/01/2000
    2. . . . . . . . . ...TAN. . . . . CBA321. . . .15  
    2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 . . . . . . . . 01/02/2000
    How do I merge the data on the Sales Order number in the cube so it looks like below?
    <b>Sales Order . . Item Cat. . . Article . . . Net Price . . . Delivery . . .  Act GI Date</b>
    1. . . . . . . . . ...TAN. . . . . ABC123. . . .10 . . . . . . . . . .1 . . . . . . . . 01/01/2000 
    2. . . . . . . . . ...TAN. . . . . CBA321. . . .15 . . . . . . . . . .2 . . . . . . . . 01/02/2000  
    Many thanks,
    Matt

    Hi Matt,
        Its no possible If you are maintaining data at Order Level.
    Try to introduce one more ODS/DSO in between ODS's and CUBE by keeping Sales Order only key field. Load data from both DSO's in required fields only. Then PUSH delta to CUBE. In this why you can maintain 1 record. Try to compress cube(with delete Zero Record Rows) to delete unnessasary records.
    Hope it Helps
    Srini

  • How to do INIT for Sales order Itema Data (DS 2LIS_11_VAITM)

    Hi all
    I have a report on sales order item data, I have to reload it. DS 2LIS_11_VAITM
    Can any of you pls explain me the steps to do the INIT? Refill set up tables etc
    Many Thanks in advance
    Ishi

    Hi Hari
    Many Thanks for the explanation and steps. I deleted set up tables and executed to fill it.
    It says in R/3 Start of Processing, I ticked to continue and its still running.
    In the mean time I checked RSA3 and it says 1007 records selected. I am refreshing it and the no. of records are still the same.
    Can you tell me how long it takes to fill the table?
    And the R/3 system is still running (Start of Processing)
    Thanks again
    Ishi

  • Changing address in sales order item level

    Dear very good mng
    i want to know , i am trying to change ship to party address in sales order line item level
    but showing Gray mode only ..  i have maintained Sales document item level ( partners) Removed check box not modifiable
    And i activated Item partners check box at partner tab
    even i am not able to change address in sales order item level plz tell me
    Thanks a lot

    Hi Madhuri
    I  have checked my self.system does allow to change different ship to Party on line Item level .
    Please do the following steps .
    1. Replace/delete  the WE partner Number ( Example -1) in my case  in change mode.
    2. system will show some error message as show below while deleting or replacing WE with some other ship to Party code.
    3. Ignore the message and go ahead  . Please put the new Partner's number and double click
    address Screen will Pop up . You can Change the address .
    Hope this helps .Let me know for more clarification needed .
    Regards
    Santosh Verma

  • Status is not updated from delivery to sales order item.

    Dear Folks,
    One user created sales order with 10 line items and he created delivery and later he deleted line item 30 in that delivery document and with remaining 9 line item he done the PGI & Billing.Here what is the problem is the deleted line item in sales order status showing as completed and delivered quatity showing as 10.Status is not updated from delivery to sales order item.Please let me know how to resolve this?
    Thanks & Regards,
    murali.

    Dear Murali,
    Please go to VTLA transaction then select your delivery and order types after that go in to the details of the item level settings here you check field called Update document flow under Control data tab.
    I hope it will help you,
    Regards,
    Murali.

  • Mass Removal of Billing Block at Sales Order item level

    Dear Experts,
    Does any one know how to remove billing block at sales order item level at mass level ?
    Is there any standard t code for the same. Kindly let me know the same
    thnx in advanve
    regards,
    Sagar

    Hi Sagar Wagh,
    I want to make a little correction,
    Go to T-code V.23
    Give your criteria like
    Sales organization
    Distribution channel
    Division
    Then in the last of screen there is check box Delete billing block
    check this box and excute
    System will ask you
    Do you really want to delete billing
    blocks for all docs. to be selected?
    Click at yes
    System will show you the list of all documents
    Select all and Click at Delete billing block
    System will delete the billing block in one go from all the documents.
    Regards,
    MT
    Edited by: M T on Feb 23, 2010 6:03 PM

Maybe you are looking for