cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow problem: Value from se38 to Object-key

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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