从报告中执行IP30(RISTRA20)



我从报告背景执行IP30(维护工厂调度)TCODE时面临问题。我尝试使用提交和返回,在这种情况下,它正在执行,但没有返回到呼叫者程序,它仍保留在屏幕上,单击返回按钮后,它返回到调用程序。还有其他方法....我可以轻松地做.....请帮助...

DATA: lt_seltab  TYPE TABLE OF rsparams,
        ls_seltab  LIKE LINE OF lt_seltab.
  ls_seltab-selname = 'WPLAN'.
  ls_seltab-KIND    = 'S'.
  ls_seltab-SIGN    = 'I'.
  ls_seltab-OPTION  = 'EQ'.
  ls_seltab-LOW     = '23'.
  APPEND ls_seltab TO lt_seltab.
  SUBMIT RISTRA20
    WITH SELECTION-TABLE lt_seltab AND RETURN.

您可以尝试使用呼叫交易和bdcdata。

data:
  lt_bdc type table of bdcdata,
  ls_bdc type bdcdata.
  ls_bdc-program = 'RISTRA20'.
  ls_bdc-dynpro  = '1000'.
  ls_bdc-dynbegin = 'X'.
  append ls_bdc to lt_bdc.
  ls_bdc-fnam = 'WPLAN-LOW'.
  ls_bdc-fval = 'WPLAN'.
  append ls_bdc to lt_bdc.
  ls_bdc-fnam = 'BDC_OKCODE'.
  ls_bdc-fval = '=ONLI'.
  append ls_bdc to lt_bdc.
  call transaction 'IP30' using lt_bdc mode 'N' update 'S'.

相关内容

  • 没有找到相关文章

最新更新