Skip to Content

How to use FM : SAP_WAPI_START_WORKFLOW

Hello Folks,

can you please explain how to use FM : SAP_WAPI_START_WORKFLOW to call the BOR object BUS2038 , method : EDIT.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 14, 2015 at 08:22 AM

    Hi

    First of all SAP_WAPI_START_WORKFLOW does not calls a method of a BOR

    Second, SAP_WAPI_START_WORKFLOW will start a workflow; better is to start a workflow based on event and use FM SAP_WAPI_CREATE_EVENT instead of directly starting a workflow.

    Third - What are we trying to achieve here? Call the EDIT Method? Why? or are we trying to start some workflow process? Please detail the actual requirement.

    Regards,

    Modak

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 14, 2015 at 12:38 PM

    Hi,

    SAP_WAPI_START_WORKFLOW is used to start a workflow, not to call any BO method.

    If you want really want directly perform the functionality of BUS2038 , method : EDIT. Then follow this step. Create a Task in PFTS transaction. Then assign the BUS2038 , method : EDIT to it. Then call the the task from fm SAP_WAPI_START_WORKFLOW

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Alpesh

      for each response above, you are always answering "I am Trying to....achieve xyz"

      Are you even trying what suggestions are given?

      Did you try to check SWEL as mentioned by Rick? or did you try to check on Anjan's response?

      What we all are trying to explain you is:

      1) See if there is any standard event triggered on it's own in SWEL when you chnage the PF and save it. (Make sure to switch on the trace first using SWELS and with NO restrictions). If there is an event, use that as a Triggering event to start your workflow.

      2) If there is no event, trigger a custom event (create a subtype and delegate to the main BO BUS2038 and create your own custom event in SWO1. Trigger it from your enhancement using FM SAP_WAPI_CREATE_EVENT and define that event as the triggering event of your workflow.

      3) Once the workflow has started, you can determine the agents and send them an email using the send email step. Send them a decision item as well (but what kind of decision you want and what should happen if they approve or reject?)

      Please reply back if you have doubts or with the results of the above trials. We already know what you are trying to achieve.

      If you are unsuccessful, please provide necessary screen shots &code dumps to help you better.

      Regards,

      Modak

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.