on 11-18-2005 7:20 AM
Hi, all!
Scenario:I have created z-object with an event....
This event I m triggering from my se38 prog...
through the function module 'SAP_WAPI_CREATE_EVENT'.
Problem: Now my created object has 2 keys. How to pass these 2 values thru the above said function moduel...The code used is as.....
Here <b>Date</b> and <b>Position</b> r the 2 variables to be passed to the 2 Object keys...
CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
EXPORTING
OBJECT_TYPE = 'ZHR_NEWPOS'
OBJECT_KEY = 'DATE,POSITION'
EVENT = 'REQUEST_GENERATED'
COMMIT_WORK = 'X'
EVENT_LANGUAGE = SY-LANGU
LANGUAGE = SY-LANGU
USER = SY-UNAME.
IFS_XML_CONTAINER =
IMPORTING
RETURN_CODE =
EVENT_ID =
TABLES
INPUT_CONTAINER = ev_container.
MESSAGE_LINES =
MESSAGE_STRUCT =
*----
Thanks and Regards,
Sudipto.
The OBJECT_KEY export parameter of the function module should have one string that is combination of both key fields of your object (date and position). You have to pass this string to the parameter OBJECT_KEY.
For example for object 'BKPF' the key consists of company code, document number and year. So the value of string for key is '3000xxxxxxxxxx2005' where xxxx.. is 10 digit document number
Message was edited by: Sudhir Bhate
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.