cancel
Showing results for 
Search instead for 
Did you mean: 

why we are using infotypes in HR?

Former Member
0 Kudos

Hr data is processed only with infotypes only. why don't process hr data with internal tables????????

Accepted Solutions (0)

Answers (1)

Answers (1)

suresh_datti
Active Contributor
0 Kudos

>>Hr data is processed only with infotypes only.

That is how the HR system is designed in SAP.. I remember reading a while ago, that the HR-module wasn't originally part of the core SAP. They acquired a HR solutions Company & integrated it into SAP..that is the story of the INfotypes concept in SAP -HR.

>>why don't process hr data with internal tables????????

Who said NO.. when you declare an infotype with the Infotypes statement, in effect you are declaring an itab ie

Infotypes: 0001 will let you use the itab p0001 during the runtime of the Program.

~Suresh

Former Member
0 Kudos

u said that becoz of its internal architecture only we are using processing it with infotypes. instead of infotypes i will declare pa0001 with tables statement and i will process it? anyway i will get the result. At that time what is the use of infotypes statement??????????????

suresh_datti
Active Contributor
0 Kudos

It is a matter of choice.. there is always more then one way of doing things.. what is the right approach depends on the actual reqt.. Yes, you could declare with the Table statement & get the same result.. but would have to put explicit authn checks when doing a direct db read.. ie SELECT * from PA0001 etc..

~Suresh

Former Member
0 Kudos

Hi there. You use the infotypes statement when you are also using a logical database like PNP. Then in your program you can use the statement GET PERNR, which will fill the infotype tables for the associated person. You can then use macros like rp_provide_from_last to get information for the infotypes that you have declared in your INFOTYPES statement.

- April King

Former Member
0 Kudos

at that time what is the use of infotypes statement. what u said is correct one problem will have many solutions. we can process the HR data select statement by putting explicit authorizations. But main question is what main intension of using infotypes statement??????????????????

suresh_datti
Active Contributor
0 Kudos

I will simply repeat what I already mentioned.. it is just a matter of choice.. If you do not want to use the 'Infotypes' statement do not use it.. when you use it, it makes an itab available during run time.. I am unable to fathom the intent of your question here.. also PL see the .

~Suresh

Former Member
0 Kudos

Hi Subash,

What is your problem man.

<i><b>It is the matter of choice and the requirement , So it is up to you.</b></i>

Manoj Shakya.

McF
Advisor
Advisor
0 Kudos

> They acquired

> a HR solutions Company & integrated it into SAP..that

> is the story of the INfotypes concept in SAP -HR.

Sorry Suresh, that's simply nonsense.

HR was already part of R/2 and under the development of SAPs Founder Klaus Tschira (some of his code might still be out there in the system).

INFOTYPES is a simple and elegant way to get rid of the burden to do the follwoing thigs correct:

1. Authority check

2. Time logic

That's why there is a Logical Database that does just this for you. These two things take several thousand lines to get it correct. Using the LDB reduces the effort for each developer dramatically. And this is the real reason.

Regards,

Michael

suresh_datti
Active Contributor
0 Kudos

I stand corrected.. I could not trace the link where I read about the origin of the Infotype concept.. it doesn't matter now, as it is not TRUE.

~Suresh