ABAP能不能将MB52的数据放在内表里
1个回答
展开全部
可以
FIELD-SYMBOLS:<fs_table> TYPE ANY TABLE,
<fs_any> TYPE any. "LIKE LINE OF it_tab .
DATA:gr_data TYPE REF TO data.
cl_salv_bs_runtime_info=>clear_all( ).
cl_salv_bs_runtime_info=>set( EXPORTING display = abap_false
metadata = abap_false
data = abap_true ).
CLEAR gr_data.
UNASSIGN <fs_table>.
SUBMIT RM07MLBS
USING SELECTION-SET '**' "Variant
WITH select-screen IN screen
AND RETURN.
TRY.
cl_salv_bs_runtime_info=>get_data_ref( IMPORTING r_data = gr_data ).
ASSIGN gr_data->* TO <fs_table>.
IF sy-subrc = 0.
itab[] = <fs_table>." itab 最终报表输出的内表
ENDIF.
CATCH cx_salv_bs_sc_runtime_info.
MESSAGE 'Unable to retrieve data! Please try other conditions.' TYPE 'E'.
ENDTRY.
cl_salv_bs_runtime_info=>clear_all( ).
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询