User-exits - Infotype 2001

Hi,
Can anyone tell me which user-exits exist when creating an infotype 2001?
I need to make a validation when saving one infotype 2001, so I need to know which user-exits can I use.
Thanks in advance for your help.
Best regards,
Sónia Gonçalves

Hi,
You must implements the function EXIT_SAPFP50M_002 (the include ZXPADU02) for After Input. In this Include you can check if the infotype is going to be saved (ex. sy-ucomm = UPD and somethings like this).
There is another possibility with an object of the interface method IF_EX_HRPAD00INFTY~IN_UPDATE. This method is called when you are going to save.
We make normaly these checks in 2001, 2002 and 2003 and all works properly.
Kind Regards
Jaime

Similar Messages

  • User Exit at 2001 absences

    Hi,
    I need a user exit to give me an error at 2001 in some case,Its about;when the users create absences record after employee left the company.for example employee left or fired the company at 10022009 and now the users can enter absence after 10022009,To prevent this, I need a user exit.
    thanks,
    Mehmet

    Hi,
    Goto CMOD, The exit name is PBAS0001, here go for the second function exit EXIT_SAPFP50M_002 , and write the include ZXPADU02 with your functionality .
    Also see the sample code provided there to fetch data from infotypes . For reading data from Infotype first CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn and then again CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp after modifying the contents of infotype.
    In this exit u can check the employee status, and then through an error message according to your requiremenrt.

  • User Exit - infotype 105

    Hi,
    I need a user exit that will executed when the user will update infotype 0105.
    I tried to use EXIT_SAPFP50M_002 but this function wasn't executed when updating infotype 0105
    Thanks,
    Ofir

    The User Exit was ZXPADU02..
    I had a mistake in my code.
    I have a problem with this user exit.
    The user exit export current info type record, but this record isn't returning the new e-mail address.
    If I return the e-mail address "manually" (via bapi), I see the old e-mail.
    How can I return the new e-mail address (without using a badi) ?
    Thanks you all again,
    Ofir

  • HR-ABAP-want user exit for pa30  for creation 2001 infotype for sick leave

    Hi ALL,
             My requirement like, whenever I try to create a sick leave through PA30 Tcode for infotype 2001 then the has to be trigger like, if the personnel joing date will be from Feb-Dec any date of the year then, the SL will be valid for next year Jan.
    Ex; Todya I am creating SL on 2001 infotype. then the condition will
            If joining date not Jan 2007 then,
             Leave will be valid for next year Jan 2008.
    So, let me know is there any user exit for  this.
    Thanks In advance.
    J.P

    Find myself

  • Update infotype from user exit

    Hi,
    My requirement is to update a infotype from a user exit. I have a internal table with some records created in the user exit pbas0001. Now i need to update these records in the infotype 2001(absences). I tried using HR
    INFOTYPEOPERATIONS directly from the user exit and it didn't work. If i create a include program and create a subroutine within the include program and call it in the user exit still i am getting a error message. How can update the infotype from the user exit.
    Can someone send the example code for how to export the internal table from the user exit and import it in another program and update the infotype from that prgm.

    Put the entire code in another Report & SUBMIT that report from the User exit.. this will isolate the two work processes & the Z table should get updated..
    ~Suresh

  • User exit for infotype 21

    i  want o find out user exit for infotype 21   for the time and  Absences  plsea help me out

    >
    SANDEEP JADHAV wrote:
    > Not working   man , when i used  infotype 21  and using subtype     i am getting  "  Creating   Absences "  screen   
    >  now  i am entering time and   Absences  hours when i save the entries  , now on that spot i want to find  out  user exit  but i am unable to get it
    >
    > Please help me out
    You meant infotype 2001, right?  the User exit  EXIT_SAPFP50M_002 works perfect or you could try the AFTER_INPUT method of the BAdI HRPAD00INFTY
    ~Suresh

  • How to find the user exit for infotype 2013 ?

    Hi All,
    How to find the user exit in infotype 2013? i want to change the drop down list default value in infotype 2013.
    Thanks,
    Srikanth P

    reward points if useful
    User exit name is PBAS0001.
    code should be written in ZXPADU01 for PBO
    ZXPADU02 for PAI.

  • Update infotype 0032 in user exit ZXPADU02

    Hi All,
    I have the following requirement.
    Telephone extension number is stored in IT0105 and IT0032. When the extension number is updated through ESS, this is stored in IT0105 but it does not update IT0032 which is displayed in MSS.
    I need to update infotype 0032 based on the data in 0105.
    I thought I could update infotype 0032 in userexit ZXPADU02 whenever infotype 0105 was saved using the function module HR_INFOTYPE_OPERATION but it is not working for me.
    Any help would be appreciated.
    Elaine

    You have to make the function call a separate unit of work.One other option is to put the function call in a report & SUBMIT it from the User exit.
    ~Suresh

  • Infotype check and user exit

    hi All,
    With the help of answer from my previous post I understand that I need to implement a user exit to do a particular check on my field. Actually when a user inputs a field then i need to compare it to field from some other table.
    My doubt is what user exit i need to use..
    ZXPADU01 or ZXPADU02 or ZXPADU03.
    My understanding is that ZX*02 is for me since it is implemented in PAI module of screen 2000 for MP999900.
    Also can someone explain what different situations we need to use this exits?
    Also please mention if BADI exists with the same functionality.
    thanks and regards,
    Reena

    if it is a Z infotype then as per my previous post just go to se80 and ur concerend module pool program.
    and write a module in PAI on tht particular field as in my post..
    if u want to compare it with another table value then u can simply  fetch data frm tht table in this module and compare it with ur field.
    U need not to go for USer Exit for the Z infotype.
    amit

  • Infotype 0008 - User Exit Validation

    Hi Gurus,
    I have to validate infotype 0008 amount fields  in PAI user exit ZXPADU02 .
    For a scenario, if the amounts are not equal  ( BET01 <> BET02) then  I have to geneate error message.
    Then the user is supposed to correct / re-enter  the amounts .
    The problem is , when I generate error message , the amount fields are grayed out.
    I think this is happeneing cause of standard SAP code (  in flow logic for program MP000800  ) .
    Is there any way to generate error message in the user exit and
    Give the users an option to update the amount correctly ??
    Core mod is the last option.
    Appreciate your inputs .
    Thanks

    I solved this problem with:
    if BET01 <> BET02.
            message 'tekst' type 'S'.
            LEAVE SCREEN.
    endif.

  • BADI, User Exit or Dynamic Action for Infotype 24

    Hello,
    in PA30, our HR admin team want me to write an Infotype 19 record when a user amends or creates an Infotype 24 record.
    I spent all day yesterday trying to find a solution to this.
    Can anyone please tell me:
    1) Do dynamic actions work for IT0024? - our HR admin suggest that they don't as there is no 'subtype'.
    2) Should user exit PBAS0001 (function EXIT_SAPFP50M_002) work for IT0024? I have tried putting in a test display which should appear on save of IT0024 and this does not appear to work.
    3) Will BADI HRPAD00INFTY work? If so, does anyone have an example of code that tests the 'old' IT0024 record before modification - the documentation does not help too much with a good example. I'm planning to use this as a last resort due to the need for an access key.
    Many thanks in advance,
    Keiron.

    The BADI is probably the best way to go.  You should not need an access key - you do not put your code in the BADI, but instead create an implementation of it in a Z name range.  Go to SE18 for the BADI and display it, and select menu option implementation--->create.  Give a Z name and then you will have a place to put your code.  You can double click on the methods shown in your implementation to get to the ABAP code editor.
    Exit PBAS0001 should also work - put a breakpoint in it to see if it is called.
    Both the BADI and Exit are called at almost the same point in the SAP PA30 code - however the BADI is called in some cases when the exit is not.  It is outside an additional IF test in the SAP code.
    Andrew

  • Need Fcode in User Exit For Infotype

    Hi,
    I am writing a User exit for Infotype 0002 at Customers Site. I need Fcode to realize a specific logic. I am using the exit PBAS0001 for this purpose. can anyone tell me how to I get Fcode so that I can use it in the code ?
    Regards,
    Suma

    Hi Suma,
    sorry that i posted the false BAdI.
    You have to use HRPAD00INFTY. That is for PA.
    The BAdI HRBAS00INFTY is for PD/OM.
    Regards
    Bernd
    But there is no paramter ok_code
    Message was edited by:
            Bernd Köhn

  • User exit for salary calcuation through PA30 infotype 8

    Hello gurus,
    I want user exit which will trigger in PA30 when we put infotype 8 for a particular employee in display or change mode.
    In PBAS package i have found the exit PARA0002. In this i have 3 components. I put the hardcoded break-poin in these function modules. But when i go to PA30 infotype 8 in change or display mode. The break-point is not triggered.. or control doesn't go to that point. In CMOD i created the project and activated. But still the break-point can't be reached. What else can be done or any other exit?
    Regards,
    Yayati Ekbote

    Hi yayati,
    For infotype 8 salary (or in fact for any other PA infotype) we can use the enhancment PBAS0001.
    It has two components/FM. One for PBO i.e. for defaulting values on screen and other for PAI i.e. for checking values before saving.
    EXIT_SAPFP50M_001
    EXIT_SAPFP50M_002
    Hope this helps.
    regards,
    amit m.

  • Reg User Exit for Infotype 8

    Hi,
    I have created two custom fields on infotype 8, i need populate on fied with base salaryBonus(from infotyp 14) and the other field  should be  the total of all line items on Infotype 8 ( Base salary shift differentials(permiums).
    In order to do this, i searching for user exit , can anyone help me in doing this ..please
    Thanks
    Kisu

    Hi,
    I looks into the exit.It seems it is doesnt get tigger while going through the PA40.I dont know is it possible or not but I need to do while going through the actions. when the user in pa40 goes through some actions and reaches infotype 8 and enters and the values and press enters ,at this moment I need to find the Exit that gets tiggers and calculates the values and populates the custom fields on 0008.
    I would like to know is it possible to do so..?
    Thanks
    Kisu

  • Infotype 416 User exit or Solution

    Hi,
    I am using PA30 with infotype 416. While displaying, I am getting two radio buttons namely - Automatic and manual compensation. But while creating, i do not see this two radio buttons.
    Is there any user exit which can be used to remove / make invisible the radio buttons while displaying?
    Or if there is any solution to this?
    Thanks & Regards,
    Naba..
    Edited by: Naba Kumar Saha on Jul 14, 2009 2:13 PM
    Edited by: Naba Kumar Saha on Jul 14, 2009 2:30 PM
    Edited by: Naba Kumar Saha on Jul 14, 2009 2:56 PM

    Hi,
    I am using PA30 with infotype 416. While displaying, I am getting two radio buttons namely - Automatic and manual compensation. But while creating, i do not see this two radio buttons.
    Is there any user exit which can be used to remove / make invisible the radio buttons while displaying?
    Or if there is any solution to this?
    Thanks & Regards,
    Naba..
    Edited by: Naba Kumar Saha on Jul 14, 2009 2:13 PM
    Edited by: Naba Kumar Saha on Jul 14, 2009 2:30 PM
    Edited by: Naba Kumar Saha on Jul 14, 2009 2:56 PM

Maybe you are looking for