Top 24 Sap Abap Hr Interview Questions
Q1. What Is Pnp-sw-discovered?
PNP-SW-FOUND can be 1 if the macros rp_provide_from_last or first is a hit else it is going to be preliminary.
Q2. What Are Logical Data Bases Used In Hr Module?
PNP, PNPCE, PAP, PCH …
Q3. What Are The Transaction Codes To Create The Infotypes?
PM01
Q4. What Is The Process To Enhance The Infotype?
Go to PM01, decorate IT tab and offer the Infotype wide variety for which you require to beautify, click on create all button(you may create personally structure, module pool program additionally). It will take you to the CI_nnnn structure, provide the fields you need to add – activate.
Q5. What Is Logical Data Base?
Logical data bases are unique packages used to examine the facts and make it available within the programs. Other than retrieving the information authorization checks are handled, can be capable of retrieve records from multiple tables. Specify LDB inside the application attributes and use the GET occasion to retrieve the information. One first-rate use is there could be a default selection display screen.
Q6. Explain The Program Flow When We Use Logical Database Pnp Or Pnpce?
If you operate any of the LDBs, this system glide is as underneath
Report XXXXXX.
Data announcement
START_OF_SELECTION.
GET PERNR.
Retrieve the records from inner tables to output inner tables
END_OF_SELECTION.
Display the records retrieved above.
From GET PERNR to END_OF_SELECTION ; it's going to loop with the employee numbers
decided on from the choice display.
Q7. What Are The Time Related Infotypes?
All the 2 collection Infotypes.
Q8. Why Do We Require Infotypes For Hr Module?
As all different modules uses standard SAP tables concept to shop the records. HR module makes use of the brand new and distinct idea to keep the records i.E., Infotypes. Data is scattered b/n Infotypes by using depending above the type of records and this makes to easily get right of entry to similar statistics of all personnel at one stretch by minimizing the retrieval time. As HR records is totally time dependant and have more range information to save and retrieve for a selected cause.
Q9. Explain Get Pernr Concept When We Use Logical Data Base?
You want to apply LDB PNP to use the GET PERNR occasion, as soon as GET PERNR event triggers all of the Infotypes declared by means of the use of INFOTYPES declaration may be fetched data to the respective internal tables. If you specify Infotypes by using INFOTYPES assertion then inner tables are created with Pnnnn shape.
Ex:- INFOTYPES: 0001, 0002, 0006.
Internal tables p0001, p0002, p0003 are created and may be used inside the software.
Q10. What Are The Organizational Related Infotypes?
One thousand to 1999 Infotypes
Q11. What Is Repetitive Structure And For Which Infotype Do We Have?
Repetitive structure is equal sequence for fields varying with the aid of numeric digits. We do have repetitive shape in IT eight [Basic Pay] and IT forty one[Date Specifications].
To retrieve the statistics from repetitive structures we use DO… VARYING command as under
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
Q12. Importance Of Pa20, Pa30 And Pa40?
PA20 – Display HR Master Data
PA30 – Maintain HR Master Data
PA40 – Personnel Actions
Q13. What Is The Difference Between Select Statements And Provide Statement?
SELECT statements are used to fetch the facts from DATABASE tables.
PROVIDE is used to fetch the statistics from Internal Tables (multiple IT by becoming a member of).
Q14. What Are The Program Names For Logical Database Pnp And Pnpce?
SAPDBPNP and SAPDBPNPCE
Q15. What Are The Payroll Related Infotypes?
The fundamental Infotypes used for payroll are 0, 1, 3, 7, 8, nine, 580, 591, forty five, forty one, 57, 267 and others.
Q16. What Is Infotype And How It Is Different From Tables?
Infotypes is unique manner to store the HR facts in preference to the usage of widespread tables.
Infotypes will have three systems PAKEY, PSHD1, PSnnnn [ nnnn is Infotype number]. PAKEY(Key fields) and PSHD1(Control Fields) is same for all the Infotypes. Fields within the PSnnnn structure relies upon at the Infotype makes use of, like 0000- Actions will the fields precise to motion of an employee 0002-Personal Data may have fields precise to the private information fields(name, DOB, and many others..) of an employee.
Q17. What Is Macro?
Macro is a fixed of reusable statements which can be used numerous times in packages.
Q18. How Can We Decide Whether We Can Enhance The Standard Infotype Or Not?
You can enhance all of the Infotypes provide CI_nnnn is there inside the structure.
Q19. What Is Ps Structure?
PS Structures have primary information fields of an employee in every Infotype. These facts fields will vary for each Infotype and covered in respective Infotype to preserve the data.
Infotype 0002 – PS0002 will have non-public records fields
Infotype 0008 – PS0008 can have pay related data fields and so forth…
Q20. What Are The Personnel Administration Related Infotypes?
All Infotypes 0000 to 0999
Q21. What Is The Difference Between Pnp And Pnpce?
PNP is vintage LDB used to retrieve the records for HR Master Data.
PNPCE is likewise used for Master Data however it's miles succesful for Concurrent Employees.
Q22. What Is Pakey Structure, Pshd1 Structure And What Type Of Fields It Contains?
PAKEY is the key subject’s shape and it's far identical for all of the PA Infotypes. It has special fields as below
PERNR – Employee Number
SUBTY – Subtypes are subdivisions of Infotypes.
OBJPS –The object identity indicator is used to distinguish facts with the identical
Infotype, subtype, lock indicator, legitimate from date, and legitimate thus far. For example: Child wide variety in Infotype 0021 Family Member/Dependents.
SPRPS – The lock indicator for HR grasp information can be used to fasten and unencumber information statistics. It can be used to assure double control, that is, at the least two users are concerned in writing an energetic records document to the database. One of the customers creates a locked infotype document. Another person unlocks this file by activating it.
ENDDA – Valid to this point
BEGDA – Valid from date
SEQNR –The sequential range differentiates Infotype data with the equal key and the time constraint ’three′. Unlike the personnel item identification, it's miles routinely assigned with the aid of the device.
PSHD1 is some other primary shape that is the equal for all Personnel Administration Infotypes. It includes the date the record become modified (AEDTM), the name of the person making the exchange (UNAME), and facts on whether the administrator created undeniable textual content for this infotype (ITXEX).
Q23. 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 software the common sense in HR module appreciably. The common sense/pattern used to write down code in HR is specific than in regular ABAP, as it makes use of LDBs,Macros and Many FM to retrieve the data as a substitute the usage of SELECT queries as in ABAP.
Q24. Which Function Module Reads The Data For Particular Infotype?
HR_READ_INFOTYPE – to retrieve statistics from PA tables
RH_READ_INFTY – to retrieve data from OM Infotypes
