05-04-2007 10:31 PM
Hi,
I need to extract the coments from all ABAP programs using other program..
Someone may help me?
Thnaks,
Maria C.
05-05-2007 2:36 AM
05-04-2007 10:38 PM
Ok....This is one of the weirdest requirements ever -:P
Use this -:)
TYPES: BEGIN OF SOURCE_TABLE,
LINE(150) TYPE C.
END OF SOURCE_TABLE.
DATA: T_SOURCE_TABLE TYPE STANDARD TABLE OF SOURCE_TABLE
WITH HEADER LINE.
DATA: PROG_NAME TYPE TRDIR-NAME.
NAME = 'ZAPP'.
READ REPORT NAME INTO T_SOURCE_TABLE.
That way, you get all ABAP lines in an internal table....
Just LOOP IT and do something like....
LOOP AT T_SOURCE_TABLE ASSIGNING <SOURCE>.
IF <SOURCE>-LINE+0(1) EQ '*'.
*Move it to a new table.
ENDIF.
ENDLOOP.
Also, you can SEARCH for the double ' symbols and do the same -:D
Greetings,
Blag.
05-05-2007 2:36 AM
04-08-2014 3:19 PM