100. Actual case analysis - According to the records of the application log, find out which line of ABAP code generated this log

The motivation for writing this article comes from a question from a friend of the author’s Knowledge Planet :

When calling bapi to create master data, an error is reported, and there is no characteristic parameter file assigned to the material group. What is the reason for this? Actual viewing, the feature file has been generated

insert image description here
insert image description here

This friend provided a screenshot of the application log (ie Application Log). Regarding the detailed usage of the application log, the author has already introduced it in the previous article.

As you can see from my reply on Knowledge Planet in the picture above, there is actually a general solution to this kind of problem, that is, starting from the records in the application log records, first find the Message Class and Message Number corresponding to the error message, and then pass the transaction code SE91 In the Cross Reference, also called Where Used List function to find out which sentence of ABAP code throws this message.

Let's get familiar with this process through a simple example. The following is a detailed step-by-step explanation.

Guess you like

Origin blog.csdn.net/i042416/article/details/131352100