‎2007 Oct 25 2:03 PM
Hi All,
In ALV display it's require to print two (ColumnHeading)header row.
The format of the header data like below
Price file |
-
| VLP | Valid from | OTHERS |
-
Followed by records......
Please suggest how to do that?
Regards,
M.Rayapureddy
‎2007 Oct 25 2:08 PM
If it is a header-item relationship it can be display by using the alv grid display...
‎2007 Oct 25 2:08 PM
If it is a header-item relationship it can be display by using the alv grid display...
‎2007 Oct 26 11:19 AM
Hi
just follow the code
FORM TOP_OF_PAGE.
DATA: T_HEADER TYPE SLIS_T_LISTHEADER,
WA_HEADER TYPE SLIS_LISTHEADER.
WA_HEADER-TYP = 'H'.
WA_HEADER-INFO = 'THIS IS MY FIRST ALV'.
APPEND WA_HEADER TO T_HEADER.
WA_HEADER-TYP = 'H'.
WA_HEADER-INFO = 'THIS IS SECOND'.
APPEND WA_HEADER TO T_HEADER.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = T_HEADER
I_LOGO =
I_END_OF_LIST_GRID =
I_ALV_FORM =
.
ENDFORM.
and activate this in REUSE_ALV_GRID_DISPLAY function module
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
thank you
‎2007 Oct 26 11:23 AM
Hello,
If the first line and second line of the record has some relation ship then u can go for ALV Hierarcy diaplay.
Check this sample report<b> BALVHD01</b>
Cheers,
Vasanth
‎2007 Oct 26 11:23 AM
hi,
it is not possible to display two level heading in normal ALV display..
still u need, go for <b>Hierarchial ALV display</b>.
With Rgds,
S.Barani
‎2007 Oct 26 11:27 AM
This is not possible in ALV Grid Display.
You can use 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'. i.e. Hierarchical List Display
Pass parameters I_STRUCTURE_NAME_HEADER and I_STRUCTURE_NAME_ITEm appropriately.
‎2007 Oct 26 11:30 AM
hi,
check this out
How to add list heading like top-of-page in ABAP lists?
http://www.sapfans.com/forums/viewtopic.php?t=58775
‎2007 Oct 26 11:33 AM
Hi Malla,
If my understanding is correct, then u can go for Hierachial list display.
Us e the FM " REUSE_ALV_HIESEQ_LIST_DISPLAY"
Revrt back if any issues
Bye
Naveen