cancel
Showing results for 
Search instead for 
Did you mean: 

Method in se24

Former Member
0 Kudos

I am creating an event in class for workflows,for this i need to make a code.so where in se24,i can write a code,and how to bind it with my event?

Accepted Solutions (1)

Accepted Solutions (1)

bpawanchand
Active Contributor

ooooOOOOO its a big answer to explain. but in brief you need to follow the below steps

  • Include the interface IF_WORKFLOW in the interface tab of the class

  • Once you include the interface in the tab then by default some methods and attributes are included in the class.

  • The main method that you need to implement is BI_PERSISTENT~FIND_BY_LPOR and BI_PERSISTENT~LPOR and CONSTRUCTOR

Inorder to link the event of the class and the worflow you need to use Raise event

For this i think you need to go throught the below links Which gives a indetails explanation about how to use classes in the workflow's

[Raising ABAP OO events for workflow|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4089] [original link is broken] [original link is broken] [original link is broken]; its a beautiful blog regarding the use of classes with workflow

Thanks to Jocelyn Dart

Answers (2)

Answers (2)

Former Member
0 Kudos

hi Rohit,

First go to EVENT tab-> give your event name ->give its type and description -> give its parameters->go to method tab -> make a method -> give its parameters -> double click on your method ->write your code there -> now binding need to be done -> go to a small tab called detail view which is a event handler -> make binding there between event and method.

Hope you understand.

regards

Sachin

saumya_govil
Active Contributor
0 Kudos

Hi Rohit,

In SE24:

1. Go to t-code SE24. Create a Z-Class.

2. Include the interface IF_WORKFLOW into the class.

3. Go to 'Events' tab and create a new event. Write a code in it.

4. Save and activate the Class.

In SWDD:

1. Go to t-code SWDD and open your workflow template.

2. Go to Basic Data (cap sign button at the top of the screen) or click Ctrl + F8

3. Go to Start Events tab.

4. In the Object type enter your Class name, in Event of object enter the Class event.

5. Click on 'B' i.e. Binding Defined, click on generate automatic binding. It would automatically generate the appropriate binding for the workflow. You can also alter the binding as per requirement.

6. Click on 'C' i.e. Start Condition. A dialog would open, select the appropriate start condition for the workflow. Check the condition before saving (recommended).

6. Click on 'A' to Activate the binding and start condition. All 'A', 'B' and 'C' would get green.

7. Save the changes made and activate your workflow.

This would link the class event to your workflow as triggering event!

Please check if the following links for assistance on workflows:

http://saptechnical.com/Tutorials/Workflow/Workflow.htm

https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/workflow%252bscenario

/people/sapna.modi/blog/2007/02/19/workflows-for-dummies--introductionpart-i

Hope this helps!

Regards,

Saumya

Edited by: Saumya Govil on Jan 15, 2009 2:32 PM

pokrakam
Active Contributor
0 Kudos

>

> Hi Rohit,

>

> In SE24:

> 1. Go to t-code SE24. Create a Z-Class.

> 2. Include the interface IF_WORKFLOW into the class.

> 3. Go to 'Events' tab and create a new event. Write a code in it.

> 4. Save and activate the Class.

>

> In SWDD:

> 1. Go to t-code SWDD and open your workflow template.

> 2. Go to Basic Data (cap sign button at the top of the screen) or click Ctrl + F8

> 3. Go to Start Events tab.

> 4. In the Object type enter your Class name, in Event of object enter the Class event.

> 5. Click on 'B' i.e. Binding Defined, click on generate automatic binding. It would automatically generate the appropriate binding for the workflow. You can also alter the binding as per requirement.

> 6. Click on 'C' i.e. Start Condition. A dialog would open, select the appropriate start condition for the workflow. Check the condition before saving (recommended).

> 6. Click on 'A' to Activate the binding and start condition. All 'A', 'B' and 'C' would get green.

> 7. Save the changes made and activate your workflow.

>

> This would link the class event to your workflow as triggering event!

>

> Please check if the following links for assistance on workflows:

>

> http://saptechnical.com/Tutorials/Workflow/Workflow.htm

> https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/workflow%252bscenario

> /people/sapna.modi/blog/2007/02/19/workflows-for-dummies--introductionpart-i

Saumya,

Did you actually try what you suggested?

The first part (SE24) is complete nonsense.

The rest doesn't respond to the question in any way and the links have absolutely nothing to do with the question.

Your contributions are welcome, but please keep them on topic and go easy on the link farms. Post links that are directly relevant, or explain what part is relevant. Assume that people are able to search and use the help.

The Rules request that people be specific with their question, the same also goes for answers although it's not written there because not everyone is as enthusiastic as you. Too much information makes it difficult to find the 'real' answers with the result that forum quality deteriorates.

Thanks,

Mike