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: 

Doubt report RPR_ABAP_SOURCE_SCAN

ronaldo_aparecido
Contributor
0 Kudos
541

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

rosenberg_eitan
Active Contributor
0 Kudos
278

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.

26 REPLIES 26

matt
Active Contributor
0 Kudos
278

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

0 Kudos
278

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

Former Member
0 Kudos
278

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.

0 Kudos
278

Manish I searched in T100 but dont find.

Can it is in program like a hardcode?

How can I find ?

Thanks.

matt
Active Contributor
0 Kudos
278

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

0 Kudos
278

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.

0 Kudos
278

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?"

0 Kudos
278

Hi ,

Program texts can be read using read textpool statement.

DATA lt_texts TYPE TABLE OF textpool.

READ TEXTPOOL sy-repid INTO lt_texts.

/.

0 Kudos
278

Hi,

Thanks.

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

Regards .

ST05 ?

0 Kudos
278

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

0 Kudos
278

Hi,

I am not happy .

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

Regards.

0 Kudos
278

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.

0 Kudos
278

Hi,

Good idea .

Thanks .

0 Kudos
278

Hi.

Have you wrote an article about it ?

Regards.

0 Kudos
278

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.

0 Kudos
278

Wow !!!!

Those people are good....

Many thanks for the link .

Regards.

rosenberg_eitan
Active Contributor
0 Kudos
278

Hi,

In what transaction ? custom development ?

Regards.

0 Kudos
278

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.




0 Kudos
278

Please check:

Also try to locate the set parameter for:

0 Kudos
278

Ok I will try

THanks

0 Kudos
278

HI

How can I filter it in RPR_ABAP_SOURCE_SCAN?

Because is very slow.

0 Kudos
278

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

0 Kudos
278

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 .

0 Kudos
278

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.

0 Kudos
278

THanks Mr .

You is really Good.

Thanks comunitty.

rosenberg_eitan
Active Contributor
0 Kudos
279

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.