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: 

where-use help

Former Member
0 Kudos
89

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

4 REPLIES 4

Former Member
0 Kudos
50

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

Former Member
0 Kudos
50

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!

Former Member
0 Kudos
50

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.

0 Kudos
50

Take a look at function module RS_EU_CROSSREF.

Regards