Updating another infotype in the in_update badi

Hi Experts.
We are upgrading from 4.6c to ECC.
We are updating a lot of infotypes using HR_INFOTYPE_OPERATION (passing no_commit = x) in the in_update Badi.
Now when the infotype being updated in the in_update fails, HR_INFOTYPE_OPERATION internally issues a ROLLBACK WORK.
See these lines from the FM:
IF RETURN IS INITIAL.
READ TABLE MODIFIED_KEYS INDEX 1.
MOVE MODIFIED_KEYS(8) TO KEY(8).
MOVE MODIFIED_KEYS12 TO KEY8.
ELSE.
IF NOT NOCOMMIT IS INITIAL.
ROLLBACK WORK.
ENDIF.
It worked correctly in 4.6c.
Now in ECC, it starts giving a dump - saying that ROLLBACK work is not allowed within the in_update.
Short text of error message:
ROLLBACK WORK during ON COMMIT or ON ROLLBACK
It sounds logical - but I am not sure how come it was working in 4.6c.
Any work arounds to it? Anyone else also encounter it?
Thanks in adv.

Hi Aishi!
I had a short look inside HR_MAINTAIN_MASTERDATA (in HR_INFOTYPE_OPERATION) - seems like there are some call transactions. A call transaction has invariably a commit work inside, so the parameter "nocommit" just defines a "dialog" parameter.
Looks like the logic of the update was changed - or the "in_update" badi wasn't really called in update task earlier.
Best way: search for other ways to update master data (without commits) - at least much better than the risk of additional commits in update task.
BR, Christian

