2007 Sep 21 7:57 AM
Hi,
Im using REUSE_ALV_HIERSEQ_LIST_DISPLAY.
And In that one of the date field is INPUT field. Initially that date field will be NULL.
Problem is:
When I input date in any of the rows. Same value will get filled for all the subsequent rows following it.
Can any one pls help me how to solve this?
Thanks
Hi,
Im using REUSE_ALV_HIERSEQ_LIST_DISPLAY.
And In that one of the date field is INPUT field. Initially that date field will be NULL.
Problem is:
When I input date in any of the rows. Same value will get filled for all the subsequent rows following it.
Can any one pls help me how to solve this?
Thanks
2007 Sep 21 7:58 AM
hi
just try this....
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
i_callback_program = g_repid
I_CALLBACK_PF_STATUS_SET = ' '
<b>I_CALLBACK_USER_COMMAND = 'USER_COMMAND' </b>
is_layout = gs_layout
it_fieldcat = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = 'A'
IS_VARIANT =
IT_EVENTS = d_eventcat
IT_EVENT_EXIT =
i_tabname_header = 'GT_HEADER'
i_tabname_item = 'GT_ITEM'
I_STRUCTURE_NAME_HEADER =
I_STRUCTURE_NAME_ITEM =
is_keyinfo = gs_key
IS_PRINT =
IS_REPREP_ID =
I_BUFFER_ACTIVE =
I_BYPASSING_BUFFER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab_header = gt_header[]
t_outtab_item = gt_item[]
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
MESSAGE S398(00) WITH r_ucomm.
CASE r_ucomm.
----
ENDCASE.
ENDFORM. "user_command
I have tried with 'LIST_MODIFY' event and 'DATA_CHANGED' event too:
d_eventcat-name = 'LIST_MODIFY'.
d_eventcat-form = 'LIST_MODIFY'.
APPEND d_eventca.
d_eventcat-name = 'DATA_CHANGED'.
d_eventcat-form = 'DATA_CHANGED'.
APPEND d_eventca.
Are OK these definitions? :
FORM LIST_MODIFY
USING P_tabname TYPE SLIS_TABNAME
P_index type sy-tabix
P_index_slave type sy-tabix
P_index_sum type sy-tabix.
endform. "LIST_MODIFY
FORM DATA_CHANGED USING rr_data_changed TYPE REF TO
cl_alv_changed_data_protocol.
----
ENDFORM.
thanks,reward points if helpful....
Message was edited by:
Velmurugan
2007 Sep 21 8:02 AM
hi prabha
pls follow this is this is use in my prog is working def.
form f_report_display tables p_t_header like t_ekko
p_t_item like t_ekpo
p_t_fieldcat like t_fieldcat
using p_x_print TYPE slis_print_alv.
DATA: l_repid TYPE sy-repid.
l_repid = sy-repid.
t_keyinfo-header01 = 'EBELN'.
t_keyinfo-item01 = 'EBELN'.
*CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
i_callback_program = l_repid
i_callback_user_command = c_user_command
it_fieldcat = p_t_fieldcat[]
i_default = 'X'
i_tabname_header = 'T_EKKO'
i_tabname_item = 'T_EKPO'
is_keyinfo = t_keyinfo
is_print = p_x_print
TABLES
t_outtab_header = p_t_header[]
t_outtab_item = p_t_item[].
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. " f_report_display
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |