How To Call Workflow From Abap Program Sap

  1. Sap Abap Workflow Tutorial
  2. How To Call Workflow From Abap Program Sap Software
  3. Sap Abap Program Examples

To call the Standard Table display, we can Submit the underlying program from our report. SAP creates a table dispaly report for all the database tables which can be viewed using the SE16. So, We can find that program name and Submit the program to call the Standard Table Display. You can also use ABAP classes that will support the IFWORKFLOW interface in the SAP Web Flow Engine. ABAP classes are processed with the help of class builder. This document will help you to understand the special features related to SAP Web Flow Engine. The business processes are defined in Workflow builder. Each and every small work process is called as an activity in the workflow builder. Each activity consists of a single step task, which can be a standard task or a workflow template. Associated Business Logic is built in Business Objects. ABAP code will be in Business Object.

  1. Mar 17, 2012 Create ABAP Class to use in Workflow. Create Workflow. Creating ABAP Class to use in Workflow. Step 1: Create Class. Go to SE24 transaction and Create a Class. Enter description and click on save. Here if you want to reuse this class methods in other subclasses, uncheck the check box ‘Final’. Go to interfaces tab and enter ifworkflow.
  2. How to call the workflow from program. Use SAPWAPISTARTWORKFLOW in conjunction with SAPWAPICREATEEVENT to trigger the workflow in ABAP. Hope this helps.

Sometimes we need to call a workflow process from our SAP ABAP programs and implementations in an easy form with Object Oriented Programming capabilities, but many times we found SAP business workflow implementations are Business Object Oriented and this way is too tricky and old fashioned for us.

Good news! SAP Business Workflow allows to be called through our own Event-Class with our own parameters without create a Business Object Repository. This example shows a simple way to call a workflow process from Event-Class into a Class Method or SAP ABAP Program.

  1. Create a reference to SAP Business Interface in our class (trx SE24). With this way we are able to use our SAP ABAP Class into SAP Business Workflow Event Containers. Please add the interface parameters below:
  • BI_OBJECT
  • BI_PERSISTENT
  • IF_WORKFLOW

2. Create our event with parameters compatible with our Workflow Input Parameters.

How
  • EJECUTAR_WORKFLOW (Execute workflow): class event for launch our SAP Business Workflow.
  • Event Parameters for EJECUTAR_WORKFLOW event.
How To Call Workflow From Abap Program Sap

3. Binding our SAP Business Workflow object template (trx PFCT) to be launched by our SAP ABAP Event Class in Triggering Events and activate it (Green Button indicates event activation).

  • Select ABAP Object Class and click Call Binding Editor ( Button ) and Bind our Event Parameters with Workflow Parameters (and save).

4. Calling workflow from method-class. (Code Example).

Sap Abap Workflow Tutorial

  • Get our Event Container Workflow (a reference to our event container parameters).
  • Set workflow Variables for Event (setting variables one by one with our values for launch our SAP Business Workflow).

How To Call Workflow From Abap Program Sap Software

  • Calling Workflow Event Class (Raise our Event with our parameters).

Sap Abap Program Examples

… And that’s all folks. With this way we can call our SAP Business Workflow from our SAP ABAP Class Method.

Return

Enjoy it!