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

Reg:Publishing workflow class event in sap program

Actually i don't have any Business object for my workflow requirement so that is why i prepared the class and workflow but now i would like to publish this class in sap standard program,what i mean to say based on sap events (like po created) i need to call the workflow,it would be appriciable please any one help could me to how to make linkage between sap program and my class.

Thanks in advance,

Srihasa..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 18, 2008 at 09:52 AM

    Hi Srihasa,

    I hope you must have created the class in SE24 since you din't have a BOR for it in this case you can youse the same class in any of the abap program i don't find any problem in this.

    Still if you have any issues post clearly what is the problem you are facing.

    Regards,

    Dheepak

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 18, 2008 at 09:54 AM
    please any one help could me to how to make linkage 
    between sap program and my class.

    Not clear with what sort of issue you have but all I Can understand from your issue is that

    In your case

    • There is no standard Business Object to trigger the workflow.

    • There are no standard events to trigger the workflow

    And

    • As you said that you have created a class , what is the puprose of this class , I mean are you calling linking the workflow and the class , by defining some user defined events in the Events tab of the class builder?

    Can you be more clear????

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      >1) from the class how to start the workflow ?

      You can for example create a method "START_WORKFLOW". In this method you can either call SAP_WAPI_START_WORKFLOW function module to start the workflow, or probably in your case, you should trigger an event of your class. Check Jocelyn Dart's blogs about WF and ABAP about how to trigger a suitable event for workflow purpose.

      >2) How to call the method (which was intended to created to raise the event to start workflow) from the >sap standard program to start the workflow?

      Well, you just need to call the above-mentioned method like any other class method. How to do this in SAP standard program. Probably you could find a user-exit or BADI in which you can call the method. If those are not available, check the possibilities to use the enhancement framework (if your system version allows it). Last option is to make a modification to the standard program. (Well, also check if you could trigger an event by using change documents). It would be easier to help you, if you told us the transaction/program, form which you want to trigger the workflow.

      Regards,

      Karri

  • Posted on Dec 18, 2008 at 09:57 AM

    Hi,

    You create a custom BO and try it will be easier. Refer this [link|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0f157e8-456b-2910-8ea5-c57d9267c913].

    Can you Please mention for which Transaction you need workflow.

    Regards,

    Surjith

    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.