Cancel document deletion  process (tr. va42)

Hello all,
Iu2019m trying to  cancel the deletion process of a document ( tr. va 42) in  in a particular case.
Iu2019ve  tried  to use MV45AFZZ include programs FORM USEREXIT_SAVE_DOCUMENT and USEREXIT_DELETE_DOCUMENT  u2013 I check  all necessary condition but I donu2019t know how to disallow
to delete document  - massage with type u201CEu201D is  Illegal message.
How and in what user-exit can I cancel document deletion  process?
Thanks,
Tatiana

Hi!
Is it suitable for you to use this construction in userexit_delete_document:
... some conditions checking..
message 'U cannot delete this document' type 'W'.
clear sy-ucomm.
leave to screen sy-dynnr.

Similar Messages

  • PO-item     block delete process

    Hi all,
    is possible to annul the deletion process of an item in purchase order ?
    In other word, when the user press delete button, the system go in exit MM06E005
    or in BADI ME_PROCESS_PO_CUST:    inside this exit or BADI, exist a way to cancel the delete process ?
    I found only           CALL METHOD im_item->invalidate( ).
    in IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM, but this is not correct beaucose I invalidated the item and not annulled the delete process !!!
    Any idea ???

    not possible ?

  • HT5731 how can I cancel or delete a movie i downloaded to my iPhone?  The file is too large and it is hung up during the download process

    How can I cancel or delete a movie I tried to download to my iPhone?  The file is too large and iTunes is hung up during the process of downloading.  I've tried to swipe from right to left but that doesn't produce a delete button....

    Slide your finger across the videos' listing in your iPhone Videos App and tap the red "Delete" button that appears.

  • How to handle Canceled documents

    Hi All,
    Need your suggestions. How can i handle the canceled documents.If document is created today and is loaded into BW system. After few days if user cancels the document , then what happens to the document which is already there in the BW system. Should i have to Handle this situation through user exit by writing some code , or R/3 system takes care of this automatically ?
    Thanx in Advance,
    Durga Prasad.

    I think if you are using a Business Content data model,it must be already taking care of this scenario.
    Most probably it will load through ODS and then to Cube.
    When user creates the document,a record will go to the ODS.
    Then later when user cancels the document,the ODS will receive a record with all negative key figures(in order to cancel out the earlier record's KPI's).
    Some data models also use a 'deletion indicator'.The source system sends a record with deletion indicator = X in order to indicate that record is deleted from source system.
    Why not do some tests in your system..create a document..then pull load to BW.Observe records in PSA and in Cube.Then cancel the same document and pull another data load to BW.Again observe PSA and Cube records.
    cheers,
    Vishvesh

  • Order deletion process

    Considering COO2 and marking the order for deletion is the standard deletion process, i would like to know what are the effects of this transaction. How do we reconcile the materials to the WH ( if lets say, production has ensued in the WH and some raw materials were already used up )

    dear,
    please note that when you delete the order with delition flag, then system will check internally and give error if there is any open reservation, or WM TR/TO.
    Hence before deliting the order you need to delete all the associated documents and then only you can delete the order.
    Hence reconcellation happens before delition
    I hope you got it, else come back with you clear explanation so that we can help you.

  • Change material code in process order or delete process order

    Hi experts,
    While creating a process order in COR1 transaction code, wrong material code was entered.
    Can we change the material code in process order.  If not, what is the complete procedure to cancel or delete the process order.
    Request you to revert.
    Thanks in Advance.
    Regards,
    Farha.

    Dear ,
    One the Process Order has been created with any material either it is wrong code or correct code , it can not be deleted .If it wrong code , then do not  perfom goods Issue -MIGO-261 or through Backflash  and also operation confirmation etc .
    If Goods Issue , Confirmation happend then you need to reverse those txn once again .
    In that case the best oiption will be goto COR2-Enter the Process Order -Select Process Order from Header -Restrict Processing -Choose Technically Complete .
    Now , once you did TECO , then there will not be any farther txanationl posting like Goods Issue , confirmation will not be possible .Likewise , you can also Lock or make set CLOSE  from COR2 in case there is no WIP , Variance .
    Hope this is clear
    Regards
    JH

  • Change Billing Date in Invoice cancellation document

    Hello,
       I need to modify the billing date in a Invoice cancellation document from the defaulted billing date copied from the original invoice to the present date of cancellation. Can any one please suggest a user exit for that?
    Thanks in advance for your help .

    Hello Richard
        The problem with this exit is that I have already used USEREXIT_NUMBER_RANGE in a previous enhancement and as per its comment(shown below)USEREXIT_NUMBER_RANGE will not be triggered anymore if I use it.
    If this userexit is active the USEREXIT_NUMBER_RANGE
    is not processed anymore, that means this userexit has * priority.    
    US_RANGE_INTERN - internal number
    range     
    *This form is called from form LV60AU02 and LV60AU11          
    Thanks for your prompt reponse.

  • How to delete process order

    Hi Guru's,
    I have created a processorder in T-code COR1..now i want to cancel the confirmed process order..plz tell me the process.
    Thanks & regards
    cherukuri

    Cherukuri,
    Deleting a process order has multiple steps... I would suggest you to just set "TECO" and "CLSD" status in the change mode of the order. This would prevent any further processing of the order in terms of confirmation, goods movment and costs. From menu bar
    You need to follow the steps below for archiving and deleting process order,
    1. Use program "PRARCHP1" to set deletion flag (Can be reset). The prerequiste i would suggest is to create a selection profile to select orders with status "CLSD"
    2. Use program "PRARCHP1" to set deletion indicator (Cannot be revoked)
    3. Use program "PRARCHA1" to archive (Already basis should have setup the database link for storing)
    4. use program "PRARCHD1" to delete and remove the data from the R/3 system.
    Regards,
    Prasobh

  • Cancel a delete

    Dear members,
    If I delete a record, and if the commit fails (so the record is not deleted in the database), I'd like the deleted record to "come back".
    I'd like to avoid querying the block again.
    Is there a way to cancel the delete at Forms level ?
    Thanks.

    There is no way to get back the record that has been deleted only on the client side without requerying.
    When a commit fails, there could be all sorts of half-done processing. Just adjusting your block's view to restore the deleted record (or records) would not be a very good idea.
    When a form fails with a situation like that, it is better to issue a rollback (which automatically clears the form), and re-query everything. That way the user has a clear picture of the current state of the data.

  • Dump when message triggering in MV50AFZ1 for document deletion.

    Hi Gurus,
    My requirement is to raise a error message in time of delivery document delete in VL02N.
    Funtional Req: Delivery Document should not be deleted if picking done.
    Code:
             FORM USEREXIT_DELETE_DOCUMENT.
                 if lips-komkz <> ''.
                    message E066(VL).
                 endif.
            ENDFORM.
    The above is the code that I am using. It hit the break point. But when it reaches at message statement it gives below short dump:
    "During "Exit Command" processing, the program tried to send a " " message.
    This is not allowed at this point in processing.                          
    The program had to be terminated.                                                                               
    Screen name.............. "SAPMV50A"                                      
    Screen number............ 1000         "
    Can anyone please tell me how to achieve the requirement.
    note: When using VL02 SAP standard itself generate a message and not allowed to delete the document if picking done.But user also use VL02N and in this case standard delete the document directly although picking already done.

    Hey,
       Well you can try a couple of things:
    1. If the check that you are doing is based on the value of a field that is already saved and is already avaliable try using the BADI and try to get the value of that variable from the data base and do the check and raise error message.
    2. If it is not already in the data base then in the badi try to get the variable value from the call stack of the screen check the below thread on how to do that:
    LINK: [Get values from stack|retrieving internal table info. during runtime from callstack;
    Then you can use that value for the check in the BADI
    3. I would suggest you should definitely check enhancement spots if you are on ECC6.
    Regards,
    Himanshu

  • How to Cancel the integration process(ccBPM) after a specifice period

    Dear Experts,
    I have a ccBPM(integration process) having two receive steps using one correlation,
    1. First receive step receives the Delivery IDOC
    2. Second receive step receives the Invoice IDOC of the corrospondng delivery of the first receive step using the correlation.
    This works perfect when both the documents comes to XI.
    Problem is if the delivery comes and invoice dosen't come for some reasons then process is active and waiting indefinately. We want to cancel the integration process if the invoice IDOC is not received in 48 hours.
    Please guide how to achive this in ccBPM.
    We are working on PI7.0
    thanks and regards,
    Ravi Siddam

    HI,
    you can use block step and cancel process after a particular time(48 hours in your case)....
    control step has 3 operations.......throw exception,raise alert and cancel process..
    Thanks,
    Madhu
    Edited by: Madhu sudhan Reddy on Jul 31, 2008 8:18 AM

  • My daughter gave me her old iPhone 3G. I started loading my info in before hitting the "reset" option.  It is now trying to sync her address book to mine on the old phone.  The reminder screen gives no options for cancel or delete.  Please advise.

    My daughter gave me her old iPhone 3G.  I started loading my own info before doing a complete "Reset".  My iMac at home now give me a message that it is time to Sync 432 Contacts.  They happen to be my daughters contacts. The window has no Cancel or Delete option.  How do I get rid of or stop the Sync other than let it go and then start deleting them?  Help!  Ron

    or... put your photos in "My Pictures" in My Documents, and viola, itunes syncs it to the iphone. only one sentence needed =/
    maybe im missing your point here, the long paragraph is mindboggling

  • Jquery confirmation before running delete process.

    All,
                Ive a process to delete a record in the table but i wan to show a jquery dialog confirmation(not simple js confirm function) with YES & NO button so if i click Yes it deletes that record otherwise cancel the delete. Ive written the delete process and that works and displays the successful message as needed but now i want to add the confirmation part which prompts before that delete, what do i need to change ?
    thank you.

    1. Re: jquery confirmation before running delete process.
    RameshP
    Hi,
    This is where iam so far, ive put the hidden DIV and added the js code and the hidden item, so if you click the button it popups the div with OK & CANCEL btn also set hidden item = ID value. also i put the process condition expression 1 eq 2 P1_REC_ID THE VALUE of ID eg 3. but clicking ok doesnt delete the record.
    what am i missing here?   thank you.

  • Is there a mass transaction for deleting processing locks

    Using trx FPLKDEL will not help, because the locks were not set using FKLOCK2.

    Hi,
    You can also try FPE2M for deleting processing locks at item document level. The limitaion of this code is that the documents should have the same " Due by date".
    You can also do some config if you need specific screnn layout as well.
    Let me know if this helps.
    Regards,
    Lalitha

  • Customer invoice doument and cancelled document are showing under openitems

    Dear All,
    I have created customer invoice in VF01 and cancelled the invoice in VF11.
    1.System is showing Invoice document and cancelled document under open items list in FBL5N customer line items.
    A. Is this correct?
            or
    B. When we cancelled the invoice document it should automatically go to cleared items list?
    Kindly provide me what is the correct?
    Thanks & Regards,
    Saisri.

    Hello,
    Once you cancelled the invoice document then you have to clear manually those items in tC: F-32. If you are not cleared then system will show you as open item. After cleared in F-32 then status will change from Open to Close.
    Thanks
    Para

Maybe you are looking for

  • Using iMac as Monitor

    How do I use the 2011 iMac as a monitor for a MBP? The 2011 iMac does not have a mini display port. Alternatively, how would I connect my LED Cinema Display to the iMac as a second monitor? The monitor has the mini DVI cable built right into the moni

  • Accessing shared database throws exception from one of 2 web roles

    Setup: Shared database Main site and "admin site" each using separate web roles accessing shared database. I had things working and running correctly until about 2 days ago.  Then, only the "admin site" stopped working.  I am using the same code to a

  • Do I need to render before export?

    Coming from the old video software, this was the case. However, now I have background rendering turned off. Do I need to manually render before I export the video, in order to get the color grades, transitions, etc? Or does export automatically rende

  • Order-Related Intercompany Billing - Copying Partners

    We are using order-related intercompany billing and I need to have one of our custom partner types copy from the sales order to the intercompany bill.  I have not found a way to make this happen.  Can you help? Thanks in advance, Tracy

  • BGP withdrawal convergence and shorter prefix

    An AS owns a /20. He advertises the /20 in BGP to ispA and ispB through policies of his own decision (but he definitely advertises the prefix, and the prefix is propagated). Within the /20 is a /24, which at times he wishes to advertise via ispC. isp