on 07-15-2004 6:08 PM
Hello All,
is possible to put a title to the ALV grid (objects)with more than one line of text?
For Example:
-
Title of ALV
Date Creation: 0000.00.00
Time: 00:00:00
Thanks for any information.
Hi Alejandro,
1. Since u are using ALV OO,
u must have defined a screen layout.
2. Place 3 fields on top side of the alv container.
3. Populate them in your PBO.
4. This is the simplest solution.
Regards,
Amit M.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi at all,
i´ve have another question. Is it possible to refresh the header by using reuse_alv_grid_display? I´m setting the selfield-refresh parameter but nothing happens with my header.
kind regards
Thorsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, we can put
just handle in the following way
CLASS LCL_EVENT_RECEIVER DEFINITION.
PUBLIC SECTION.
METHODS HANDLE_TOP_OF_PAGE
FOR EVENT PRINT_TOP_OF_PAGE OF CL_GUI_ALV_GRID.
ENDCLASS. "
CLASS LCL_EVENT_RECEIVER IMPLEMENTATION.
METHOD HANDLE_TOP_OF_PAGE.
write: 'hymavathi'.
sy-uline.
write: 'abc'
ENDMETHOD . "handle_top_of_page
ENDCLASS . "cl_event_receiver
In the above way u can get any number of lines u want.
also u have to set the print parameters, then only u can see the o/p.
data: LS_PRINT TYPE LVC_S_PRNT.
LS_PRINT-GRPCHGEDIT = 'X'.
LS_PRINT-RESERVELNS = '3'.
LS_PRINT-NO_COLWOPT = 'X'.
AND THIS U NEED TO PASS IN THE METHOD SET_TABLE_FOR_FIRST_DISPLAY.
NOTE: IN GRID DISPLAY U CANT SEE THE TOP OF PAGE.BUT U CAN SEE IN THE PRINT PREVIEW.
Hi
Propositions made for this thread can not solve Alejandro's problem I think. Because his ALV is developed by instantiating the class "cl_gui_alv_grid" class as he mentioned in his question.
The class has no "TOP_OF_PAGE" event and that's why you cannot use 'REUSE_ALV_COMMENTARY_WRITE' function module.
To insert a header like the one "REUSE_ALV_..." uses, the developer may insert an HTML viewer and make use of dynamic documents.
*--Serdar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes it is possible .
what you can do is Use the Events parameter in the ALV
In the events you will have one event as top-of-page so fill this text over there and you will get the desired result and the same way way you can handle other events just like end-of page etc.
Regards,
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Code is here, u can have only one header line and followed by en-number of item lines. This code to be called in top_of_page event.
DATA:t_listhdr TYPE slis_t_listheader WITH HEADER LINE.
l_listhdr-typ = 'H'.
l_listhdr-info = text-020. " Heading
APPEND l_listhdr.
CLEAR l_listhdr.
l_listhdr-typ = 'S'.
CONCATENATE 'Run By:-' sy-uname ',' 'Date:-' sy-datum
',' 'Time:-' sy-uzeit
INTO l_listhdr-info SEPARATED BY space.
APPEND l_listhdr.
CLEAR l_listhdr.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = l_listhdr[].
Prabhu Rajesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
sorry abt the first post. It was a mistake. Actually u have 2 queries and by mistake i posted for wrong one.
Hope you will neglect that.
Regards,
S. Ali Shabbar Jafri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
Using this tool you can download or upload Smart forms or Smart styles. For example: Using this tool you can migrate your smart form/ smart style from 4.6C to 4.7 . This tool downloads smart form or smart style as an text file in you PC. Installation Procedure: 1. Create a simple ABAP report program 2. Copy the tool code 3. Paste the code in you ABAP report program. 4. No need to create text elements or selection screen text. 5. This tool creates all the necessary text elements and selection screen text itself. 6. Do not add any other line even REPORT Zxyz As the REPORT statement is there in the tool itself. Do not add any blank line or so. 7. Activate the program 8. Execute it.
Hope this works for you.
----
( Deleted code entered by mistake,see next post.)
----
Regards,
Ali Shabbar Jafri
Message was edited by: Mary Joan Hebert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This may be a bit late for the original question but for those that come later. Yes there is a standard method for creating information at the top of your page in ALV. Use the
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
i_logo = 'XXX_BACKGROUND'
it_list_commentary = t_listheader.
This function module is called as an event so you also need to call top-of-page with:
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = rt_events.
The events processing has many events available for ALV processing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is not possible.
The function REUSE_ALV_GRID_DISPLAY only allows one line of text to be entered as the heading. The parameter I_GRID_TITLE is used to set the title if required to be different. It allows up to 70 characters. Is this not enough ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
In fact, this is a common question but unfortunately as far as I know it is NOT possible.
*--Serdar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.