`
moonfly2004
  • 浏览: 56436 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

Users Dialogs: Lists

 
阅读更多
data: wa_spfli type spfli,
          wa_sflight type sflight.


start-of-selection.

* Read data for primary list and display
  select carrid connid airpfrom cityfrom airpto cityto deptime arrtime
         from spfli
         into corresponding fields of wa_spfli.

    format color col_key.
    write: / wa_spfli-carrid ,
             wa_spfli-connid .

    format color col_normal.
    write:   wa_spfli-airpfrom ,
             wa_spfli-cityfrom ,
             wa_spfli-airpto ,
             wa_spfli-cityto ,
             wa_spfli-deptime ,
             wa_spfli-arrtime .
*   Hide information
    hide: wa_spfli-carrid, wa_spfli-connid.

  endselect.

* Preparing regular line selection check
* CLEAR wa_spfli.



at line-selection.

  if sy-lsind = 1.

*   Check if regular line was selected
*   IF NOT wa_spfli IS INITIAL.

      write: text-001 color col_normal,      " Page header
             wa_spfli-carrid color col_total,
             wa_spfli-connid color col_total.
      skip.
      format color col_heading.
      write: text-003, text-004, text-005.
      skip.
      format color col_normal.

*     Select data for secondary list
      select fldate seatsmax seatsocc
             from sflight
             into corresponding fields of wa_sflight
             where  carrid = wa_spfli-carrid
              and   connid = wa_spfli-connid.
*       Creating secondary list
        write: / wa_sflight-fldate   color col_key    under text-003,
                 wa_sflight-seatsmax color col_normal under text-004,
                 wa_sflight-seatsocc color col_normal under text-005.
      endselect.

*   ENDIF.

  endif.
 AT LINE-SELECTION 可以嵌套使用 通过 sy-lisnd 来判断当前是第几层,参数传递通过 HIDE
分享到:
评论

相关推荐

    ubuntu ref

    - **Purpose**: Edit the configuration file that defines which users can use `sudo`. **4. File Managers** - **For GNOME**: `gksudo nautilus` - **For KDE**: `kdesudo konqueror` **5. Password ...

    CE中文版-启点CE过NP中文.exe

    Changed the dissect data setup from seperate yes/no/value dialogs to a single window Added a bypass option for ultimap2 on windows 1709. When using ranges, do not use interrupts, or use DBVM Added ...

    ExpressBars Suite 6.34 + source code

    * MS Outlook® Style SideBar * Full Support for ImageLists (To help reduce GDI resource usage) * DisabledImages and HotImages support * Integrated Look and Feel Controller - The ...

    Swing Hacks

    When your users want two pieces of software to work together the first thing they want to do is drag-and-drop data from their other programs to yours. This chapter covers how to do robust and ...

    Programming Excel With Vba And .net.chm

    Interact with Users Section 3.3. Do Math Section 3.4. Work with Text Section 3.5. Get Dates and Times Section 3.6. Read and Write Files Section 3.7. Check Results Section 3.8. Find Truth ...

    rx第三方控件

    users with an easy means of changing the current display order of data being retrieved from an indexed table. When the user selects the TDBIndexCombo component, it's drop-down selection list is ...

    cuteEditor6.0

    set the controls width, disable image uploading and deleting, restrict access to the source/preview tabs, hide buttons and lists that you don't want your clients to see or access. 支持...

    RxLib控件包内含RxGIF,全部源码及DEMO

    users with an easy means of changing the current display order of data being retrieved from an indexed table. When the user selects the TDBIndexCombo component, it's drop-down selection list is ...

    Diskeeper 2008 v12.0.759.0

    2. Some of the Diskeeper installation dialogs do not display correctly on computers using the High Contrast Black display setting under the Windows Accessibility Options. Note, however, the ...

    Visual C++ 编程资源大全(英文源码 控件)

    (14KB)<END><br>18,doodads.zip The project demonstrates many Windows common controls, including the extensive use of image lists. (83KB)<END><br>19,doubleedit.zip DOULBEEDIT shows how to ...

Global site tag (gtag.js) - Google Analytics