|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
ALV - Consistency Check
By Agnihotro Sinha
for our ALV Programs output, we initially get a short dump or no data display or
dump during sorting and rearrangement of columns. These things generally results
from wrong design of Field catalog, Layout or Sorting Tables.
the error and rectifying the code definitely takes some good amount of efforts
incase it’s a complex ALV Report.
provides quite a simple and convenient way to trace out these errors and eases
the task of debugging by providing a detailed description of the errors and
use this, press SHIFT + (Double Right Click) on any empty section of the ALV
output screen of the Report as shown below in the output of the sample Report:
below SAP standard analysis screen opens up. This screen gives a detailed
technical report of the ALV Grid control used in the Report program.
has different tabs for FieldCatalog, Layout, Sort etc. which when clicked gives
individual analysis report.
example here displays 3 errors in the Report program in the initial display.
This screen basically shows a summary of errors initially. When the buttons for
Fcat or Layout are clicked above, individual errors are displayed then.
The short description of these errors is available along with a long description of selected errors.
Also it displays in tabular format the detailed design of the Fcat, Layout and other tables used to build up the ALV display. For example, below table shows how I have build my layout in the program.
can be verified from the code also as shown below:
Correction of errors:
analysis report helps us to easily correct any kind of errors as done below.
us look into the 2nd displayed error:
the error description it is quite evident that we have used a Data Element in
the Fcat, which basically doesn’t exist in the Data Dictionary. When we look
into the Fcat code in the program, we find:
change ‘WERKS’ to WERKS_D’.
and run the Report and submit for analysis by using SHIFT+Double Right click.
Below is the result. The errors got reduced to 2.
it points out that field PLANT has a wrong value which means that the
declaration of PLANT in the main Internal table, where values of PLANT are
stored, might be wrong. We look into the declaration part of the Internal table.
The PLANT field is declared with a wrong Data Type ‘WERKS’ in the Table. It
should be ‘WERKS_D’.
Correction of Error:
and run the Report and submit for analysis again. This is what we get as the
analysis result now:
Apart from this a lot of other information can be collected from this SAP standard analysis result. Hence we can conclude that this is quite a handy tool for analyzing the consistency of our ALV report generated. We can declare the ALV Grid error free only if no inconsistencies are found in this result.
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards