05-20-2014 8:06 AM
Hi Experts,
As per the requirement, I need find the list of all Text tables in SAP and based on the list I need to find the whether the text tables has been used in our custom programs(more than 1000 objects are there).
Is there an way to find the list of text tables and also can I use RS_ABAP_SOURCE_SCAN to find the text tables in the custom programs
Regards
Anand
05-20-2014 8:37 AM
Hi Anand,
to get a list of tables with language fields as key fields (without structure types) you can use a code like the following:
REPORT zstest_text_table.
DATA: xt_tables TYPE TABLE OF tabname.
START-OF-SELECTION.
SELECT DISTINCT l~tabname FROM dd02l AS t
INNER JOIN dd03l AS l
ON l~tabname = t~tabname
INTO TABLE xt_tables
WHERE t~tabclass NE 'INTTAB'
AND l~keyflag EQ 'X'
AND l~languflag EQ 'X'.
BREAK-POINT.
But I think the result is too large to scan ...
Regards,
Klaus
05-20-2014 8:13 AM
Hi,
Use this FM DDUT_TEXTTABLE_GET
Pass the table name and you will get the text table with the relevant field!
05-20-2014 8:37 AM
Hi Anand,
to get a list of tables with language fields as key fields (without structure types) you can use a code like the following:
REPORT zstest_text_table.
DATA: xt_tables TYPE TABLE OF tabname.
START-OF-SELECTION.
SELECT DISTINCT l~tabname FROM dd02l AS t
INNER JOIN dd03l AS l
ON l~tabname = t~tabname
INTO TABLE xt_tables
WHERE t~tabclass NE 'INTTAB'
AND l~keyflag EQ 'X'
AND l~languflag EQ 'X'.
BREAK-POINT.
But I think the result is too large to scan ...
Regards,
Klaus
05-20-2014 8:51 AM
Additional if you have an active where-used-list you can read informations directly from tables WBCROSSGT and WBCROSSGTI ...
05-20-2014 9:54 AM
What about the table D010TAB, I passed the text tables(fetched as above) and the list of my programs as input. Will it be sufficient.
Regards
Anand
05-20-2014 10:10 AM
Hi,
if I'm looking in table WBCROSSGT I'll find 172 entries for table E07T in our system, while in table D010TAB 16167 entries can be found for it.
Please check, which one is the right for your issue.
Regards,
Klaus
05-20-2014 8:40 AM
Hi Anand
You can get list of tables as mentioned by Klaus above. Now to check whether they are used in your list of program you should use RS_ABAP_SOURCE_SCAN only as a where used list if you do on each table it will degarde the performance
Nabheet