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: 

Need FM to get Personal area based on position in HR ABAP

Former Member
0 Kudos

Need FM to get Personal area based on position in HR ABAP

Thanks,

Asha

6 REPLIES 6

Former Member
0 Kudos

Hello,

You might try HR_READ_INFOTYPE for infotype 0001.

Postion and personnel area are both there.

Regards

Greg Kern

Former Member
0 Kudos

Below is the simple select.

DATA: LV_WERKS TYPE PERSA.
SELECT SINGLE WERKS INTO LV_WERKS WHERE PLANS = POSITION AND BEGDA <= SY-DATUM AND ENDDA >= SY-DATUM.

-Aman

0 Kudos

Hi Aman,

Which Table i want to fetch werks ?

Thanks,

Asha

0 Kudos

it is PA0001 table.

0 Kudos

When I am executing Tran: PA40 i come across position(plans) and personal area ( werks) before

creating pernr.

Here I need FM input as Plans and output as werks.

Thanks,

Asha

0 Kudos

After the EE is created positions are in table PA0001. If there is a OM and PA integration then all the positions are stored in table HRP1000.

I don't understand why do u need a FM. Why don't you do a simple select from the table PA0001 as i showed u OR i must have misunderstood your question.

A