PA40 user exit?

Hello,
i want to achieve the following:
for the personnel action Family event, when the user selects a reason (in this case number 09, decease of a child), i want a pop-up to appear so that the user can select the name from a list.
but i don't know where to put the call screen. is there a user exit available for this?
please help me.

Hi dave,
1. In that case, infotype 0000 will come up .
2. use exit PBAS0001
   in that use the fm
  EXIT_SAPFP50M_001 for PBO
EXIT_SAPFP50M_002  for PAI
3. this exit is common for all infotypes
4. hence, u can detect which infotype is using
   CASE INNNN-INFTY.
  WHEN '0000'.
5. To convert the general innnn to p0000 structure,
   use like this
       DATA  : P0000 LIKE P0000.  
      CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
      EXPORTING
        PRELP = INNNN
      IMPORTING
        PNNNN = P0000.
regards,
amit m.

Similar Messages

  • User exit for save data in T.code PA40 ABAP-HR

    Hi Expart,
    what is the user exit which is trigger when we save the data through pa40 transaction which check the latest update in the database.
    Kindly give me exit name .

    Hi Vikash ,
    Please refer to below Exits :
    HRPBAS01            User Exit for HR Master Data
    HRPC0001            HR: PC download authorization
    HRRPAI01            User exit for FB HR_ENTRY_DATE and HR_LEAVING_DATE
    PARA0001            Enhancement for Determining the Number of Periods
    PARA0002            Enhancement for Calculating Annual Salary; IT0008,14,15
    PBAS0001            PA: Pers.Admin./Recruitment: Default values and checks
    PBAS0002            PA: Enhancements for Personnel Administration - Menu
    PBASRP01            PA: User exit distributed reporting
    Hope this will help you.
    Regards,
    Nikhil

  • User-exit for autopopulate nickname field in pa40

    Hello Experts,
    In transaction PA40 Create Personal data there is a screen field named Nickname which is Mandatory.
    I want to autopopulate this nickname field when i enter first name last name, the first name field should enter the nickname.
    Is there any user-exit for such a requirement.
    Thanks in advance,
    Thanks & Regards,
    Nikhil K.

    Hi Nikihil,
    You can use the User Exit that you identified but the function exit to use is EXIT_SAPFP50M_001. This is one you should use to default values in infotypes and the EXIT_SAPFP50M_002 is used to do checks and not manipulate the valuse. This is one of the right ways to do it and I have implemented it before and it works fine. You may want to call the following  methods to get current Infotype values from the screen and the proposed values to be updated with.
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
                  EXPORTING
                    prelp =
                  IMPORTING
                    pnnnn = .
    and
    CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
                    EXPORTING
                      pnnnn =
                    IMPORTING
                      prelp = .

  • Reg: User exits used in pa40 and pb10

    Hi Experts,
    I need to find user exit in pa40 and pb10 main program ,where i can capture fields like RCINS (vendor ID) and offid (advertisement ) and need to update applicant details  into my z table.

    Try the one in with +: Both of Tcodes have Same user Exits
    Exit Name           Description
    + HRPBAS01          User Exit for HR Master Data*
    HRPC0001            HR: PC download authorization
    HRRPAI01            User exit for FB HR_ENTRY_DATE and HR_LEAVING_DATE
    PARA0001            Enhancement for Determining the Number of Periods
    PARA0002            Enhancement for Calculating Annual Salary; IT0008,14,15
    + PBAS0001            PA: Pers.Admin./Recruitment: Default values and checks*
    PBAS0002            PA: Enhancements for Personnel Administration - Menu
    PBASRP01            PA: User exit distributed reporting
    PBAS0004            Spanish Data Privacy Law: User Exit for Recording
    Regards
    Shital

  • Field data change-User exit in PA30 & PA40

    Hi All,
    I wants to execute an rfc with following data, whenever changes maid in following fields.
    P9005/ZFIELD,    PA0002/NACHN, PA0002/VORNA,  PA0002/CNAME,
    PA0000/STAT2,   PA0041/DAR01,  PA0041/DAR02,   PA0041/DAR04,
    PA0008/TRFGR,  PA0008/TRFST,  PA0001/WERKS, HRP9103/ZZORG, PA9008/WRKLO, PA0041/DAR01
    Please guide me which user exit i can use?
    Or any other idea by which i can send those changes to XI.
    Thanks in advance

    Ok I found user exit PBAS0001 will solve all except one.
    HRP9103/ZZORG field.(field of PP02)
    null

  • User-Exit at Save for KL01

    Hi,
    Is there any user-exit at save for transaction KL01.
    Here is my requirement.
    Where ever am employee is hired in HR ( transaction PA40; Action = Hire) i have to automatically create an Activity Type ( t.code : KL01 ). I am doing this in user-exit PBAS0001, component EXIT_SAPFP50M_002 on HR side.
    The next this is, once activity type is created using transaction KL01, i have to automatically trigger a activity type planning, transaction KP26.
    So, i need a user exit at Save in transaction KL01, so that i can trigger KP26 from there. I found one exit COOMKS02, but i its not triggeting from KL01.
    Does any one know any user-exit in KL01 which trigger at save. Please let me know
    Thanks,
    Pratik

    Hi Sharad,
    Thanks for your reply.
    I always have an option for executing both KL01 and KP26 fron PBAS0001, but what i was thinking that if there is any exit available at save in KL01, i can trigger KP26 from there.
    If i could not find any exit, i will call both KL01 and KP26 from PBAS0001 itself.
    Thanks,
    Pratik

  • Problem with a user exit PBAS0001

    Hi Experts,
    We have a new sand box in ecc6. when I go to any sandbox or production in 4.6c system transaction pa40 runs fine.
    I slected change of pay in new sandbox ecc6 through pa40, but it is throughing with an error stating
    The current ABAP program "SAPFP50M" had to be terminated because it has        
    come across a statement that unfortunately cannot be executed.                                                                               
    The following syntax error occurred in program "SAPLXPAD " in include "ZXPADU02
      " in                                                                          
    line 22:                                                                       
    ""I0028" and "INNNN" are not mutually convertible. In Unicode programs,"       
    " "I0028" must have the same structure layout as "INNNN", independent o"       
    "f the length of a Unicode character."                                         
    The above error is found in user exit PBAS0001 with
    EXIT_SAPFP50M_001
    EXIT_SAPFP50M_002
    can anyone let me know how to handle this to correct in new sand box to run as normal.
    Thanks
    Ravi

    Hi Ravi,
    After release 5 due to unicode the structure innnn and Pnnnn are not compartiable, hence move statement ll not work.
    Use the below methods for conversion. Point if helpful.
      MOVE innnn TO gs_0041.
    PERFORM MOVE_INNNN_TO_STRU USING INNNN gs_0041.
    FORM MOVE_INNNN_TO_STRU  USING    P_INNNN
                                      P_GS_0041.
      CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
        EXPORTING
          PRELP  = P_INNNN
        IMPORTING
          PNNNN  = P_GS_0041.
    ENDFORM.                    " MOVE_INNNN_TO_STRU
          MOVE gs_0041 TO innnn.
    PERFORM MOVE_STRU_TO_INNNN USING gs_0041 INNNN.
    FORM MOVE_INNNN_TO_STRU  USING    P_INNNN
                                      P_GS_0041.
      CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
        EXPORTING
          PRELP  = P_INNNN
        IMPORTING
          PNNNN  = P_GS_0041.
    ENDFORM.                    " MOVE_INNNN_TO_STRU
    Br/Manas

  • 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

  • Is there a User exit for fast entry transaction PA42

    I am trying to find a user exit for transaction PA42 Fast entry. 
    We currently have custom table that we check before allowing maintenance on employee data.  I have found user exits for transaction PA30 and PA40 but am struggling to find one for PA42 Fast Entry.
    Any assistance would be greatly appreciated.
    Shamshudin

    You can check the following...
    Determined from program DevClass     HRPBAS01     User Exit for HR Master Data
    Determined from program DevClass     HRPC0001     HR: PC download authorization
    Determined from program DevClass     HRRPAI01     User exit for FB HR_ENTRY_DATE and HR_LEAVING_DATE
    Determined from program DevClass     PARA0001     Enhancement for Determining the Number of Periods
    Determined from program DevClass     PARA0002     Enhancement for Calculating Annual Salary; IT0008,14,15
    Determined from program DevClass     PBASRP01     PA: User exit distributed reporting
    EXIT_SAPFP50M_001                          PBAS0001     PA: Pers.Admin./Recruitment: Default values and checks
    EXIT_SAPFP50M_002                          PBAS0001     PA: Pers.Admin./Recruitment: Default values and checks
    EXIT_SAPMP50A_001                          PBAS0002     PA: Enhancements for Personnel Administration - Menu

  • User Exit for Special Personnel Actions

    Hello,
    I would like to figure out a way to generate an email when HR does a termination action. Can you help?
    Can this be done by enhancing the user exit - Please help with the steps!
    Here's the - User Exit for Special Personnel Actions:
    This step enables you to implement the following user exit for the Customer Enhancement for Special Personnel Actions:
    EXIT_SAPLHRBAS00ACTIONS_001
    Thanks!
    PS

    You need follow the below steps to activate the user exit.
    1. Goto Transaction CMOD.
    2. Create a new project or select an existing 'Z' project.
    3. Click on the Enhacement tab on the application tool bar. Add "HRBAS001" as the enhancement.
    4. Save it and click on the componet tab. You will see the exit EXIT_SAPLHRBAS00ACTIONS_001. Double click on this. It will take you the fuction module interface and you see the include zxhrbas00actionsu01 in it. You need to double click and add your custom code there.
    5. Activate the code. Come back and active the enhancement and the project.You see the active button on the application tool bar.
    Then this gets triggerd from PA40/PA30 and sends the notification as coded in the include program.

  • Types User-exit

    Hi my Friends
    Plz can Give me exmples type User-exit.
    - What's la difference betwen Use-exit and Baddi ?
    Said
    <THREAD LOCKED. Please stop asking interview questions. There is already a lot of information out there, refer to the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] on how to ask a good question and learn to search>
    Edited by: Mike Pokraka on Oct 14, 2008 3:16 PM

    Hi,
    the user exit ZXPADU01  is for all infotypes , it should work for all infotypes ,
    one more things is this will  triggered only for create and copy operation only,
    means automatically it will be called in PA40 beacuse this is create opration
    and in PA30 it will be worked for create and copy operation only,
    so try to activate this include and respective function and its function group .
    and try to test by including break-point in this code.
    dynamic actions will be used for creating infotypes and respective default values based on other infotype .
    please do the same and let me know so that we can think for other solution.

  • User exit ZXPADU02 - evaluating SY-UCOMM

    Hello everyone,
    I am trying to display an error message whenever someone tries to create a new work schedule rule (P0007-SCHKZ) in infotype 7. However, the error message should just come up when the user is trying to save his data.
    I am using user exit ZXPADU02 for this purpose. My problem is that SY-UCOMM does not seem to hold reliable data in this user exit, and SSCRFIELDS does not seem to be supported at all.
    My code looks like this (only the relevant code snippet in ZXPADU02):
    CASE INNNN-INFTY.
            WHEN '0007'.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
            EXPORTING PRELP = INNNN
            IMPORTING PNNNN = P0007.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
            EXPORTING PRELP = PSAVE
            IMPORTING PNNNN = P0007_ALT.
          IF P0007_ALT-SCHKZ <> P0007-SCHKZ
          AND IPSYST-MASSN IS INITIAL " do not warn within an info group of a personnel action
          AND SY-UCOMM = 'UPD'. " only warn when saving the data -> problem here <-
            MESSAGE 'Do not change IT7 directly or else.' TYPE 'I' DISPLAY LIKE 'E'.
            SHOW_DATA_AGAIN = 'X'.
          ENDIF.
    At first glance, the above works nicely.  But this is what happens when I test more thoroughly:
    I create a new period in IT 7, enter a P0007-SCHKZ other than the one that was previously valid, press F11. Some warnings appear (for different reasons), which I dismiss using the Enter key. Afterwards, the above code fires, the error message is being displayed, and I am thrown back into the data screen. So far, so good.
    Now I simply alter the value in the field "Weekly hours" (P0007-WOSTD) and press Enter (!). Again a series of warnings appear, including one that a dataset is going to be deleted (seeing that an IT 7-period with just the same date range already exists). I confirm that with Enter, and the data is being saved. The above code does not fire because I have only pressed Enter - but the data is being saved anyway!
    Looks like a pretty erroneous behavior on the side of the SAP system. The question is whether I have a chance to do something about it in the code.

    Mihir Nagar wrote:
    Dear Petersen,
    Your IF condition seems ok. I doubt on the message statement. Can you replace your message statement with type E.
    MESSAGE 'Do not change IT7 directly or else.' TYPE 'E'.
          ENDIF.
    Hope this works.
    Regards,
    Mihir.
    I did not expect this to work, because normally you use type 'E'-messages only in certain PAI-environments, but it does the job, thank you!
    make use of  field IOPER of the structure  PSYST to check on the infotype actions INS, MOD, COP, DEL...
    In this particular case I did not care, so I did not check that. IT 7 should only be maintained through personnel actions in our case.
    Next you can check with sy-ucomm field the different between "enter" and "save". With "save" sy-ucomm will be 'UPD'.
    That is what I did, but as I described, there was a situation when SY-UCOMM is SPACE, but the system saved anyway due to a prior save attempt.

  • Using a variable not in the Export,Import, table Parameters in USER EXIT

    Hi all,
       During the Invoice Creation, I need to add an entry in the VBFS table, so that it will be displayed in the system log.  In the FM 'RV_INVOICE_CREATE', the structure corresponding to it is XVBFS.  There is a user-exit   CALL CUSTOMER-FUNCTION '002', in this FM 'RV_INVOICE_CREATE'.  But the import, export or Table Parameters does not have XVBFS.
      How can I use XVBFS inside the User exit?..
    Please help.
    Regards,
    Asha

    Hi,
    I dont know whether this will help u...
    write this in user exit...to access variables/tables of main program..
    FIELD-SYMBOLS: <komv>.
    ASSIGN ('(SAPLMEPO)TKOMV[]') TO <komv>.
    where.. SAPLMEPO is the main program...and TKOMV[] is a internal table in SAPLMEPO.
    regards
    Sukriti....

  • How to find out the user exit is implemented

    Hi All,
    Kindly let me know the process to be followed to find out the User exit is implemented in SAP system.
    I have seen many senriors suggestions for some treads to check if there is any Exit is implemented in the process when the system is behaving differently rather standard.
    Is it the only way with help of ABAP'er we can find out or the functional consultant also can find out through some procedure?
    I tied in google for this doubt, but i could not get the relavant answer.Pleaea execuse me if this already answered.
    Thanks,

    Hi Krishna/TW,
    Thank you for your immediate replies. Sorry i think i have not explained correctly my requirment.
    Let me explain my requirement once again.Let us say Comapny has implemented one Exit in the project, now i want to find out what exactly the Exit was implemented.
    Example: In STO process user is able to increase the  qty in delivery. As per the client requriement system should not allow.
    This is not possible in standard to control even after maintainig  check over delivery field in 0VLP.
    For this comapny has already implemented one enahnceament.
    User Exit : USER EXIT_READ_DOCUMENT
    Program: MV50AFZ1
    like this when any one joined in the project we do not know what are all the Exits are implemented in the SAP system where we are working.
    So if i want to find out if there is any Exit or enhancement implemented, what is the process to find out?
    I hope now  am clear with my requirement.
    Thanks in advance.

  • How to find out the user-exits?

    hi.
    how to find out the user-exits?
    regards
    eswar.

    Hi,
    *& Report  ZEXITFINDER
    *report  zexitfinder.
    *& Enter the transaction code that you want to search through in order
    *& to find which Standard SAP User Exits exists.
    *& Tables
    tables : tstc, "SAP Transaction Codes
    tadir, "Directory of Repository Objects
    modsapt, "SAP Enhancements - Short Texts
    modact, "Modifications
    trdir, "System table TRDIR
    tfdir, "Function Module
    enlfdir, "Additional Attributes for Function Modules
    tstct. "Transaction Code Texts
    *& Variables
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    *& Selection Screen Parameters
    selection-screen begin of block a01 with frame title text-001.
    selection-screen skip.
    parameters : p_tcode like tstc-tcode obligatory.
    selection-screen skip.
    selection-screen end of block a01.
    *& Start of main program
    start-of-selection.
    Validate Transaction Code
    select single * from tstc
    where tcode eq p_tcode.
    Find Repository Objects for transaction code
    if sy-subrc eq 0.
    select single * from tadir
    where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir
    where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir
    where pname = tstc-pgmna.
    select single * from enlfdir
    where funcname = tfdir-funcname.
    select single * from tadir
    where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name = enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    Find SAP Modifactions
    select * from tadir
    into table jtab
    where pgmid = 'R3TR'
    and object = 'SMOD'
    and devclass = v_devclass.
    select single * from tstct
    where sprsl eq sy-langu
    and tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    write:/(95) sy-uline.
    loop at jtab.
    select single * from modsapt
    where sprsl = sy-langu and
    name = jtab-obj_name.
    format color col_normal intensified off.
    write:/1 sy-vline,
    2 jtab-obj_name hotspot on,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    Take the user to SMOD for the Exit that was selected.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    call transaction 'SMOD' and skip first screen.
    Regards

Maybe you are looking for

  • SmartCard reader not working (EliteBook 8740w)

    Hi! I had a fully clean Win8.1 install on the 8740w - Can't get the SmartCard reader to read any cards. Its been a complete dud since I installed the new Windows. I have the new drivers, I've installed them, uninstalled them and installed them again.

  • Transparent background of tooltip

    Hi! Does anybody know how to set transparent background in my own JToolTip? I tried to do it with setOpaque, but there was no effect (maybe I did sth wrong)... Thanks for help!

  • IPhone taking a long time to Sync due to "backup"

    So after installing 2.0 and some cool new apps, when I just try and sync to my PC it takes around 45 minutes because it runs a backup of everything. Why is that? Is it because I installed an app from the iPhone App store and then had to sync it with

  • Adding flip4mac video

    I have been trying to add a video given to me by the person I am creating this website for over some time now. I put the CD in imovie to compress it as it was too large. It was created on flip4mac trial version, which I know nothing about nor does th

  • Bejewed 2 on N9 . where is it?

    On the Official Nokia N9 mini site there is a reference to Bejewed 2 being available for the N9. However is missing from OVI store. I found only the Symbian 3 version. http://swipe.nokia.com/applications/ My searches also found that this was worked o