2009 Feb 17 9:15 AM
Hi,
Can I display the NUMBER of records in my output internal table, anywhere apart from the TOP OF PAGE in the ALV GRID Display?
If so How can i do it?
--Naveen Inuganti
2009 Feb 17 9:26 AM
u can display it as title of alv..by passing the count to parameter
I_GRID_TITLE of
Hi,
Can I display the NUMBER of records in my output internal table, anywhere apart from the TOP OF PAGE in the ALV GRID Display?
If so How can i do it?
--Naveen Inuganti
2009 Feb 17 9:19 AM
2009 Feb 17 9:20 AM
Define a new field in your final table and pass the count of sy-tabix into that field
and display the same in output.
2009 Feb 17 9:25 AM
Hi,
Goutham wrote:
>Define a new field in your final table and pass the count of sy-tabix into that field
>and display the same in output.
But it will display a new column in my ALV GRID. I dont think it is sufficiant..!
Any other inputs?
--Naveen Inuganti.
2009 Feb 17 9:24 AM
u can display it as title of alv..by passing the count to parameter
I_GRID_TITLE of
2009 Feb 17 9:26 AM
u can display it as title of alv..by passing the count to parameter
I_GRID_TITLE of
2009 Feb 17 9:35 AM
TT,
That must be sounds good!
As I am using the method SET TABLE FOR FIRST DISPLAY, I am not sure where we can pass this?
Also,
Let me have some idea to display it in grid list display area like grand total addition we can have extra line!
--Naveen Inuganti
2009 Feb 17 11:27 AM
Title bar:
DATA:
ALV control: Layout structure
gs_layout TYPE lvc_s_layo,
title TYPE LVC_TITLE.
DESCRIBE TABLE gi_sflight LINES i.
title = i.
Set grid title
gs_layout-grid_title = title.
CALL METHOD go_grid->set_table_for_first_display
EXPORTING i_structure_name = 'SFLIGHT'
is_layout = gs_layout
CHANGING it_outtab = gi_sflight.
2009 Feb 17 10:08 AM
Can I display the NUMBER of records in my output internal table, anywhere apart from the TOP OF PAGE in the ALV GRID Display?
If so How can i do it?
This is what you had asked initially ....
Now you are saying this..
But it will display a new column in my ALV GRID. I dont think it is sufficiant..!
???
2009 Feb 17 10:14 AM
Ok...Goutham.,
As I mentioned in subject that is for ALV GRID Display only
Let me know the soultion!
_Naveen Inuganti
2009 Feb 17 12:41 PM
Hi Naveen,
To fetch the internal table attributes, you can use the following ABAP Keyword:
DATA: lin TYPE i.
DESCRIBE TABLE itab LINES lin.
For further details on DESCRIBE and How to display ALV header/Footer, follow the links below:
Link-1:
[SAP Help on DESCRIBE Keyword|http://help.sap.com/abapdocu/en/ABAPDESCRIBE_TABLE.htm#!ABAP_ADDITION_2@2@]
Link-2:
[How to display the data in ALV Grid Header|https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/abapObjects-ALVModel-UsingHeaderand+Footer]
Regards,
Nishant Nayyar.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |