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: 

fetching data from infotype

Former Member
0 Kudos

Hi,

I am fetching the data from pa0001,pa0002 and pa0105 using the function module 'HR_READ_Infotype' like below:

CALL FUNCTION 'HR_READ_INFOTYPE'

EXPORTING

TCLAS = 'A'

pernr = wa_pa0002-pernr

infty = '0002'

begda = sy-datum

endda = sy-datum

  • BYPASS_BUFFER = ' '

  • LEGACY_MODE = ' '

  • IMPORTING

  • SUBRC =

TABLES

infty_tab = it_pa0002

EXCEPTIONS

infty_not_found = 1

OTHERS = 2

.

But it_pa0002 does not contain anything after the processing though the data is there in the infotypes.

I have declared the internal table as

data it_pa0002 type standard table of pa0002.

The wa is defined like:

data: wa_pa0002 like line of it_pa0002.

Please suggest the solution.

1 REPLY 1

Former Member
0 Kudos

hi,

declare the internal table and workarea with the structure "PRELP"

then see.

pradeep