Skip to Content
author's profile photo
Former Member

Material master - problem with event viewcreated

I have created a WF with a start event ZBUS1001-ViewCreated. ZBUS1001 is a copy of object BUS1001006.

If I trigger the event manually, or test the wf, than it works fine.

I've linked this event properly (or just I hope), but when I start MM01 to create a new view for a material in the event trace I see the BUS1001006-VIEWCREATED and of course my WF doesn't start.

So what mistake did I do?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 26, 2005 at 01:01 PM

    Hi Csaba,

    You should be specifying the parent object, BUS1001006, in the event linkage table, SWETYPV.

    Give that a shot, and let me know.

    Cheers,

    Sue

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Susan,

      the problem has been succesfully solved.

      The solution was the following:

      I have created the following event trigger in a material master user-exit, which trigger my event.

      LD_KEY = wmara-matnr.

      CALL FUNCTION 'SWE_EVENT_CREATE'

      EXPORTING objtype = 'ZBUS1001'

      objkey = KEY

      event = 'VIEWCREATED'

      EXCEPTIONS OBJTYPE_NOT_FOUND = 1

      OTHERS = 2.

      and of course as you mentioned the event linkage was also necessary.

      Thanks for all your help.

      Csaba

  • Sep 23, 2005 at 06:59 PM

    Hi Csaba,

    A few elementary questions first... Have you specified the workflow in the event linkage table (SWETYPV)?

    If you have, and you trigger the event, is the workflow initiated at all, or does it show up with a stop light in the event log (SWEL).

    Have you delegated your business object to the parent object, BUS1001006 ?

    Have you tried running transaction SWUD on your workflow ? This is a very helpful transaction.

    Hope this helps,

    Sue

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Sue,

      I have checked the points what you mentioned, with the following reason:

      Q: Have you delegated your business object to the parent object, BUS1001006 ?

      A: Supertype BUS1001006 Standard materi

      Q: Have you specified the workflow in the event linkage table (SWETYPV)?

      A:

      Object Category BO BOR Object Type

      Object Type: ZBUS1001

      Event: VIEWCREATED

      Receiver type: WS90000001

      Receiver Call: Function Module

      Receiver Function Module: SWW_WI_CREATE_VIA_EVENT_IBF

      Behavior Upon Error Feedback: 0 System presetting

      Receiver Status: 0 No errors

      Q: If you have, and you trigger the event, is the workflow initiated at all, or does it show up with a stop light in the event log (SWEL).

      A: If I trigger the event with SWUE than it works fine, the wokrflow started. But, when I use MM01, than not my event triggered, but this:

      BUS1001006 VIEWCREATED No receiver entered

      So probably I've made a mistake in event linkage, but I don't know what.

      This is my very first wf, so every help is very useful for me.

      Thans for your help, Csaba