Method Before and Task Container

Munday,Sherie J. MUNDAYSJ at airproducts.com
Thu Jun 28 11:22:38 EDT 2007


Vinodh,
The problem is Not with binding to the Before Method.  The Before Method
is working fine.  The problem is passing the result of the Before Method
(i.e. SelTab) to the primary task Method "execute".
 
Any ideas anyone???
Thanks,
Sherie

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Vinodh Kumar (Numero Uno Solutions Inc)
Sent: Thursday, June 28, 2007 10:56 AM
To: 'SAP Workflow Users' Group'
Subject: RE: Method Before and Task Container



Sherie,

 

I am going to take one more shot to explain my point number 1 related to
SelTab binding.

 

Let's say your Primary method - BUS2081.CHANGE

 

And the Before Method is REPORT.EXECUTE (Or some thing of this sort)

 

As you notice on the Before Method Tab, there is no separate way to bind
the data from WF container to this before method. Question is - how do
you pass the data to Before Method(in our case you would like to pass
SelTab). 

 

This how it works - You have to create a parameter called SelTab in your
CHANGE METHOD. Then do a binding from SelTab of WF container to SelTab
of CHANGE METHOD. All the containers elements with same name that is
bound in Primary task are passed to the Before Method by default.

 

Rgds,

Vinodh

 

________________________________

From: Munday,Sherie J. [mailto:MUNDAYSJ at airproducts.com] 
Sent: Thursday, June 28, 2007 10:04 AM
To: SAP Workflow Users' Group
Subject: RE: Method Before and Task Container

 

Vinodh,

 

Thanks for the input, unfortunately 

1)  I cannot bind the SelTab, as the method to build the SelTab is not
the primary task, it is the BEFORE method.

2)  As I stated previously, the SelTab is being built correctly with all
the necessary data via the BEFORE method.

3)  The primary task, execute report, is running fine but without the
SelTab input.

4)  As I stated previously, the execute report runs fine with the SelTab
if we make the Build SelTab a step rather than a BEFORE method.

 

Lastly... I cannot use the secondary method, because the Build SelTab
has to occur Before the execute report, not at the same time in a
different window.

 

Any additional suggestions anyone????  Any ideas why the primary task is
not "seeing/using" the SelTab from the task container when performing
the "execute" method?

 

Thanks,

Sherie

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Vinodh Kumar (Numero Uno Solutions Inc)
Sent: Wednesday, June 27, 2007 6:30 PM
To: 'SAP Workflow Users' Group'
Subject: RE: Method Before and Task Container

Hello Sherie,

 

I don't see why the Before Method is not working. I did a quick test in
my system (ECC 5.0) and was able to run the report in before method.

 

Couple of things that I can think off (you may have done it, just in
case):

 

1.	Ensure the binding of SelTeb in your Primary task exists (at the
task level). That's how the Before and After methods get their data. 
2.	If you are able to execute the report, then ensure that the
values that you are passing in SelTab is correct (like P for parameter,
I for Inclusive ...those basic stuff ) 
3.	Can you confirm this - When you execute the primary task, the
before method gets executes the report and you are able to see the
outcome of report (though it's not using your selection values). I
wanted to rule that you don't have any auth issue in running the before
and after method. 
4.	I would also recommend you to run that report in SWO1 with the
values for testing to see if that report runs fine via the object. 

 

Lastly - When there is requirement to run the report I use secondary
method. The secondary method is method of the same object as primary
method. In that method we use simply Submit/Call as may be. Not sure if
that will suffice your requirement. But thought will share.

 

Rgds,

Vinodh

 

 

________________________________

From: Munday,Sherie J. [mailto:MUNDAYSJ at airproducts.com] 
Sent: Wednesday, June 27, 2007 4:58 PM
To: SAP Workflow Users' Group
Subject: Method Before and Task Container

 

Hello Fellow Wuggers,

 I am hoping someone can provide some guidance.  

*	We have a workflow with a step that runs a custom report.  
*	The object used is an extension/child of REPORT.  
*	We added a method (BuildSelTab) which creates the required lines
and fills the SelTab element in the task container.  
*	We entered BuildSelTab as a method Before Work Item Execution on
the step that executes the report. 

The method works fine and we can see the SelTab in the container for
that step is holding the correct data.  However, when the report is
being run, it is not using the data from the SelTab.  

 

Note:  With previous designs, we ran the BuildSelTab as a separate
background task, and then bound the SelTab from the WS container into
the Execute Report step.  In that instance the report ran using the
SelTab.  The problem with that was that the flow would not advance from
dialog from the start form to the report screen, due to the background
step in-between.  We do not want the users to have to start the flow and
then enter the SBWP to execute the report.  

Note also:  Web is not an option with this particular flow.

 

Many Thanks in Advance for any suggestions!!

Regards,

Sherie

 

Sherie Munday

Workflow Developer/Analyst

Air Products & Chemicals, Inc.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20070628/f8636536/attachment.htm


More information about the SAP-WUG mailing list