內錶使用方法總結之一 定義

2021-04-13 00:43:18 字數 894 閱讀 7411

一、定義

(一)常常用下面的方法定義:

(1)先要定義結構型別或結構物件:

data/types: begin of ineobj/inetype,

...end   of

ineobj/inetype

. (2)定義內錶

data itab  

with [unique|non-unique] key

[initial size n] [with header line].

說明:tabkind: a) standard table

b) sorted table

c) hashed table

經驗:我一直常用如下方法定義內錶,且不使用帶表頭行,這樣對較清楚,例如:

data : begin of wa_student,

no type c,

name type c,

end of wa_student.

data itab_student like table of  wa_student.

(二)在sap標準程式中經常會看到如下定義方法:

帶有表頭行的內錶定義如下:

data: begin of itab occurs n,

...end   of itab.

data itab type|like linetype|lineobj occurs n [with header line].

上面的相當於如下所示定義方法:

data

itab type standard table of linetype

with non-unique default key

initial size n

with header line.

windows sc使用方法之一

sc stop 服務名 停止服務 sc start 服務名 啟動服務 sc delete 服務名 刪除服務 sc config 服務名 start auto 自動 將服務設定成自動啟動 sc config 服務名 start demand 手動 將服務設定成手動啟動 sc config 服務名 st...

Django orm的基本使用方法之一

orm d 把物件導向中的類和資料庫表一一對應起來,e 通過操作類和物件,對資料庫表實現資料的增刪改查等操作,而不需要寫sql語句 u 使用django進行資料庫開發步驟 2.生成遷移檔案 python manage.d呃py makemigrations 3.執行遷移生成資料庫表 預設使用sqli...

Jquery使用方法的一些總結

1.判斷id在網頁中是否存在 比如id user id var id index user id 0 如果該id不存在,則返回 1,否則返回乙個具體數值。從而我們可以根據結果來判斷是否存在user id。2.獲取指定範圍內的所有元素 get 比如 div get 是獲取當前div下的所有元素。獲取指...