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中没有的数据
*& 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中没有的数据
相关文章推荐
- Java实现过滤掉map集合中key或value为空的值示例
- java实现数据结构练习题--仅使用处理单个数字的I/O例程,编写一个过程以输出任意实数(可以是负的)
- 【异常处理】Incorrect string value: '\xF0\x90\x8D\x83...' for column... Emoji表情字符过滤的Java实现
- 【转】【异常处理】Incorrect string value: '\xF0\x90\x8D\x83...' for column... Emoji表情字符过滤的Java实现
- 用C语言实现对冗余层发送的数据包进行过滤判断处理
- javaWed项目中用过滤器实现转码功能,敏感词汇过滤更能,处理Get和Post接收数据中的中文乱码问题以及敏感词汇的处理
- 用循环单链表的方式实现对冗余数据包的过滤处理
- SAP-BW数据仓库增量更新
- 传输增量DTP的处理
- 使用事务码DBCO实现SAP链接外部数据库以及读取例程
- BW:DTP过滤器的例程
- 使用WBI SAP Adapter 实现IDoc的同步处理
- ABAP 例程程序在SAP BW TRANFORMATION中的应用,去除非法字符
- BW增量处理
- DTP中过滤写例程 取今天
- BW DTP过滤器的例程
- 用循环数组队列实现对冗余数据包的过滤处理
- BW从数据源2LIS_02_ITM实现增量抽数
- 批处理实现过滤重复行
- SAP_BW建模第五步之创建数据传输进程(DTP)