on 10-12-2007 1:20 PM
Hi,
We are in 4.6C version and I'm using the business object DATESPECS. I have developed a custom object with supertype of the standard.
The error is coming when I test the businees object in transaction SWO1. I need to know how to assembly the object key for raise the event from a customer program with function module SWE_EVENT_CREATE.
I really need some help with this issue... thanks in advance.
Best regards,
Mayra.
Hi Myra
The key for all PA objects is ALWAYS similar to the DDIC structure PAKEY, please fill this first before moving to another field as someone else suggested.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Myra,
You could check table PA0041 to see which testdata you could use. The key is more or less the same for most HR BOR objects.
Regards,
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In your program take a variable say lv_key of type SWO_TYPEID.
Use concatenate statement and concatenate all the fields i.e.<i>Personnel no,
Subtype, Object ID, lock indicator , to, from</i> and <i>record number</i> values in this variable <b>lv_key</b>.
Then you can use this key in FM SWE_EVENT_CREATE.
Hope it helps.
Regards,
Akshay
Note : If FM SAP_WAPI_EVENT_CREATE is available in your system , pls use the same instead of SWE_EVENT_CREATE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.