没有合适的资源?快使用搜索试试~ 我知道了~
分批取数 多线程数据处理
4星 · 超过85%的资源 需积分: 37 36 下载量 122 浏览量
2014-04-14
14:48:44
上传
评论 2
收藏 5KB TXT 举报
温馨提示
分批取数 多线程数据处理
资源推荐
资源详情
资源评论
*&---------------------------------------------------------------------*
*& Report ZW_ARCHIVE_TEST
*&
*&---------------------------------------------------------------------*
*& In this connection, the following ABAP/4 statements are not allowed:
*& - CALL SCREEN
*& - CALL DIALOG
*& - CALL TRANSACTION
*& - SUBMIT
*& - MESSAGE W... and MESSAGE I... and MESSAGE E...
*& - COMMIT WORK, ROLLBACK WORK
*& - COMMUNICATION RECEIVE
*& - STOP
*& - REJECT
*& - EXIT FROM STEP-LOOP
*&---------------------------------------------------------------------*
REPORT zw_archive_test.
DATA: taskname(10) TYPE n VALUE '1',"Task name administration
snd_jobs TYPE i VALUE 0,"Sent jobs
rcv_jobs TYPE i VALUE 0,"Received replies
wa_indx TYPE indx.
DATA: gt_log TYPE zesp1_message_tab_type_test WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK bl00 WITH FRAME TITLE text-000.
PARAMETERS: p_datum LIKE sy-datum OBLIGATORY DEFAULT sy-datum,"归档时间点
p_thrcnt LIKE sy-tabix OBLIGATORY DEFAULT 100,"每个线程处理数据记录条数
*& Report ZW_ARCHIVE_TEST
*&
*&---------------------------------------------------------------------*
*& In this connection, the following ABAP/4 statements are not allowed:
*& - CALL SCREEN
*& - CALL DIALOG
*& - CALL TRANSACTION
*& - SUBMIT
*& - MESSAGE W... and MESSAGE I... and MESSAGE E...
*& - COMMIT WORK, ROLLBACK WORK
*& - COMMUNICATION RECEIVE
*& - STOP
*& - REJECT
*& - EXIT FROM STEP-LOOP
*&---------------------------------------------------------------------*
REPORT zw_archive_test.
DATA: taskname(10) TYPE n VALUE '1',"Task name administration
snd_jobs TYPE i VALUE 0,"Sent jobs
rcv_jobs TYPE i VALUE 0,"Received replies
wa_indx TYPE indx.
DATA: gt_log TYPE zesp1_message_tab_type_test WITH HEADER LINE.
SELECTION-SCREEN BEGIN OF BLOCK bl00 WITH FRAME TITLE text-000.
PARAMETERS: p_datum LIKE sy-datum OBLIGATORY DEFAULT sy-datum,"归档时间点
p_thrcnt LIKE sy-tabix OBLIGATORY DEFAULT 100,"每个线程处理数据记录条数
p_maxcnt LIKE sy-tabix DEFAULT 1000."总共读取数据条数
SELECTION-SCREEN END OF BLOCK bl00.
START-OF-SELECTION.
CALL FUNCTION 'SPBT_INITIALIZE'
EXPORTING
group_name = serv_group"可不填
* IMPORTING
* MAX_PBT_WPS = 最大线程数
* FREE_PBT_WPS = 空闲线程数
EXCEPTIONS
invalid_group_name = 1
internal_error = 2
pbt_env_already_initialized = 3
currently_no_resources_avail = 4
no_pbt_resources_found = 5
cant_init_different_pbt_groups = 6
OTHERS = 7
.
PERFORM frm_do_it.
*&---------------------------------------------------------------------*
*& Form frm_do_it
*&---------------------------------------------------------------------*
* 分批取数 多线程数据处理
*----------------------------------------------------------------------*
FORM frm_do_it.
DATA: ekko_cursor TYPE cursor,
SELECTION-SCREEN END OF BLOCK bl00.
START-OF-SELECTION.
CALL FUNCTION 'SPBT_INITIALIZE'
EXPORTING
group_name = serv_group"可不填
* IMPORTING
* MAX_PBT_WPS = 最大线程数
* FREE_PBT_WPS = 空闲线程数
EXCEPTIONS
invalid_group_name = 1
internal_error = 2
pbt_env_already_initialized = 3
currently_no_resources_avail = 4
no_pbt_resources_found = 5
cant_init_different_pbt_groups = 6
OTHERS = 7
.
PERFORM frm_do_it.
*&---------------------------------------------------------------------*
*& Form frm_do_it
*&---------------------------------------------------------------------*
* 分批取数 多线程数据处理
*----------------------------------------------------------------------*
FORM frm_do_it.
DATA: ekko_cursor TYPE cursor,
剩余5页未读,继续阅读
资源评论
- 我应该怎么学2018-12-25zesp1_message_tab_type_test 这个是自建表吗?
赵伟0315
- 粉丝: 25
- 资源: 123
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功