2006 Jun 12 3:22 PM
hello all,
I displaying alv list with the help of reuse_alv_listdislay..... i had 2 command button on application tool and the list contians a check box and a editable field.... when one command button is pressed i the check box should get ticked .... untill here is working fine.
But when the i press the other command button to detick the check box it is not working ( it is working if it pressed double time). how to fix it?
ty
2006 Jun 12 3:25 PM
in your user_command form, do like this:
case sy-ucomm.
when <FCODE for first button>.
check_box = 'X'.
when <FCODE for second button>.
check_box = space.
endcase.
Regards,
Ravi
in your user_command form, do like this:
case sy-ucomm.
when <FCODE for first button>.
check_box = 'X'.
when <FCODE for second button>.
check_box = space.
endcase.
Regards,
Ravi
2006 Jun 12 3:25 PM
in your user_command form, do like this:
case sy-ucomm.
when <FCODE for first button>.
check_box = 'X'.
when <FCODE for second button>.
check_box = space.
endcase.
Regards,
Ravi
2006 Jun 12 3:43 PM
IF l_ucomm = 'ASEL'.
loop at i_final where aufnr <> ' '
and arbpl <> ' '
and matnr <> ' '.
i_final-release = 'X'.
modify i_final from i_final.
clear i_final.
endloop.
ENDIF.
*
IF l_ucomm = 'DSEL'.
loop at i_final where aufnr <> ' '
and arbpl <> ' '
and matnr <> ' '.
i_final-release = ' '.
modify i_final from i_final.
clear i_final.
endloop.
ENDIF.
*
this is my coding.... i am finding i_final too filling up with the check_box = 'X'. but that is not reflecting in the list after the press of the button
2006 Jun 12 3:47 PM
Hi Suresh,
Is your code working for ASEL and not working for DSEL?
Regards,
ravi
2006 Jun 12 3:48 PM
yes Ravi that is not working for DESEl.... but that works when press the button twice
2006 Jun 12 3:53 PM
Hi Suresh,
Did you try debugging it? Keep a break point as the when 'DSEl' statement.
Regards,
ravi
2006 Jun 12 3:54 PM
Hi,
You have to place this code...
in the user_command form.
FORM USER_COMMAND USING P_UCOMM LIKE SY-UCOMM
P_SELFIELD TYPE SLIS_SELFIELD.
"your logic here...after that place these two lines
<b> P_SELFIELD-ROW_STABLE = 'X'.
P_SELFIELD-REFRESH = 'X'.</b>
ENDFORM.Regards
vijay
2006 Jun 12 4:06 PM
ty that solved.
Please let me know what extactly does row_stable and refresh does
2006 Jun 12 4:12 PM
Hi,
Actually what happened in your case is First time when you click on DESEL button it is space but frontend it is not updated. because you need to refresh explicitly if you change any thing to the list. and Row_stable is used along with refrsh, it is used cases like this..
when you press page down and did some operation, then in triggered some user_command then in user_command you will call refresh , so it will go to top of page )first page. if you want to avoid you have to use row_stable. that means where ever you are before button click, you will be there only even after button click if you use row_stable = 'X'.
Regards
vijay
2006 Jun 12 3:26 PM
may be u had written the code for the second button by using double click use command like this
WHEN '&IC1'. " this is for double click
instead of &IC1 use the user command for the second button and try out
2006 Jun 12 3:44 PM
IF l_ucomm = 'ASEL'.
loop at i_final where aufnr <> ' '
and arbpl <> ' '
and matnr <> ' '.
i_final-release = 'X'.
modify i_final from i_final.
clear i_final.
endloop.
ENDIF.
*
IF l_ucomm = 'DSEL'.
loop at i_final where aufnr <> ' '
and arbpl <> ' '
and matnr <> ' '.
i_final-release = ' '.
modify i_final from i_final.
clear i_final.
endloop.
ENDIF.
*
this is my coding.... i am finding i_final too filling up with the check_box = 'X' under debug. but that is not reflecting in the list after the press of the button
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |