on 05-03-2006 8:00 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI
GOOD
I THINK YOU CAN DO IT USING THIS PROCESS
1- USING THE SELECT STATEMENT.
THANKS
MRUTYUN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
U can write a select on the transparent table PA0000
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.