Skip to Content
Technical Articles
Author's profile photo arghadip kar

How to find the specific ABAP Code that is updating any Logic in a Smart Way?

How to find the specific ABAP Code that is updating any Logic in a Smart Way?

Introduction.

After working with SAP for more than 15 years and travelling across the Globe for SAP Projects one issue I always use to have how can I find the exact enhancement or code where certain logic is getting updated. The below blog will do magic and you can find the exact place where certain enhancement is written.

 

Solution

Procedure 1

For SAP ECC and SAP S/4HANA

Go to Transaction Code SE38 and Execute Program RS_ABAP_SOURCE_SCAN

Provide the below Parameter and Execute

Wala below is the result

Procedure 2

Login to SAP S/4HANA and Go to Transaction Code CODE_SCANNER

Suppose I want to find all the Program/Enhancement that has mentioned the Check ” = ‘SAP_WFRT’ ”

In the below screenshot we are only restricting to Z Packages. Now Execute

Wala below is my result.

Conclusion

This can be used in both SAP ECC and SAP S/4HANA

 

Below is the video version

 

Assigned tags

      22 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Mithun Kumar
      Mithun Kumar

      Wow... I do know about this transaction, but never crossed my mind to use it for this purpose. This is a brilliant discovery!

      Thank you so much.

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      You are welcome.

       

      Thanks

      Arghadip

      Author's profile photo Tom Wan
      Tom Wan

      Thanks for sharing. BTW, it is also available in NetWeaver Systems.

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Welcome Glad you liked it

      Author's profile photo Bärbel Winkler
      Bärbel Winkler

      Arghadip Kar

      Thanks for the tip, Arghadip! I just tried CODE_SCANNER on our NW 7.50 EHP8 on HANA DB system and it's available there as well and runs amazingly fast!

      Cheers

      Bärbel

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Welcome Glad you liked it

      Author's profile photo Karl Peham
      Karl Peham

      I've been using the report RS_ABAP_SOURCE_SCAN (or RPR_ABAP_SOURCE_SCAN, calling the same) up to now. It seems to show a bit more context and has more options.

      Also that one is available both in the ECC and S/4HANA (on prem).

       

      regards, Karl

       

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Welcome Glad you liked it

      Author's profile photo Andrea Borgia
      Andrea Borgia

      Uhm, weird, it looks like this is a bit older than RS_ABAP_SOURCE_SCAN.

      Still, thanks for the heads up!

       

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Welcome Glad you liked it

      Author's profile photo Michelle Crapo
      Michelle Crapo

      This one is interesting.   I honestly have never used this tcode.   I'm using RS_ABAP_SOURCE_SCAN.   I wonder if anyone can point out the advantage of using code_scanner?

       

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Haha Good one.

       

      The Layout looks a little easier to look

      and you can exclude Search String in the new Transaction Code.

       

      Thanks for pointing the old Program I forgot about it 🙂

       

      I have updated the blog with both options.

       

      Author's profile photo Michelle Crapo
      Michelle Crapo

      Thank you!  I'm going to try to use code_scanner the next time I search.

      Author's profile photo Sebastien Phan
      Sebastien Phan

      thanks, I will show to my team!

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Welcome Glad you liked it

      Author's profile photo Viraj Saha
      Viraj Saha

      Thanks for this wonderful summary.

      Author's profile photo Thomas Buerki
      Thomas Buerki

      It seems as coding in enhancements seems to be a blind spot for both RS_ABAP_SOURCE_SCAN and CODE_SCANNER.

      Example: I created the enhancement ZFI_MV45AOZZ  in include MV45AOZZ. The coding in the enhancement cannot be searched.

      Is there a way to search coding in enhancements?

      Author's profile photo arghadip kar
      arghadip kar
      Blog Post Author

      Search with proper package filter. It should work.

       

      Thanks

      Arghadip

      Author's profile photo Thomas Buerki
      Thomas Buerki

      No, package filter won't work. In the meantime I found the following useful blogs on this issue:

      Report to search ABAP code in Enhancement implementations | SAP Blogs

      Code Search in Modifications and Enhancements (without HANA) | SAP Blogs

      Author's profile photo Jaime Rodríguez Capote
      Jaime Rodríguez Capote

      Just add that the transaction CODE_SCANNER doesn't work with local packages $....

      Author's profile photo SRINIVASULU BESTA
      SRINIVASULU BESTA

      Hi arghadip kar,

       

      Thanks for the useful tip. its really useful.

       

       

      Regards,

      Srinivas

      Author's profile photo SRINIVASULU BESTA
      SRINIVASULU BESTA

      Hi arghadip kar,

       

      Thanks for the info.. its really useful..

       

       

      Regards,

      Srinivas