2016年9月30日 星期五

SAP CO - KK01 What is the Statistical Key Figures (SKF)? How to use it?

在 SAP CO 主檔資料中,其中一項為統計關鍵數字 Statistical Key Figures (SKF),其主要的目的是用在分配成本使用,不過於其他像是 Cost Center 是收集金額,SKF 主要是收集數量為主,舉例像是電話費通話時數、工作坪數、員工人數等,之後在針對特定 Cost Center 與 Cost Element 金額 (Sender) 要分配到其他 Cost Center 與 Cost Element 時 (Receiver),則可用這些量畫的資料進行比例上的分配。

T-Code : KK01 ~ 03

2016年9月21日 星期三

ABAP/4 - How to avoid dash becoming to line when you use "WRITE" statement in report

在 ABAP 如果使用 WRITE '---' 會造成字串 dash 變成一條 Line,這對於很多報表上需要呈現像是批號或產品名,這類產品如果有像是 A---1---23---5 的情況,當 user 在使用 Report 列印時,因 SAP report 預設認為是要劃 Frame,造成系統直接巴 dash 轉換直線,使得 user 無法視別 - 的數量

2016年7月23日 星期六

S_ALR_87013019 - Internal order commitment reduce value does not equal actual increase value, and available becames negtive. (order budget exceed)

User 再一次進行 MIRO 做發票驗證時出現 Budget Exceed,查詢了該 Order 後發現,該 Order 的 Commitment 減少的值大概只有一台資產的金額,但 Actual 卻增加了五台資產的金額 (該次發票驗證五台資產),且 Available 竟為負值,因此造成 user 對同 Order 相關 PO 做 MIRO 時,都會一直出現 Budget Exceed 的錯誤

2016年7月16日 星期六

ABAP/4 : How to use "Update debugging" to debug in method IF_EX_MB_DOCUMENT_BADI~MB_DOCUMENT_UPDATE (BAPI:MB_DOCUMENT_BADI)

在 BAPI MB_DOCUMENT_BADI 中有兩個 method,其中在 MB_DOCUMENT_BEFORE_UPDATE 設定 Debug 時可以進入,但如果是在 MB_DOCUMENT_UPDATE 會發現程式直接結束,雖然會執行其中的程式,但並無法進入 Debug Mode

2016年7月9日 星期六

CK40N - The root cause about the value of field KALAID / KALADAT in table KEKO had been cleared

在一次 User 告知他當天執行完 Costing Run 後,User 再使用 CK40N 去查該次 Costing Run 的結果,竟然找不到下面 WCS ... 這個料號執行 log 記錄,使用 CK40N 執行後產生的 Table KEKO 發現該料號的 KALAID (Name of Costing Run) & KALADAT (Costing Run Date) 竟然無值

2016年6月26日 星期日

OACV - How to use t-code:OACV to validate asset master field value

使用者需求常會要求防呆,而在 Asset Master 裡常會有需求像是在途不能有折舊年限,或是資產指定的 Cost Center 不能被 Block 等。

但如果寫在 USER EXIT - EXIT_SAPLAIST_003 時,又因為 User Exit 在每個動作都會觸發程式,影響 Performance,又加上要動態捉取畫面上欄位值增加處理的複雜度,因此可以考慮使用 OACV (C FI-AA View maint. validations) 進行 AS01/AS02 存檔時的卡控

2016年5月14日 星期六

SAP IMG - The relation between tax classification (SD) & tax code (FI)

在客戶主檔 XD03 的 Sales View 中,其 Billing Documents 的 Tab 下有一個 Tax Classification,當 FI Document 透過 SD 產生的傳票,其顯示的是 Tax Code,但這兩個值基本上並不相同,但卻是 SD -> FI 的一個 IMG 設定才能將其建立起來 (左邊 Tax Classification 來自 XD03 Sales View,右邊 Tax Code 在 F-22 過帳時畫面中的 Tax Code)

Visual Studio - How to use VB.NET or C# to call SAP RFC and return parameters and tables

在與 SAP 進行溝通時,最常用的方法即為 RFC,透過 RFC 的方式直接將需要的資料回傳或是將 SAP 需要的資訊進行上傳,以下將以 .NET 的 VB 與 C# 進行說明

事前準備,先建立好兩個要測試的 RFC

第一個是 Z_HELLO_WORLD,傳入一個 NAME,然後回傳訊息 Hello NAME,主要是進行參數的 Import 與 Export 練習

2016年5月12日 星期四

2016年1月31日 星期日

FAGLL03 - Account XXXXXXXX, company code XXXX is clearing account (Message no. MSITEM111)

當在 SAP 使用 FAGLL03 查詢 zero balance clearing Account 出現異常訊息時 (FAGLL03 - Account XXXXXXXX, company code XXXX is clearing account (Message no. MSITEM111))

2016年1月30日 星期六

SE16N - How to resolve command &SAP_EDIT does not work problem

Reference From :  https://scn.sap.com/thread/1708973

[CAUTION] Do not use this function in SAP standard table. 
[警告] 此功能不要使用在 SAP 標準資料表 

有時侯需要維護 Add-on Table 資料,但使用 SE16N 並在 command mode 輸入 &SAP_EDIT 時,並進入 Table 維護畫面時,仍然無法出現新增、刪除、複製等編輯功能

2016年1月10日 星期日

SAP IMG - How to default price control in material master (T-Code:MM01)

在料號主檔的 Accounting 1 View 中,其中欄位 Price Control,會發現建立料號時,無法對其進行修改,並且有 Default 值,主要來自於 Material Type 的主檔的設定 (T-Code:OMS2)

在 OMS2 中可以發現預設的 Price Control 值,而下方如果勾選 Price ctrl mandatory,則在料號主檔無法進行修改

2016年1月2日 星期六

AFAB - Depreciation Posted But No Accounting Document Generated

執行 AFAB 後,發現 AM Posted value 中 Depreciation posted/planned 已 Posted,但 FI document 卻失敗未產生

T-Code : AFBP display message "restart the posting run"
如果發現 There are errors in the posting run. After correcting, restart the posting run 則再修正異常時,使用 T-Code : AFAB 重跑即可,目前可使用右上方的 Log of schedule manager (F5) 進行確認問題

How to install & specified python version or distreibtuion package version in google colab

在買了 RTX 3080 要來 挖礦...  嗯~是跑機器學習後,結果發現了 GOOGLE COLAB,其實之前在「GAN 對抗式生成網路」一書就有看到,但資訊人就是什麼都想自己安裝,在本機用 Anaconda + pyCharm 弄了 GPU 環境,結果有天從新竹回家發現家裡沒...