09-22-2007 6:46 AM
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
09-22-2007 6:56 AM
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