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

How to find hardcoded in ABAP programs

Former Member
0 Likes
9,956

Dear Experts,

Please tell me how to find hardcoded in ABAP programs.

1 ACCEPTED SOLUTION
Read only

GauthamV
Active Contributor
0 Likes
5,354

Hi,

you can use this program RPR_ABAP_SOURCE_SCAN or this

transaction EWK1

Dear Experts,

Please tell me how to find hardcoded in ABAP programs.

7 REPLIES 7
Read only

Former Member
0 Likes
5,354

Hello,

You can find hardcoded string in different programs using the standard program RPR_ABAP_SOURCE_SCAN.

Thanks,

Venu

Read only

gaursri
Active Contributor
0 Likes
5,354

Hi Sam,

When you define the program explicitly without using any variables the program is said to be hardcoded.It can not be considered as generalised program.To be specific it will be working for only the values you have specified.I So, for this reason hardcoding is avoided as generalization is better than specification.Hope your qery resolves by this.

Have a nice day ahead.

Read only

Former Member
0 Likes
5,354

Hi Sam,

Check if there are any text symbols maintained for that report. To see the text elements go to --> text elements --> Text Symbols. All the hard coded texts would be either stored as text symbols for translation purposes or they would be between the quotes.

Regards,

Swapna.

Read only

GauthamV
Active Contributor
0 Likes
5,355

Hi,

you can use this program RPR_ABAP_SOURCE_SCAN or this

transaction EWK1

Read only

Former Member
0 Likes
5,354

try this syntax

SCAN ABAP-SOURCE wt_read

KEYWORDS FROM KEYWORDS

TOKENS INTO TOKEN

STATEMENTS INTO STATEMENTS

LEVELS INTO LEVEL

OVERFLOW INTO OVERFLOW

WITH ANALYSIS

WITH INCLUDES

FRAME PROGRAM FROM

FRAMEPROGRAM.

Read only

Former Member
0 Likes
5,354

Hi Sam,

Generally in Abap program hardcoded strings are declared in single quotes ' .

for ex :


 write : 'Report heading'. " search for  '   in the entire program.

press FIND button in menu bar and type single quote ' . and select radio button ' IN MAIN PROGRAM '

Regards,

Aby.

Read only

Former Member
0 Likes
5,354

Hello SAM,

To find the hard coded string in ABAP, please try out the following programs:

RS_DETERMINE_OBJECT_SOURCE

RPR_ABAP_SOURCE_SCAN

and the Function Module: SCWB_GET_ABAP_CODE_OF_OBJECT

Have a bash at those ones, hope you'll get the solution.

Thanks: Zahack