Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HR-ABAP-Infotypes concept

Former Member
0 Kudos

Hi Masters,

Can you please let me know the perfect reason for infotypes concept in HR-ABAP.

1 Why we are using infotypes and exactly what is purpose?

2.Why we are using LDB's why cannot we extract data directly from database tables?

3.Can you please give me clear explanations about these infotypes.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hay prakash.

HR data is maintained for an person from the time he enters then company until the company is no more. and this data of an employee undergoes various changes .its not like normal updation of records in table. for every change a new record is added. So here come the concept of LDB. LDB fetches all the data and puts it in the buffer. but LDB fetches all the data. using infotypes say 0001 for Org assignment we can specify which data do we need to bring it in out report. for infotype 0001, the program fills the structure P0001 from the table PA0001. So performance wise though in normal modules LDB are considered slow, but in HR point of view LDB's performance is better off cos it uses buffers. and reduces the load on the database. for more on infotypes go to transaction PA30 and in infotypes press F4. you wil get to know what are infotypes for PAD.

CHEERS

3 REPLIES 3

Former Member
0 Kudos

Hay prakash.

HR data is maintained for an person from the time he enters then company until the company is no more. and this data of an employee undergoes various changes .its not like normal updation of records in table. for every change a new record is added. So here come the concept of LDB. LDB fetches all the data and puts it in the buffer. but LDB fetches all the data. using infotypes say 0001 for Org assignment we can specify which data do we need to bring it in out report. for infotype 0001, the program fills the structure P0001 from the table PA0001. So performance wise though in normal modules LDB are considered slow, but in HR point of view LDB's performance is better off cos it uses buffers. and reduces the load on the database. for more on infotypes go to transaction PA30 and in infotypes press F4. you wil get to know what are infotypes for PAD.

CHEERS

Former Member
0 Kudos

Hi

Infotype(s) are used in the Personnel Management (PA) module primarily. This is where personnel master data is stored. Data is grouped according to subject matter. The Human Resources component aims to enable the user to process employee data in an effective structure in accordance with business requirements. The data structure of infotypes mirrors a logical set of data records. Infotypes can be identified by their four-digit keys, for example, the Addresses infotype (0006). To facilitate reporting on past employee data, infotypes can be saved for specific periods.

Some people use the term HR ABAP to describe the method of managing the infotype data. Typically HR logical databases are used which offers more secure methods of accessing the infotype data. Once the infotypes are declared, you can use standard macros to access the data. Table TRMAC holds the macro name and the code behind it. This makes developing HR programs much quicker and easy to turn around.

HR uses INFOTYPES instead of tables.

There are different sub modules exist in HR.

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

http://help.sap.com/saphelp_47x200/helpdata/en/bb/bdb041575911d189240000e8323d3a/frameset.htm

see this link you would get information about types of infotypes

Logical databases are special ABAP programs that retrieve data and make it available toapplication programs. The most common use of logical databases is still to read data fromdatabase tables by linkin them to executable ABAP programs.

Logical databases contain Open SQL statements that read data from the database.You do not therefore need to use SQL in your own programs. The logical database reads theprogram, stores them in the program if necessary, and then passes them line by line to theapplication program or the function module LDB_PROCESS using an interface work area .

For further info

check link http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm

1. A logical database is in fact

a program only.

2. This LDB provides two main things :

a) a pre-defined selection screen

which handles all user inputs and validations

b) pre defined set of data

based upon the user selection.

3. So we dont have to worry about from

which tables to fetch data.

4. Moreover, this LDB Program,

handles all user-authorisations

and is efficient in all respects.

5. tcode is SLDB.

/people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases

<b>REward fi suefull</b>

Former Member
0 Kudos

Special structure in the ABAP Dictionary. The INFOTYPES statement creates special internal tables of this structure, which can be processed in a PROVIDE loop.

Each info type is represented in the component HR through a special structure Pnnnn in the ABAP dictionary. Each info type contains the character-type components BEGDAT and ENDDAT. Info types enable the application to process employee-related data effectively.

points if useful.

Sravan.