Skip to Content
0
Jun 30, 2011 at 10:20 AM

BUS2001 - Object_Key through 'SAP_WAPI_CREATE_EVENT'

96 Views

Hi Experts!!

I have implemented BADI PROJECTDEF_UPDATE in which I am triggering an event as below:

DATA: lv_key TYPE swr_struct-object_key.

CONCATENATE im_projectdefinition-pspid im_projectdefinition-pspnr INTO lv_key.

CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'

EXPORTING

object_type = 'BUS2001'

object_key = lv_key

event = 'CHANGED'. " custom event

But as PSPID and PSPNR are using conversion exits, the values being assigned are wrong and worklfow is going in error. As per my understanding, we should conctenate the key fields and send the same as object_key.

Error:

Method container for work item cannot be created

Source (expression '&PROJ_DEF.CURRENTINTERNALPROJE&') of binding assignment is not available

Source (expression '&PROJ_DEF.CURRENTEXTERNALPROJE&') of binding assignment is not available

Error in the evaluation of expression '<???>&PROJ_DEF.CURRENTEXTERNALPROJE&' for item '1'

Unable to determine the value of component ''

Error in the evaluation of expression '<???>&PROJ_DEF.CURRENTINTERNALPROJE&' for item '1'

Unable to determine the value of component ''

Notification of completion cannot be generated

But when I give only PSPID as object_key it's not going in error, but the no proper values are fetched.

Please help me out in solving this. Thanks a lot.

Edited by: Srinivas Kalluri on Jun 30, 2011 4:00 PM