Method Before and Task Container

Vinodh Kumar (Numero Uno Solutions Inc) vk at numerounoinc.com
Wed Jun 27 18:30:08 EDT 2007


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/20070627/20dd0033/attachment.htm


More information about the SAP-WUG mailing list