0% found this document useful (0 votes)
50 views2 pages

Debugging SAP Workflow Steps Guide

This document provides instructions for debugging background workflow steps and programming workflows programmatically. It explains how to start workflows using FM SAP_WAPI_START_WORKFLOW or FM SWW_WI_START_SIMPLE for event-based workflows. It also outlines how to create objects, set element containers, get container elements, and instantiate containers by calling methods on business objects.

Uploaded by

Rahul Gaikwad
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)
50 views2 pages

Debugging SAP Workflow Steps Guide

This document provides instructions for debugging background workflow steps and programming workflows programmatically. It explains how to start workflows using FM SAP_WAPI_START_WORKFLOW or FM SWW_WI_START_SIMPLE for event-based workflows. It also outlines how to create objects, set element containers, get container elements, and instantiate containers by calling methods on business objects.

Uploaded by

Rahul Gaikwad
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

 How to debug Workflow background steps

o 1782731 - Instructions for debugging background steps


 Generally use “SAP_WAPI_*” FMs for programming purpose

 Start workflow programmatically

FM SAP_WAPI_START_WORKFLOW can be used to start the workflows in general. But when you
need to start event based workflows use FM SWW_WI_START_SIMPLE.

Reason for use SWW_WI_START_SIMPLE Its not possible to initialize container elements
referring to BO or of type SWC_OBJECT

 To create object

Include <CNTN01>

<objRef> of type SWC_OBJECT

<BusinessObject> like BUS2032 for SalesOrder

<BOKey>  Business object key like Sales Order Number

SWC_CREATE_OBJECT <objRef> <BusinessObject> <BOKey>


 Set Element container Element
<Container>  of type TABLE OF SWCONT

swc_set_element <Container> <ElementName> <ElementValue>.

Eg.
swc_set_element wi_container 'ZMARA' object.

 Get Container Element container Element


swc_set_element wi_container 'ZMARA' object.

 Instantiate Container / Call Method of BO

< ContainerName>  of type TABLE OF SWCONT

SWC_CONTAINER <ContainerName>

You might also like