‎2008 Jun 02 8:21 AM
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
‎2008 Jun 02 8:25 AM
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*****************&
‎2008 Jun 02 9:59 AM
‎2008 Jun 02 8:31 AM
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
‎2008 Jun 02 8:39 AM
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
‎2008 Jun 02 10:20 AM
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.