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: 

How I extract the coments from the ABAP program?

Former Member
0 Kudos

Hi,

I need to extract the coments from all ABAP programs using other program..

Someone may help me?

Thnaks,

Maria C.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Check this code...

http://www.kabai.com/abaps/z105.htm

Cheers

VJ

3 REPLIES 3

former_member583013
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi,

Check this code...

http://www.kabai.com/abaps/z105.htm

Cheers

VJ

Former Member
0 Kudos

This message was moderated.