Hi,
As suggested by Suman and Vijay go ahead with the FM based generic extractor and use ABAP statements to read data from tables. Below is a smaple example and based on your requiremnet you can change the info types etc and change accordingly as desired..
**"Select the records from PC14 cluster table..
select srtfd
from pcl4
into table it_pcl4
where relid = 'SA'
and srtf2 = 0
and aedtm in date_range_2.
sort it_pcl4. "Sorting 'it_pc14' table...
loop at it_pcl4 .
move it_pcl4-srtfd to sh_key.
move-corresponding sh_key to pcl4_key.
**"Checking for the InfoTYpes 00, 01 & 08.
if pcl4_key-pernr < 70000000 and
( pcl4_key-infty = '0000' ) or
( pcl4_key-infty = '0001' ) or
( pcl4_key-infty = '0008') or
( pcl4_key-infty = '0302' ) or
( pcl4_key-infty = '0007' ) or
( pcl4_key-infty = '0077' ) or
( pcl4_key-infty = '0035' ) or
( pcl4_key-infty = '0041' ) or
( pcl4_key-infty = '0002' ).
***"Import header from database pcl4(sa) id sh_key.
it_pernrs-pernr = pcl4_key-pernr.
append it_pernrs.
clear it_pernrs.
endif.
endloop.
/Srikanth