您的位置:首页 > 编程语言 > PHP开发

sap bw dtp 过滤例程 实现了有key值的增量处理

2014-03-14 19:17 585 查看
*&---------------------------------------------------------------------*
*&  Include           RSBC_SEL_ROUTINE_TPL
*&---------------------------------------------------------------------*

program conversion_routine.
* Type pools used by conversion program
type-pools: rsarc, rsarr, rssm.
tables: rssdlrange.
* Global code used by conversion rules
*$*$ begin of global - insert your declaration only below this line  *-*
* TABLES: ...
* DATA:   ...
*$*$ end of global - insert your declaration only before this line   *-*
* -------------------------------------------------------------------
*     Fieldname       = DISPATCH_ID
*     data type       =
*     length          = 000000
* -------------------------------------------------------------------
form c_dispatch_id

  tables l_t_range structure rssdlrange

  using i_r_request type ref to if_rsbk_request_admintab_view

        i_fieldnm type rsfieldnm

  changing p_subrc like sy-subrc.
*       Insert source code to current selection field
*$*$ begin of routine - insert your code only below this line        *-*
data: l_idx like sy-tabix.
data: lt_bic   type standard table of /bic/b0000225000. 

data: ls_bic  type /bic/b0000225000 . 

          read table l_t_range with key

               fieldname = 'DISPATCH_ID '.

          l_idx = sy-tabix.
*....

          if l_idx <> 0.

            modify l_t_range index l_idx.

          else.

            select * into corresponding fields of table lt_bic from

            /bic/b0000225000 .

              loop  at lt_bic into ls_bic.

            l_t_range-fieldname = 'DISPATCH_ID' .

            l_t_range-sign = 'E' .

            l_t_range-option = 'EQ' .

            l_t_range-low = ls_bic-/bic/dsp_id .

            append l_t_range.

              endloop.

          endif.

          p_subrc = 0.

*$*$ end of routine - insert your code only before this line         *-*
endform.

在dso中抽取到数据就不做处理了 至抽取dao中没有的数据
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  sap bw