0% found this document useful (0 votes)
17 views5 pages

Calling a Workflow from an ABAP Class

This document provides a guide on how to call a SAP Business Workflow from an ABAP class using Object Oriented Programming. It outlines the steps to create a reference to the SAP Business Interface, define an event with compatible parameters, bind the workflow object template, and call the workflow from a method-class. The process simplifies the integration of workflows into ABAP programs without the need for a Business Object Repository.

Uploaded by

PD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views5 pages

Calling a Workflow from an ABAP Class

This document provides a guide on how to call a SAP Business Workflow from an ABAP class using Object Oriented Programming. It outlines the steps to create a reference to the SAP Business Interface, define an event with compatible parameters, bind the workflow object template, and call the workflow from a method-class. The process simplifies the integration of workflows into ABAP programs without the need for a Business Object Repository.

Uploaded by

PD
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

SAP Business Workflow Tips (I):

Calling a Workflow from an


ABAP Class.

Date: August 28, 2017Author: Alejandro González Estrada.0 Comments

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
😦
But we have some Good news for you folks
🙂
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.

 EJECUTAR_WORKFLOW (Execute workflow): class event for launch


our SAP Business Workflow.
 Event Parameters for EJECUTAR_WORKFLOW
event.

3. Binding our SAP Business Workflow object


template (trx PFTC) 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).

 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).
 Calling Workflow Event Class (Raise our Event with our
parameters).

… And that’s all folks. With this way we can call


our SAP Business Workflow from our SAP ABAP
Class Method 🙂

Enjoy it and share it ! Happy Learning !

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy