天天看點

SAP CRM WebClient UI裡的檔案是如何上傳到ABAP Netweaver背景的

使用Chrome開發者工具調試CRM WebClient UI裡附件上傳的功能: 從本地選擇一個檔案,斷點觸發:

SAP CRM WebClient UI裡的檔案是如何上傳到ABAP Netweaver背景的

前端取得使用者選中上傳的檔案名: Jerry.txt

SAP CRM WebClient UI裡的檔案是如何上傳到ABAP Netweaver背景的

點Attach按鈕後,觸發ABAP背景的事件處理函數:

SAP CRM WebClient UI裡的檔案是如何上傳到ABAP Netweaver背景的
SAP CRM WebClient UI裡的檔案是如何上傳到ABAP Netweaver背景的

從Chrome開發者工具的network标簽能觀察到,UI向ABAP背景發送了一個http post請求:

SAP CRM WebClient UI裡的檔案是如何上傳到ABAP Netweaver背景的

背景依次處理所有的form parts:

SAP CRM WebClient UI裡的檔案是如何上傳到ABAP Netweaver背景的

從對應的form part裡取出檔案名稱和檔案類型:

SAP CRM WebClient UI裡的檔案是如何上傳到ABAP Netweaver背景的

以及實際的檔案内容(由于security原因,該form part的内容無法在Chrome開發者工具的network标簽裡觀察到)

SAP CRM WebClient UI裡的檔案是如何上傳到ABAP Netweaver背景的

但是在ABAP調試器裡看到的上傳的檔案内容仍然和檔案本地用UltraEdit打開觀察到的一緻。

SAP CRM WebClient UI裡的檔案是如何上傳到ABAP Netweaver背景的

繼續閱讀