Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

workflow triggering using "Z" object's event

Former Member
0 Kudos

hi ,

i have created an object , have attached an event & two methods.

now i want to use this event as a triggering event of a workflow.

for this i am using SWE_EVENT_CREATE function module in a report program.

but at the time of creation of workflow, it is not showing the event that i have attached to my object.

how do i attach events to workflow for a "Z" object?

how do i check whether an event is attached correctly to an object ??

Any sample code or example would help.

thanks in advance .

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ashish,

1) Goto Tcode SWEC.

2) Create a new eventfor change document

3) on the left, click on the field restrictions

4) type the table name and the field against which this event has to be triggered.

This way you can attach an event to a Z Object.

Hope this helps.

Cheers,

Sam

5 REPLIES 5

Former Member
0 Kudos

Hi Ashish,

1) Goto Tcode SWEC.

2) Create a new eventfor change document

3) on the left, click on the field restrictions

4) type the table name and the field against which this event has to be triggered.

This way you can attach an event to a Z Object.

Hope this helps.

Cheers,

Sam

0 Kudos

hi samuel,

can you elobrate on how to create new event for change document.

it is asking me few details like:

1)change doc. object

2)object category

3)object type

4)event

i entered my object name in object type,but when i click on event , it shows me <b>Object type 'ZBUS_EMP' cannot be executed</b>

an example would help.

thankx for the response.

regards,

Ashish

0 Kudos

Hi Ashish,

1) Change doc object -> Give the Zobject name eg ZBASICPAY etc whic you've created using SWO1.

2) Object Category -> Choose BOR Object Type

3) Business Object type -> Give the ZOBJECT Name again

4) Event -> Give the new event that you've created for the ZObject eg. Changed or Created or posted etc..

After this choose this row that has been created by you, and dbl clikc on the left on field restrictions.

It'll show another screen where you can enter Table name -> e.g: MARA, Field Name-> e.g: Matnr, Old Value: * , New Value: *

5) Save this and now check your workflow.

Cheers.

Sam

Former Member
0 Kudos

Hi Ashish,

You need to check if you have activated your object or not. you can go to transaction SWETYPV and link your workflow to object type and event.

Regards,

Vin

Former Member
0 Kudos

Hi Ashish,

Am of the same requirement. I need to build workflow for transaction BP, in that i need to trigger the workflow when the user assigns a credit limit to the customer. Am not able to find any events to trigger the workflow. Can you please guide me to build a workflow.

I don't have any previous experience in doing this...Please guide me.please help me..

Thanks

Ak vee