HR API User Hooks - Can I use to change a value in the table the API for?

I am trying to initialize a descriptive flexfield on per_all_people_f. I originally tried doing the initialization using a “before row insert” database trigger directly on the table per_all_people_f. Seems to work great in the People form (PERWSHRG), but does not seem to work consistently when a new employee is entered through a template like Enter Employees (PERWSQHM).
Does anyone know if you can use an API User Hook to initialize a value on one o the tables the API is inserting? For example, could I put a "Before Process" user hook on the "Create_ Employee" API to change the value of a descriptive flexfield?
Any other good ideas?
Currently I have a concurrent request that runs once every 30 minutes to default the descriptive flexfield. The delay is causing issues.

In such cases you should write the code to default the values in the front end PUIs. As one person pointed out, User hooks are provided either to validate the already entered values, or to insert/update data in some custom tables but not for updating values in the same table where data is being inserted/updated.
BTW for your information:-
Person form (People Enter and Maintain) does not use APIs so anything written inside the user hook would be ignored by the application when this form is used. (The reason is this is one of the oldest form in HRMS, was created even before the concept of user hook came).
Template form PERWSQHM uses APIs, so user hook is called when this form is used to create/update the data.
Hope this is useful.

Similar Messages

  • API User Hook for Restricting Category Creation in a sepcific catalog

    Q: API User Hook for Restricting Category Creation in a sepcific catalog by a specific responsibility. I want to capture GO button process event?
    Hi All,
    Can anyone help me if anyone have used user hook for OLM? My requirement is to restrict course creation for the specific category... when we select category and select course and click on go button which process is calling? How can we identify the BP Package and Procedure name of that GO button?
    urgent reply shall be a great help.
    thank you.
    Regards,
    AD

    OK, I just tried to insert an element entry from the API and it works perfectly
    The problem seems to be coming from the form. Is the form not using an API?
    If this is the case, should I do a personalization and run a PL/SQL procedure each time a change is made?

  • Creating API User Hooks for Saudi HRMS

    Dear All,
    I want to create API User hooks for Person Extra Information Type,Any one could help me.
    Thanks and regards,

    If you want to learn how a user hook works, you can check the metalink note 73170.1. Or you can visit the following link.This guy has given the whole content in his blog.
    http://shrigupta.blogspot.com/2010/06/understanding-and-using-api-user-hooks.html
    Hope this helps.

  • Which user exit can be use before production order creating?

    which user exit can be use before production order creating?
    i want to check AFPO data,then show error message before production order creating.
    1.i try to use PPCO0001( enhancement when saving the order) to check AFPO data, then show some error message,sap system will generate a abap down error.
    2.i try to use PPCO0007(Exit when saving production order),
    i can show error message,but i can't check AFPO's data.

    Hi,
    You can access AFPOD structure using field symbols.
    Try below mentioned code in routing:
    constants: c_afpod TYPE char30 VALUE '(SAPLCOKO1)AFPOD' .
    FIELD-SYMBOLS: <fs_afpod> TYPE ANY .
    data: wa_afpod TYPE afpod.
    ASSIGN (c_afpod) TO <fs_afpod>.
    wa_afpod = <fs_afpod>.
    Then later you can use wa_afpod in exit PPCO0007. Hope this will work for you.
    Sumit

  • What keys can I use to change user?

    What keys can I use to change user?

    I am not aware of a keyoard shortcut to change between users. You can click on the current users name in the upper right of the menu bar and it shild drop dowm with the user list and you can click on that user for a quick change.

  • My iphone 4s is 2nd ...then i format..the phone want old user id...how can i used that iphone back because i dont know the id?

    My iphone 4s is 2nd ...then i format..the phone want old user id...how can i used that iphone back because i dont know the id?

    There is no other solution - as you have already been told, if you don't have that user id and you cannot contact the previous owner of that id for the phone, then there is absolutely nothing that you can do.  You have a useless brick that you can't use.
    Nothing else to do.

  • Can't log in with valid password, can't boot from disk, can't access disk utility, in single user mode can't reset password as appears locked in caps mode with '?' for forward slash, can anyone help?

    Can't log in with valid password, can't boot from disk, can't access disk utility, in single user mode can't reset password as appears locked in caps mode with '?' for forward slash, can anyone help?

    Which keyboard layout you were using? German, French ... I suppose your layout is reset to the default: US and you are unable to find the "?" or "/" ...
    Please have a look into the keyboard viewer, to see how the layout of your keyboard is actually.
    marek

  • HT5437 How can I use apple TV to connect my computer to the tv screen as an external monitor?

    How can I use apple TV to connect my computer to the tv screen as an external monitor?

    Morning jotref,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    About AirPlay Mirroring in OS X Mountain Lion
    http://support.apple.com/kb/ht5404
    Best of luck,
    Mario

  • I need to update my phone, but my computer broke, and do not have a new one. I have an Itunes account, can I use someone else computer to go through with the update?  Is there a chance of loosing all my data, ie: music/photos?

    I need to update my phone, but my computer broke, and do not have a new one. can I use someone else computer to go through with the update if i log on with my itunes account or Is there a chance of loosing all my data, ie: music/photos? And if all else fails can i go to the apple store and have them update my phone?

    Update to what? The 3G you want to update? You have ios3 or 4 on that 3G?
    Go to a friend, authorize that pc.
    Read this : http://support.apple.com/kb/ht1848
    and this : http://support.apple.com/kb/ht2519
    Make a backup of your stuff (from the phone. apps/photos/music/blabla). Update your phone. The phone will restore the backup automatically.

  • Can I use more than one blue-tooth device at the same time on IPhone 4S? Like a wireless headsets and speed and cadence sensor for cycling computer, receive the data and listen music simultaneously

    Can I use more than one blue-tooth device at the same time on IPhone 4S? Like a wireless headsets and speed and cadence sensor for cycling computer, receive the data and listen music simultaneously

    As long as the profiles are different (ex. HID vs AD2P) you will not have any issues. But say if you try to use 2 keyboards at once, it won't work. Or 2 headsets at once. Your scenario seems fine.

  • HT4145 How can I use an Airport Extreme to act as a Range Extender for an Alcatel One Touch Y800Z WiFi modem/router? I get a message saying it cannot be extended. Thank you. Arup

    How can I use an Airport Extreme to act as a Range Extender for an Alcatel One Touch Y800Z WiFi modem/router? As we live in a rural area and our landline broadband speeds are awful, I have moved on to a 3G provider in the UK (EE/Orange) and set up the wireless modem which is working very well with an iMac. I have an Airport Extreme base station which was previously connected with an Ethernet cable to the landline router, and two Airport Express stations as Range Extenders. I would now like to use the Airport Extreme and the two Express stations to extend the range of the Alcatel WiFi device. I have tried automatic and manual set up with the Airport Utility but at the crucial step for selecting a network to extend, although the WiFi device is recognised, I get a message saying it cannot be extended.
    Thank you for any help you can provide.
    Arup

    This is a problem with a lot of cheap end wifi hotspot like devices.. sometimes you can just swap the sim out to a real 3G wireless router.. that is a better approach IMHO than wireless repeater ever will be.
    In the meantime..
    Have a go with the suggestion.. place the express as wireless bridge. With a computer connected to the wifi from alcatel unit.. (I am amazed Alcatel still are in domestic market.. I thought they sold out). Set the express to join the wifi.. you do this in the airport utility.. old one is easy.. but in v6 you have to trust to luck so to speak and hope the auto setup works.. tell us if you have trouble.
    With the Express bridging.. you can then plug it by ethernet into the TC.. which will be in router bridge..
    ie
    You can then run the connection from wireless or ethernet on the TC.. and it will relay back to the alcatel for internet.. all a bit dodgy but who knows.. it may give you what you need.
    Wireless repeater is never particularly reliable in my experience. I would avoid it if possible.

  • HT204053 can I use 2 different apple id's and one itunes id for two seperate I-phones?

    can I use 2 different apple id's and one itunes id for two seperate I-phones?

    Welcome to the Apple Community.
    Yes.

  • Can i use my ext hard drive USB 2 on the the new macbook pro laptops with a USB3

    can i use my ext hard drive USB 2 on the the new macbook pro laptops with a USB3

    stephan ach wrote:
    but i read that there are lots of problems with the new macbook pro. i  have all my data on ext. la cie hard drive. i wont have a problem reading them?
    What problems specifically? If you have a problem you should start your own thread and explain the problem in detail.
    External USB devices including hard drives and DVD work fine on the new Macbook Pros.

  • Can I use an External hard drive and my computers hard drive for apple tv

    Can I use an External hard drive and my computers hard drive for apple tv

    If you mean to hold iTunes content to stream then the answer is yes.  Your iTunes library  folder and the media usually live in the same location, but media can be in a different or several different locations.  The external drive wuld have to e connected and powered to stream media to AppleTV.

  • HT3924 Can I use my 27"iMac late 2009 as an external display for a non apple product such as a cable box?

    Can I use my 27"iMac late 2009 as an external display for a non apple product such as a cable box?

    To get TV on your iMac off the cable box you would need to use an external TV tuner device such as the company ElGato is highly regarded for.  I have used one of their EyeTV products for many years with my iMac to watch television shows from my Comcasst cable TV box.  You can look at the models here:
             http://www.elgato.com/elgato/na/mainmenu/products.en.html

