Skip to Content
Author's profile photo Rahul Mahajan

Internal Program Environment

Introduction:


Sometimes we get a requirement where we need to do some analysis based on the existing coding. Let’s say we want to replace a SELECT statement in a program with new SELECT or we want to find out the DATABASE Operations happening in a program like MODIFY, UPDATE etc.

In order to find the list of all these things, we can use a facility provided by SAP called “Internal Program Environment”.


Details:

We will take the simple example in order to understand the concept. Create a sample report ZTEST_RM as follows.

/wp-content/uploads/2013/08/3_1_262874.jpg

Now if we want to find out the details in program such as all subroutines, screens, messages, some external objects such as FM’s , Reports, Transaction codes, Some Database operations like SELECT,UPDATE,MODIFY, or some internal table operations like READ,MODIFY. The answer is “Internal Program Environment”.

/wp-content/uploads/2013/08/3_2_262875.jpg

/wp-content/uploads/2013/08/3_3_262876.jpg

Since in my report there are no subroutines available, it won’t give any result.

/wp-content/uploads/2013/08/3_3_3_262878.png

Let’s select the FM and DB operations and see the result.

/wp-content/uploads/2013/08/3_4_262877.jpg

/wp-content/uploads/2013/08/3_6_262880.jpg

Please note that this very simple example but in complex scenarios when we have such requirement this utility can be useful.

I look forward for your Suggestions/discussions.

Thanks for reading!

Assigned tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo solen dogan
      solen dogan

      its always useful to know!!

      Environment analysis can also be accessed from Repository İnformation System

      you just choose the object and right click at Environment Analysis

      🙂

      Author's profile photo Rahul Mahajan
      Rahul Mahajan
      Blog Post Author

      Thanks Solen! 🙂

      Author's profile photo Former Member
      Former Member

      I had stumbled upon this by accidentally pressing F9 instead of F8 in first screen of SE38 transaction.

      Author's profile photo Rahul Mahajan
      Rahul Mahajan
      Blog Post Author

      🙂

      Author's profile photo Sriranjani Chimakurthy
      Sriranjani Chimakurthy

      Good Information Rahul. Often we get such requirements from functional team 🙂 .

      Thanks and Regards,

      Sriranjani Chimakurthy.

      Author's profile photo Rahul Mahajan
      Rahul Mahajan
      Blog Post Author

      Thanks Sriranjani!