Workflow for PS scenarios

Lalitha Sankaran lalisan at gmail.com
Mon Jul 30 10:33:08 EDT 2007


Hi Shai,

Your can add your logic to determine the right receiver type (workflow
template) can be added in "Receiver Type function module "
and this can be assigned to the event linkage.

if you double click on your wf template in SWETYPV (or details) you will see
the option for a "Receiver Type function module ",
you can put in you custom FM here.

Import/Export parameters.

*"*"Local interface:

*" IMPORTING

*" VALUE(OBJTYPE) LIKE SWETYPECOU-OBJTYPE

*" VALUE(OBJKEY) LIKE SWEINSTCOU-OBJKEY

*" VALUE(EVENT) LIKE SWETYPECOU-EVENT

*" EXPORTING

*" VALUE(RECTYPE) LIKE SWETYPECOU-RECTYPE

*" TABLES

*" EVENT_CONTAINER STRUCTURE SWCONT

*" EXCEPTIONS

*" NO_RECTYPE

your logic can be something like this
* No object key is blank raise exception

IF objkey IS INITIAL.

      RAISE no_rectype.

ELSE.

       IF SY-TCODE = 'FV50' .

            RECTYPE = 'WSxxxxxxxx'.

        ELSEIF SY-TCODE = 'FV60'.

          RECTYPE = 'WSxxxxxxxx'.

        ELSE.

          RECTYPE = 'WSxxxxxxxx'.

        ENDIF.

ENDIF.
hope this helps........

Lalitha


On 7/30/07, Shai Eyal <shai.eyal at yahoo.com> wrote:
>
>   Hi all,
>
> I've created several workflow templates triggered for MLST_NETW.STARTED.
> All work well. The issue is that not all WS's should start every time
> MLST_NETW.STARTED is triggered. In fact, within the milestone parameters the
> WS number is entered.
> What I'm trying to do is create start condition to verify only the proper
> WS is started., something like TaskID = &Workflow.Work item task&.
>
> Where TaskID origins from event MLST_NETW.STARTED and &Workflow.Work item
> task& from system data.
>
> Any idea ? BTW, any alternative solution will be highly appreciated.
>
> Thanks in advance.
>
>
>
> *Regards,
> Shai Eyal*
>
> *SAP Logistics senior consultant
> SAP Workflow specialist
> *
>
> ------------------------------
> Yahoo! Answers - Get better answers from someone who knows. Try it now<http://uk.answers.yahoo.com/;_ylc=X3oDMTEydmViNG02BF9TAzIxMTQ3MTcxOTAEc2VjA21haWwEc2xrA3RhZ2xpbmU>
> .
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20070730/5dc535d8/attachment.htm


More information about the SAP-WUG mailing list