How-to on Event creation & BOR ready reckoner
Most often when you get a requirement which needs you to look for existing Business Object Repository, the search, I have seen is quite cumbersome. You need to either go through the SAP Applications navigation or the Info systems. Either ways can take too long. A simple yet effective way that I have found is I carry an excel sheet which has all the BORs from ECC 6.0 version. This makes the search easy. To do this do the following: 1. Go to SE16, & use table SWOTDV. 2. Select fields for download:- Object Type, Obj. type comp., Interface type, Verb type, Element, ABAP function type & name, & name of verb type. 3. The verb type field value “E” indicates Events. Hence you can use filters in Excel & find/search if the event you are looking for exists. Saves you quite a significant amount of time over a long run! Now the next step : Once you search that your event does not exist you can still develop your workflow application. You need to use the Event Creation Wizard here. My favourite is to use the Change Document based wizard. I have developed a SAP Tutorial which demonstrates step by step this wizard use It uses SAP iTutor and hence needs a SAP iTutor player to be installed on the client m/cs. Those interested can send me a mail & I can send them this .SIM file. Basically the steps involved are: 1. Create a subtype for the BOR in which you want to create the additional event. Let us say we find BUS1007(Customer Master), does not have a “Created” Event. However your workflow requirements needs this event. So the first step is to create the subtype of BUS1007 through SWO1 t.code. 2. Use t.code SWU_EWCD. This is a wizard and will create the event on the subtype you have created above. Provide the subtype name in the wizard. 3. The change document object that the wizard asks is a little tricky thing and normally it does suggest you on the F4. However, if you are confused, look at t.code SCDO and see which is the object relevant to you. I am listing a few relevant objects here:a) KRED for Vendor Master b) DEBI for Customer Master c) BANF for Purchase Requisition d) EINKBELEG for Purchase Order etc…4. Once the event creation is successful, you can turn on SWELS(Event trace), create a customer through XK01, save the new customer and then check SWEL t.code. The custom event of “Created” on your subtype of BUS1007 should be shown getting triggered. 5. And voila! – You are ready to use this event in your workflow solutions. Hope this helps on your designing basic workflow solutions.