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…
This blog site is wonderful. How did you come up witht he idea?…
September 24th, 2010 at 1:48 pmso nice to Brgin HR ABAP.
Thanks.
Regards,
February 3rd, 2011 at 11:26 amKhaja Moulali.
very good
March 11th, 2011 at 8:42 amHi,
I would like to learn ABAP HR, please send me the online training details or materials to the mail id provided.
Thanks,
March 28th, 2011 at 9:42 amCarol.
i would like to take training on ABAP HR. could u pls inform the course Duration ,fee,location details indetailed.
May 24th, 2011 at 7:24 amNice program to begin with
June 9th, 2011 at 10:22 amSmart n simple..gud 1
July 17th, 2011 at 7:15 amIt is a very good site for basic abapers who want to learn the HR ABAP. Thanks for the post and am looking forward for more post.
November 9th, 2011 at 11:25 amWhile selecting the employees based on Emp . personnel area, sub area, Company code, Emp.Group, Emp.Subgroup, PNP LDB not fetching any values.
If we give Pernr or payroll area LDB PNP is fetching values .How do we change this? Why is this Happening?
December 6th, 2011 at 10:06 amWaw, that’s very good actually.
January 1st, 2012 at 3:05 pmHm anyway, i have any problem with the standard selection screen.
My user ask me just want to use Payroll Area Field on the screen when she run the report and the others are not required to show. So, i have tried to edit it from Further Selection, but when she run the report again, she complains due to parameters not required. Is it possible to make just Payroll Area Parameter displayed when the program run ?
Yes, It is possible. There are several ways to modify the standard selection screen. If you need more information you can reach me on skype. go to contact page and get my skype name.
January 2nd, 2012 at 6:55 amHI RamakRishna,
Woww, Good Site. …
Though, we are Developers. Y can’t we debug the Macro’s. If it is posible. Y we are still using macros, even those are obsolute in current version and SAP it self suggesting don’t use Macro’s. Y can’t we use latest Statements or Y can’t we use Select Statements ..
Thanks & regards,
January 24th, 2012 at 11:07 amP . KM