2007 Jul 11 6:46 AM
specification:
i have a
selection-screen : taking table names (mara ,ekko)
i have to loop at list of table name
get all the fields of the table
using field name scan all the abap cuctom developemnt...to find the custom code
list all the custom code names using field name in the o/p -ALV
specification:
i have a
selection-screen : taking table names (mara ,ekko)
i have to loop at list of table name
get all the fields of the table
using field name scan all the abap cuctom developemnt...to find the custom code
list all the custom code names using field name in the o/p -ALV
2007 Jul 11 6:49 AM
Hi Renu,
You can use RPR_ABAP_SOURCE_SCAN. if this does not suit your requirement then you can refer this code for creating your own functioanlity.
Regards,
Atish
2007 Jul 11 7:03 AM
Hi Renu,
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].</b>
Now in itab check the field
by read table itab.
endloop.
endloop.
Reward if useful!
2007 Jul 11 7:25 AM
Hi,
You can use FM DDIF_NAMETAB_GET, to get all the field names of the table that you
will specify, in the previuos post the FM given RPY_... will also give a .INCLUDE as a field name
so you may have some overhead there.
Regards,
Samson Rodrigues.
2007 Jul 11 7:49 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |