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: 

keywords

Former Member
0 Kudos

Hi all.

Please tell me How many keywords ABAP has & Please Give me Document which contains all keywords and there use.

please .

Regards

Prajwal.k

1 REPLY 1

Former Member
0 Kudos

HI,

The best to achive this is

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.

1. CHECK THIS 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

siva