Application Development and Automation 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: 
Read only

Abap Program Check

Former Member
0 Likes
521

hi all,

i need to do the following checks in any report program

1. how to check a parameter starting with p_ or not ?

2. how to check a data variable starting with v_ or not ?

3. how to giv identification to the user if he had used any comments in reports.

i. e how to check a special character ' * ' in our program.

4. how to check special symbols like empty space, ' : ' , ' ' ' ' , ' " " ' , ' . '

is there any keyword r standard program r function module r transaction to do all tasks.

thanks n regards,

suresh babu aluri.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
495

Hi Suresh,

U may use the following statement.

SCAN ABAP-SOURCE itab1 ...TOKENS INTO itab2

...STATEMENTS INTO itab3.

The above statement has few more additions also which u can check from the F1 help.

Regards,

Pradeep Chintala.

4 REPLIES 4
Read only

rahulkavuri
Active Contributor
0 Likes
495

rpr_abap_source_scan

This will help you scan through all the programs in ur R/3, for example if you want to search parameter whether it starts with p_ or not, then you can feed 'parameter: ' in the 'Find string' of the selection screen of the standard program rpr_abap_source_scan.

award points if found helpful

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
495

Hi Suresh

Use the Report: <b>RPR_ABAP_SOURCE_SCAN</b>

Which will Scan a set of reports for a particular string.

In serach criteria of this report u have Find String option.

There bu giving your required strings you can achieve your requirements.

Regards,

Sreeram

Read only

Former Member
0 Likes
496

Hi Suresh,

U may use the following statement.

SCAN ABAP-SOURCE itab1 ...TOKENS INTO itab2

...STATEMENTS INTO itab3.

The above statement has few more additions also which u can check from the F1 help.

Regards,

Pradeep Chintala.

Read only

Former Member
0 Likes
495

answered