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: 

Search ABAP programs, Functions, Tables

Former Member
0 Kudos

Hi ,

I need your help, I am trying to find out the best ways to search inside ABAP programs, Functions and Tables.

for the ABAP programs:

Scan across multiple programs:

I am using RS_ABAP_SOURCE_SCAN but it is very slow and actually crashes when you want to search the entire system.

Scan inside Single Program :

SE38 -> Utilities Menu -> Find in source code

for Functions:

I am using SE37, Utilities Menu ->Find . I can only search inside function names or descriptions , but not for the actual code of the function.

I need your suggestions regarding the best ways to search inside ABAP programs, Functions and Tables.

I am reading about TREX but I am not sure if TREX can be used to search for the ABAP programs, Functions or tables !?

is TREX separate product that I need to install ?

I am using Netweaver 7.01 ABAP and it has the TREX admin tool, but I am not sure if this is enough !

Thanks

Misbah

1 ACCEPTED SOLUTION

Former Member
0 Kudos

go through SE84

18 REPLIES 18

former_member194669
Active Contributor
0 Kudos

Why don't you try RS_ABAP_SOURCE_SCAN in background mode ?

0 Kudos

RS_ABAP_SOURCE_SCAN is super slow.

I am trying to find if there are more effective searching tools/ways.

Thanks

Misbah

0 Kudos

You can try EWK1 transaction for .

Former Member
0 Kudos

go through SE84

0 Kudos

krupa jani :

Thanks this is the best solution so far, the only problem is that I only can choose one category to search inside, right ?

I mean under Programs Library folder for example, I can not select both Functions Modules and Programs and run one search across both, I have to select one category each time, is there a way to search across more than one category ?

Thanks

Misbah

Edited by: Misbah on Aug 8, 2009 1:21 PM

0 Kudos

Hi,

have you tried to use the token search of the sap code inspector TCode SCI? If you are searching in customer objects this is an easy solution. If you want to search over sap objects SCI needs a small trick.

If you need help here just give another message.

Best Regards

Roman

0 Kudos

ya you are right you can select one category each time but u can try to search in table TADIR

Edited by: krupa jani on Aug 10, 2009 8:14 AM

uwe_schieferstein
Active Contributor
0 Kudos

Hello Misbah

A nice function module which extract all tables "touched" by a program is RS_PRGRAM_TABLES.

Example:
TYPE = 'TRAN' (= transaction)
PROG = 'VA01'

Regards

Uwe

0 Kudos

Thanks All for your answers....

I am using Netweaver ABAP Trail 7.01

Gautham Vangaveti

EWK1 transaction does not exist in my system !

Roman Weise :

please, can you give me steps to do that (for the customers objects) ?

Uwe Schieferstein :

FM: RS_PRGRAM_TABLES. does not exisit too !

this function seems really interesting but I don't have it in my system too !!

since this is a different question, please take a look at at this link:

Edited by: Misbah on Aug 8, 2009 8:04 PM

0 Kudos

Hi,

to use the sap code inspector go to TCode SCI.

You start by defining a check variant. Give it a name and choose create. if you want to search for a special word choose search functions -> search for ababp tokens from the tree and add the word you are searching for. Then save the variant.

Next create an object set. Enter the objects you want to search in. Easiest is entering Z* for package. If you have the save selections only the object set will be increased if you create new development objects matching your selection.

Last create an inspection. choose your object set and search variant and run it. In the resukt screen you will find the search result and can directly navigate into the object.

I sometimes use that to find the place where i wrote "ToDo" as a requirement was not clear and after 2 weeks I forgot where it was ;o) works quite well.

Best regards

Roman

Sandra_Rossi
Active Contributor
0 Kudos

please, could you tell us what you are looking for exactly ? (because there can be many solutions)

0 Kudos

Sandra:

I am looking for the best way to search inside ABAP programs, Tables and Functions.

I was hoping to find a way to allow me to execute a single search for all these types.

for example, I want to specify a string and then choose all the object types to search inside (programs ,tables , functions ..etc)

the result should be all the objects that contain the specified string.

Thanks

Misbah

0 Kudos

I cant remember the report name, but if you start transaction SECR it will point you to a SAP note.

In that SAP note, it will point you to a role for a "systems auditor".

In that role menu (assign the role to yourself) there is a node for development work auditing.

One of the reports in it will let you "explode" the program or package you want to scan to different levels (up to 5 if I remember correctly).

The name is something like RSDBSCAN1 or similar.

But take care: If code is submitted at initialization of these "exploded" scans, then they will execute as well as far as I have observed....

Which string are you looking for? (as an example)

Cheers,

Julius

Edited by: Julius Bussche on Aug 9, 2009 1:31 AM

0 Kudos

Hi Julius Bussche :

Transaction SECR does not exisit in my system (Netweaver ABAP Trial 7.01) .

I didnt find a program called RSDBSCAN1 but I found RSDBSCAN : SCAN for Destroyed Entries in INDX-Like Tables

this is not what I need.

example: If I provide string : FTP_CONNECT (which is a name of a function )

I would like to get the function and any other programs or functions that call this function.

Thanks

Misbah

0 Kudos

> example: If I provide string : FTP_CONNECT (which is a name of a function )

Have you tried SE37 to display the FM, and then right-click --> Where-Used-List.

I guess:Yes.

There is no medication within ABAP for dynamic calls and calls from outside of ABAP to my knowledge (e.g. from the client side). At most you could find coding (or authorizations) which could let the user execute a function of their choice...

For this you can only restrict authority and monitor the (successfully executed) calls via SM20, ST03N, ST11, ST22, etc.

Cheers,

Julius

0 Kudos

Julius:

I know how to use the (where-used-list), I just gave you an example with a string that happened to be a function name,

I want the string to be more general , it can be anything. I just explained the scenario above just before you first post here.

dynamic calls has nothing to do with my question, you might got confused by the function call example ..basically if I searched for the string "connect", I want every program, function or table that contains the string "connect" .

Thanks

Misbah

0 Kudos

Then try transaction SECR on a "real" system (however it has been obsolete for some time now, so might even have been deleted) or in PFCG look for SAPAUDITOR roles for "System Audit" to see whether they are still there in your IDES system.

Cheers,

Julius

Former Member
0 Kudos

Hi Misbah ,

Check the standard report RSDEMO_EVENT_ON_FIELD

using this report u can select more then one category like

u can find out FM,Report,Package,Class,Local object etc

Edited by: krupa jani on Aug 18, 2009 7:52 AM