Similar Messages

  • How to automatic update necessary infotypes at the end in ISR framework

    Hi experts,
    I want to create a custom PCR scenario based on ISR framework. This scenario will transfer a person from one position to another position. In the normal PCR scenario, the final change of the person's infotype data is done by following-up functions which are defined in the scenario action boxes. These following-up functions require an administrator to login system then mannually choose one following-up function to make the update to the system data. I wonder if it is possible to let the system automatically update the backend system at the end of the execution of ISR scenario. The ISR scenario has a setting called 'Automatic Update', will this help? Or we need to add a step in the PCR workflow to do it? Thanks a lot.

    Automating those kind of updates is part of the new HCM Processes and Forms which is in fact a replacment for PCRs. I would look into that if you can.

  • Trigger in mutation - Update another rows in the same table with a trigger

    Hi ,
    I try to do a before update trigger on a table , but the trigger is in mutation. I understand why it do that but my question is :
    How can I update other rows in the same table when a UPDATE is made on my table??????
    Here is my trigger :
    CREATE OR REPLACE TRIGGER GDE_COMPS_BRU_5 BEFORE
    UPDATE OF DEPARTEMENT--, DISCIPLINE, DEG_DEMANDE, CE_ETAB
    ON GDEM.COMPOSITION_SUBV
    FOR EACH ROW
    Organisme : FQRNT-FQRSC
    Date de création : 14-07-2011
    Date de modification :
    Modifié par :
    Auteur : Johanne Plamondon
    Description : Ce déclencheur s'executera lors de la modification
    du responsable dans la table COMPOSITION_SUBV
    DECLARE
    V_OSUSER V$SESSION.OSUSER%TYPE;
    V_PROGRAM V$SESSION.PROGRAM%TYPE;
    V_TERMINAL V$SESSION.TERMINAL%TYPE;
    V_MACHINE V$SESSION.MACHINE%TYPE;
    V_MODULE V$SESSION.MODULE%TYPE;
    V_LOGON_TIME V$SESSION.LOGON_TIME%TYPE;
    V_AUDIT_ID NUMBER;
    vSEQ NUMBER;
    i NUMBER;
    vID DEMANDE.ID%TYPE;
    BEGIN
    begin
    SELECT OSUSER, PROGRAM, TERMINAL,MACHINE,MODULE, LOGON_TIME
    INTO V_OSUSER,V_PROGRAM,V_TERMINAL,V_MACHINE,
    V_MODULE,V_LOGON_TIME
    FROM V$SESSION
    WHERE TYPE = 'USER'
    AND USERNAME = USER
    AND LAST_CALL_ET IN (0,1)
    AND ROWNUM < 2;
    exception when others then null; end;
    IF NVL(:NEW.SC_PART,' ') = 'CHC' THEN
    SELECT COUNT(*)
    INTO i
    FROM DEMANDE
    WHERE DEM_REF = :NEW.DEM_ID
    AND PER_NIP = :NEW.PER_NIP;
    IF i = 1 THEN
    SELECT ID
    INTO vID
    FROM DEMANDE
    WHERE DEM_REF = :NEW.DEM_ID
    AND PER_NIP = :NEW.PER_NIP;
    UPDATE COMPOSITION_SUBV
    SET --CE_ETAB     = :NEW.CE_ETAB,
    --DISCIPLINE  = :NEW.DISCIPLINE,
    DEPARTEMENT = :NEW.DEPARTEMENT,
    --DEG_DEMANDE = :NEW.DEG_DEMANDE,
    DATE_MODIF = SYSDATE,
    USER_MODIF = V_OSUSER
    WHERE DEM_ID = vID
    AND PER_NIP = :NEW.PER_NIP
    AND ANNEE = :NEW.ANNEE;
    END IF;
    END IF;
    /*EXCEPTION
    WHEN OTHERS THEN
    NULL;*/
    END;

    A standard disclaimer, the mutating trigger error is telling you that you really, really, really don't want to be doing this. It generally indicates a major data model problem when you find yourself in a situation where the data in one row of a table depends on the data in another row of that same table. In the vast majority of cases, you're far better off fixing the data model than in working around the problem.
    If you are absolutely sure that you cannot fix the data model and must work around the problem, you'll need
    - A package with a collection (or global temporary table) to store the keys that are modified
    - A before statement trigger that initializes the collection
    - A row-level trigger that adds the keys that were updated to the collection
    - An after statement trigger that iterates over the data in the collection and updates whatever rows need to be updated.
    If you're on 11g, this can be simplified somewhat by using a compound trigger with separate before statement, row-level, and after statement sections.
    Obviously, though, this is a substantial increase in complexity over the single trigger you have here. That's one of the reasons that it's generally a bad idea to work around mutating table exceptions.
    Justin

  • Update another list when list is updated

    What do you recommend to update another list when the current list is updated.
    I have a workflow which updates a Reports list. I also have a favorites list which has 4-5 columns which are in the reports list and I would like to update those values when the reports list is updated. I use a workflow to update the reports list.
    Thanks

    Hi CoutinhoR, 
    You could use your existing workflow to update the favourites list (after it has updated the reports list). 
    Another way, would be creating an event receiver that updates the favourites list whenever an item in the reports list is added, modified or deleted. 
    It depends on the functionality you need to achieve. If you are just incrementing the value of the columns for a single item in the favourites list (when a report is updated), then using the existing workflow would probably work best.
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • ADF 11g Partial Triggers Row Column Update By Column in the Same Row

    Hi.
    I have a situation whereby I have a checkbox in a table row, which has an eventchangelistener, which upon activation, trys to update another column in the same row. I can not get this to work through partial triggers, even though I have set up my ids up correctly. The row though can be updated by a command button outside of the table using the same coding techniques, but I need it updated via the checkbox.
    Is there a limitation in updating a column within a row, from another row column's event change listener.
    Thanks.

    Updating the other rows from the checkbox works fine for me. Here is what I did.
    I DnD Emp table with a new column that says if the emp is new hire. If the checkbox is checked, I set Firstname and Lastname for that row as NewHire. I have partial triggers on Firstname and Lastname columns to update whenever checkbox is checked/unchecked and autosubmit on checkbox to true. Hope this helps.
    Try adding column selection property to single and see if it helps.
    Edited by: asatyana on Jan 16, 2012 12:48 AM
    Edited by: asatyana on Jan 16, 2012 12:49 AM

  • I switched on my PC and there was an update for realplayer. Since then firefox will not load. It is running according to Task Manager. I've downloaded a another copy of the programme using IE but whilst it loaded as a programme, does not open a window.

    I switched on my PC and there was an update for realplayer. Since then firefox will not open as a window. It is running according to Task Manager. I've downloaded a another copy of the programme using IE but whilst it loaded as a programme, does not open a window.

    Hi again,
    Helps if I give the correct link ! <br/>The press shift button appears to still work, but the option to start in safe mode from the programs listing of a standard install I do not think exists anymore.
    Safe mode will start from a command line, (or a shortcut) and in some circumstances you may need to enter the full path name on a command or shortcut detailed instructions are at http://kb.mozillazine.org/Safe_mode
    Remember (at least at this stage) do not make changes when you get the options list, just click on the continue button.
    If you think that RealPlayer is causing the problem you could uninstall that for now.
    Firefox recent versions are 3.6 4.0 (and 5.0 in beta). There is some debate as to whether creating new profiles or re-installing Firefox is the simplest method of troubleshooting and solving some of these problems, personally I use multiple profiles and multiple versions of Firefox, and tend to forget the required procedures are less than straightforward. For now at least try [[safe mode]] again.
    * see also Instructions for [[installing a previous version of firefox]]

  • I tried to update iTunes yesterday.  The update failed.  Now when I try to open iTunes it says that the version isn't localized and needs to be run in English.  It has never been in another language.

    I attempted to update iTunes yesterday.  The update failed.  iTunes now won't open and displays an error message that the program isn't localized and needs to be run in the English version.  I'm in the US and the computer and program has never been used in another language.  I tried reinstalling the full download for the new version and that failed as well.  I logged out; shut down; restarted; retried the update; etc.  Still no luck and the same message.  Thoughts?

    Solving MSVCR80 issue and Windows iTunes install issues.
    Thanks to user turingtest2 for this solution.
    Solving MSVCR80 issue and Windows iTunes install issues.
    If the above doesn’t do the trick entirely, then use the instructions in the following as it applies to the version of Windows you are using:
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    You may be required to boot into safe mode to complete the folder deletion process.

  • Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services

    Getting this error from DirSync
    Unable to update this object because the following attributes associated with this object have values that may already be associated with another object in your local directory services: [UserPrincipalName
    [email protected];].  Correct or remove the duplicate values in your local directory.  Please refer to
    http://support.microsoft.com/kb/2647098 for more information on identifying objects with duplicate attribute values.
    Quick eyeball and couldn't see the cause in the user account so used the script here:
    http://gallery.technet.microsoft.com/office/Fix-Duplicate-User-d92215ef
    And got these outputs:
    PS C:\Windows\System32\WindowsPowerShell\v1.0> Export-OSCADUserPrincipalName -UserPrincipalName "[email protected]" -Path .\outputs.csv
    WARNING: Cannot find objects with specified duplicate user principal name
    [email protected]
    Found 0 user(s) with duplicate user principal name.
    Where to from here?
    Richard P

    Hi,
    Did you talk about the Microsoft Azure Active Directory Sync tool ?
    If yes, this issue occurs if one or more of the following conditions are true:
    An object in the on-premises Active Directory has an SMTP address that's the same as the SMTP address of the object that's reporting the problem.
    An object in the on-premises Active Directory has a mail attribute that's identical to the object that's reporting the problem.
    An object already exists in your organizational account and has the same SMTP address or mail attribute as the object in the on-premises Active Directory
    More detail information, please refer to:
    http://support.microsoft.com/kb/2520976/en-us
    [Troubleshooting] Unable to update this object because the following attributes associated with this object
    http://blogs.technet.com/b/aadsyncsupport/archive/2014/05/20/troubleshooting-unable-to-update-this-object-because-the-following-attributes-associated-with-this-object.aspx
    Regards.
    Vivian Wang

  • I keep getting an error message that reads "to update application sign into the account you used to purchase it"   I am trying to download Final Cut Pro X 10.0.9  I am signed in with the account that I purchased Final cut Pro X   I don't have another acco

    I keep getting an error message that reads "to update application sign into the account you used to purchase it"
    I am trying to download Final Cut Pro X 10.0.9
    I am signed in with the account that I purchased Final cut Pro X
    I don't have another account I'm not sure what's going on

    Welcome to Apple Support Communities
    Open the Mac App Store and go to Purchases. Do you see Final Cut Pro X listed?
    If so, open a Finder window, choose Applications in the sidebar and delete Final Cut Pro X. Then, go to the Mac App Store and download Final Cut Pro X for free.
    If you don't see it in Purchases, see if it's hidden, and if so, unhide it > http://support.apple.com/kb/HT4928 If it doesn't work, contact with the Mac App Store support > http://www.apple.com/support/mac/app-store/contact

  • I can't open an update for Acrobat 9 pro I get asked to open another prog from the suite but when Io

    I can't open an update for Acrobat 9 pro I get asked to open another prog from the suite but when I do Acrobat just shuts down,help !!
    And I can't get back to the older version of Acrobat

    See this User Tip by turingtest2
    https://discussions.apple.com/docs/DOC-6562
    JimmieJag wrote:
    2. If I reinstall it, will I lose my store credit and non-iTunes songs?
    Nothing should be lost... However... it is both Prudent and Recommended that a backup should have been created and maintained.

  • Selecting from one table and Update another in the same Page

    Could someone help me with this HTMLDB task. In my page design, I am selecting data from two tables (masters: DEPT, EMP) which I want to display on the left column of the page and at the same time a user would be able to update another table (ATTENDANCE:with many children) which would have a radiogroup on the right side for each value of the master such as employee name. The placement of data has to appear in corresponding rows on the page. For instance, employee names of the master table must appear on the same row with its corresponding child value. The page would be grouped by DEPT_NO. The user would click on the department name, a new page with the employee name would apprar. From that page, the user would then update attendance column for each employee in that department. In this operation, it is only the ATTENDANCE table that is being updated. I can send out more information about the structure of the tables if you need more information. I tried many HTMLDB options, forms, reports, etc. I have not been able to get quite right. Your help will be appreciated.

    Raju,
    Thanks for responding to my problem. I have actually tried using the example on how-to you sent me a link to but it did not help as I expected. You see, the page would be updated every meeting date for each employee. I can send you more information about the table structure if you like. However, let me see if this will help you a bit.
    Tables are: 1) Dept [dept_no (pk),dept_name] 2) EMP [emp_no (pk),emp_name, dept_no(fk)] 3) Meetings [meet_key(pk),attended, meeting_date, emp_no(fk)]
    What I want to do is create two pages, one would list the departments, when a user selects a department, the user would be linked to a meeting attandance page. The meeting attendance page would list department name once, Meeting date once, and then list employees in that department. At the right column of every employee would be a checkbox for meeting.attended for update. The meeting_date would be pre-populated so that what the user would do is just check Yes/NO. The second page is the one I'm having the most problem with.
    If I can do a fetch from dept, emp, and meetings and then do an update on the Meetings table on the same page, I think that might solve the problem. That was how I solved it in MS Access three years ago.
    Here is email address in case you want to contact me directly. [email protected]
    Thanks again for your help.

  • When trying to Sync my iPhone i got a message saying that my phone could not be read and that it should be restored, upon doing so i got another message saying the iPhone software update server could not be contacted what do i do?

         When trying to Sync my iPhone i got a message saying that my phone could not be read and that it should be restored, upon doing so i got another message saying the iPhone software update server could not be contacted what do i do?
         I have now discovered that i cannot update or restore any of my devices

    Were those items purchased or downloaded under a different apple ID than what you are logged into on the phone?

  • I can't log into the Itunes store,says I need to update my security but the link won't open in Explorer, bad http!

    I can't log into the Itunes store with my Apple ID.Says I need to update my security but the link doesn't work,bad http.Get internet explorer canot connect message.

    Good day Goose253501,
    It sounds as though your iPhone is having some difficulty accessing the App Store servers when attempting to sign in. I would suggest that you troubleshoot using the steps in this article - 
    Can't connect to the iTunes Store - Apple Support
    Thanks for using Apple Support Communities.
    Safe computing,
    Brett L 

  • I was trying to restore my itouch and when i pressed "restore" and then pressed "restore and update", another sign popped up saying "The ipod "ipod" could not be restored. The disk you are attempting is full. Removing files and empty the recycle bin

    i was trying to restore my itouch because it showed on my itouch the itunes bar on top and the charger on bottom so i went on itunes and when i pressed "restore" and then pressed "restore and update", another sign popped up saying "The ipod "ipod" could not be restored. The disk you are attempting is full. Removing files and empty the recycle bin will free up additional space. What do I do?!?!?! please help me ASAP

    Hi
    I followed this guy's instructions and it worked:
    http://evsiphone.blogspot.com/2009/05/iphone-iphone-could-not-be-restored.html
    I did disable the security (AVG and Zone Alarm) when I tried on my own PC. My wife's laptop which eventually got it working also uses AVG and Zone Alarm but on an XP O/S whereas my PC is Vista - maybe this is why.
    Cheers for you help.
    Andy
    Message was edited by: bigbadandy

  • I update my iPad with the new version 7.0.3 and my game Hay Day also was updated, but with another Apple ID that is not mine, how can i change and put my Appel Id ??

    I update my iPad with the new version 7.0.3 and my game Hay Day also was updated, but with another Apple ID that is not mine, how can i change and put my Appel Id ??

    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
    Apple ID FAQs  >  http://support.apple.com/kb/HT5622

Maybe you are looking for