最近一个需求是从ECC调用BW的报表,使用ecc的搜索帮助和权限检查。使用bw的处理结果。

就在bw写了报表程序,然后在ecc写了一个跳转用的空壳程序,其实就是一个和bw一样的选择屏幕。


然后用rfc函数跳转到bw,执行bw的报表,展示结果。

里面用到了submit传选择屏幕的情况。


所以这里整理下集中常用的方法,因网上有一篇比较不错的文章,这里直接先粘贴过来,

原文地址:http://blog.itpub.net/17204926/viewspace-607275/


1、最普通的用法


*Code used to execute a report
SUBMIT Zreport.

2、带select-options程序的Submit的用法

*Code used to populate 'select-options' & execute report
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.

seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.

* load each personnel number accessed from the structure into
* parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.

3、带parameters程序的Submit的用法


*Code used to populate 'parameters' & execute report



4、其他情况


*Submit report and return to current program afterwards




5、Submit为后台执行


*Submit report as job(i.e. in background)