1,在select查詢中如果要指定多個數據對象,則需要將這些對象放在括號內,並用逗號隔開,eg: select * from spfli into (a, b).
2, 在二種對象運算訪問符中->與=>,對於類中的靜態組件是通過類名稱加=>直接對類進行操作的.eg: class=>comp.
3, Append與Insert r的區別: append wa to itab; insert wa into table itab
前者不能用於Hashed表, 後者不能用於Sorted表的non-unique.
4,如果要讓個選擇屏幕浮在SCREEN 1000的上面,則使用調用語句:
CALL SELECTION-SCREEN 100 STRATING AT 10 10 END AT 50 50。
5 用SELECT把多行選擇到內表: SELECT …..INTO/APPENDING TABLE ITAB. 如果希望不覆蓋原來的內表數據,則使用APPENDING.
6. 函數SY-REPID顯示的內容爲當前程序名.
7. 通過程序SHOWICON可以查看到所有的SAP ICONS.
8, 處理某事件後彈出一個信息提示窗口: call function ‘popup_to_inform’ exporting title1= ‘xx’ txt1 = ‘xxx’. 另一種不彈出的則爲: MESSAGE SY-REPID TYPE ‘I’.
-----------------------------------------本人經常用到的幾個表----------------------------------------------
1,Master data table:
CEPC->PROFIT CENTER MASTER DATA TABLE.
CSKS->COST CENTER DATA TABLE
KNA1->CUSTOMER MASTER.
LFA1->VENDOR MASTER DATA TABLE
MARA->MATERIAL MASTER DATA
SKB1->G/L ACCOUNT MASTER DATA
T001W->PLANTS/BRANCHS
T001->COMPANY CODE DATA TALBE
2,與生產相關的幾個表:
Demand Management
PBED->Independent Requirements Data
PBIM->Independent Requirements by Material
Repetitive Manufacturing
SAFK->RS Header Master Data
S025->LIS -- Run Schedule Quantities
S026->LIS -- Material Usage
S028->LIS -- Reporting Point Statistics
CEZP->Reporting Point Document Logs
CPZP->Reporting Points – Periodic Totals
MRP Records
MDKP->MRP Document Header Data
PLSC->Planning Scenario (Long-term Planning)
MDFD->MRP Firming Dates
MDVM->Planning File Entries
S094->LIS Stock/Requirements Analysis
Reservations
RESB->Reservations/Dependent Requirements
Planned Orders
PLAF->Planned Orders
Discrete Production
AFKO->Order Header
AFPO->Order Item Detail
AFVC->Order Operations Detail
AFFL->Order Sequence Details
AFFH->Order PRT Assignment
AFBP->Order Batch Print Requests
AFRU->Order Completion Confirmations
AFFW->Confirmations -- Goods Movements with Errors
AFRC->Confirmations -- Incorrect Cost Calculations
AFRD->Confirmations -- Defaults for Collective Confirmation
AFRH->Confirmations -- Header Info for Confirmation Pool
AFRV->Confirmation Pool
AFWI->Confirmations -- Subsequently Posted Goods Movements
3,銷售相關的幾個表:
KUAGV->售達方客戶主記錄總覽.
VBDKA->詢價,報價訂單的憑證打印標題.
VBDPA->詢價報價牀單的項目明細.
BEST->末來庫存
TVK0->銷售組織(組織數據)
VBAP/VBAK->銷售訂單主從數據表
KOMVD->打印的價格確定通訊條件記錄
4,採購相關的幾個表.
EKKO/EKPO->採購訂單主從數據表
T024E->採購組織(組織數據)
SADR->地址管理,公司數據
T166U->採購憑證打印輸出的標題
EKET->計劃協議計劃行
EKKN->採購憑證中的帳戶設置.
T166K->採購憑證打印輸出中的標題文本,IMG下的DEFINE TEXT FOR PO關聯
MSEG->憑證段物料
RM06P->採購憑證打印輸出的輔助字段
5;總分類帳幾個相關表.
SKA1->科目表
SKB1->公司代碼
SKAT->科目表說明
SKAS->會計科目代碼清單
6,物料分類相關幾個表.
KLAH->Class Detail
CABN->Characteristic Detail
AUSP->Characteristic Values
CAWN->Characteristic Values
CAWNT->Characteristic Value Texts
KSML->Characteristic Allocation to Class
KSSK->Material Allocation to Class
7,幾個用到的系統表.
DD03L->TABLE FIELDS OF ALL SAP
TBTCO->查看JOB STATUS/OVERVIEW TABLE.
T247->月份對照表.
DDO2L->ALL SAP TABLES
TNAPR->所有相關的OUTPUT報表信息程序,子程序,報表
TSTC->SAP ALL TRANSCATION CODE
USR02->保存PASSWORD的表
TRDIR->ABAP程序列表