Maybe you are looking for

  • Upgrade from win 7 to win 8.1 issue

    I updated my win from 7 to 8.1 my WiFi adapter is not able to identify network. prior to upgrade when i was in win 7 it was working. Can some guide with troubleshooting steps that i can do. I did uninstall the network adapter couple of times but no l

  • URGENT: Reason code in Material document

    Dear all, We processed a thousand 551 movements without reason code. The user strongly NEEDs that field populated. I tried to modified the document with MB02 but, the field 'reason code'  does not appear. I looked in configuration trying to find a wa

  • Modem In Menu Bar.

    I used an AT&T wireless card for a while. I deleted the card from network prefs. Now I can't get rid of the modem icon on my menu bar. Any ideas?

  • ADF logging problems

    Hi, I think that there are some serious problems with ADF logging. Setting its logging level to finest may change the behaviour of the application fundamentally by throwing exceptions which wouldn't be thrown otherwise. For example: Logging level of

  • Error writing in a file

    hello Can any one tell what's wrong with this code : PROCEDURE WRITE_ITEM_BLOCK (FILENAME IN VARCHAR2) IS MYFILE TEXT_IO.FILE_TYPE; CUR_REC NUMBER; BEGIN MYFILE := TEXT_IO.FOPEN('c:\test.text', 'W'); TEXT_IO.PUTF(MYFILE,'this is my first line '); TEX