Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7189143
  • 博文数量: 655
  • 博客积分: 10264
  • 博客等级: 上将
  • 技术积分: 8278
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-04 17:47
个人简介

ABAP顾问

文章分类

全部博文(655)

文章存档

2017年(2)

2014年(8)

2013年(3)

2012年(2)

2011年(18)

2010年(102)

2009年(137)

2008年(274)

2007年(134)

分类:

2010-02-13 16:02:18

REPORT  z_barry_spool_list .

DATA: result_tsp01 LIKE TABLE OF tsp01sys WITH HEADER LINE ,
      g_rqclie LIKE rqclie_t OCCURS 0 WITH HEADER LINE ,
      g_rqowne LIKE rqowne_t OCCURS 0 WITH HEADER LINE ,
      g_rqcred LIKE rqcred_t OCCURS 0 WITH HEADER LINE .

g_rqclie-sign = 'I'.
g_rqclie-option = 'EQ'.
g_rqclie-low = sy-mandt.
APPEND g_rqclie.

g_rqowne-sign = 'I'.
g_rqowne-option = 'EQ'.
g_rqowne-low = sy-uname.
APPEND g_rqowne.

g_rqcred-sign = 'I'.
g_rqcred-option = 'BT'.
g_rqcred-low = sy-datum - 30 .
g_rqcred-high = sy-datum.
APPEND g_rqcred.


CALL FUNCTION 'RSPO_ISELECT_SPOOLREQS'
  EXPORTING
    rfcsystem    = sy-sysid
  TABLES
    s_rqclie     = g_rqclie
    s_rqowne     = g_rqowne
    s_rqcred     = g_rqcred
    result_tsp01 = result_tsp01
  EXCEPTIONS
    error        = 1
    OTHERS       = 2.
IF sy-subrc <> 0.
  EXIT.
ELSE.
  LOOP AT result_tsp01.
    WRITE : / result_tsp01-rqident ,
              result_tsp01-rqowner ,
              result_tsp01-rqcretime,
              result_tsp01-rqdeltime.
  ENDLOOP.
ENDIF.

另一个稍微复杂的SPOOL的例程:
阅读(2990) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~