‎2008 Feb 04 1:40 PM
Hi all,
Donot use Reuse_alv_grid_display.
use Call method.. see below it..
data : it_title type lvc_title value 'User List'.
call method w_alv_grid->set_table_for_first_display
exporting
is_layout = is_layout
changing
it_outtab = IT_EMP
it_fieldcatalog = it_fieldcat
it_title = it_title------> Error Statement
exceptions
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
others = 4.
How is the correct program..?
Reply me soon,
thx,
s.suresh
‎2008 Feb 04 1:59 PM
‎2008 Feb 04 1:44 PM
Hi,
Please refer to the SAP standard demo program BCALV_TEST_HEADER.
Thanks,
Sriram POnna.
‎2008 Feb 04 1:48 PM
hi,
Declare a variable type of LVC_TITLE, you can pass the value to it and pass the variable to i_grid_title of ALV.
Also,
why u r specifying that in quotes.. 'tstct-ttext' .. give it like this.. tstct-ttext. Also check whether data is there in that field or not.
hope this helps.
regs,
Hema.
‎2008 Feb 04 1:59 PM
‎2008 Feb 04 2:10 PM
hi,
DATA:LV_TITLE TYPE LVC_S_LAYO-GRID_TITLE.
LV_TITLE = 'Summary Report'.
WA_LAYOUT-GRID_TITLE = LV_TITLE.
CALL METHOD O_GRID_DATA->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IS_LAYOUT = WA_LAYOUT
I_SAVE = 'A'
IS_VARIANT = LS_VARIANT
CHANGING
IT_OUTTAB = IT_COUNT
IT_FIELDCATALOG = IT_FLDCAT
IT_SORT = IT_SORT.
* IT_FILTER =
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.