Query Designer中模式匹配排除

     如排除一个IO的AB*值。

   

Lets assume your infoobject is ZIO. and you customer exit variable for this infoobject isZCE_IO.

 

 

Type of Variable: Characteristic Value.

 

 

    Processing By: Customer Exit.

 

 

    Variable Represents: Multiple Single Values.

 

 

    Variable Entry is: Mandatory, Not Ready for Input and Cannot be changed in Query Navigation 

 

 

WHEN 'ZCE_IO'.
        IF I_STEP = 1.
          DATA: ITAB1 TYPE STANDARD TABLE OF /BIC/SZIO WITH HEADER LINE.

          SELECT * FROM /BIC/SZIO INTO TABLE ITAB1 WHERE /BIC/ZIO LIKE 'AB%' .

          CLEAR: L_S_RANGE.
          L_S_RANGE-SIGN = 'E'.
          L_S_RANGE-OPT = 'EQ'.
          LOOP AT ITAB1.
            L_S_RANGE-LOW = ITAB1-/BIC/ZIO.
            APPEND L_S_RANGE TO E_T_RANGE.
          ENDLOOP.
          CLEAR L_S_RANGE.
        ENDIF.

 

You can restrict the infoobject on a customer exit variable(ZVAR) and try with following sample code.

 

WHEN 'ZVAR'.

 

l_s_range-sign = 'E'.

l_s_range-opt = 'CP'.

l_s_range-low = 'AB*'.

APPEND l_s_range TO e_t_range.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值