2006 Oct 12 10:59 AM
Hi
I have a requirement like this
EMPCODE SALARY PF STATUS TOTALEARN DEDUCTION NETPAY
100 5000 300 ACTIVE 5000 300 4700
101 6000 400 ACTIVE 6000 400 5400
102 7000 500 INACTIVE 7000 500 6500
-
TOTAL 18000 16600
I want to display
NoofActiveemployyes Netpay foractiveemployy
2 10100
Noofinactivemplo
1 6500
Plz tell me how to do this..
i use reuse_block_list_append..but dont know exactly where to populate the fields...
any example ..
Thanks
2006 Oct 12 11:00 AM
2006 Oct 12 11:00 AM
2006 Oct 12 11:02 AM
Hi RK,
Find a sample code for your reference.
DATA: lv_repid LIKE sy-repid.
lv_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
i_callback_program = lv_repid
i_callback_user_command = 'USER_COMMAND'
i_callback_pf_status_set = 'PF_STATUS'.
*-- Vendor Schedule List
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
it_fieldcat = i_field_cat1
is_layout = w_lay_out1
i_tabname = '<I_TABLE>'
it_events = i_events1
TABLES
t_outtab = <i_table>.
*-- Error Lsit display
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
it_fieldcat = i_field_cat2
is_layout = w_lay_out2
i_tabname = 'I_ERROR'
it_events = i_events2
TABLES
t_outtab = i_error[].
w_print-reserve_lines = 2.
w_print-no_print_listinfos = c_x.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'
EXPORTING
is_print = w_print.
ENDFORM. " f0504_create_list
*-- Top of Page
FORM top_of_page.
WRITE: sy-title.
ENDFORM.
Reward point if it helps.
Manish