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

Similar Messages

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

  • Restrict deletion of sales order line items

    Hi,
    I need to restrict deleting of sales order line item, I think we can use the user exit, MV45AFZB, USEREXIT_CHECK_XVBAP_FOR_DELE.
    But when i set the flag to 'X', even though it does not delete at tht instance when the sales order save is clicked again the line item gets deleted.
    ANy idea , to prevent that?
    Thanks
    Keshi

    Hi Keshi,
    That is the correct exit, we are using the same without any problem. Just set US_EXIT  = CHARX.
    Regards,
    John.

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

  • Mass Deletion of Sales order line items

    Dear Gurus..
    There is a transaction VA02 for change and deletion of sales order line items. it takes time to delete line item of sales order one by one.. is there any abap program to do this process..
    if so please let me know
    regards
    Saad Nisar

    Hi,
    You can use trx MASS with object type BUS2032 to change sales order items. Please check this link:
    Re: Mass deletion of  sales orders
    Or try LSMW.
    Regards,
    Csaba
    Edited by: Csaba Szommer on Apr 10, 2009 8:18 AM
    Edited by: Csaba Szommer on Apr 10, 2009 8:21 AM

  • RR Reversal for deleted sales order items

    The revenue has been recognised for a sales order. but somehow user deleted this sales order. it seems there was some problem in the deletion. i can still see the sales order in VBAP but not in VBAK.
    Is there a way to reverse the RR for this sales order? The sales order appears as open item in FBL3n.

    The revenue has been recognised for a sales order. but somehow user deleted this sales order. it seems there was some problem in the deletion. i can still see the sales order in VBAP but not in VBAK.
    Is there a way to reverse the RR for this sales order? The sales order appears as open item in FBL3n.

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

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

Maybe you are looking for

  • Dragging an HTML component

    Hello, I'm a bit of a  newbie to Flex ( started Yesterday ) and i'm finding my way quit well. Using some of the examples that the internet provides i managed to create the following applcation: <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplic

  • How to install windows xp on bootcamp on new Mac mini?

    How can i install windows xp on bootcamp on new Mac mini? I know that i should get an external usb optical drive, but buying such hardware for one use is a waste of money. Is there any other method? I currently own a MacBook white, and really like th

  • QT not open when clicking on .mov link

    I have searched and searched for an answer to this and can't find it. Scenario: When I click on a .wmv link, Windows Media Player opens and plays the file. This is great! Problem: When I click on a .mov link, nothing happens except a new tab (IE7) op

  • Cd not mounting for mac version of nwn

    I purchased the mac version of Neverwinter nights and attempted to install it on my 10.4 macbook. If i put in the disc1 it will just spin up and down, but will not mount. This continues for several minutes before eventually spitting it out. If I put

  • Calibration chart for creating profile for Macro lens

    I would like an LCP for my Tamron AF28-300mm F/3.5-6.3 XR Di VC LD Aspherical [IF] Macro lens.  While I am willing to do the work to try to create this myself, I have a problem with the appropriate Calibration Chart to use for the Macro end of the zo