请教,在ALV报表中输出的数据,修改以后,再把修改后的数据输出

2025-01-08 08:12:24
推荐回答(2个)
回答1:

请教,在ALV报表中输出的数据,修改以后,再把修改后的数据输出,有这样例子吗?怎么解决?谢 谢了 First, I don't know exactly what you want to do. If some data in an ALV line has been changed, the change will be there. If you are making some change manually in user callback command, you can refresh the data as I do below FORM callback_user_command USING pv_ucomm TYPE sy-ucomm ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ps_selfield TYPE slis_selfield. ?FIELD-SYMBOLS: LIKE LINE OF gt_alv_new, ? ? ? ? ? ? ? ? ?LIKE LINE OF gt_r1_alv. ? ? ?LOOP AT gt_r1_alv ASSIGNING . ? ? ? ?READ TABLE gt_alv_new ASSIGNING ? ? ? ? ? ? ? WITH KEY avm_nr ? ? = -avm_nr ? ? ? ? ? ? ? ? ? ? ? ?pos_nr ? ? = -pos_nr. ? ? ? ?CHECK sy-subrc = 0. ? ? ? ?MOVE-CORRESPONDING TO . ? ? ?ENDLOOP. ? ? ?IF sy-subrc = 0. ? ? ? ?ps_selfield-refresh = 'X'. ?" refresh the data in output ? ? ?ENDIF. ENDOFRM.

回答2:

gt_r1_alv这个怎么定义,谢谢了. It was just an internal table for my sample. It might be more helpful if you post your code here