ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Memo

Memo

原创 Linux操作系统 作者:hekexi316 时间:2010-07-22 15:15:22 0 删除 编辑
SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L1S32 { color: #3399FF; } .L1S33 { color: #4DA619; } .L1S52 { color: #0000FF; } 1.demo_select_dynamic_columns
DATA
: line(72) TYPE c.
DATA: list LIKE TABLE OF line(72).

line = 'cityfrom cityto'.
append LINE TO list.

2
reset===>
clear line.

3.
SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L1S31 { font-style. italic; color: #808080; } .L1S52 { color: #0000FF; } SELECT DISTINCT (list)    "DISTINCT(list)==>error, because DISTINCT is not a function

4.
when we use bracket to include something, ABAP will interpret it
for example
DATA name(10) TYPE c VALUE 'SCARR'.

SELECT  *
  INTO  wa
  FROM  (name) CLIENT SPECIFIED
  WHERE mandt = '000'.  "current client is 800

CLIENT SPECIFIED

Effect:

This addition deactivates the automatic client handling of Open SQL. If the addition CLIENT SPECIFIED is used, the client identifier specified in source is taken into account. Without the addition CLIENT SPECIFIED, the ABAP runtime environment does not transfer the client identifier specified in source to the database system, but transfers the identifier of the current client instead.

5
SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L1S33 { color: #4DA619; } .L1S52 { color: #0000FF; } CONCATENATE 'cityfrom = ''' city1 '''' into cond.
APPEND cond to itab.
CONCATENATE ' OR cityfrom = ''' city2 '''' into cond.
APPEND cond to itab.
CONCATENATE ' or cityfrom = ''' 'BERLIN' '''' into cond.


WHY 4 ==》 ''''            ????????????????

6
HIDE: wa-carrid, wa-connid, wa-seatsmax.

ENDSELECT.

AT LINE-SELECTION.

  WINDOW STARTING AT 45 3 ENDING AT 85 13.

  WRITE: 'Alternative Plane Types',
         'for', wa-carrid, wa-connid.

  ULINE.


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13895577/viewspace-668760/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-05-02

  • 博文量
    38
  • 访问量
    57871