cancel
Showing results for 
Search instead for 
Did you mean: 

&_WORKITEM.TOPFLOW& Issue

Former Member
0 Kudos

Hello Friends,

We have built a complex approval JE workflow . We are using the &_WORKITEM.TOPFLOW& container to obtain the workitem( main ) and pass it to the relevant tasks at diferent steps. But , the value is getting reset to 0000000 at a particular step .

i.e.., I am able to retrive the top workitem ID at various levels , But at a later step , &_WORKITEM.TOPFLOW& value is becoming 0000000 . So this is causing an issue .

You have any idea why this is happening ?

thanks

Raghu V

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can use FM SWP_TOP_LEVEL_WORKFLOW_GET to retrieve the Top Wi_ID and store this in a container element.

Thanks

Arghadip

Answers (2)

Answers (2)

bpawanchand
Active Contributor
0 Kudos

You have to read WORKITEM FATHER not topflow

Former Member
0 Kudos

Hello Raghunandan,

I have used a simple container element "Flowitem" to store the top-workflow-ID after the creation with a container operation. As that ID will never change again through the workflow you'll have no bother about loosing the ID again for some reasons.

It worked fine for me.

Best wishes,

Florin

P.S.: At the TOP-Level workflow I have used FlowItem = &_WORKITEM.WORKITEMID& to get the Flowitem's ID

Edited by: Florin Wach on Aug 5, 2009 12:03 PM