cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering transaction from workflow

Former Member
0 Kudos

Hi ,

From a transaction I am triggering a workflow . I want to trigger same transaction from workflow again . How it is possible to trigger a transaction from workflow's workitem.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks all.

narin_nandivada3
Active Contributor
0 Kudos

Hi Shweta,

Has my help solved your issue.. Or do you face any difficulties.. If yes please revert back.

Good luck

Narin

narin_nandivada3
Active Contributor
0 Kudos

Hi Shweta,

DO this Way,



If the Transaction is Standard one then go for the Change document object and then link 
the Business object Event to the change document object  In SWEC.

Or

Delegate the Standard BO and then include a Method.

During Creation Of Business Object:
1) In Addition to KEY, METHODS, EVENTS , Create Business object Method --> in program part specify 
    say : CALL TRANSACTION 'MM01'.
2) After that Implement, Release, and Generate the Businee Object.

Im Not going much in Details regarding Business object as it sounds more important for you is in Workflow.


In SWDD Tcode:

1) In START EVENTS ( IN HEADER DATA)  of WORKFLOW specify the Business object and metion the event by which
   the workflow has to be triggered.
2) Acivate the binding which is there beside the Business object in start events itself

3) Specify a Acitvity step and Create a Task and in that Task specify the Business object 
    and the method that should get executed when a Workitem gets executed.

4) Activate the workflow

5) Switch on the event trace from SWELS tcode
6) Execute the Tcode which triggers the change document object or by another process 
    which triggers the change document object.

7) Switch off the event trace using SWELS

8) Check the Event trace using SWEL

9) Find your worlflow in the RECIEVER column of the Event trace in the line of Business object..

10) Find you WORKITEM in INBOX and Execute it. You will be Navigated to MM01 Tcode as 
     it is mentioned in BO Method.

Please revert back for any queries..

Hope this would help you.

Good luck

Narin

former_member182485
Active Contributor
0 Kudos

In your BOR add one method inside that write "call transaction "

now in your WF use a step and call that method.

Regards

Bikas

Former Member
0 Kudos

Hello Shweta,

From what I am able to get, you have the requirement to call the same transaction when the workitem is executed. If that's the case, the create a custom method in the BO that you use for the workflow in which the transaction is called. Make sure that you import all the values that are necessary to execute the transaction from the workflow container.

Hope this will help.

Regards,

Sam