Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV query

Former Member
0 Likes
779

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

1 ACCEPTED SOLUTION
Read only

aabhas_wilmar
Contributor
0 Likes
748

If it is a header-item relationship it can be display by using the alv grid display...

7 REPLIES 7
Read only

aabhas_wilmar
Contributor
0 Likes
749

If it is a header-item relationship it can be display by using the alv grid display...

Read only

Former Member
0 Likes
748

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

Read only

Former Member
0 Likes
748

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

Read only

Former Member
0 Likes
748

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

Read only

Former Member
0 Likes
748

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.

Read only

Former Member
Read only

Former Member
0 Likes
748

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