cancel
Showing results for 
Search instead for 
Did you mean: 

How to get all the ABAP key words ?

Former Member
0 Kudos

Hi ,all

How to get all the ABAP key words ? e.g. perform ,where ,select , data ......

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi guixin,

1. I have managed to write some program

which does this .

2. just copy paste in new program.

a) Enter any program name on selection screen.

b) execute

c) it will write down the keywords used in this program.

3.

REPORT abc.

*----


Data

DATA : BEGIN OF itab OCCURS 0,

keyword(70) TYPE c,

END OF itab.

DATA : BEGIN OF prg OCCURS 0,

l(72) TYPE c,

END OF prg.

DATA : BEGIN OF itab1 OCCURS 0,

keyword(70) TYPE c,

END OF itab1.

DATA : abaphtml LIKE TABLE OF abaphtml WITH HEADER LINE.

*----


Screen

PARAMETERS : prog(40) TYPE c.

*----


Logic

START-OF-SELECTION.

SELECT * FROM abaphtml

INTO TABLE abaphtml

WHERE srtfd LIKE 'ABAP%.E'

AND srtf2 = 0.

LOOP AT abaphtml.

itab-keyword = abaphtml-srtfd.

APPEND itab.

ENDLOOP.

LOOP AT itab.

REPLACE 'ABAP' IN itab-keyword WITH ''.

REPLACE '.E' IN itab-keyword WITH ''.

MODIFY itab.

ENDLOOP.

*----


READ REPORT prog INTO prg.

LOOP AT prg.

LOOP AT itab.

IF prg-l CS itab-keyword.

CLEAR itab1.

itab1-keyword = itab-keyword.

APPEND itab1.

ENDIF.

ENDLOOP.

ENDLOOP.

*----


SORT itab1.

DELETE ADJACENT DUPLICATES FROM itab1.

LOOP AT itab1.

WRITE 😕 itab1-keyword.

ENDLOOP.

regards,

amit m.

athavanraja
Active Contributor
0 Kudos

check out this function module

ABAP_DOCU_SEARCH

Regards

Raja

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi guixin,

1. Did your problem get solved ?

2. See my previous reply.

In that there is a program,

which takes in input as ANY program name,

and then Lists out

the abap commands which have been used in it !

regards,

amit m.

Former Member
0 Kudos

HI

CHECK THIS LINK FOR ABAP KEYWORD AND THEIR EXPLANATION

<a href="http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm">http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm</a>

THE FOLLOWING LINK IS USEFUL IN GETTING THE KEYWORDS,THE SYSTEM FIELDS, SAMPLE REPORTS etc

<a href="http://www.planetsap.com/ABAP_main_page.htm">http://www.planetsap.com/ABAP_main_page.htm</a>

IF IT FINDS USEFUL PLEASE REWARD POINTS

REGARDS

ANOOP

Former Member
0 Kudos
Former Member
0 Kudos

Sorry , I didn't give you a clearly question.

I mean to get the all the key word in my program.

Manohar2u
Active Contributor
0 Kudos

Hmmm...

Simple way is by using pretty printer settings. This will takecare of converting key words in your program to uppercase..

Regds

Manohar

former_member184619
Active Contributor
0 Kudos

Hi Guixin,

The best to achive this is a sunder:-

Goto Utilities -> settings

Select the Pretty Printer tab.

Make the Convert upper-/lowercase checkbox.

and click the radio button Keyword uppercase.

To achive this in your Program.

Click the Pretty printer button on the application toolbar or press Shift + F1.

What this will do is change all the keyeords in uppercase and remaining non-keywords in Lowercase.

Regards

-


Sachin Dhingra

Former Member
0 Kudos

Hi guixin,

1. From abap documentation !

2. in tcode type, ABAPDOCU

3. a new screen will come.

4. click on appendix

regards,

amit m.

Former Member
0 Kudos