生活随笔
收集整理的這篇文章主要介紹了
ALV 刷新实现(自动)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
做成了感覺也很簡單的,代碼如下,相信大家都能看明白吧。
[plain]?view plain
?copy ? *&---------------------------------------------------------------------*?? *&??????Form??user_command?? *&---------------------------------------------------------------------*?? *???????事件響應(yīng)?? *----------------------------------------------------------------------*?? FORM?user_command?USING?rf_ucomm????LIKE?sy-ucomm?? ????????????????????????rs_selfield?TYPE?slis_selfield.?? ??DATA:?v_1st_c??TYPE?c,?? ????????v_answer?TYPE?c,?? ????????v_strlen?TYPE?i,?? ????????v_tips1??TYPE?string,?? ????????v_tips2??TYPE?string.?? ?? ??CASE?rf_ucomm.?? ????WHEN?'&NTE'.?"刷新?? ??????PERFORM?alv_refresh?CHANGING?rs_selfield-col_stable?? ???????????????????????????????????rs_selfield-row_stable?? ???????????????????????????????????rs_selfield-refresh.?? ????ENDCASE.?? ??ENDCASE.?? ENDFORM.????????????????????"user_command????? ??? ?*&---------------------------------------------------------------------*?? *&??????Form??alv_refresh?? *&---------------------------------------------------------------------*?? *???????text?? *----------------------------------------------------------------------*?? FORM?alv_refresh??CHANGING?po_col_stable??po_row_stable??po_refresh.?? ?? ??PERFORM?getdata.?? ??po_col_stable?=?'X'.?? ??po_row_stable?=?'X'.?? ??po_refresh?=?'X'.?? ?? ENDFORM.????????????????????"?alv_refresh??
?
在需要刷新的地方加上如下代碼:
?set?USER-COMMAND?'&NTE'.
總結(jié)
以上是生活随笔為你收集整理的ALV 刷新实现(自动)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。