2007 Jul 12 11:03 AM
can neone tell me a function module using which i can use "where-used list" on fields to fetch corresponding objects..
i have a itab of feild names n using these i need to search for all the custom objects using those fields.....
2007 Jul 12 11:06 AM
Hi,
I think i gave you an answer.
See READ REPORT will take all code into one internal table.
Then you can loop internal table and search the required string.
Then it will be easy.
Reward if useful!
2007 Jul 12 11:25 AM
1.First Take all table names into ITAB_TABLE.
2. SELECT obj_name INTO TABLE ITAB_REPORTS
FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND devclass IN devclass
AND objname = 'Z%'.
get all customized reports into
loop at itab_table.
<< GET TABLE FIELDS NOW
Use FM RPY_TABLE_READ to get table fields.
store it into ITAB_FIELDS
endloop.
Now,
For Each Field process all Customized reports.
Loop at ITAB_FIELDS.
loop at ITAB_REPORTS.
<b>READ REPORT prog INTO itab [MAXIMUM WIDTH INTO wid]. (explain me this pls)
Now in itab check the field</b>by read table itab.
endloop.
endloop.