Application Development and Automation 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: 
Read only

Table name for includes

Former Member
0 Likes
2,716

Hi Experts,

Is there any table from which i can get all the Main program names when i give the Include program name.

Regards,

aadi.

removed the word Urgent from the title. read the forum rules linked in this thread

Edited by: Durairaj Athavan Raja on Jun 23, 2008 12:33 PM

13 REPLIES 13
Read only

Former Member
0 Likes
2,213

Hi,

Check the table TRDIR.

Regards

Adil

Read only

0 Likes
2,213

Hi Syed,

From trdir i doesnot show you the list of main programs when you give the include program name.

Please let me know as soon as possible.

regards,

aadi.

Read only

0 Likes
2,213

chk in table TADIR

Reward points if the ans is helpful...

Regards

Rudra

Read only

Former Member
0 Likes
2,213

Use FM RS_GET_MAINPROGRAMS to get all main program name for a include.

perform search_mainprog using prog frameprogram.

----


  • FORM SEARCH_MAINPROG *

----


  • Liefert zu einem INCLUDE den Namen des Hauptprogramms *

----


  • -> PROGNAME *

  • <- MAINSOURCE *

----


form search_mainprog using progname mainprog.

data: begin of maintab occurs 5,

name(8),

end of maintab.

call function 'RS_GET_MAINPROGRAMS'

exporting

name = progname

tables

mainprograms = maintab

exceptions

cancelled = 01.

read table maintab index 1.

mainprog = maintab-name.

endform. "SEARCH_MAINPROG

Read only

ThomasZloch
Active Contributor
0 Likes
2,213

I know that table, however:

"Total Questions: 25 (25 unresolved)"

Read only

0 Likes
2,213

Hi Thomas,

Can you please tell the name of the table from which we can get the list of main programs of an include program.

regards,

aadi.

Read only

0 Likes
2,213

hi,

D010INC - Where-Used Table for ABAP INCLUDEs.

reward points and close the thread.

Thomas didnt tell u the answer because in all ur previous threads u didnt assign points and didnt close any thread.

Read only

0 Likes
2,213

Hi Gautham,

The reason for not rewarding points is that i didnot get the answer from any one and once i get the answer then i will close. Now i got the answer from you so i rewarded the points and how can i close this untill i get the answer.

Please forgive me if i say any thing by mistake.

regards,

aadi.

Read only

0 Likes
2,213

hi,

i didnt find any of the reply messsages with points .

to whom did u reward ?

Read only

Former Member
0 Likes
2,213

Hi,

To get main program name:

RS_GET_MAINPROGRAMS

call function 'RS_GET_MAINPROGRAMS' 
       EXPORTING 
        name         = <include name> 
       TABLES 
        mainprograms = <table>
       EXCEPTIONS 
        cancelled    = 1 
        others       = 2. 
  endselect.

to get include names:

RS_GET_ALL_INCLUDES

Regards

Adil

Read only

Former Member
0 Likes
2,213

Hi aditya,

Check this table D010INC,

give your include name as input and see.

Regards

Adil

Read only

Former Member
0 Likes
2,213

Hi,

Reports:

RSRSCAN1 - Search source code for a given string. Will also search includes. Also see RKCTSEAR and RPR_ABAP_SOURCE_SCAN.

Reward if useful.

Regards,

Raj.

Read only

Former Member
0 Likes
2,213

Thanks for answering my question