Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos

Most of us have been developing and using ALV reports for quite sometime now. I haven’t noticed any web logs that give steps of how to go about creating an ALV report from scratch, using control framework technology. Using reusable function module, I am sure the programmers should be able figure out how to use the same. So, I thought it would be a good idea to give the basic steps in creating an ALV report and then follow it up with next web logs where the advanced features of the ALV grid will be used.


Once we reach a certain stage with ALV grid, we will move on to other controls that SAP provides (Tree Control, Text Edit Control etc).


The main difference between a classical report and an ALV report is that we need to create a screen with controls on the same in an ALV report as opposed to in a classical report where we do NOT deal with screens directly, rather use a write statement.


In the example report we will try to develop a simple report to display the material details.


Following the basic structure of a report program ...





In the Screen 100

On the screen, place a control (Can found in the toolbar on the left hand side and maximize to occupy the entire screen (200 x 240). In the attributes of the screen, check the resizing options for both vertical and horizontal. By doing this system will automatically take care of the double scroll bars that might appear, one for the grid if you have got more data and the other one for the screen.












This report should display a basic ALV Report with the standard toolbar of ALV, which will give the user options to SORT, change the display order, total, sub-total by a specific column etc.



In the next weblog we will see how to control access to the save / change layouts, how to select a layout at the selection screen level etc etc.

2 Comments