Skip to Content
0
Former Member
Mar 14, 2013 at 10:14 AM

SAP_WAPI_CREATE_EVENT not send parameter INPUT_CONTAINER TO WORKFLOW

41 Views

Hi Experts,

Hi ve a problem in function module SAP_WAPI_CREATE_EVENT beacuse not send 1 aditional parameter on INPUT-CONTAINER

I have this code on Z TRANSACTION to start workflow:

include <cntn01>.

DATA: w_evt_id TYPE swedumevid-evtid,

it_swcont TYPE TABLE OF SWCONT WITH HEADER LINE,

wa_swcont TYPE swcont,

w_objkey LIKE sweinstcou-objkey,

lv_tipo_baja TYPE bseg-buzid,

lv_eventid TYPE SWR_STRUCT-EVENT_ID,

lv_return_code TYPE SY-SUBRC.

IF r1 EQ 'X'.

lv_tipo_baja = 'D'.

ELSEIF r2 EQ 'X'.

lv_tipo_baja = 'V'.

ELSEIF r3 EQ 'X'.

lv_tipo_baja = 'T'.

ENDIF.

it_swcont-element ='TIPO_BAJA'.

it_swcont-value = lv_tipo_baja.

APPEND it_swcont.

CONCATENATE p_bukrs p_anln1 p_anln2 INTO w_objkey .

CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'

EXPORTING

OBJECT_TYPE = 'ZBUS2040'

OBJECT_KEY = w_objkey

EVENT = 'CREATED'

COMMIT_WORK = 'X'

event_language = sy-langu

language = sy-langu

user = sy-uname

IMPORTING

return_code = lv_return_code

TABLES

INPUT_CONTAINER = it_swcont.

I BO I have this event with parameter in picutre one and two.

In workflow i have the picture 3.

The object_key is in workflow but parameters events not. What´s the problem?

Very Thanks.

Attachments

3.png (16.9 kB)
2.png (11.5 kB)
1.png (19.6 kB)