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

Doubt report RPR_ABAP_SOURCE_SCAN

ronaldo_aparecido
Contributor
0 Likes
11,704

Good morning Gurus.

The functional wants that I change a message text.

But this message occurs within a standard function  probably placed by exit or enhacement ...etc I need know where to change the message.

To search the message I use the RPR_ABAP_SOURCE_SCAN.

In field 'String searched for' i put the current message `In saturday bla bla bla'

in field Program Name I put *

After 4 hours he DON ' T FIND ANYTHING.

1-i SEARCH CORRECTLY FOR THE MESSAGE?

2-EXIST OTHER WAY TO DISCOVER WHERE IS THE MESSAGE?

3-IF THE MESSAGE IS IN TEXT-0* ,CAN i USE THE RPR_ABAP_SOURCE_SCAN TO FIND IT?

I,m working with HR portal the user do the process in Internet portal and comunicate with sap by rfc.

I debuged but I don´t find in standard.

Please help me.

Thanks.

1 ACCEPTED SOLUTION
Read only

rosenberg_eitan
Active Contributor
0 Likes
11,441

Hi,

Assuming all the calls occours within the same package (PBAS) I found those (quite quick):

Try to break point there.

I have to ask our HR consultant but could it be that HR use its own message table .

Regards.

Good morning Gurus.

The functional wants that I change a message text.

But this message occurs within a standard function  probably placed by exit or enhacement ...etc I need know where to change the message.

To search the message I use the RPR_ABAP_SOURCE_SCAN.

In field 'String searched for' i put the current message `In saturday bla bla bla'

in field Program Name I put *

After 4 hours he DON ' T FIND ANYTHING.

1-i SEARCH CORRECTLY FOR THE MESSAGE?

2-EXIST OTHER WAY TO DISCOVER WHERE IS THE MESSAGE?

3-IF THE MESSAGE IS IN TEXT-0* ,CAN i USE THE RPR_ABAP_SOURCE_SCAN TO FIND IT?

I,m working with HR portal the user do the process in Internet portal and comunicate with sap by rfc.

I debuged but I don´t find in standard.

Please help me.

Thanks.

26 REPLIES 26
Read only

matt
Active Contributor
0 Likes
11,441

Texts may be stored in tables, text elements, OTR. Translatable texts are most likely not stored in programs.

Read only

0 Likes
11,441

The text is in my language I think that it can is in program like hardoce but I don´n Find.

Read only

Former Member
0 Likes
11,441

You can search the text in table T100 to get message class. Then you can do a where-used list for that text number or use code scanning.

Read only

0 Likes
11,441

Manish I searched in T100 but dont find.

Can it is in program like a hardcode?

How can I find ?

Thanks.

Read only

matt
Active Contributor
0 Likes
11,441

If it is hardcoded in a program then RPR_ABAP_SOURCE_SCAN will find it.

Read only

0 Likes
11,443

It is possible that message is having parameter.

For example, "Document 12345 posted." would be in T100 as "Document & posted", and program would pass the number at run time. T100 is just one of many possibilities.

Read only

0 Likes
11,443

Hi ,

Where sap store program text symbols ?

See original message:

"3-IF THE MESSAGE IS IN TEXT-0* ,CAN i USE THE RPR_ABAP_SOURCE_SCAN TO FIND IT?"

Read only

0 Likes
11,443

Hi ,

Program texts can be read using read textpool statement.

DATA lt_texts TYPE TABLE OF textpool.

READ TEXTPOOL sy-repid INTO lt_texts.

/.

Read only

0 Likes
11,443

Hi,

Thanks.

I know that but I was too lazy to search for the table .

Regards .

ST05 ?

Read only

0 Likes
11,443

ST05 won't give anything as there is no select query involved.

Read only

0 Likes
11,443

Hi,

I am not happy .

So a program that loops on TRDIR and do READ TEXTPOOL for each ?

Regards.

Read only

0 Likes
11,443

Yes. I used to maintain an excel file having program texts and message class texts for all custom objects. It was helpful in support environment. File was updated on weekly basis.

Read only

0 Likes
11,443

Hi,

Good idea .

Thanks .

Read only

0 Likes
11,443

Hi.

Have you wrote an article about it ?

Regards.

Read only

0 Likes
11,443

No I haven't written about it because my approach was not end-user friendly (involves regex and Notepad++).

There is this Mass Download tool which allows you to download all types of codes arranged nicely in folders and sub-folders.

It was taking too much time in our environment because of overhead of opening and closing every file on presentation server. I took inspiration from that tool to download few big files (one each for class, report, function module etc ) compressed in zip format. The combined files had sort of xml tags as marker to distinguish one object from another. Something like <name>ZTEST</name><code>report...data...</code><name>ZTEST2</name><code>...

The uncompressed source codes size was ~200MB and I used Notepad++ or GVim to perform search for hard-coded text or code snippet of particular pattern.

Read only

0 Likes
11,443

Wow !!!!

Those people are good....

Many thanks for the link .

Regards.

Read only

rosenberg_eitan
Active Contributor
0 Likes
11,443

Hi,

In what transaction ? custom development ?

Regards.

Read only

0 Likes
11,442

Hi guys

Please see attached

My message is in SY-MSGV1 and is 'Férias não podem começar aos Sábados'

But it occurs after pass by :

CALL DIALOG 'HR_MAINTAIN_MASTER_DATA' USING BDCDATA MODE 'N'

       EXPORTING

         PSPAR

         PROPOSED_VALUES

         LUW_MODE

         PS

         PSINFO

         PREFTAB

       IMPORTING

         PS

         PSINFO

         PREFTAB

         PSPAR

         PROPOSED_VALUES

         MODIFIED_KEYS.




and next he uses:


GET PARAMETER ID 'P_RP_INFOTYP_MESSAGE'                 "XDPK004796

             FIELD RP_INFOTYP_MESSAGE



the function is HR_MAINTAIN_MASTERDATA.




Read only

0 Likes
11,442

Please check:

Also try to locate the set parameter for:

Read only

0 Likes
11,442

Ok I will try

THanks

Read only

0 Likes
11,442

HI

How can I filter it in RPR_ABAP_SOURCE_SCAN?

Because is very slow.

Read only

0 Likes
11,442

Hi,

Use can use debug. Use the "break on statement"  

Using your info I managed to find this: (but it is just clearing)

I did not use debug(regular find function of se80)

Regards

Read only

0 Likes
11,442

thanks Eitan I find but I dont understan where he do the logic to return the message in set parameter

he uses the call dialog but in debug i don 't find where he do the logico to return the message .

Read only

0 Likes
11,442

Hi,

You need to break on all the "SET" .

Hopefully one of them will put something into P_RP_INFOTYP_MESSAGE .

This is the theory  based on your debug.

Regards.

Read only

0 Likes
11,442

THanks Mr .

You is really Good.

Thanks comunitty.

Read only

rosenberg_eitan
Active Contributor
0 Likes
11,442

Hi,

Assuming all the calls occours within the same package (PBAS) I found those (quite quick):

Try to break point there.

I have to ask our HR consultant but could it be that HR use its own message table .

Regards.