ME52N: Determine if restore delete indicator is set from user exit

Hi all,
My most recent dilemma involves tcode ME52n. I want to restore a line item that has been deleted on a purchase requisition. When I drop into my user exit I want to test to see if the user is attempting to restore the deleted line item...how do I do that? It seems if I use the okcode for the screen I am picking up the save...
As always...thanks in advance,
Mat

Hi all,
My most recent dilemma involves tcode ME52n. I want to restore a line item that has been deleted on a purchase requisition. When I drop into my user exit I want to test to see if the user is attempting to restore the deleted line item...how do I do that? It seems if I use the okcode for the screen I am picking up the save...
As always...thanks in advance,
Mat

Similar Messages

  • Deletion indicator not working after user exit error

    Hi Gurus,
    I had one requirement in Purchase Requisition. If the number of items increase by 36 , there should be an error saying that maximum items reached but once that item is deleted that error should disappear.
    I have written the coding in an Exit: EXIT_SAPLMEREQ_010.
    And the coding is :
    IF gs_eban-bsart = gcz902.
    LOOP AT gt_eban INTO gs_eban
    where loekz is initial.
    LOOP AT gt_ebkn INTO gwa_ebkn WHERE banfn = gs_eban-banfn
    and bnfpo IN r_bnfpo.
    recherche division- ordre interne
    LOOP AT ot_div into gwa_div WHERE ot = gwa_ebkn-aufnr AND div = gwa_ebkn-bnfpo.
    ENDLOOP.
    IF sy-subrc NE 0.
    gwa_div-ot = gwa_ebkn-aufnr.
    gwa_div-div = gwa_ebkn-bnfpo.
    APPEND gwa_div TO ot_div.
    ENDIF.
    ENDLOOP.
    ENDLOOP.
    DESCRIBE TABLE ot_div LINES n.
    IF n >= 37.
    case sy-ucomm.
    WHEN 'MESAVE'.
    MESSAGE e111(zpfr) with n.
    exit.
    ENDCASE.
    ENDIF.
    ENDIF.
    So now the exit is working fine......but when i go to delete that extra item it is not getting deleted , so while saving the information message comes that no data changed.
    So ho wto delete that extra item.
    Do anyone have reply....
    thanks in advance.

    Hello.
    If you insert 37 lines you get your error message. But if you delete 1 row, you get error message again, right?
    I think that's because you are not refreshing internal table ot_div. Shouldn't you refresh it before LOOP AT gt_eban INTO gs_eban?
    Regards.
    Valter Oliveira.

  • "Deletion Indic. not set in BE"

    Hi,
    Does anybody came accross 'Deletion Indic. not set in BE' seletion criterion on BBP_GET_STATUS_2.
    Surprsingly, their exists no code in the program which is using this parameter 'be_del' and their are no OSS message for the same.
    Any ideas on this one.
    Regards,
    Piyush Garg

    Hi
    Which SRM version are you using ?
    We are using SRM 5.5 version. No problems, there is not any code for the field "be_del" as such. We have not faced this problem yet.
    Please provide the detailed process to show how to replicate the steps.
    <u>Meanwhile, Have a look at the following relevant SAP OSS Notes</u>.
    Note 1040917 - BBP_STATUS_READ: Error messages are not deleted
    691569 - Error messages in BBP_GET_STATUS_2
    Note 890319 ActualValues in SC from back-end documents are not deleted
    989891 BBP_GET_STATUS_2: Incorr quantity determination in back end 
    1040847 Requirement is removed from sourcing after BBP_GET_STATUS_2
    1012124 SHP not reappear in SOCO after backend PO delete
    1032713 BBP_GET_STATUS_2: incorrect sourcing indicator  
    757625 Incorrect Status I1112->analysis report
    755769 Status I1113, no item or header relations->analysis report
    994314 PO appears twice in applet preview in limit SHP 
    949162 Follow-on documents exist, status I1111 and I1113 active
    947198 IMS monitor: Web Dynpro with hierarchies
    922575 BE_REFOBJ and BE_REFOBJ_ITEM filled during Confirmation(SUS)
    844209 BE_REFOBJ is filled at confirmation
    798044 Correction for object links missing between SC and BE docs
    776921 Display of deleted purchase orders on history screen
    723680 Corrections in the mapping of SAP XML messages
    723594 SRM 4.0 XML confirmation mapping error   
    662411 BBP_GET_STATUS_2: Too many database updates
    651040 No update of shopping cart after reversing goods receipt
    638505 Delete shopping cart item: Status stil active
    604420 Composite SAP note SRM 3.0 SP1 group
    626109 Enhancement BBP_PD_SC_REF_GETLIST for local bid invitations
    619897 EBP 3.0: local SC reporting and SC status
    576555 Perf: BBP_GET_STATUS_2/Confirmatn for only Classic Scenario
    578033 Item from the shopping cart are deleted in backend
    573202 'Buffer table not up to date' for APPEND at tables
    570440 Problems with Delete/Restore of back end documents
    551276 Too many database updates in BBP_GET_STATUS_2
    498899 Correction instructions for EBP 3.0 in Note 436151 incorrect
    422697 Change of structure 'BBPS_SC_REFUPDATE'
    459422 EBP SC Status: Backend PO delete indicator set at random
    501052 Deleted purchase orders not displayed in the history
    513034 History for an extended limit purchase order in test status
    417334 EBP/BBP: Deletion of requisition not displ. when UOM wrong
    426444 BBP_GET_STATUS_2: Dump
    Do let me know.
    Regards
    - Atul

  • Get nth number of sets from user in proper set format in C#

    how to take nth number of sets from user using string type list in C#. 
    Each set should be in this format {1, 2 , 3, ab,....nth }.
    User can enter nth number of item in each set
    then count the number of item in each set
    Waiting for you answers 

    I think you still not got my point. okay once again i explain you what i want.
    User Enter set in WPF window in this format e.g {1,2,3,ab},{ab,cd,1,2}.
    User can enter nth number of set.
    User can enter nth number of elements\ items in each set.
    Count the number of elements in each set.
    Hopefully now you got my point
    If I understand you correctly, you want to get the number based on the string like "{1,2,3,ab},{ab,cd,1,2}". Maybe you could try Regular Expression:
    https://msdn.microsoft.com/en-us/library/az24scfc%28v=vs.110%29.aspx
    For example this code snippet is able to count the set numbers and element numbers for you:
    string input = "{1,2,3,ab},{ab,cd,1,2}";
    string pattern1 = @"{.*?}";
    string pattern2 = @"\w+,?";
    Regex reg = new Regex(pattern1);
    MatchCollection mc1 = reg.Matches(input);
    Console.WriteLine("Number of set:" + mc1.Count);
    for (int i = 0; i < mc1.Count; i++)
    reg = new Regex(pattern2);
    MatchCollection mc2 = reg.Matches(mc1[i].Value);
    Console.WriteLine("Set " + (i + 1) + " element number:" + mc2.Count);
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • HOW TO DELETE PARTICULAR TRIPLE SET FROM Oracle SEMANTIC TABLES in 11g

    Can somebody help us how to delete a particular set of triples from Oracle(11g) semantic that we have. Because we noticed that few triple belongs to particular data sets were wrongly loaded so we need to remove only those triples.
    Usually we delete all triples including others such and reload them again along with new triples. We would like to avoid this as we go to production.
    Otherwise When we insert a set of triples belongs to a particular data set, is it possible to know what ids Oracle assigned to that set? Can we delete by id? Just a thought.
    Rgds
    Srini

    Hi,
    It is very strange. I got an email in my inbox saying that you want to find out
    IDs of triples that belong to RNAIDB data set like the following.
    "<http://www.lscdd.lilly.com.sg/lscdd/RNAIDB/...../.../:>".
    This forum does not have your message somehow.
    Assume you have asked such an question :), my answers are
    1) from a modeling perspective, it is not a very good idea to encode
    semantics in the URI lexical form itself. A URI should be treated
    as a symbol.
    2) now assume you have a valid reason for doing this, you can try something like the following.
    CREATE INDEX testdel_sub_idx ON tstdel (triple.GET_SUBJECT());
    -- You can then get the rowid out for those offending rows.
    select rowid
    from tstdel t
    where t.triple.GET_SUBJECT() like '<urn:su%'
    -- Or you can remove them directly.
    delete from tstdel t
    where t.triple.GET_SUBJECT() like '<urn:su%'
    ;

  • Sales Orders - Add/Delete the Partner should Trigger User Exits

    Hi,
    I have a business requirement to add a new partner or delete or change an existing partner so as to re-determine the route and hence re-direct the goods to appropriate shipping point. This partner is a service agent and not maintained in the Customer Master. These are freely added partners (agents) at the sales order level.
    Once there is a change in the partner functional the sales order level in VA01 or VA02, the user exit logics to be called again so that the route is re-determined based on the newly added or changed partners at the sales order level.
    I am just trying to provide a pop-up screen for user interaction when the sales order partners are modified with buttons 'OK' or 'Cancel'. For OK, the sales order user exits to be called again. For Cancel, the newly added partners need to be deleted.
    Please suggest me a suitable solution. I hope I have made the question correct. Appreciate your help in advance.
    Thanks,
    Kannan.

    I could Figure it out.
    Thanks,
    Kannan

  • Mass deletion of SAP roles from users

    Hello All,
    i need to delete all assinged roles from a big number of users. I know the users but not the roles which the users have. I need to delete all roles from the users-id's.
    I know SU10 and i can select all my needed users. But in the role tab i can not work with roles-names like Z* to delete. I can select all z*-roles and select "remove" but when i click to save, i get the message no changes made on the users???
    Any idea?
    Gruß
    Toni

    Hi David.
    David Berry wrote:
    I take it this is being run in PRD? What checks are being carried out during the table entry deletions and are you 100% happy sitting at your keyboard when pressing the 'run' button?
    Changes are made in PRD. The program was tested and is approved by each customer.
    Is there an easy way back to the previous state should it go wrong and how do you explain it to the auditors if needed that you assigned-number of roles in PRD against your own user ID possibly with no CDHDR/CSDPOS entries to back you up.
    Sorry for the 'negative vibes' but I don't like direct table maintenance in PRD for security.
    Best wishes
    David
    The way back is uploading the old role assignment previously exported from AGR_USERS. The program takes an excel sheet. In addition this excel sheet is attached to the change requests.
    From risk perspective we say (and experienced): mass changes through copy and paste lead to much more errors and faulty authorizations.
    Regarding direct table maintenance: standard function modules are used (like the one mentioned above) and the changes are visible in the change documents, Therefore the auditors grant an exception for using such tools.
    Cheers, Tobias

  • How do I delete a mailbox setting from my Nokia 58...

    Hello!
    When trying to set up a mailbox sync with Outlook, it didn't work and I now have a mailbox set up I'd like to delete.  Only trouble is I don't seem to be able to.  When I followed the guidelines which I have copied below, I don't have the option to delete (step 8. below).
    Can anyone help, I'm not having much luck with creating mailbox syncs or deleting them!
    Thanks :-)
    If you want to remove a mailbox from your 5800, here's how to do it:
    1. Go to the Messaging application.
    2. Select "Options".
    3. Select "Settings".
    4. Select "E-Mail".
    5. Select "Mailboxes".
    6. Select the mailbox you want to delete.
    7. Select "Options".
    8. Select "Delete", then "Yes".
    9. When the mailbox has been deleted, press the red button to leave Messaging.

    @jenniferclaire
    As a last resort provided that you backup essential data first, you could always reset device to "Out of box" state by keying in *#7370# followed by 12345 (default Nokia lock code unless altered by yourself); you would obviously have to forego restoring "settings" to device afterwards.
    Happy to have helped forum with a Support Ratio = 42.5

  • Preventing Deletion indicator in PR once work order is completed

    Dear colleagues,
    Users create work orders in IW31 with the choice of external service; control key is PM02. Once work order is saved purchase requisition (PR) is created in background. With reference to PR, purchase order (PO) is created by purchase specialist.
    When work order is technically completed (system status TECO) deletion indicator is set to PR line item(s) automatically which result in undesirable situations since PR(s) has subject to release strategy in our system.
    Is it possible to prevent setting deletion indicator in PR once reference work order is technically completed?
    Kind regards
    Melih

    Hi,
    In this case that behavior has negative effects on PR Workflow process because in our system when PR(s) is created it is subject to release strategy according to preconfigured conditions.
    Once the order is technically completed (TECO) deletion indicator is set to PR line item(s) automatically meanwhile release strategy tab is disappeared from PR line item(s).
    In addition to that in ME54N system gives the MEPO822 (Purchase requisition XXXXXXXXX cannot be released) message even PR is approved before the order is technically completed.
    Kind regards
    Melih

  • Why does iPhoto/Aperture keep deleting photo sets from my Flickr account or keep placing whole sets back into the Pending stage of uploading the photos. This is becoming very frustrating and extremely time consuming. Any help would be most welcome

    Has anyone got any idea as to why Iphoto/aperture keeps deleteing my photo sets from my Flickr account without warning or reason given. Also when I enter my sets the program will revert all of the photos back to the Pending stage of the up oading process. One or two photos I could live with but some of my set are in excess of 1500 photos per set, and this becomes very very time consuming to re upload them. and whats more annoying on some occassions after spending 12 to 16 hours re uploading them I find that they have all been duplicated. Is there a Bug with Iphoto or Aperture????????
    any help would be most welcome P Jefferys

    I am using Iphoto version 9.5.1, and No I am not deleting any photo from any file. what happens is this :- I open up Iphoto and enter my flickr account via the shared folder icon on the left hand side of the screen this is when I get a pop up screen from Iphoto informing me that they have removed a SET of photos from my Flickr account (no reason given) when i go into that set all I can see is dashed empty square where the photo used to be. I will then get another pop up screen saying that Iphoto can no longer access my flickr account and will I permit a reconnection and allow Iphoto to access my flickr account (add pass words etc) when I get back into flickr the SETS have gone and all other photos enter the Pending stage again. After re uploading the missing photos I find that some 50% of them have been duplicated.
    PJ

  • How to reinstall window 8.1 when app data deleted from user folder

    due to fault i deleted my app data from user folder of c drive  due to this some apps and software not working prioperly so i want to reinstall my windos but it is not done  so help me to solve this problem of deleting app data

    Hi there 
    Welcome to the HP Support Forums! It is a great place to find the help you need, both from other users, HP experts and other support personnel. I understand that you deleted the App data from your profile and now apps are not working properly.  I am happy to assist with this. Please post the full product number for your notebook. See the following, if you need help with that information.
    How Do I Find My Model Number or Product Number?
    Also, was Windows 8.1 your factory installed operating system? I would recommedn that you backup any personal data, files, etc from the system before doing anything else. Then you can do a system recovery to restore the factory installation.
    Performing an HP System Recovery (Windows 8)
    Troubleshooting HP System Recovery Problems (Windows 8)

  • User exit for creating/deleting vendor master

    Hello Gurus,
    I have this task that to update this customized transaction we have for the certification list of the vendors. What they want is every time that there is new vendor master to be created or deleted in XK01, the customized transaction we have for the certification list of the vendors should be updated. I am thinking to suggest  link the table LFB1 and LFA1 to the custo tcode we have to satisfy the business needs. Or any other suggestions? What are the user exits that can be use and link the creation /deletion vendors to my customized program? Technical team is asking for the user exits but not aware of them
    Thanks!

    We have this customized tcode where we input the vendor and materialu2019s expiration date manually. Then client wants to enhance that custo tcode with features when creating and deleting vendor in XK01 transaction, the new vendors data will also be automatically updated the custo tcode we have before. Its like everytime there is new vendor created, the custo tcode we have before will be updated with the new vendor data(not automatically input) then if the vendor is deleted, the vendor entry in the custo tcode we have before will also be deleted.
    I found the user exit SAPMF02K but according to the technical team it is not applicable to our issue. Any suggestions or comments or other user exit that we can use to develop this new request wanted by the client?
    Thanks!

  • Deleting components from user database

    Hi.
    I created several components, and I want to delete some of them from user database.  But I can't understand how to do this.
    Could you help me?
    Thank You.

    Use the database manager.
    Tools>Database>Database Manager
    Then select the Components tab and the User Database from the drop-down list: "Database Name"
    See picture.
    Ryan R.
    R&D
    Attachments:
    Multisim User Database.png ‏21 KB

  • Issue with setting deletion indicator in PR

    Hi ,
    For a certain sales order, a dummy Purchase Requisition was created and the delivery was also created.
    There was an existing logic in exit  MV50AFZ1  to set the deletion indicator in PR when PGI has been done.
    But when the Goods Issue was done by another user id , Purchase Requistion does not have the delivery indicator set ,as this user ID has no authorization to ME52N.
    Users want to surpass this check for all users who have authorization for Goods Issue , i.e, when any user who has authorization for Goods Issue does the PGI, then the deletion indicator should be set in PR, irrespective of whether he has/has no authorization for ME52N.
    How can I achieve this?
    Is there any place where I can check the authorization for ME52N and then use some other id for PGI so that deletion indicator is automatically set?
    Awaiting response.
    Thanks,
    Neethu

    Thanks Chericheri
    So my code now reads MODIFY <internal table> FROM <work area> INDEX <table control>-current_line transporting <deletion indicator field>.
    Edited by: Brett Cunliffe on Sep 22, 2011 4:44 PM

  • HT4946 i got my new iPhone 5 and i connected it to my iTunes on mac and it ask me if i want to setup as new iPhone or restore backup and i restore back up but now i want to delete backup and set up as new iPhone, is the anyhow?

    i got my new iPhone 5 and i connected it to my iTunes on mac and it ask me if i want to setup as new iPhone or restore backup and i restore back up but now i want to delete backup and set up as new iPhone, is the anyhow?

    The iCloud backup includes most things except non-iTunes purchased but the iTunes backup does not include those either. For what iCloud includes see:
    iCloud: iCloud storage and backup overview

Maybe you are looking for

  • Is it possible to run messages and icloud on OSX 10.6.8?

    I've read some concerning comments related to 10.8.2 and am completely happy with 10.6.8, but would like to add the functionallity of imessage or messages and Icloud to my macbook pro with out upgrading to 10.8.2 and its associated negative issues. A

  • Thumbnails in timeline

    What happened to the thumbnails in my timeline. Oddly, I have the media, but the thumbnail says media offline?!?

  • My HDMI adapter can't charge my iPad2.

    While I'm presenting my screen on TV or not presenting things, I can't charge my iPad via this HDMI adapter. I've already tried the new HDMI cable bought from Apple store but it still can't be charged. I've also tried with another iPad2 but i got the

  • Core 2 Quad & late MacBook Pro

    Hi all! Really glad to be here as an all new Mac user - got my MacBook Pro just four days ago and already I start wondering where to go from here. See, its probably 2-4 months from here until Apple is going to introduce a quad core MacBook Pro. It al

  • Group Messaging Help!!

    Ok so I recently got an iPhone 4s and I'm having trouble with the group messaging system. On my old phone (HTC 7 Pro, windows phone) I would keep getting individual messages from people in a group text that I have been added in. The only difference i