8/13/2019 What is the Difference Between ABAP and HRabap
http://slidepdf.com/reader/full/what-is-the-difference-between-abap-and-hrabap 1/7
What is the difference between ABAP and HR ABAP?
ABAP – It is a programming language used in all the modules of SAP like MM/SD/FI …
even HR
ABAP-HR – It is an extension used to program the logic in HR module extensively. Thelogic/pattern used to write code in HR is different than in normal ABAP, as it uses LDBs,
Macros and Many FM to retrieve the data rather using SELECT queries as in ABAP.
What is logical data base?
Logical data bases are special programs used to read the data and make it available in the
programs. Other than retrieving the data authorization checks are handled, can be able to
retrieve data from multiple tables. Specify LDB in the program attributes and use the GET
event to retrieve the data. One best use is there will be a default selection screen.
What are logical data bases used in hr module?
PNP, PNPCE, PAP, PCH …
What is the difference between PNP and PNPCE?
PNP is old LDB used to retrieve the data for HR Master Data.
PNPCE is also used for Master Data but it is capable for Concurrent Employees.
Explain GET PERNR concept when we use logical data base?
You need to use LDB PNP to use the GET PERNR event, once GET PERNR event triggers
all the Infotypes declared by using INFOTYPES statement will be fetched data to the
respective internal tables. If you specify Infotypes by INFOTYPES statement then internal
tables are created with Pnnnn structure.
Ex:- INFOTYPES: 0001, 0002, 0006.
Internal tables p0001, p0002, p0003 are created and can be used in the program.
Explain the program flow when we use logical database PNP or PNPCE?
If you use any of the LDBs, the program flow is as below
Report XXXXXX.
Data declaration
START_OF_SELECTION.
GET PERNR.
retrieve the data from internal tables to output internal tables
8/13/2019 What is the Difference Between ABAP and HRabap
http://slidepdf.com/reader/full/what-is-the-difference-between-abap-and-hrabap 2/7
END_OF_SELECTION.
Display the data retrieved above.
From GET PERNR to END_OF_SELECTION ; it will loop with the employee numbers
selected from the selection screen.
What are the program names for logical database PNP and PNPCE?
SAPDBPNP and SAPDBPNPCE
What is report category and for what purpose do we use report category?
Report Category describes the default selection screen for LDBs. As per the user requirement
you can customize the selection screen using z report category. Once after you define the
LDB, you can change the default report category.
Please wait for few more days to update few more questions…
What is Infotype and how it is different from tables?
Infotypes is special way to store the HR data rather than using standard tables. Infotypes will
have three structures PAKEY, PSHD1, PSnnnn [ nnnn is Infotype number]. PAKEY(Key
fields) and PSHD1(Control Fields) is same for all the Infotypes. Fields in the PSnnnn
structure depends on the Infotype uses, like 0000- Actions will the fields specific to action of
an employee 0002-Personal Data will have fields specific to the personal data fields(name,DOB, etc..) of an employee.
What is PAKEY structure, PSHD1 structure and what type of fields it contains?
PAKEY is the key field’s structure and it is same for all the PA Infotypes. It has different
fields as below
PERNR – Employee Number
SUBTY – Subtypes are subdivisions of Infotypes.
OBJPS – The object identification indicator is used to differentiate records with the same
8/13/2019 What is the Difference Between ABAP and HRabap
http://slidepdf.com/reader/full/what-is-the-difference-between-abap-and-hrabap 3/7
Infotype, subtype, lock indicator, valid from date, and valid to date. For example: Child
number in Infotype 0021 Family Member/Dependents.
SPRPS – The lock indicator for HR master data can be used to lock and unlock data records.
It
can be used to guarantee double control, that is, at least two users are involved in
writing an active data record to the database. One of the users creates a locked infotype
record. Another user unlocks this record by activating it.
ENDDA – Valid to date
BEGDA – Valid from date
SEQNR – The sequential number differentiates Infotype records with the same key and the
time
constraint ’3′. Unlike the personnel object identification, it is automatically assigned by
the system.
PSHD1 is another basic structure that is the same for all Personnel Administration Infotypes.
It includes the date the record was changed (AEDTM), the name of the person making the
change (UNAME), and information on whether the administrator created plain text for this
infotype (ITXEX).
Why do we require Infotypes for HR module?
As all other modules uses standard SAP tables concept to store the data. HR module uses the
new and different concept to store the data i.e., Infotypes. Data is scattered b/n Infotypes by
depending above the type of data and this makes to easily access similar data of all
employees at one stretch by minimizing the retrieval time. As HR data is totally time
dependant and have more number records to save and retrieve for a particular purpose.
What are the transaction codes to create the Infotypes?
PM01
What is the process to enhance the Infotype?
Go to PM01, enhance IT tab and provide the Infotype number for which you require to
enhance, click on create all button(you can create individually structure, module pool
program also). It will take you to the CI_nnnn structure, provide the fields you want to add –
activate.
Importance of PA20, PA30 and PA40?
PA20 – Display HR Master Data
PA30 – Maintain HR Master Data
8/13/2019 What is the Difference Between ABAP and HRabap
http://slidepdf.com/reader/full/what-is-the-difference-between-abap-and-hrabap 4/7
PA40 – Personnel Actions
How can we decide whether we can enhance the standard Infotype or not?
You can enhance all the Infotypes provide CI_nnnn is there in the structure.
What is PS structure?
PS Structures have basic data fields of an employee in every Infotype. These data fields will
vary for every Infotype and included in respective Infotype to hold the data.
Infotype 0002 – PS0002 will have personal data fields
Infotype 0008 – PS0008 will have pay related data fields etc…
What are the payroll related Infotypes?
The basic Infotypes used for payroll are 0, 1, 3, 7, 8, 9, 580, 591, 45, 41, 57, 267 and others.
What are the time related Infotypes?
All the 2 series Infotypes.
What are the personnel administration related Infotypes?
All Infotypes 0000 to 0999
What are the organizational related Infotypes?
1000 to 1999 Infotypes
What is Macro?
Macro is a set of reusable statements which can be used several times in programs.
What is PNP-SW-FOUND?
PNP-SW-FOUND will be initial if the macros rp_provide_from_last or first is successful elseit will be 1.
What is the difference between select statements and provide statement?
SELECT statements are used to fetch the data from DATABASE tables.
PROVIDE is used to fetch the data from Internal Tables (multiple IT by joining).
Which function module reads the data for particular Infotype?
HR_READ_INFOTYPE – to retrieve data from PA tables
8/13/2019 What is the Difference Between ABAP and HRabap
http://slidepdf.com/reader/full/what-is-the-difference-between-abap-and-hrabap 5/7
RH_READ_INFTY – to retrieve data from OM Infotypes
What is repetitive structure and for which Infotype do we have?
Repetitive structure is same sequence for fields varying by numeric digits. We do have
repetitive structure in IT 8 [Basic Pay] and IT 41[Date Specifications].
To retrieve the data from repetitive structures we use DO… VARYING command as below
DATA: BEGIN OF WAGETYPES,
LGA LIKE P0008-LGA01,
BET LIKE P0008-BET01,
ANZ LIKE P0008-ANZ01,
EIN LIKE P0008-EIN01,
OPK LIKE P0008-OPK01,
END OF WAGETYPES.
GET PERNR.
RP_PROVIDE_FROM_LAST P0008 SPACE PN-BEGDA PN-ENDDA.
DO 20 TIMES VARYING WAGETYPES
FROM P0008-LGA01
NEXT P0008-LGA02.
IF WAGETYPES-LGA IS INITIAL.
EXIT.
ELSE.
WRITE: / WAGETYPES-LGA, WAGETYPES-BET.
ENDIF.
ENDDO.
1) What is the difference between ABAP and HR ABAP.
In ABAP mainly uses DBTs to retrieve data where as coming to hr abap we use
infotypes based on actions.
2) What is logical data base
LDBs are special ABAP programs that retrieve data and make it available to
application programs.
Mainly for storing
Relavent data into infotypes based on modules.the most common use of logical DBsis still to read data from DBs by linking them to
Execute abap pgms.
3) What are logical data bases used in hr module
PNP,PNPCE,PAP,PCH
4) What is the difference between PNP and PNPCE
PNP is old DB
5) Explain GET PERNR concept when we use logical data base
6) Explain the program flow when we use logical database PNP or PNPCE
7) What are the program names for logical database PNP and PNPCE
8/13/2019 What is the Difference Between ABAP and HRabap
http://slidepdf.com/reader/full/what-is-the-difference-between-abap-and-hrabap 6/7
8 ) What is report category and for what purpose do we use report category
9) What is Infotype and how it is different from tables
10) Why do we require Infotypes for HR module
11) What are the transaction codes to create the Infotypes
12) What is the process to enhance the Infotype
13) Importance of PA20, PA30 and PA40
14) How can we decide weather we can enhance the standard Infotype or not
15) What is PAKEY structure, PSHD1 structure and what type of fields it contains
16) What is PS structure
17) What are the payroll related Infotypes
18) What are the time related Infotypes
19) What are the personnel administration related Infotypes
20) What are the organizational related Infotypes
21) What is Macro
22) What are the standard macros do we use in HR ABAP
23) What is PNP-SW-FOUND
24) What is the difference between select statement and provide statement
25) Which function module reads the data for particular Infotype
26) What is repetitive structure and for which Infotype do we have
27) How do you retrieve the data for repetitive structures
28) Can we develop program without logical database for hr module data retrieval
29) By using which FM we can upload data into Infotype
30) If yes then why do we require logical database
31) What are advantages and disadvantages of logical data base
8/13/2019 What is the Difference Between ABAP and HRabap
http://slidepdf.com/reader/full/what-is-the-difference-between-abap-and-hrabap 7/7
32) What is the transaction code to display the payroll results
33) What is payroll driver
34) Where the payroll results are stored
35) Explain the concept of clusters in payroll
36) How do you read the data from clusters
37) What is retro active accounting
38) In which cluster time results are stored
39) What is wage type
40) What is personnel area
41) What is personnel sub are
42) What is payroll area
43) What is the difference between semi-monthly and Bi-weekly payroll area
44) What is sequence number
45) What is For-period and In-period
46) What is off cycle payroll run
47) How do you execute the payroll
48) What is schema and transaction code
49) What is functions and transaction code
50) What is features and transaction code
51) What is the transaction code to modify the hr form
52) What are the FM do we use in OM
53) What is object in OM
54) Which FM do you use to find out who is reporting to whom
55) What all are the differences did you find in hr module between 4.7 and ECC6 versions