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

Re:ALV Header Text

Former Member
0 Likes
419

Hi,

i am using Reuse_alv_grid_display FM to display the output.I want my header-text in the following format.

STORAGE LOCATION

Mat no L1 L2 L3 Total Quantity.

i am giving in the fieldcatalog 4 fields Mat no, L1,L2,L3,,Quantity as seltext_m.

How can i give the storage location as text above three storage locations.

is there any option to display two lines for header text fields.

Please help me..its urgent.

Thanks

Hi,

i am using Reuse_alv_grid_display FM to display the output.I want my header-text in the following format.

STORAGE LOCATION

Mat no L1 L2 L3 Total Quantity.

i am giving in the fieldcatalog 4 fields Mat no, L1,L2,L3,,Quantity as seltext_m.

How can i give the storage location as text above three storage locations.

is there any option to display two lines for header text fields.

Please help me..its urgent.

Thanks

2 REPLIES 2
Read only

Former Member
0 Likes
398

Hi Lalit,

it is not possible like that , may be u can write the STORAGE LOCATION in top-of-page

check this and adjust the coding accordingly

/people/community.user/blog/2007/05/07/alignment-of-data-in-top-of-page-in-alv-grid

Read only

Former Member
0 Likes
398

Hi,

you can do this using top of page.

see the following example.

DATA : tevents TYPE slis_t_event,

waevents TYPE slis_alv_event .

CALL FUNCTION 'REUSE_ALV_EVENTS_GET'

EXPORTING

i_list_type = 0 "simple list

IMPORTING

et_events = tevents.

READ TABLE tevents INTO waevents

WITH KEY name = 'TOP_OF_PAGE'.

IF sy-subrc EQ 0.

waevents-form = 'PAGEHEADER'.

MODIFY tevents FROM waevents INDEX sy-tabix.

ENDIF.

&----


*& Form PAGEHEADER

&----


  • To display heading inoutbuy

----


FORM pageheader .

DATA : theader TYPE slis_t_listheader,

waheader TYPE slis_listheader.

waheader-typ = 'H'.

waheader-info = 'Inoutbuy' .

APPEND waheader TO theader.

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

it_list_commentary = theader.

ENDFORM. "PAGEHEADER

Regards,

Ruchika

Reward if useful...........