2007 May 31 10:37 AM
2007 May 31 10:43 AM
plz explain me abap-hr with simple example
2007 May 31 10:38 AM
Hi
HR:
HR deals with the INFOTYPES which are similar to Tables in General ABAP.
There are different ways of fetching data from these infotypes.
There are different areas in HR LIKE Personal Admn, Orgn Management, Benefits, Time amangement, Event Management, Payroll etc
Infotypes for these areas are different from one another area.
storing of records data in each type of area is different
LDBS like PNP are used in HR programing.
Instead of Select.. we use some ROUTINES and PROVIDE..ENDPROVIDE.. etc
and in the case of Pay roll we use Clusters and we Import and Export them for data fetching.
On the whole Normal ABAP is different from HR abap.
For Personal Admn the Infotypes start with PA0000 to PA1999
Time Related Infotypes start with PA2000 to PA2999.
Orgn related Infotypes start with HRP1000 to HRP1999.
All custom developed infotypes stsrat with PA9000 onwards.
In payroll processing we use Clusters like PCL1,2,3 and 4.
Instead of Select query we use PROVIDE and ENDPROVIDE..
You have to assign a Logical Database in the attributes PNP.
Go through the SAp doc for HR programming and start doing.
http://www.sapdevelopment.co.uk/hr/hrhome.htm
See:
http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
sites regarding hr-abap:
http://www.sapdevelopment.co.uk/hr/hrhome.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
http://www.atomhr.com/training/Technical_Topics_in_HR.htm
http://www.planetsap.com/hr_abap_main_page.htm
You can see some Standard Program examples in this one ...
http://www.sapdevelopment.co.uk/programs/programshr.htm
http://www.erpgenie.com/faq/hr.htm.
http://www.planetsap.com/hr_abap_main_page.htm
http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/HR_tutorial.html
These are the FAQ's that might helps you as well.
http://www.sap-img.com/human/hr-faq.htm
http://www.sapgenie.com/faq/hr.htm
http://www.planetsap.com/hr_abap_main_page.htm
http://www.atomhr.com/library_full.htm
Example
Report Zabc.
tables:pernr.
infotypes:0008.
data: begin of wagetypes,
lga like pa0008-lga01,
bet like pa0008-bet01,
anz like pa0008-anz01,
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 not wagetypes-lga is initial.
write:/ wagetypes-lga, wagetypes-bet, wagetypes-anz.
endif.
enddo.
Reward points if useful
Regards
Anji
2007 May 31 10:41 AM
Hi,
Go through the following links....
HR related site:
http://www.sapdevelopment.co.uk/hr/hrhome.htm
Go through the SAp doc for HR programming and start doing.
http://www.sapdevelopment.co.uk/hr/hrhome.htm
See:
http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
sites regarding hr-abap:
http://www.sapdevelopment.co.uk/hr/hrhome.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
http://www.atomhr.com/training/Technical_Topics_in_HR.htm
http://www.planetsap.com/hr_abap_main_page.htm
You can see some Standard Program examples in this one ...
http://www.sapdevelopment.co.uk/programs/programshr.htm
http://www.erpgenie.com/faq/hr.htm.
http://www.planetsap.com/hr_abap_main_page.htm
http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/HR_tutorial.html
These are the FAQ's that might helps you as well.
http://www.sap-img.com/human/hr-faq.htm
http://www.sapgenie.com/faq/hr.htm
http://www.planetsap.com/hr_abap_main_page.htm
http://www.atomhr.com/library_full.htm
Example-
----
T A B L E D E C L E R A T I O N
----
TABLES : PERNR.
----
I N F O - T Y P E S
----
INFOTYPES : 0001, "ORG ASSIGNMENT
0002, "PERSONAL DATA
0008. "BASIC PAY.
----
S T A R T - O F - S E L E C T I O N
----
START-OF-SELECTION.
WRITE :5 'Personnel Number' COLOR 3 ,
30 'Position' COLOR 3,
50 'Organizational Unit' COLOR 3.
ULINE.
GET PERNR.
----
P R I N T T H E D A T A
----
LOOP AT P0002.
WRITE : /5 p0001-pernr INVERSE COLOR 6,
30 p0001-plans INVERSE COLOR 6,
50 p0001-orgeh INVERSE COLOR 6.
ENDLOOP.
----
E N D - O F - S E L E C T I O N
----
END-OF-SELECTION.
*****DO REWARDS IF USEFULL
REGARDS,
VIJAY
2007 May 31 10:43 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |