abap submit 的使用方法 不同情况

上一篇 / 下一篇  2009-06-23 15:30:48 / 个人分类:ABAP开发技术

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)