ABAP工作流(workflow)的除錯方式
There are several posts in SCN talking about workflow debugging. Most of them are manually generating an endless loop and then can launch debugger in SM50. However, if you try to debug standard workflow, you are not allowed to manual inject any endless loop in standard code. If the original developer is not so kind to leave any switchable endless loop in standard code, you have to go another way.
In this example a common debugging approach is demonstrated:
Document builder is an application provided by SAP which can allow you to generate output file with format PDF, DOCX and HTML from various input with format DOCX, HTML and TXT. The workflow is also supported. When a document is generated and released, one work flow item will be sent to the respective approver.
However during my testing, I meet with error message “Workflow without approver”, although I have maintained the approver in customizing correctly.
So I guess there must be something wrong during the agent determination of workflow runtime. In order to find the root cause I have to debug it.
the involved workflow is WS40400006.
step1: tcode SMQS to degegister the queue WORKFLOW_LOCAL_001. Never forget to re-register it once you finish debugging.
step2: step breakpoint on workflow framework method CL_SWF_RUN_WIM_EXECUTION_MGR~START_EXECUTIONS, CL_SWF_RUN_WFM~EXECUTE_QUEUES:
then repeat the steps to trigger your workflow.
step3: tcode SWI1. Now you will find one entry for your workflow item. Execute it:
the first breakpoint is triggered:
click F8, then the second breakpoint is triggered:
This method covers the fundamental logic of workflow execution engine. There is a big loop to traverse all steps which are currently executable:
After some debugging finally I found root cause: there is something wrong with my setting regarding organization unit. After fixing that the error message is gone
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2707054/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ABAP WORKFLOW工作流建立(一)
- SAP工作流介紹之ABAP Business Workflow介紹
- ABAP巨集的除錯除錯
- git-workflow[工作流]Git
- 工作流(Workflow)和BPM的區別
- 文字工作流程:Text Workflow macMac
- 【前端除錯】- 斷點除錯的正確開啟方式前端除錯斷點
- node 除錯三種方式除錯
- Node.js 啟動除錯方式Node.js除錯
- 如何開啟 ABAP Update function module 和系統程式的除錯功能Function除錯
- 文字工作流程:Text Workflow 直裝啟用版
- Jerry帶您瞭解Restful ABAP Programming模型系列之三:雲端ABAP應用除錯REST模型除錯
- 利用ABAP除錯模式修改SE16裡資料庫表的內容除錯模式資料庫
- ABAP Netweaver和git的快捷方式Git
- IsDebuggerPresent的反除錯與反反除錯除錯
- 除錯篇——除錯物件與除錯事件除錯物件事件
- SAP 業務技術平臺(BTP) Workflow(工作流)功能介紹
- 直播平臺原始碼,JavaScript 的四種除錯輸出方式原始碼JavaScript除錯
- SAP Restful ABAP Programming 程式設計模型的 Action 實現和雲端除錯介紹REST程式設計模型除錯
- Workflow Core + asp.net core 5.0 實現簡單審批工作流ASP.NET
- 第38篇 net8介面除錯方式除錯
- SAP C4C工作流(Workflow)接收方自動決定的一個例子
- 如何自動完成登入 SAP BTP workflow(工作流) 管理應用 Launchpad 所需的設定
- Windows windbg kernel debug 雙機核心除錯 - USB3.0 除錯 USB除錯 除錯線Windows除錯
- 通過單步除錯的方式學習 Angular 中 TView 和 LView 的概念除錯AngularView
- 通過單步除錯的方式學習 Angular 中帶有選擇器的內容投影使用方式除錯Angular
- 實現ABAP條件斷點的三種方式斷點
- Flutter Tools的除錯Flutter除錯
- chrome的除錯技巧Chrome除錯
- nodejs的除錯debugNodeJS除錯
- SAP ABAP Function Module 的動態呼叫方式使用方式介紹試讀版Function
- Python 程式碼除錯—使用 pdb 除錯Python除錯
- nginx 錯誤除錯Nginx除錯
- 實現 ABAP 條件斷點的三種方式分享斷點
- Dynamics 365 自定義工作流使用Plugin Registration Tool Profiler除錯時無法顯示Steps的問題Plugin除錯
- Chrome DevTools 的 Sources 除錯Chromedev除錯
- Pycharm的斷點除錯PyCharm斷點除錯
- Flutter的命令列除錯Flutter命令列除錯