Application Development and Automation 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: 
Read only

SWO1 Doubt

Former Member
0 Likes
837

hi,

In Tcode SWO1 there is an object say BUS2012 for purchase order and it is having different events like change,release,cancel,reject.But it is not having "Create".

So what i did is copied BUS2012 into make it as ZBUS2012.I added an event called "Create".But how does it really work?What i actully need to do in event "Create" to get the functionality of "Creation of Purchase Order".I need to use this object in Workflows for creation of Purchase Order.

Thanks and Regards,

Gaurav

5 REPLIES 5
Read only

Former Member
0 Likes
734

Hi Gaurav,

IF you have created an new event "CREATE" in the ZBUS2012 then you need to trigger this event explicityl from the userexit or BADI

Use the FM "SWE_EVENT_CREATE".

Please let me know if you need more information then I can send you some sample code for this type of issue where the event is created explictly.

&************ Reward Point if helpfull*****************&

Read only

0 Likes
734

hi chauhan,

pls help more on this topic.

Thanks,

Gaurav

Read only

Former Member
0 Likes
734

Hi ,

Here are the steps to be followed for including the event .

1> Rigth Click on event node and select create .

2> Give the event name and required information and save

3> Release the event and the subtype.

Now Go to Transaction SWEC . Click on add button .

Give the object name as ur Z object name and in event ur z event .

Select the create radio button .

Save .

Now ur event is ready for use in workflow .

Hope this helps

Read only

Former Member
0 Likes
734

in your work flow building CLICK ON CNTRL+F8 AND GO TO THE TAB START EVENTS.

IN THAT ENTER THED DETAILS

undercategory AS BO

OBJECT TYPE BUS2012

EBENT OF THE OBJECT CREATE.

AND CLICK ON BINDING.

AFETR CREATING THE BINDING. ACTIVATE IT.

T

Read only

christine_evans
Active Contributor
0 Likes
734

I'm just wondering why you need to create your own custom event for Create when the system event RELEASESTEPCREATED is always issued when a PO has been created to trigger the workflow to send it to the approver. This is the triggering event for the SAP standard PO release workflow WS20000075. At least this is the case in our 4.7 system, though it may be something that is defined in config.

If you create a custom event, you need to call a function to issue it yourself from a custom program / exit as mentioned above. Or it might be possible to make it a system event by changing the config - but I've never tried doing this.