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 program

Former Member
0 Kudos

<u>Selection-Screen:</u>

Parameter: String field to enter a text

Select-option: to enter program names (value help shall be available)

<u>Program:</u>

The user shall enter a text and select one or several program names. (Search help for the pro-gram names.)

The coding of the selected programs than are searched for the entered string (text).

(Nice to have, but not necessary: if the user makes a double click on a line of the result list (see below) it is jump into the ABAP editor and the coding is displayed in display mode).

<u>Output:</u>

Display in a ABAP list OR in a ALV list the program name, the line number and the coding / text auf the line, where the search term as found.

Please take notice of the ABC naming convention (find in ABC Wiki, when you enter „Namenskonventionen“ in the search field) for the program name and try to use the recommen-dation for the naming of program coding (GV_ for global variable, GT_ for global table etc.).

The following ABAP key words will help you, read the ABAP Key word help for more informa-tion.

READ REPORT

FIND or SEARCH

EDITOR-CALL

Search help: Function module REPOSITORY_INFO_SYSTEM_F4

or Table TADIR or view TRDIR

Anyone can please write code for this program

Message was edited by:

RaghuRaj Tammaly

6 REPLIES 6

Former Member
0 Kudos

Hi,

here a simple tool:

<MODIFIED BY MODERATOR - RESPECT THE 2,500 CHARS LIMIT>

Try it.

Regards, Dieter

Edited by: Alvaro Tejada Galindo on Jan 14, 2010 5:45 PM

0 Kudos

Hello Dieter Gröhn,

Iam new to all this, presently Iam learning abap

Can u please help tell me how it works....like its features, use etc

Former Member
0 Kudos

TABLES : trdir.

SELECT-OPTIONS : so_name FOR trdir-name.

DATA : itab LIKE trdir OCCURS 0 WITH HEADER LINE.

DATA : fval type trdir-name.

SELECT * FROM trdir INTO TABLE itab WHERE name IN so_name.

LOOP AT itab.

WRITE : / itab-name.

ENDLOOP.

AT LINE-SELECTION.

get cursor value fval.

EDITOR-CALL FOR REPORT fval DISPLAY-MODE.

Former Member
0 Kudos

testing account

former_member583013
Active Contributor
0 Kudos

RaghuRaj:

This is a professional forum...you just can't drop by and ask for a complete source code...you must try yourself and if you can't, come here with specific doubts...sorry, but rules are rules...

Closing thread and un-assigning points...

Greetings,

Blag.

former_member583013
Active Contributor
0 Kudos

Don't ask for complete codes...try yourself first...