2007 Jun 27 11:04 AM
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
2007 Jun 27 11:12 AM
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
2007 Jun 27 11:14 AM
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...........
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |