Delete future changes in person Screen using API

Hi all,
I am working on converting Contingent worker into an Employee using API. (Steps : terminate CWK API -> hire_into_job API)
In that, If any future changes exists in person screen for a contingent worker then its not allowing me to terminate that person.My client requirement is to remove future changes if exists and convert as an Employee.
I am not able to find the correct API to delete the future changes in person screen. I have checked the hr_person_api.delete_person but in API description, they mentioned it is to purge the person totally from database.
Please help me on this.
Thanks in Advance.
Regards,
Mani

Sorry mate, cant find any.
Bad that there isn't a public API for the same.
Not checked the code in PERWSHRG.fmb.
But how many people would have future changes ? Are there 10s of 100s ?
may be you can -
# If you just have simple changes in the future(i.e. no person_type changes which effect Periods of service etc..), you can simply delete the future changes and move the end-date of the penultimate record to end-of-time(31-Dec-4172). Just be sure this wont effect any others child tables(assignments, per_periods_of_service, per_person_type_usages_f etc..)
Cheers,
Vignesh

Similar Messages

  • Changing DN for GROUPS using API

    I have such code that I change GROUP attributes in OID with:
    ModPropertySet m=new ModPropertySet();
    Group mygroup;
    mygroup=new Group ( Util.IDTYPE_DN,groupName );
    m.addProperty(LDIF.RECORDCHANGE_TYPE_MODDN,"distinguishedname",newDN);_
    m.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_REPLACE,"displayname",newDisplayName);
    m.addProperty(LDIF.ATTRIBUTE_CHANGE_TYPE_REPLACE,"description",newDescription);
    mygroup.setProperties(dirctx,m);
    The above piece of code works well if I exclude the line with distinguishedname or DN.
    otherwise it returns this exception:
    NamingException encountered in ldapModify [LDAP: error code 65  Failed to find distinguishedname in mandatory or optional attribute list]
    Interestingly, if I put a bad newDN there, such as "hello", (not in the form of cn= .. , ...) it says:
    NamingException encountered in ldapModify cn=tester,cn=groups,dc=pooyaco,dc=com: [LDAP: error code 34 - Invalid DN Syntax]
    My question is that whether I can change DN using APIs like this or not? and how?
    Thank you.
    Farbod

    To change the RDN or DN you will need a modRDN/modDN operation, and not a direct LDAP modify.
    For this you can use the Java JNDI API, see:
    http://java.sun.com/docs/books/tutorial/jndi/ldap/rename.html
    BR,
    Octavian

  • Change portal login ID using API.

    Can anybody let me know how to go about changing the login ID of portal users from the API.

    Hi Michael,
    We have a custom app where admins can change the UME users. All the users login with email ID. And admin will be able to change the email ID's (which inturn should change the portal login ID). Can you put some light on how I should do this. Is there a work around ?
    Thanks

  • What is module pool programming?how we can change the standard screen?

    Hi EXPERTS
    what is module pool programming?how we can change the standard screen using module pool programming ?
    please explain with example.

    Check the below link:
    http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F
    http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    You can also check the transaction ABAPDOCU which gives you lot of sample programs.
    Also you can see the below examples...
    Go to se38 and give demodynpro and press F4.
    YOu will get a list of demo module pool programs.
    One more T-Code is ABAPDOCU.
    YOu can find more examples there.
    See the prgrams:
    DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
    DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    regards,
    venkat.

  • Iphone 4s - how do I change the name in the contacts for the owner of the phone - it is coming up as the other person who uses the laptop - so when ringing or texting anyone 2 names are being used as the caller id on the screen

    Iphone 4s - how do I change the name in the contacts for the owner of the phone - it is coming up as the other person who uses the laptop - so when ringing or texting anyone 2 names are being used as the caller id on the screen

    *Ralph Johns* writes:
    "Your options are:
    Get a trial account form @mac which will work as an iChat name after the 60 days run out but not be a email account that is valid (And is free)"
    Do you mean a trial account from .Mac? (DotMac)
    "Get an AIM Screen name and set it to Display what you want as you set it up.
    The Screen name can be whatever yu want but you can also set it to display something else as well."
    I had thought about this, but it seems other people have already chosen the screen name "pinksharkmark" and virtually every variation of it I can think of. So that isn't an option for me. As for getting it to display something else as well, do you mean that if I were to get an AIM screen name like "CromulentCat" I could somehow log in to iChat under the AIM account "CromulentCat" yet get iChat to represent me to my Buddies as "PinkSharkMark"? Because I have to admit I don't see how that can be done. It appears as if iChat displays to anyone chatting with you precisely the account name you logged in under and nothing else. So if you logged in using a .Mac account, then you are displayed as "[email protected]" while if you logged in under an AIM account, you are displayed as "CromulentCat". But that's it that's all... there is no way to change CromulentCat to PinkSharkMark.
    Thanks very much for taking the time to reply, though.

  • My email is frozen when I touch the screen to delete or change inbox can't get it to work

    My email is frozen wont do anything can't delete or change inbox how do I fix this

    You will need to do what it says, contact iTunes Support, which has no phone support (nor do they have live chat, only email support). Click the Support tab above, then the Get Started link in the Contact Apple Support area and follow the on-screen directions, making the selections as appropriate.
    Regards.

  • I use Apple TV's screen saver with a file in my photo library.  If I install newest update - will that change anything with my using this favorite feature?  I have just under 4000 photos in that file.  What is the total # of photos it can utilize?

    I use Apple TV's screen saver with a file in my photo library.  I believe it is first generation or second Apple TV - not the newest one.
    If I install newest update - will that change anything with my using this, my favorite feature?  I have just under 4000 photos in that file. 
    And, what is the total # of photos it can utilize?  If I keep adding photos - is there a limit to the # it will utilize?

    Thank you Alan and  know you are right. I really can do all I need with my netbook and ereader and do not need the ipad. I think I just wanted something new and felt I may enjoy using it a lttle more than the netook. But it would be a waste just to buy one when I donlt acutally need it  And, donl't think it is worth the extra money for me the get the 4g wireless capability since I doubt I would really need it often.
    I may treat myself to the Ipad for the color, touchpad and fun to use but it is very expensive considering how little it will do for me no more than the things I want it for. It woudl be and expensive luxuray, I can do without. I actually  need t learn how to use more of the function avaiable first.  Maybe I should take up playing games and learning to take digital pictures so I can at least load them. If I could learn to do that and take a decent picture, I could start selling back all the "stuff" I have purchased on ebay. haha - I do have a nice doll collection, I would like to sell. I just do not have room for anything else. That was the primary purpose for the Kindle Ereader I bought and enjoy so much,
    But, I will hold onto the thought for a while and see how it goes and what other comments I get, If I think I cannot live without it, then I will have to rethink which one to buy, I coud get the 32 g if I did not have to pay for the 4g wireless. And, if I knew I could get help to teach me how to use and enjoy all the functions, I would give it more serious consideration. My granddaugther got one for Christmas and that was what got me interested in it. I love the size of the screen and it had good color and was fast. She even had an application where she could write her notes and it would convert into typed words. That was a neat feature, If you could print it?
    But thanks again for your comments and I will check later to see I get any other feedback.
    Sunny:)

  • TS4002 when to persons are using one apple ID and they sync their contacts to gather then first sync contacts are deleted. how we get it back?

    when to persons are using one apple ID and they sync their contacts to gather then first sync contacts are deleted. how we get it back?

    You can share the same Apple ID for purchasng form the iTunes and app stores without any problems, but you should all used separate iCloud accounts with separate Apple IDs.  (You are not required to use the same ID for iCloud and other services as you do for the iTunes store.)  This will prevent you from ending up with merged data.  You should also use separate Apple IDs for iMessage and FaceTime or you will end up getting each other's text messages and FaceTime calls.
    This article may be of interest: http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/, as well as this video: http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l.

  • My change to small screen facility has suddenly stopped working. Can anyone help as I use this a lot.

    the change to small screen icon in top right hand corner of screen has stopped working. Can anyone help.

    When you use the maximize/restore button, the window is restored to its last size. Some websites use a script to enlarge the window to its maximum size so when you switch from maximized to restored you hardly notice any change. You may have to manually resize the window by dragging the lower right corner. Does that help, or is the button just completely not working??

  • I need to change my iCloud e-mail to my new e-mail because my old e-mail account has been deleted and i haven't been using it for a while.

    i need to change my iCloud e-mail to my new e-mail because my old e-mail account has been deleted and i haven't been using it for a while.
    my new e-mail is my apple ID but my iCloud one wont change over.

    If the old ID ("email address") is an earlier version of your current ID, try temporarily recreating the old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • Who deleted or changed data

    Hi All,
    Is there a transaction to know to who deleted the plan version or changed the plan version in KP97?
    and  t code to find who deleted or changed master data in finance.
    Our posting periods T001B have also been changed and amounts posted to wrong periods and one of the virement.
    WE ARE HAVING ISSUE AS BELOW--
    I too looked at both tables COBK and COEJ and noticed that the documents were not shown in table COEJ. If these records have been deleted I'm not sure how to check this unless the system can show an audit trail of when table COEJ was last edited? (Presuming that the only way to delete these records is to physically delete them from the table directly?)
    The entries on 10th August 2009 in plan version 3 shown in the screenshot below relates as you say to the overnight job through transaction ZPVC, this transaction must have picked up that on the 10th August records were missing from table COEJ and therefore recognised this and therefore posted the difference, for example ZPVC realised that in table COEJ ledger code 200310/55010 now totals to £2,289,824 and not £2,069,324.
    AND COULD BELOW EXPLANATION BE A REASON FOR ABOVE PROBLEM*********
    The point of my e mail is to query whether this issue could be related to the changes made during the weekend of the 8th and 9th of August, just prior to go live with the system enhancements. The other issue which leads me to believe that this could be related to the go live transition, is that on Monday the 10th August we discovered that the period settings had been changed from current period 5 to previous period 4.
    Thankfully we were able to confirm that no postings were made to period 4 during this time which would have lead to errors in the accounts.
    ANY LEAD ON THIS WILL BE HIGHLY APPRECIATED.
    Thanks!

    Hi,
    To see the IMG changes proceed as follows;
    Position Cursor on the IMG node and click on "Change Log" button (F7). If table loggin is not enabled then you may not be able to see the changes already made. But to track future changes in IMG settings you may Activate Table Logging at the Client Lebel. This can be helped by Basis Team. To check
    For changes made using KP97 you will be able to see changes in the planning screen. Go to KP06 or KP26 or KP46 and select the values and press overview button. Then position cursor on the value that you think has got changed and click Line Items (CTRL + SHIFT + F3) you will see the changes.
    For changes to FI Master data there are different TCodes;
    FS04 - Display changes to GL master centrally etc.
    The user id will be available in the change log.
    Thanks,

  • Unable to wake screen using magic mouse or trackpad after installing magic mouse

    Dear Everyone,
    I am using mbp 15 inch early 2011 with 2 GHZ intel i7 processor and a  4gb ram. I would like to tell you that i have installed the mac os x lion and quite happy with the improvement. however, there are same changes which i am not sure whether it is that my mac that causeing theproblem or the bug from the lion itself. i am unable to wake my mbp screen using my magic mouse or trackpad after installing lion. i believe that my mbp has not really enter sleep mode as i dont see the sleep indicator at the bottom right corner flickering. i also believe that it is only the screen that goes to sleep while the hard disk is not. Normally a single swing  of the magic mouse or a single swipe of the trackpad will normally wake the screen. in order to wake the screen now is only to click on the magic mouse or trackpad. furthermore, scrolliing page using magic mouse also become unusual after installing the lion. does any of u happen to come across these problems as well? Is there any other way to downgrade to snow leopard back? (i ask this in case that this issue really cannot be fixed). Please help me on this issue. Thank you very much for taking your time to read and reply this thread.
    Moonbasher (henry)

    First, Lion does not wake on mouse or trackpad movement, only clicks or keyboard presses.  This is presumably to avoid waking the computer from display or full sleep accidentally, and is just how Lion works.  It's going to take some getting used to, personally, but I've noticed my mac hasn't woken up on it's own.  Apparently moving about my apartment moves the mouse enough that Snow Leopard used to wake the iMac.  This is not a glitch, and unfortunately, a downgrade is a complicated matter, involving erasing the HD entirely, and restoring from a backup created in Snow Leopard and not used with Lion at all, or manually importing important bits of data, as libraries upgraded by new versions of Mail, iCal, etc will not be compatible with the old versions.
    In terms of your mouse scrolling, describe it in a bit more detail; Lion introduces "natural" scrolling, where instead of the mouse wheel moving the "window" over the contents, it moves the contents through the window, like scrolling on an iPhone or iPad.  In other words, think of your finger on the mouse as pressing on the page you're looking at and dragging it upward through the field of view.  I remember long ago thinking my very first scrolling mouse was backwards, and then adjusting to "down is down, up is up".  If this is the behavior you're experiencing, this also is the way Lion works.  This, however, can be changed in the mouse or trackpad preference pane in system preferences.  Simply deselect "natural" scrolling.
    In a more general sense, its usually not a good idea to do a major software upgrade on your primary machine unless you're willing to deal with some zero-day glitches.  It sounds like the issues you're having aren't actually glitches, and you should be happy for that, but in the future, you might want to wait a few weeks for other users with more experience with major OS launches to find those bugs and point them out to the community for Apple to fix.  In terms of an OS launch, I think this has been absolutely one of the best.  I'm seeing very few major glitches resulting in lost data, few things that would really destroy my personal workflows, and compatiblity issues with other products seems to be well documented or negligible.  It's also a bit hasty to assume that mere hours after launch Apple would have any ability to fix ACTUAL problems with the OS.  My recommendation would be to get used to the change; having to click the mouse at least means you'll never accidentally wake your machine bumping against your desk.

  • Detect deleted or changed members

    Hi,
    I am processing time dimension. while processing it is not moving forward from "Detect Deleted or changed members" step.
    Usually it takes about 2-3 mts or some times 5 mts, It is hanging about hour and half and never moves forward.
    can any one help me ?

    Hi,
    To see the IMG changes proceed as follows;
    Position Cursor on the IMG node and click on "Change Log" button (F7). If table loggin is not enabled then you may not be able to see the changes already made. But to track future changes in IMG settings you may Activate Table Logging at the Client Lebel. This can be helped by Basis Team. To check
    For changes made using KP97 you will be able to see changes in the planning screen. Go to KP06 or KP26 or KP46 and select the values and press overview button. Then position cursor on the value that you think has got changed and click Line Items (CTRL + SHIFT + F3) you will see the changes.
    For changes to FI Master data there are different TCodes;
    FS04 - Display changes to GL master centrally etc.
    The user id will be available in the change log.
    Thanks,

  • Error in creating Employee using API

    Hi , i am not able to send the data to base table using the below mentioned code for employee using API:
    --Declaration of Variables
    DECLARE
    --l_person_type_id integer;
    l_per_object_version_number number;
    l_asg_object_version_number number;
    l_person_id number;
    l_assignment_id number;
    l_per_effective_start_date date;
    l_per_effective_end_date date;
    l_full_name varchar2(60);
    l_per_comment_id number;
    l_assignment_sequence number;
    l_assignment_number varchar2(30);
    l_name_combination_warning boolean;
    l_assign_payroll_warning boolean;
    l_emp_number varchar2(100);
    v_ogi number;
    v_bgi varchar2(100);
    CURSOR g_valid_emp_cur
    IS
    SELECT *
    FROM xyl_conv_employee_stg
    WHERE error_flag = 'V';
    Begin
    --select business_group_id,organization_id  into v_bgi,v_ogi from hr_operating_units h where h. name=oraganization_name AND TRUNC (NVL (date_to, SYSDATE + 1)) > TRUNC (SYSDATE);
    for valid_rec in g_valid_emp_cur
    loop
    select h.business_group_id,h.organization_id into v_bgi,v_ogi from hr_operating_units h where h.name='Vision Sweden' AND TRUNC (NVL (date_to, SYSDATE + 1)) > TRUNC (SYSDATE);
    -- l_emp_number := valid_rec.employee_number;
    dbms_output.put_line('Business Group Id' || v_bgi);
    begin
    hr_employee_api.create_employee
    (p_validate => false
    ,p_hire_date => to_date(valid_rec.hire_date, 'dd/mon/yyyy')
    ,p_business_group_id => v_bgi
    ,p_last_name => valid_rec.last_name
    ,p_sex => valid_rec.sex
    ,p_date_of_birth => to_date(valid_rec.date_of_birth,'dd/mon/yyyy')
    ,p_employee_number => l_emp_number
    ,p_first_name => valid_rec.first_name
    ,p_nationality => null
    -- p_person_type_id => l_person_type_id
    ,p_person_id => l_person_id
    ,p_assignment_id => l_assignment_id
    ,p_per_object_version_number => l_per_object_version_number
    ,p_asg_object_version_number => l_asg_object_version_number
    ,p_per_effective_start_date => l_per_effective_start_date
    ,p_per_effective_end_date => l_per_effective_end_date
    ,p_full_name => l_full_name
    ,p_per_comment_id => l_per_comment_id
    ,p_assignment_sequence => l_assignment_sequence
    ,p_assignment_number => l_assignment_number
    ,p_name_combination_warning => l_name_combination_warning
    ,p_assign_payroll_warning => l_assign_payroll_warning
    commit;
    EXCEPTION
    WHEN OTHERS THEN
    ROLLBACK;
    dbms_output.put_line(SQLERRM);
    end;
    end loop;
    end;
    SHOW ERR;
    It says enter a person number. Any help would be appreciated.
    Edited by: user8984055 on Feb 9, 2013 4:25 AM

    Hi,
    When you are doing the initial data migration at that stage you should set up the employee numbering and other numbering mechanism to manual. The reason of doing so is that when you are doing migration at that point you have the employee numbers with you for existing employees.
    Once you data migration is done then you have to go to BG information and update the mechanism to Automatic. Also, if you numbering mechanism is automatic and you are not able to change to manual or vice-verse in the BG definition then use will have to use the concurrent program "Change Employee number mechanism". You will have to make the decision of changing from one type to another in a proper way.
    Please find below some related articles on metalink for your reference
    How to Change Employee Numbering from Manual to Automatic?     (Doc ID 292257.1)
    Is it Possible to Update Generate Employee Number Method From Automatic to Manual?     (Doc ID 393827.1)
    Unable to Switch From Auto to Manual for Employee Number Generation in Shared Hr     (Doc ID 452044.1)
    How to control automatic employee numbering?     (Doc ID 473065.1)
    Need To Change The Employee Numbering From Automatic To Manual     (Doc ID 291634.1)
    Hope this helps.
    Thanks,
    Sanjay

  • Using API's in OA project

    Hi,
    I’m going to build a new OA project for CRM Quoting customization.
    I wondered which option is better to use API’s:
    * Creating packages in the DB that calls the DB-API’s
    * Using the Java class API - oracle.apps.qot.core.Quote
    Thanks in advance,
    Rona

    Rona,
    If you already have the Public API provided by the system, always use them. This way, you can be sure of all the validations and you are saved on the same coding effort.
    Also if there are business rule changes in future, they will get handled automatically.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for