SUBMMIT calling program

Today saw the caller choose a way to screen by value, avoiding DATA table with more range, is retained.

  DATA: lt_seltab TYPE TABLE OF rsparams,
     lw_seltab TYPE rsparams.

  "条件
  CLEAR lt_seltab[].

  "销售组织
  CLEAR lw_seltab.
  lw_seltab-selname 'S_VKORG'.
  lw_seltab-sign    =   'I'.
  lw_seltab-option  =   'EQ'.
  lw_seltab-low  =  im_vkorg.
*      LW_SELTAB-HIGH  =  S_VKORG-HIGH.
  APPEND lw_seltab TO lt_seltab.

 

  SUBMIT zsdr012
                 WITH SELECTION-TABLE lt_seltab

                 AND RETURN.

  IMPORT it_datas = it_datas
    FROM MEMORY ID 'ZMOBILE_DATA2'.

Memory by value  

Zfm_mobile2 IMPORT  = zfm_mobile2
    the FROM  the MEMORY  ID  'ZMOBILE2' . "This part of the code is used to call the program.

 

Guess you like

Origin www.cnblogs.com/lingxiaoj/p/11647025.html