Where Used Analysis Code Example

The code analyzed by the Where Used action is parsed as follows:

  • The action begins with a specified object, and uses SAP’s index tables to find the ABAP programs in which the object is used.
  • The ABAP code is parsed to find where exactly the specified object is used (for example, which function, form or executable in a function group).
  • The action then finds which other objects call the referencing item.

In some cases, an object may be called externally. For example, consider an executable named E1 which looks like this:

<start of executable E1>

DATA

<executable statements>

FORM F1

CALL FUNCTION ABC

END FORM

<end of executable E1>

It is possible that FORM F1 is not called from anywhere within E1, but is called by an executable or function that is external to E1. In this case the Where Used actions find all the programs that call FORM F1, and not all the programs that call E1.

Where Used Actions