Feb
SAP ABAP HR Program code using LDB PNP
Here is a basic abap hr program with screen shots step by step for learners who are having knowledge of abap. This is a basic program but you can use this template for every abap hr program and add if and else conditions change the Infotype numbers and field names based on your requirement.
Initially I don’t want to confuse the readers adding more coding at first program. All the scenarios are covered in next posts one by one by using the same program template.
Requirement: Select the data from Infotypes using logical database PNP (with out single select statement) and display in report. Fields like
Personnel number, Action Type, Reason for Action, Payroll area, Personnel ID Number
Infotypes Used: 0000, 0001, 0002.
Macros used:
RP-PROVIDE-FROM-LAST P0000 SPACE PN-BEGDA PN-ENDDA.
RP-PROVIDE-FROM-LAST P0001 SPACE PN-BEGDA PN-ENDDA.
RP-PROVIDE-FROM-LAST P0002 SPACE PN-BEGDA PN-ENDDA.
Selection screen:
There is selection screen is defined in this program but by using logical database PNP we do get standard selection screen.
Steps:
1) Go to se38 transaction
2) Enter the program name ZABAPHROVERVIEW and press on create
3) Enter the TITLE name, select TYPE as executable program, and LOGICAL DATA BASE AS PNP.
4) Press on save button.
And use the below code and execute you will get standard selection screen.
Standard selection screen:
Enter the personnel number and execute the program report display is ready for you…:)
Don’t you feel abap hr is easy….
Incase any question use the below comments section…..

Great posting ! Thank for sharing.
April 30th, 2010 at 6:41 amgive me some sample payroll report and design the pay slip.
May 4th, 2010 at 3:40 pmHi Reddy,
In near future You will see more payroll programs using Function modules, Macros and get event…. Keep watching…..
http://abaphr.com
May 5th, 2010 at 10:36 amHi Please let me know about the corse details and course.Please send it to ID mentioned in.it
May 13th, 2010 at 5:51 pmHi,
I would like to learn ABAP HR online training. Please send me the details
Ramakrishna Moturi
August 3rd, 2010 at 8:24 pm