Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Worklow Key Field as Date

Former Member
0 Kudos

Hi,

I am passing a key field (defined as sy-datum) from an ABAP that triggers the WF using function module SWE_EVENT_CREATE. It does not work, the key field is not being passed properly through the WF binding. Can anyone help?

Thanks! Marcia

2 REPLIES 2

Former Member
0 Kudos

Hi,

Please check the code as shown below, the OBJKEY should be like SWEINSTCOU-OBJKEY

data: objkey like SWEINSTCOU-OBJKEY.

objkey = sy-uzeit.

if sy-ucomm = 'SUBMIT'.

CALL FUNCTION 'SWE_EVENT_CREATE'

EXPORTING

OBJTYPE = 'ZTSS_OT'

OBJKEY = objkey

EVENT = 'MAIL'

  • CREATOR = 'M9000529'

.

IF SY-SUBRC <> 0.

ENDIF.

If helpful, pleas rate

Regards,

Manju

0 Kudos

Manju,

Thanks but I am doing the same thing as you have coded. The workflow does not accept the date properly.

Thanks,

Marcia