on 04-24-2007 2:23 PM
hi all,
i got to create following program and i have no apab idea about it i had worked on functional part of sap-hr. so please help me
Create a program for checking infotype "Planned Working Time";
check if workschedule exists.
do explain me how to check workschedule existence
Hi,
Just write this coding.
data itab type standard table of pa0007.
data wa type pa0007.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
PERNR = '22008476' "Give employee no.
INFTY = '0007' "Planned working time infotype
BEGDA = '18000101'
ENDDA = '99991231'
TABLES
INFTY_TAB = itab.
IF SY-SUBRC = 0.
loop at itab into wa.
write wa-schkz.
endloop.
ENDIF.
Specify the data for begda and endda if you know the date.
Kindly reward points by clikcing the star on the left of reply,if it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to pass the value for pernr.Make it as parameter as below and give the valid value in selection screen.
parameters p_pernr type pa0001-pernr.
data itab type standard table of pa0007.
data wa type pa0007.
if not p_pernr is initial.
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
PERNR = p_pernr "Give employee no.
INFTY = '0007' "Planned working time infotype
BEGDA = '18000101'
ENDDA = '99991231'
TABLES
INFTY_TAB = itab.
IF SY-SUBRC = 0.
loop at itab into wa.
write wa-schkz.
endloop.
ENDIF.
else.
message i000 with 'Enter pernr'.
leave list-processing.
endif.
Check for the existence of IT0007(table PA0007) field SCHKZ for the employees.
You can use FM HR_PERSONAL_WORK_SCHEDULE also for the same.
Regards,
Amit
Reward all helpful replies.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For writing report you need to check report programming in HR.
Check this link for Learning ABAP - HR.
I can give you the logic for your report.
Crate a selection screen and extract data for active employees from PA0000.
For those active employees check the existence of PA0007.
Regards,
Amit
Reward all the helpful replies.
Check these links -
http://help.sap.com/saphelp_erp2005vp/helpdata/en/1d/7fde36857ccd15e10000009b38f889/frameset.htm
Regards,
Amit
User | Count |
---|---|
99 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.