09-11-2006 11:45 AM
09-11-2006 11:51 AM
hi alex.
in se38 - > take this program
BCALV_GRID_05
it will help u.
anver
09-11-2006 11:47 AM
u have to create PF Status ? and u have call this Status in the FM reuse_alv_grid_display.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = PROGNAME
I_CALLBACK_PF_STATUS_SET = 'MAIN'"tHIS IS THE NAME OF THE SUBROUTINE IN WHICH YOU HAVE TO SET THE PF-STATUS AND NOT THE NAME OF THE PF-STATUS
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_TOP_OF_PAGE = 'TOP_OF_PAGE'
IS_VARIANT = VARIANT
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FIELDCAT
IT_SORT = SORT
IT_FILTER = FILTER
I_SAVE = 'A'
IT_EVENTS = EVENTS
IT_EVENT_EXIT = EVENT_EXIT
IS_PRINT = PRINT
TABLES
T_OUTTAB = ITAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
form MAIN.
SET PF-STATUS 'MAIN'.
ENDFORM.
Regards
Prabhu
09-11-2006 11:47 AM
09-11-2006 11:47 AM
hi,
pls give ur mail id.
i will send u 1 program i did,.
it will help u alot.
rgrds
anver
09-11-2006 11:51 AM
09-11-2006 11:51 AM
hi alex.
in se38 - > take this program
BCALV_GRID_05
it will help u.
anver
09-11-2006 11:54 AM
HI,
See demo program <b>BCALV_GRID_08</b>
<b>ALV LIST:</b>
call function 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = 'ZSDBOLST_REPORT'
i_callback_pf_status_set = 'STANDARD' <----
i_callback_user_command = 'USER_COMMAND'
i_structure_name = 'I_BOLACT'
i_grid_title = 'BOL Action Report'(031)
is_layout = gs_layout
it_fieldcat = gt_fieldcat[]
i_save = 'A'
is_variant = v_variant
TABLES
t_outtab = i_bolact
EXCEPTIONS
program_error = 1
others = 2.
Form Set_pf_status
Notes: Called by FM REUSE_ALV_GRID_DISPLAY
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZSTANDARD'.
ENDFORM. "Set_pf_status
<b>ALV GRID:</b>
call function 'REUSE_ALV_GRID_DISPLAY'
exporting i_callback_program = gc_repid
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
i_grid_title = lc_grid_title
is_layout = lc_layout
it_fieldcat = gt_fieldcat
it_sort = sort
i_save = l_save
is_reprep_id = l_bbs_id
is_variant = l_variant
tables t_outtab = %g00
exceptions program_error = 1
others = 2.
Regards
Sudheer
09-11-2006 11:55 AM
hi
good
go through these links, which ll give you brief idea about your requirement,
http://sap.ittoolbox.com/code/archives.asp?i=10&d=2063&a=s
thanks
mrutyun^
09-11-2006 11:58 AM
Hi,
For Grid, you can create screen for Container, in that screen you can create the buttons and add the function code, in the PAI event of that screen you can write the code to handle that buttons
see the thread for example program
http://wrenbo.jobui.com/blog/32779.html
Regards
Sudheer
09-11-2006 11:59 AM
09-11-2006 12:57 PM