SAP Control framework系列(11)
3).调用flush方法,同步
* All methods that operates on controls are transferred to the frontend
* by a RFC calls. the method FLUSH is used
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc > 0.
* Display an error message
ENDIF.
4).在ok_code的处理的时候调用call_met->load_text
when 'IMP'.
create object call_meth_ref.
call method call_meth_ref->load_text.
5).测试结果:
点击import之后:
注意:因为每次调用的时候都会创建call_meth对象,所以会重新添加记录到内表,这样就避免了每次都要clear内表。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/190059/viewspace-476646/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/190059/viewspace-476646/