Wednesday, 26 August 2020

How to Display Workflow Log or Start Workflow in Custom Report in SAP in one click?

Introduction


After working with SAP for more than 15 years and travelling across the Globe for SAP Projects one requirement I always use to get is Build me a Report that will show all the Workflow Related information and also show me the Workflow Log. This blog will make your life easier as well as the Customers as they will have to click Less. This blog will save you at least 3 clicks per document which is equivalent to 3 less chances of making Mistakes.

Current Process for Display Workflow Overview or Log Auditors Heaven and one of the Success Reason of SAP Workflow.

In this scenario we want to Display Workflow Log of Purchase Order. We can build a Hotspot which will take us to ME23N Transaction Code and then we hit the below option which is 3 Clicks.

ABAP Connectivity, ABAP Development, ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Guides

Here is the Workflow Overview

ABAP Connectivity, ABAP Development, ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Guides

Solution

Use Function Module GOS_EXECUTE_SERVICE by Going to Tcode SE37 and HIT Execute

ABAP Connectivity, ABAP Development, ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Guides

Now enter value as mentioned below

IP_SERVICE = WF_OVERVIEW
IS_OBJECT = 4500000403 BUS2012
IP_NO_COMMIT =X
IP_POPUP = X
IP_RWMOD = D
IT_SERVICE_SELECTION 0 Entries
IP_VSI_PROFILE

ABAP Connectivity, ABAP Development, ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Guides

Special Mention of IS_OBJECT

ABAP Connectivity, ABAP Development, ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Guides

Now Execute Wala we get the Pop Up.

ABAP Connectivity, ABAP Development, ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Guides

Current Process for Start Workflow from ME23N.

In this scenario we want to Start Workflow  of Purchase Order. We can build a Hotspot which will take us to ME23N Transaction Code and then we hit the below option which is 3 Clicks.

ABAP Connectivity, ABAP Development, ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Guides

Solution

Use Function Module GOS_EXECUTE_SERVICE by Going to Tcode SE37 and HIT Execute

ABAP Connectivity, ABAP Development, ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Guides

Provide the below parameters.

ABAP Connectivity, ABAP Development, ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Guides

Special Mention of IS_OBJECT

ABAP Connectivity, ABAP Development, ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Guides

Wala now we get the Pop up to Start Workflow

ABAP Connectivity, ABAP Development, ABAP Extensibility, SAP ABAP Exam Prep, SAP ABAP Guides

No comments:

Post a Comment