SAP HR , ABAP HR Material, Tutorials and SAP Trainings

14
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.

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.

first program

4) Press on save button.

And use the below code and execute you will get standard selection screen.

zabaphroverview

Standard selection screen:

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…..

Related Posts

5 Responses to “SAP ABAP HR Program code using LDB PNP”

  1. 1
    duns number lookup Says:

    Great posting ! Thank for sharing.

  2. 2
    chinna reddy gaddam Says:

    give me some sample payroll report and design the pay slip.

  3. 3
    admin Says:

    Hi Reddy,
    In near future You will see more payroll programs using Function modules, Macros and get event…. Keep watching…..

    http://abaphr.com

  4. 4
    Ravindranath Says:

    Hi Please let me know about the corse details and course.Please send it to ID mentioned in.it

  5. 5
    Ramakrishna Says:

    Hi,

    I would like to learn ABAP HR online training. Please send me the details

    Ramakrishna Moturi

Leave a Reply

© 2010 SAP HR , ABAP HR Material, Tutorials and SAP Trainings | Entries (RSS) and Comments (RSS)

Design by Web4 Wordpress Themes, © SAP HR , ABAP HR Material, Tutorials and SAP Trainings 2010 | Theme design by Data sub systems.