注册 登录
壹佰网|ERP100 - 企业信息化知识门户 返回首页

的个人空间 https://www.erp100.com/?0 [收藏] [复制] [RSS]

日志

ABAP_SAMPLE1

已有 370 次阅读2008/4/2 16:30

**----------------------------------------------------

** 用Hide 技术从列表中读取行

**----------------------------------------------------


TABLES SPFLI.

 DATA : SELA(1) TYPE C,
        NUM1 TYPE I.

 START-OF-SELECTION.
 SKIP.

 ULINE AT /(95).

  WRITE:/ sy-vline,' ',sy-vline, (15) 'CARRID', sy-vline, (15) 'CONNID',
sy-vline, (15) 'Country',sy-vline,(15) 'CityFrom',sy-vline,(15)
'AIRFROM',sy-vline.

 ULINE AT /(95).

 SELECT * FROM SPFLI.
  WRITE :/ sy-vline,SELA AS Checkbox,sy-vline,(15)  SPFLI-Carrid,
sy-vline
, (15) SPFLI-CONNID, sy-vline,(15)  SPFLI-COUNTRYTO,sy-vline,(15)
SPFLI-CITYFROM, sy-vline,(15) SPFLI-AIRPFROM,sy-vline.

HIDE : SPFLI-CARRID,SPFLI-CONNID,SPFLI-COUNTRYTO, SPFLI-CITYFROM,
SPFLI-AIRPFROM.

ULINE AT /(95).

HIDE: SELA.

ENDSELECT.

END-OF-SELECTION.
 
 Num1 = sy-linno - 1.

 AT LINE-SELECTION.
  IF sy-lsind = 1.
   Do NUM1 Times.
    READ Line sy-index FIELD VALUE SELA.
     IF SELA = 'X'.
      WRITE :/ SPFLI-CARRID,SPFLI-CONNID, SPFLI-COUNTRYTO,
      SPFLI-CITYFROM, SPFLI-AIRPFROM.
     ENDIF.
   ENDDO.
  ENDIF.

评论 (0 个评论)

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/30 00:58 , Processed in 0.007920 second(s), 12 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

返回顶部