Chinaunix首页 | 论坛 | 博客
  • 博客访问: 721412
  • 博文数量: 158
  • 博客积分: 6010
  • 博客等级: 准将
  • 技术积分: 1643
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-11 14:37
个人简介

人法地,地法天,天法道,道法自然

文章分类

全部博文(158)

文章存档

2022年(1)

2020年(3)

2016年(1)

2014年(7)

2013年(4)

2010年(5)

2009年(86)

2008年(25)

2007年(26)

我的朋友

分类:

2007-11-02 17:07:26

*&---------------------------------------------------------------------*
*& Report  ZTEST_GRID                                                  *
*&                                                                     *
*&---------------------------------------------------------------------*
*&                                                                     *
*&                                                                     *
*&---------------------------------------------------------------------*
REPORT  ZTEST_GRID
 NO STANDARD PAGE HEADING
 LINE-SIZE 50
 LINE-COUNT 65.
TABLES MARA.
DATA: choice(1) TYPE C,
      NUM1 TYPE I.
data : begin of itab occurs 0,
       matnr like mara-matnr,
       meins like mara-meins,
       end of itab.
START-OF-SELECTION.
SKIP.
ULINE .
write :  10 '在表格内双击屏蔽(选择一项或多选项)' centered .
uline .
uline .
WRITE: / SY-VLINE,(15) '物料编号', SY-VLINE,(15) '基本单位',sy-vline ,(10) '选择'centered,SY-VLINE .
uline.
*selection-screen begin of block b1 with frame title text-001.
*       parameters : p_matnr like mara-matnr.
*selection-screen end of block b1.
*
*SELECT * FROM MARA into corresponding fields of table itab where matnr = p_matnr.
*sort itab by matnr.
**DELETE ADJACENT DUPLICATES FROM ITAB COMPARING matnr .
*loop at itab.
* HIDE: itab-matnr.
* HIDE: itab-meins.
* WRITE: / SY-VLINE,(15) itab-matnr, SY-VLINE,(15) itab-meins ,SY-VLINE, 44 SELA AS CHECKBOX,(3)'',SY-VLINE.
* HIDE:SELA.
* uline.
*endloop.
SELECT * FROM MARA.
 WRITE: / SY-VLINE,(15) mara-matnr, SY-VLINE,(15) mara-meins ,SY-VLINE, 44 choice AS CHECKBOX,(3)'',SY-VLINE.
 hide : mara-matnr.
 hide : mara-meins.
 hide : choice.
uline.
 endselect.

END-OF-SELECTION.
  NUM1 = SY-LINNO - 1.
AT LINE-SELECTION.
IF SY-LSIND = 1.
  DO NUM1 TIMES.
    READ LINE SY-INDEX FIELD VALUE choice.
    IF choice = 'X'.
      WRITE: / mara-MATNR ,mara-MEINS.
    ENDIF.
  ENDDO.
ENDIF.
阅读(1696) | 评论(1) | 转发(0) |
0

上一篇:PMC简介

下一篇:J2EE vs. Microsoft.NET

给主人留下些什么吧!~~

chinaunix网友2008-09-10 14:16:00

http://www.sap99.com/ ,SAP免费资料下载 SAP99资料多多 http://www.sap99.com 有很多的学习资料,推荐一下,