Skip to Content
author's profile photo Former Member
Former Member

workflow container problem

hi,

i have create a workflow, it is triggering from report, i want to trigger the workflow from report, its working fine,

when i execute the report its giving short dump.

<b>short dump error</b>:

the function module 'SWE_EVENT_CREATE' is working but

Ev_container does not match the length of the field.

please let me know , what is the problem

here i mentioned my code in report.

REPORT YCHECK .

INCLUDE <CNTN01>.

Data: t_simple_container LIKE SWR_CONT OCCURS 0 WITH HEADER LINE.

data: File_container like rlgrap-filename.

t_simple_container-element = 'File_container'.

t_simple_container-value = 'c:\pdf1.pdf'.

append t_simple_container.

clear t_simple_container.

*SWC_SET_ELEMENT t_simple_container 'File_container' File_container.

CALL FUNCTION 'SWE_EVENT_CREATE'

EXPORTING

OBJTYPE = 'ybus2005'

OBJKEY = 'number'

EVENT = 'start'

  • CREATOR = ' '

  • TAKE_WORKITEM_REQUESTER = ' '

  • START_WITH_DELAY = ' '

  • START_RECFB_SYNCHRON = ' '

  • NO_COMMIT_FOR_QUEUE = ' '

  • DEBUG_FLAG = ' '

  • NO_LOGGING = ' '

  • IDENT =

  • IMPORTING

  • EVENT_ID =

TABLES

EVENT_CONTAINER = t_simple_container

  • EXCEPTIONS

  • OBJTYPE_NOT_FOUND = 1

  • OTHERS = 2

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

commit work.

Thanks

Sankar

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 07:06 AM

    Hi Sankar,

    Check whether the table t_simple_container matches with the Data type of EVENT_CONTAINER and also check for the value you have passed to the Internal Table is correct.

    Hope this would help you out.

    😊

    Cheers,

    Prashanth

    Add comment
    10|10000 characters needed characters exceeded