cancel
Showing results for 
Search instead for 
Did you mean: 

reading an infotype and retrieving data

Former Member
0 Kudos

hi,

i want to read infotype p0000 and retrieve the employee number.

what are the possible ways of retrieving the employee number?

thanks & regards

abhijeet Chitale

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Abhijeet Chitale,

They are 3 ways to do this.

1. first one is using select directly you can

read pernr from PA0000.

2. Use function module


       call function 'HR_READ_INFOTYPE'
                       exporting
                            tclas           = 'A'
                            pernr           = dl_pernr
                            infty           = '0000'
                            begda           = sy-datum
                            endda           = '99991231'
*                        BYPASS_BUFFER   = ' '
*                   IMPORTING
*                        SUBRC           =
                       tables
                            infty_tab       = dt_p0000
                       exceptions
                            infty_not_found = 1
                            others          = 2 .

3. You can use logical database PNP and use macros

rp-provide-from-last p0000 space pn-begda pn-endda.

Hope this will help you.

Thanks&Regards,

Siri.

suresh_datti
Active Contributor
0 Kudos

Hi,

It depends on your actual requirement.. Employee Number ie PERNR is the key & what will be your where condition to do a select on PA0000 ? or the parameters you would pass to the function call HR_READ_INFOTYPE?

Regards,

Suresh Datti

Former Member
0 Kudos

Hi Abhijeet,

Welcome to SDN.

1. To read infotypes, we can either

read directly from the corresponding table

(PA0001 in your case)

or

2. we can use the standard sap function module

HR_READ_INFOTYPE

regards,

amit m.

Former Member
0 Kudos

HI

GOOD

I THINK YOU CAN DO IT USING THIS PROCESS

1- USING THE SELECT STATEMENT.

THANKS

MRUTYUN

Former Member
0 Kudos

U can write a select on the transparent table PA0000