Skip to Content
author's profile photo Former Member
Former Member

When submit button clicks the mail shoud trigger in workflow.

hi,

I created a module pool program , in there i have some fields. by giving f4 help in key fields all other values ll come. after that if i click submit button the workflow want to trigger. i created on bo . in that i specify the key field, and i create event called submit. for that event i gave key field as a parameter. I c

in submit i ll call this fm SAP_WAPI_START_WORKFLOW . in task i give the workflow which i created.but its not triggering.

Regards,

gopi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Jan 07, 2014 at 01:09 PM

    Please use SAP_WAPI_CREATE_EVENT Fm to trigger the event

    It's always better to trigger the event and then start the workflow instead of starting the WF directly.

    Always use SAP_WAPI* APIs

    Regards,

    Modak

    You can also use methods of class cl_swf_evt_event to trigger events

    Message was edited by: Modak Gupta

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2014 at 01:03 PM

    Hi Gopi,

    Try SWE_EVENT_CREATE to trigger Workflow.

    Regards,

    Deepika.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2014 at 06:00 AM

    Hi,

    when you use make sure you are in possible agent in workflow->basic data-> agent assignment.

    The best thin is to use SAP_WAPI_CREATE_EVENT.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2014 at 07:34 AM

    Hi,

    Check your workflow in swdd. Event 'SUBMIT' should be active. Go to Basic Data -> Start Event and provide your object name and event and activate it.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2014 at 10:13 AM

    hi ,

    its working fine. thanks for everyone.

    Regards,

    gopi

    Add a comment
    10|10000 characters needed characters exceeded

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.