How can I determine what report was used to start the SQL statement?
In SAP versions up to 6.40, the prerequisite is that you can determine the report that implemented an processing-intensive SQL statement using the SAP profile parameter dbs/ada/register_appl_info. Set this parameter in the instance profile. For more information, see Note 216208. If the setting was made in line with Note 216208, the list layout can be changed in the Command Monitor so that the calling ABAP program is also displayed. You can then go directly from the Command Monitor to the call point in ABAP. If it is still not clear there in which context the source code will run, a where-used list can return further information. Information on the triggering transaction can also be determined by capturing a current query in SM66 or by a permanent SQL trace restricted to the table using ST05. If no report name is displayed in the Command Monitor, the statement is called by a tool or script outside the R/3 System. If branching using a source code button fails, you may have dynamically ge