Skip to Content
avatar image
Former Member

Assign workflow to Business Object without specifying event.....

Hi Experts,

Can we assign a workflow to a business object without specifying the triggering event?

Regards,

Guddan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Apr 26, 2011 at 05:19 AM

    Hi Guddan,

    If you want to use any methods of business object, then you can directly use the business object in your workflow.

    Can you give us more information about your issue for better understanding?

    Thanks,

    Viji.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      So i just want to know that is this possible that we specify a BO for the 
      workflow but do not specify the event. 

      Yes, To make things more clear BOR primarily is used to link and rasie the events that are defined in the BOR, but there might be cases where you might not have any events but still you need to start the workflow. The other purpose of the BOR is you create various methods in the BOR and you try to import and export differnet values and various manipulations are done with respect to the dat of the Business object instance.

      that there will not be need of assigning any starting event for the workflow

      Yes without any kind of start events you can start the workflow by making use of standard SAP provided function modules SAP_WAPI_START_WORKFLOW all you need to do is pass the workflow template number let say WS99999999 and the values that you want to pass to the workflow container by making use of the tables parameter of the function module simple_container. Its a kind of name/value table.

      I tried doing it in BASIC DATA of workflow but it was not possible from there

      In this kind of sitituation basic data does not have any kind of significance. All you have to do is try to find a point like when ever end user clicks on submit button or try to find a BADI' or enahncement spot where you can call the workflow by making use of above mentioned function module.

      But make sure you have the right interface all the data available at that point where you are calling the function module this is because you may hvae to pass the respectve data to the workflow container.

      Regards

      Pavan

      Edited by: Pavan Bhamidipati on Dec 14, 2011 11:34 PM

  • avatar image
    Former Member
    Apr 25, 2011 at 11:18 PM

    Hello,

    A workflow can be related to 0, 1 or many business objects or classes. It just depends on which ones you use.

    Where would you "assign" a workflow to a business object?

    regards

    Rick Bakker

    hanabi technology

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 26, 2011 at 04:42 AM

    Hi,

    Yes, you assign a workflow to a business object without specifying the triggering event.

    Actually events are used to start workflow, if you do not need any event you can create a business object without event and use it your workflow. It will no problem.

    Thanks and regards,

    SNJY

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 26, 2011 at 08:59 AM

    Yes

    If you would've tried it on your own you would have gotten the answer yourself and maybe even learned a bit more.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 14, 2011 at 08:41 AM

    Hi Brother,

    There is a simple solution to your problem.

    In order to view your workflow in the list of workflows during the action profile configuration (CRM) and want to assign your custom workflow to the respective action profile, then only one thing that you have to do is create a business object container element in your workflow container and this newly created element should reference to the business object for which you are configuring the action profile.

    For example:

    your Business object is BUS2000111 (CRM Opportunity) then you create a container element which will refer to BUS2000111.

    you can do this using PFTC or SWDD, after step activate your workflow and try to refresh the buffers and then go to

    action profile , you will see your custom workflow and then assing it .... hope i have answered appropriately.

    Please reward ...

    Regards,

    Altaf Mohammed

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 14, 2011 at 11:33 AM

    In Case of CRM you can either activate the event linkage or you can trigger wrokflow via action profiles as you are saying your workflow template is not avialble do one thing create an element with name of BUSINESSOBJECT and of the type of BO you want activate the workflow. Then if you go in SPRO action profiles you will be able to asisgn it.

    Nabheet

    Add comment
    10|10000 characters needed characters exceeded