‎2006 Dec 11 4:17 AM
Hi,
I am new to HR module.
I need on-save user exits for HR master data.
I tried with the transaction 'PA30' and changed some data and saved and Swithched on the debugger. I could not find any Use Exit for that.
I hope you understood my question.
Pls help me with the necessary user exit.
Reward points are assured.
Best Regards
Bhagat.
‎2006 Dec 11 5:27 AM
Hi Chinnabathini,
Please look enhancement PBAS0001, Hope this will serve your purpose.
Cheers
Shital
‎2006 Dec 11 5:27 AM
Hi Chinnabathini,
Please look enhancement PBAS0001, Hope this will serve your purpose.
Cheers
Shital
‎2006 Dec 11 5:44 AM
this is the user exit for saving the exigency leave if it is >3 in pa30.please go through it.
TABLES: PA2001,T554S.
DATA: ABWTG LIKE PA2001-ABWTG.
DATA: ITAB_PA2001 LIKE PA2001.
DATA: I2001 TYPE P2001.
*DATA : VALUE(1) TYPE C.
DATA: VALUE TYPE C.
DATA : VALUE1 LIKE P0347-SCRDD. " SERVICE CREDIT DAYS
DATA:BEGIN OF VALUE2 OCCURS 0,
TITLEBAR(60) TYPE C,
QUESTION(400) TYPE C,
END OF VALUE2.
VALUE2-QUESTION = 'Is the Medical Certificate Provided ?'.
VALUE2-TITLEBAR = 'PLEASE CONFIRM'.
IF INNNN-INFTY EQ 2001.
CHECK SY-TCODE = 'PA30'.
IF INNNN-SUBTY EQ AWART.
MOVE INNNN TO I2001.
I2001 = INNNN.
IF SY-SUBRC = 0.
IF INNNN-SUBTY = '1000'.
CALL FUNCTION 'HR_HK_DIFF_BT_2_DATES'
EXPORTING
DATE1 = INNNN-ENDDA
DATE2 = INNNN-BEGDA
OUTPUT_FORMAT = '02'
IMPORTING
YEARS =
MONTHS =
DAYS = VALUE1.
EXCEPTIONS
INVALID_DATES_SPECIFIED = 1
OTHERS = 2
.
*IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
*
IF VALUE1 > 3.
CALL FUNCTION 'WFCS_POPUP_YES_NO'
EXPORTING
PI_UI_POPUP_TEXT = VALUE2
CHANGING
PE_ANSWER = VALUE.
EXCEPTIONS
ERROR_USING_POPUP = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF VALUE = '2' .
MESSAGE W002(ZRM).
LEAVE TO SCREEN 0.
ELSEIF VALUE = 'A' .
MESSAGE W001(ZRM).
*LEAVE TO SCREEN 0.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
‎2006 Dec 11 7:33 AM
Hi Bhagat,
Use the user exit <b>PBAS0001</b> (PA: Pers.Admin./Recruitment: Default values and checks ). you can alos use the BADI HRPAD00INFTY.
to use the user exit PBAS0001
1) first go to transaction CMOD
2) enter the project name e.g. ZHR_EXIT
3) click on Enhancement assignments and assign exit PBAS0001
you have to write the code into include ZXPADU02 for PAI (Before Saving)
and ZXPADU01 for PBO (to display default value)
hope it will help you
With Regards,
Abhijit.
note: don't forget to awart the points if it help you
‎2006 Dec 11 8:29 AM
Hi Abhijeet,
I tried as per your suggestion. I run the transaction PA30 and changed some personnel data corresponding to a perticular employee and saved in debugging mode. It should catch the break-point at the FM 'EXIT_SAPFP50M_002'. But it is not catching. Can you pls throw some light on it ?
Best Regards
Bhagat.