2008 Feb 27 8:17 AM
hi,
in my alv grid display the top-of-page event is getting triggered every time the user-command triggers.when i click on save the top-of-page is getting triggered 3 times when i double click on check box top-of-page getting triggered 2 times.
and i want the code for select all check boxes.like when u press the select all button the value of all the check boxes should be 'X' i.e the check box is checked.
can anyone solve my problem.
regards,
santosh.
hi,
in my alv grid display the top-of-page event is getting triggered every time the user-command triggers.when i click on save the top-of-page is getting triggered 3 times when i double click on check box top-of-page getting triggered 2 times.
and i want the code for select all check boxes.like when u press the select all button the value of all the check boxes should be 'X' i.e the check box is checked.
can anyone solve my problem.
regards,
santosh.
2008 Feb 27 8:32 AM
hi do like this......
wa_events-name = 'TOP_OF_PAGE'.
wa_events-form = 'TOP_OF_PAGE'.
APPEND wa_events TO it_events.
W_LAYOUT-BOX_FIELDNAME = 'CHECKBOX'.
FORM fill_cat USING value(p_1259)
value(p_1260)
value(p_1261)
value(p_1262) .
w_fieldcat-col_pos = p_1259.
w_fieldcat-fieldname = p_1260.
if p_1260 = 'CHECKBOX'.
w_fieldcat-checkbox = 'X'.
w_fieldcat-edit = 'X'.
endif.
w_fieldcat-tabname = p_1261.
w_fieldcat-reptext_ddic = p_1262.
APPEND w_fieldcat TO t_fieldcat.
CLEAR w_fieldcat.
regards,
venkat.
2008 Feb 27 8:40 AM
Hi,
I guess u mean that the header data is displaying twice or thrice wen u click on save by 'top-of-page event is triggered'. If so, I feel that u havenot cleared ur workarea after appending to the header internal table.
Try clearing it.
Hope this works.
Regards,
Ramya
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |