on 06-07-2009 9:47 AM
Hi,
I am fetching the data from PA0001,PA0002 and PA0105 using function module HR_READ_INFOTYPE.But when I am passing the prnr as 7 , it is getting changed to 7000 in the function module. Thats why it is not fetching the data.Please suggest why is it happening. ALso I have to fetch name of the pernr. But from PA0002 , I am not able to fetch the name.Please suggest the solution.
Hi,
Try to test the function module using SE37. Give the function module and click on Test. It will ask for the below Options.
TCLAS = "A" This should be the same as this is Master Data.
PERNR = Enter the personnel number.
INFTY = Enter the infotype number
BEGDA = Enter the Begin Date
ENDDA = Enter the End Date
and try to execute. Ensure that for the above personnel number there is a basic pay record. This should fetch the record. If successful, then the function module by standard is working fine. Please revert for any help.
Thanks and Regards
Team Member.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Make sure for data Declaration in you program you have defined Pernr like
pernr LIKE p0000-pernr, "Personnel Number
Also check the valid infotype records exists for the dates you are passing
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
TCLAS = 'A'
pernr = g_t_table-pernr
infty = '0002'
begda = g_t_table-begda
endda = g_t_table-endda
* BYPASS_BUFFER = ' '
* LEGACY_MODE = ' '
* IMPORTING
* SUBRC =
TABLES
infty_tab = p0002
EXCEPTIONS
infty_not_found = 1
OTHERS = 2
For fetching the name use "Ename" field from pa0001.
Afrasyab
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
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.