2010年12月16日 星期四

CE7.2如何設定ARFC2

在CE7.2的版本設定ARFC2 – Webdynpro 與 R3溝通方式
1.      登入NetWeaver Administrator - Configuration Management - Destinations


2. 建立 WD_MODELDATA_DEST and WD_RFC_METADATA_DEST 二個 連結R3的方法

3. 於NWDS中建立ARFC2


4. 設定2個在EP建立的溝通方法,Webdynrpo將由此方法與R3溝通

變更EP配置主題與桌面

1.配置主題

路徑:
System Administration -> Portal Display -> Theme Editor
在這裏可以看到多個主題範本。選擇任一個範本,進入了Theme Editor,把它另存為"CustomerTheme",
主題的copy會稍稍花一點時間,等copy結束後,就可以看CustomerTheme了。然後對它做任意的修改了。
最後保存。

2.配置桌面
路徑:
System Administration -> Portal Display -> Desktop & Display Rules
-> Portal Content -> Portal Users -> Standard Portal Users -> Default Portal Desktop

WebDynpro Java - 欄位自帶說明方法


必須要更改標準DD_DTEL_GET的Processing Type變更成 Remote-enabled module

2010年12月13日 星期一

CE7.1取得IUser

1. 在NWDS下切至 Development Infrastructure。
2. Component Browser - Show In -> Component Properties 出現Component Properties。
3. 選擇Dependencies 頁籤後按下 - Add 。
4. 在彈出的視窗中,展開 ENGINEAPI(sap.com) 選擇 com.sap.security.api.sda 與 security_api。

   String logonID = "";
  try
  {
   IWDClientUser wdUser = null;
   try
   {
    wdUser = WDClientUser.getCurrentUser();
   }
   catch (WDUMException e1)
   {
    e1.printStackTrace();
   }
   IUser user = wdUser.getSAPUser();
   logonID = user.getName();
//   logonID = user.getUniqueID();
   wdContext.nodeZmdf1009_Input().getCurrentElement().setAttributeValue("Im_User", logonID);
   wdContext.nodeZmdf1009_Input().getCurrentElement().setAttributeValue("Im_Program", "ZMM9031");
   wdComponentAPI.getMessageManager().reportSuccess(logonID);
   wdThis.wdGetDemo05CompController().call_DEMO05();
  }
  catch (Exception e)
  {
   wdComponentAPI.getMessageManager().reportException("Error: " + e.getMessage());
   e.printStackTrace();
  }

2010年12月10日 星期五

NACE 輸出控制條件



如果要尋找一支標準程式呼叫的Smart Forms來修改
例如VA03:銷售文件 - 核發輸出至
可以利用:輸出控制條件 尋找Form,將標準Form存成新的ZForm來修改
1.T-CODE:NACE

2010年5月7日 星期五

SHD0 交易與畫面隱藏欄位變式

在某些欄位在標準T-CODE必需隱藏時
因為不想去作增強的部份
透過T-CODE:SHD0來達成
假設想讓VA03的選擇畫面隱藏某欄位時
先設立一個自設變數 :YVA03
 標準T-CODE:VA03
此時會POP UP 一個視窗 可將在 隱藏的 欄位 勾選起來
這時便完成了隱藏功能

註:VA03的下一個呈現畫面也是可以隱藏的
    值得注意的是必輸入欄位是不準隱藏的

2010年4月26日 星期一

Batch Input 概念

當想將非SAP系統格式的資料大量上傳至SAP的系統
於是我會選擇使用Batch Input的方式
T-Code:SM35

因為Batch Input的好處:
1.1.可以處理大量的Data與保證資料完整性
1.2.可以由其它系統將Data傳至SAP
1.3.可以定期將資料傳至SAP中User不用重覆鍵入資料

註:將資料傳至SAP中可透過1.Open Session 2. Call Transaction 3 Call Dialog

準備流程為:
資料分析 => 產生資料結構 => 開發程式 => 建立連續性傳檔 => 建立與處理Batch Input => 分析結果

原則上是要Create a Session
Open the Batch Input => Fill the BDCDATA => Transaction to the Session => Close the Batch Inpu