cancel
Showing results for 
Search instead for 
Did you mean: 

How to find personal area based on pernr?

Former Member
0 Kudos

Hi friends,

I've a web dynpro screen with input fields. After filling all the data i m pressing print button, to print it as pdf by calling a smartform.

Now i've 2 logos in smartform, based on perner number i need to print any one of the logo. Means i need to  find out the personal area of the pernr

to print the logo and i need to pass to that smartform. this thing i need to do in a class method..

can any one guide me plz?

Thanks in advance

Ramana

Accepted Solutions (1)

Accepted Solutions (1)

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

It is available in Infotype 1. You can get from pa0001-werks. Otherwise, you can use HR_GET_EMPLOYEE_DATA for getting it.

Former Member
0 Kudos

Hi jayanthi,

i need to get payroll area ie abkrs field.

for that in class i m passing importing param as pernr, info type  0001 and getting table it_pa0001.

From this how can i get particular field i.e. abkrs(exporting param).

CALL FUNCTION 'HR_READ_INFOTYPE'

     EXPORTING

*     TCLAS                 = 'A'

       PERNR                 = I_PERNR

       INFTY                 = '0001'

     TABLES

       INFTY_TAB             = ME->GT_TAB_0001  "this is declared in attributes of class as a table type of PA0001

    EXCEPTIONS

      INFTY_NOT_FOUND       = 1

      OTHERS                = 2.

Now from this i need to get the value of abkrs...

thanks

ramana

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

If you need data pertaining to Infotype 1(i.e., ABKRS is also in Infotype 1), use HR_READ_INFOTYPE for finding the same.

Former Member
0 Kudos

Hi,

Got it....

Thank you.....

Former Member
0 Kudos

Mark the thread as answered.

Answers (0)