Good old HR_INFOTYPE_OPERATION to DELETE data

Hi,
I am using this FM to delete infotype data from within dynamic actions. The same piece of code works perfectly fine when I execute the program directly in online mode. But when I call the same routine through dynamic actions (even with  dialog_mode   = '2' and manually pressing DELETE button on infotype screen), the program keeps processing all records one by one and then ends without giving an error but also without deleting any data. Is this a known problem???
        CALL FUNCTION 'HR_INFOTYPE_OPERATION'
             EXPORTING
                  infty         = '9007'
                  number        = lv_rec-pernr
                  subtype       = lv_rec-subty
                  validityend   = l_pa9007-endda
                  validitybegin = l_pa9007-begda
                  record        = lv_rec
                  operation     = 'DEL'
                  dialog_mode   = '2'
             IMPORTING
                  return        = lv_ret
                  key           = lv_key.
Thanks and regards
NOTE: I am on 4.6C
Message was edited by:
        Shehryar Khan

It didn't work earlier due to the COMMIT WORK conflict.. Pl refer to this <a href="https://forums.sdn.sap.com/click.jspa?searchID=243663&messageID=2551286">Thread</a> on a similar issue..
~Suresh

Similar Messages

  • Deleting old/unsued/junk Master Data in Production

    Hi Gurus:
    Please let me know the most efficient way to clean up old/unused/junk Master Data.
    My client has a master data that is virtually used in all the cubes & has 8 million records in it.
    What would you suggest - the best method to clean up
    I have an idea - what we craete a new Master Data object & then in update rules we mention what can go into the object, and then do full load from R/3 to the new info object. Will this approach be good?
    Please let me know...Thanks & Regards

    Hello,
    >  If the values of the InfoObject are a part of transaction data in any data target, the system will not let you delete it.
    > You can reload the master data and then run the attribute change run. This will over write all the old data with new data from Production.
    > You can do this in RSA1 > Tools > Apply Hier/Attr change. Click on InfoObject List and see if you char is there.
    > If there is no new master data then there is nothing for the system to activate. As for the old records: If they are stored as transactional data in a data target, the system will not let you delete the entries.
    Hope the above points help to solve your problem
    Thanks
    VArun

  • How can i restore old backup without deleting my existing data

    how can i restore old backup without deleting my existing data. unfortunately i have deleted few of my old photos and restored them from my old backup. i got the deleted photos but lost my recent data and photos. how can i get those too.

    You cannot. However, if your back up is through iTunes on your computer and you do an internet search for something like "iPhone BackUpExtractor", I believe there is software that will help you access the SQL database that is your back up. You may be able to pull out what you need.
    Once you restore from a back up, any data that was on the phone is gone.

  • I just sold my iPhone 4s after doing a reset and deleting data and settings. Is there anyway the buyer can see any of my old photos, texts, or data? I have confidential info for work and family photos and freaked out that they can be found somehow.

    I just sold my iPhone 4s after doing a reset and deleting data and settings. Is there anyway the buyer can see any of my old photos, texts, or data? I have confidential info for work and family photos and freaked out that they can be found somehow.

    No, but if the answer was yes it's a little late to start getting freaked out about it.

  • Blackberry Protect - Delete data command executed on new Z10 and not lost Z10

    My BB Z10 was stolen and somebody took the battery off immediately. I executed command to display message and delete data using blackberry protect. Command will be executed whenever the thief turns phone on. Afterwards, I restored data from blackberry link on my new blackberry z10 using old blackberry id. When my new z10 phone was up the commands which i sent to lost z10 got executed on my new blackberry! Now I am not able to trace lost blackberry. Somehow same pin got assigned to new blackberry on blackberry protect. Is there any way I can bring back lost blackberry details on blackberry protect and trace it?

    Hi and Welcome to the Community!
    Firstly, you must get your current BB using the exact same BBID credentials that were used when your old BB was using BB Protect for backup. To do so, you will have to WIPE your current BB and, when you are setting it up new again, use the same credentials from your old BB. But, take heed of this:
    Article ID: KB31489 BlackBerry Protect for BlackBerry smartphones does not display any backup files to restore
    If, by "archived", you did contrary to what that KB states, then it is too late...there is no recovery of things that get deleted from the BBID account.
    Your situation is a perfect case study as to why BB Protect is a fine component of a good backup procedure, but by no means should it ever be counted on as the sole component.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to recover deleted data in os/400

    Hi ,
    Can anybody let me know how to recover deleted data from a table in os/400 .
    Thanks in advance .
    Thanks & Regards
    Dhaval Raje

    Hi Dhaval,
    unfortunately this highly depends on the thing you did :-((
    In general SAP says (with good reason!): You recover nothing or the COMPLETE DB - otherwise it could be inconsistent. In your cae, that means, you go back to the error case.
    For experts RSTOBJ of this table would be of help. But, then you need to know what happened in detail and you need to be familiar with the dependent files like indexes & views.
    So, if this is a test system, I would go back to an olde backup, if this is productive, I would ask a good DB2 for iSeries basis consultant. That is a problem, that can be solved.
    Regards
    Volker Gueldenpfennig, consolut.gmbh
    http://www.consolut.de - http://www.4soi.de - http://www.easymarketplace.de

  • Can't Delete Data in One Month in a calculated currency EPM 10 NW

    Good Morning,
    I have an issue with data in my system. We are having issues deleting data from our calculated currencies for the month of January. We load our data to LC and then run currency conversion to populate our USD, CAD, etc report currencies. We run a nightly compression on the data. We needed to adjust some numbers in LC and run currency conversion. When I ran the currency conversion the data in the calculated currencies did not update with the new LC balances. So I tried to delete the data in the calculated currencies and then re run currency conversion for the time period. But when I tried to run the Data Manager Package it did not clear the data. It gives a succeeded message but when you look at the Package Log it shows 0 records cleared. I then tried to upload zero's to the same data intersections and it did not work either. I got a success message but the data did not delete. I have had my BI guys check the back end lock tables and nothing is locked. We don't use work status so there are not any work status locks on that month of data. I don't think it is the Data Manager package becuase I can run the same DM package on any other time period and it works. If anyone has any ideas of things that could be causing this I would really appreciate it.

    I am attaching the FX Conversion Code to this message as well as attaching it. If you have any suggestions I would greatly appreciate it.
    Here is the BADI logic from the FX Conversion BADI
    method if_uj_custom_logic~execute.
      " this badi would be called from finance model as well finance_des model
      data: lt_acct_type_attr type zbpc_t_acct_type_attr,
            lt_pc_currency type zbpc_t_pc_curr.
      get_parameters( exporting it_param = it_param ).
      " category can only be a single base member
      if check_category( ) <> 'X'.
        insert_error_log( ).
        raise exception type cx_uj_custom_logic .
      endif.
      lt_acct_type_attr = get_account_attr( ).
      lt_pc_currency = get_pc_currency( ).
      read_rates_cube( ).
      " gv_app_id is initialized in the init method.
      case gv_app_id.
        when 'FINANCE'.
          process_fxconv_4_finance( exporting it_acct_type_attr = lt_acct_type_attr it_pc_currency = lt_pc_currency ).
          add_plug_4_finance( exporting it_pc_currency = lt_pc_currency  ).
        when 'FINANCE_DES'.
          process_fxconv_4_finance_des( exporting it_acct_type_attr = lt_acct_type_attr it_pc_currency = lt_pc_currency ).
    *      add_plug_4_finance_des( exporting it_pc_currency = lt_pc_currency ).
      endcase.
    *  write_2_cube( ).
    endmethod.

  • Unable to Delete Data from PSA

    Hi Experts,
    I have a process chain which delete data from PSA on weekly basis . it running good . Since one month one of data target PSA data not deleting.
    it gives me error like DDL time(___1): .........2 milliseconds
    Delete request REQU_03RM2LOJ284N3GLM7Q574WLAO from PSA 8Z0MM_O39_OA: Error - subrc: 2
    When i am tring to delete manually it gives me above error only.
    I used programme (RSAR_PSA_CLEANUP_DIRECTORY)
    for deleteting PSA Data this programme gives me errors request already deleted from data base. But still those request available when i am looking into PSA data.
    it's happen only quality system not in the Production.
    Kind Regards,
    ve.

    Hi Srinath,
    when i am looking into system there is no programeme with name(SAP_PSA_ZEROCORREC) But another programme RSAR_PSA_CLEANUP_DIRECTORY is available i tried with these programme for deleting PSA it gives me error like request deleted from database.
    But it gives me an error indicator only.
    i  am tried to delete manually by selectiong those request from PSA it gives me error DDL Time (______1) 2 milliseconds.
    Kind Regards,
    ve.

  • Deleting data from a very large log table (custom table in our namespace)

    Hello,
    I have been tasked with clearing a log table in our landscape to only include the most recent entries.  Is it possible to do this given that the table has already got 230 000 000 entries and will need to keep around 600 000 recent entries?
    Should I do this via ABAP and if so, how?  Thanks,
    Samir

    Hi,
    so you are going to keep 0,3 % of your data?
    If you should do it in ABAP or on the database is your decission.
    In my opinion doing things on the database directly should be done
    exceptional cases only e.g. for one time actions or actions that have to
    be done very rarely and with different parameters / options. Regular
    and similar tasks should be done in ABAP i think.
    In any case i would not delete the majority of the records but copy
    the records to keep in an empty table with the same structure, delete the
    table as a whole (check clients!) and "copy" the new table back in ABAP
    or rename the new table to the old table after droping the old table on the database.
    If you have only one client you can copy the data you need in a new
    table and truncate the old table (fast deletion for all clients). If you have
    data to keep  for other clients as well check how much data it is per client
    in comparison to the total number of lines (if only a small fraction, pefer copying
    them too).
    On the database you can use CTAS (create table as select) and drop table and
    rename table. Those commands shoudl be very efficient but work client independently.
    If you have to consider clients SELECT; INSERT; DELETE or TRUNCATE (depends on if you have
    copied all data considering clients) are
    your friends.
    Kind regards,
    Hermann

  • How to delete data from Open Hub DB table when the DTP is inactive..

    Hi Gurus,
    I am transporting some 2LIS extractors to QA with some enhancements.
    The data goes to an OHD ( third party ) pulled by a process outside SAP enabled by a BAPI.
    Now , By mistake , I imported the OHDs with still some old left in the DB table of OHD ( /bic/oh<>)
    It's not allowing to me do manual activation and also DTP is inactive ( cannot do a delta DTP and make no of records zero )
    I want to delete the data in the OHD DB tables ..any clues....
    Thanks,
    Chetan

    Hi Chetan,
    The OHD table name is usually /BIC/OH<OHD-name> .  You can find it in the OHD definition.
    Go to transaction se14, give the table name and say edit.
    Select Delete Data and say Activate and adjust database.
    This will delete the entire contents of the OHD DB table.
    Regards,
    Uma Maheswari

  • How can i Read and Delete data in Infocube

    Can some help me how to read and delete data in infocube before loading data from direct DSO.
    I should be able to read and delete condition with combination (0FISCPER, 0COMP_CODE).
    Let us say we load JAN, comp _ code : 0001 (10 records )and JAN comp _ code :003 (30 records ) and JAN, comp _ code : 004 (20 records ) to infocube
    second time if DSO gets data of JAN, comp _ code : 0001 (40 records ) it doent need to be 10 old + 30 new, it can be 9 old 21 new lay i need to delete 1 old rec which i dont need. so that is the reason i want delet all JAN, comp _ code : 0001  recods before loading.
    Can some one help me

    Hello,
    You could use the selective deletion available with the cube to get the selective data for 0FISCPER, 0COMP_CODE combination deleted.
    If you go in the manage of cube & Content tab, you would find the selective deletion option at the bottom of screen.
    If you enter the option, you could give your selections for deleting the records and run the job.
    Please let me know if you need any more help.
    Regards,
    Pankaj

  • How to delete data in SAP Tables

    Can i delete data in SAP tables in IDES version? I need step wise answer.
    Best answer get good points.
    Regards
    Kalyan Pothini

    Hope this helps:
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci1159707,00.html
    Fast deletion of SAP table content
    Stan Shuralyov
    01.17.2006
    Rating: -3.86- (out of 5)
    If a table has millions of records, full deletion becomes time consuming. Try this tip when you need to delete data quickly -- it works in seconds.
    Editor's note: This tip works on an SAP 4.6C, WAS620 and WAS640 system (i.e., all currently suppported SAP platforms). Note that it is a tricky function that should only be used by programmers who know what they are doing.
    Code
    Use function from SE14
            call function 'DD_DATABASE_UTILITY'
                 exporting
                      fct                     = 'MDF'
                      obj_name                = 'TABLE_NAME'
                      obj_type                = 'TABL'
                      exec_modus              = 'S'
                 importing
                      subrc                   = sl_subrc
                 exceptions
                      unexpected_error        = 1
                      unsupported_function    = 2
                      unsupported_obj_type    = 3
                      table_is_locked_by_tcnv = 4
                      authority_check_failed  = 5
                      abort_function          = 6
                      conversion_error        = 7
                      others                  = 8.
            if sl_subrc = 0 and sy-subrc = 0.
              write:/ '&1', '- Table Deleted OK'.
              commit work and wait.
            else.
              sl_status = 1.                          "Deletion Failed
              write:/ '&1', '- Table Deletion FAILED'.
            endif.

  • I can't get rid of "my web search" while powered by google, it sux! I want good old google or google chrome

    When firefox opens up, the search window on the right has My Web Search within. often, when I want GOOGLE, I get this "My Web Search", 'powered by google. My searches are terrible...MyWebSearch gives me a lot of worthless [obviously] paid-for search results.
    I followed their instructions and deleted it by 'removing the program' in my control panel, etc., through the start menu. yet this lingers, and i can't find it anywhere in my computer memory to try to reemove it again.
    It sux!
    I want to use good old google!!
    Help me get rid of it!!

    hello hmsa76l79, please also go to firefox > addons > extensions & remove any suspicious entries (toolbars, things that you have not installed intentionally, etc).
    [[Remove a toolbar that has taken over your Firefox search or home page]]
    afterwards install the search reset addon - it will revert the most common customziations those adware programs do in firefox back to the default: https://addons.mozilla.org/firefox/addon/searchreset/

  • Error While using HR_INFOTYPE_OPERATION to delete records

    Hi All
    I was able to find simlar error in SDN but it did not work for me. I am using HR_INFOTYPE_OPERATION  to delete PA2006 records and update with new values. I get the following error message "No data stored for 2006 in the selected period". But The records exist. I debugged and found it fails for authorization checks. I have all the authorizations as I am able to delete it using PA30.
    FYI inserting works fine.
    Please advice.
    Thanks, Raj

    Hi Santosh
    I used the same code which you have send. Below is the one. FYI, throught my debug, I was able to figure out it fails in authorization, even though I have all authorization and I was able to delete using PA30. Please advice.
    Below is teh code that I used.
        CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
          EXPORTING
            number       = t_file1-pernr
          IMPORTING
            return       = t_return
            locking_user = sy-uname.
          CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
              INFTY                  = '2006'
              NUMBER                 = t_file1-pernr
              SUBTYPE                = t_file1-subty
              VALIDITYEND            = t_file1-endda
              VALIDITYBEGIN          = t_file1-begda
              RECORD                 = P2006
              OPERATION              = 'MOD'
              DIALOG_MODE            = '1'
              NOCOMMIT               = 'X'
             IMPORTING
             RETURN                 = t_return
             KEY                    = personaldatakey.
      "Unlock the employee
          CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
            EXPORTING
              number = t_file-pernr
            IMPORTING
              return = t_return.
    Thanks, Raj

  • I had bookmarks on an older computer. When I got my new one my husband took over the old one and deleted firefox before I had a chance to get my bookmarks. Is there anyway to find all those bookmarks I had?

    I had bookmarks on an older computer. When I got my new one my husband took over the old one and deleted firefox before I had a chance to get my bookmarks. Is there anyway to find all those bookmarks I had?

    Hopefully he didn't delete the Firefox Profile folder. <br />
    http://support.mozilla.com/en-us/kb/Profiles#How_to_find_your_profile
    http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile

Maybe you are looking for

  • Creating a Template DW CS3

    I have created my first template in dreaweaver (CS3).  The editable region works except for one small problem... I cannot change the style.  It will not allow changing any content from H2 tag & Style 2.  My original template for this editable region

  • Business Partner - Title for Employee

    Hi All, When we create BP, at Title drop down we have only Mr & Ms, I want add here one more option as M/s, How can I add here ? I can create as Org, but here we have few external consultants, for whom we will create a user ID with their respective c

  • Cannot use back button in IE

    Dear Sir, We upgrade from EP6 SP2 to EP6 SP14 , we have the problem that we cannot use backup button in Internet Explorer menu , when clicked , it showed " The paged has been expired" . Do you have any suggestioned? THanks and best regards, Vimol

  • Validation while deleting parked document.

    Hello, 1) We have a requirement wherein a parked document should be deleted only by the person parking the document.  Other users should not be permitted to delete document. 2) We need to restrict document parking only to Tcode FV50L.  Document parki

  • Ipad name is not showing in itune restore from back up menu

    After updating the ipad software, my itune can't see the ipad device name when i go to file > devices > restore from back up. However, in the edit > preferences > device preferences. i can see my ipad device name under Device Backups. How can i resto