Decision Task -> Link to object's default Display method

Mike Pokraka wug at workflowconnections.com
Tue Jun 29 10:58:36 EDT 2010


You are correct, the method has no access to the WF container. This is
correct design, as a business object is not WF dependent. A default method
can be called from anywhere - e.g. UWL, Alerts, GP, whatever. e.g. Someone
can use the 'Send Mail' function in SBWP and the recipient sees the object
independently of the workflow.

You can always create your own delegated subtype and configure any method
as the display method. There will be some difficulty in determining if the
method was launched via a click in a WI display in the SBWP or from a
non-WF context, but hopefully you won't need to...



On Tue, June 29, 2010 2:21 pm, Sample, Rick wrote:
> Hi Ravi,
>
>>Do you have a requirement to display different Info Type and/or subtypes?
> It is a Name Change WF. So I set the 'Infotype' in binding to '0002'.
> InfoType won't change.
> The begin / enddate are obviously required.
>
> Bottom line, I believe the answer is no, I cannot get CONTAINER values
> to pass into an attached object method. ?
>
> We can change the "default" method to execute on an attached object from
> Display
> to some other method. I am looking into this right now to determine if it
> makes sense to change the default for this process.
> If you know how, I would appreciate it.
>
> If I cannot change the default from Display method, I will probably just
> redefine the Display object and
> get all the data from the EMPLOYEET object itself. That I have.
> With the key with PERNR and VALIDITYBEGIN I should be able to get what I
> want.
>
>
> Thanks
> Rick
>
> From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
> Of Ravi Dixit
> Sent: Monday, June 28, 2010 9:40 PM
> To: sap-wug at mit.edu
> Subject: RE: Decision Task -> Link to object's default Display method
>
> Hi Rick (Sample)
>
> Do you have a requirement to display different Info Type and/or subtypes?
> You should be able to achieve this with a bit of tweaking, can you let us
> know where in the workflow you decide on the into type/subtype to be
> displayed? and under what conditions? Like if an Absence then show 2001?
>
> Cheers
> Ravi
> On Tue, Jun 29, 2010 at 6:44 AM,
> <sap-wug-request at mit.edu<mailto:sap-wug-request at mit.edu>> wrote:
> Send SAP-WUG mailing list submissions to
>        sap-wug at mit.edu<mailto:sap-wug at mit.edu>
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mailman.mit.edu/mailman/listinfo/sap-wug
> or, via email, send a message with subject or body 'help' to
>        sap-wug-request at mit.edu<mailto:sap-wug-request at mit.edu>
>
> You can reach the person managing the list at
>        sap-wug-owner at mit.edu<mailto:sap-wug-owner at mit.edu>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of SAP-WUG digest..."
>
>
> Today's Topics:
>
>   1. RE: Decision Task -> Link to object's default Display method
>      (Sample, Rick)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 28 Jun 2010 15:40:56 -0500
> From: "Sample, Rick"
> <Rick.Sample at graybar.com<mailto:Rick.Sample at graybar.com>>
> Subject: RE: Decision Task -> Link to object's default Display method
> To: "SAP Workflow Users' Group" <sap-wug at mit.edu<mailto:sap-wug at mit.edu>>
> Message-ID:
>        <804C1CFBDB06C9428368F4B902383974742E786FF7 at SEMBV1PW.graybar.com<mailto:804C1CFBDB06C9428368F4B902383974742E786FF7 at SEMBV1PW.graybar.com>>
> Content-Type: text/plain; charset="us-ascii"
>
> Sathish.
>
> Yes. You understand it correctly.
> Bottom line, does not look like I can get these parms via container from
> an attached object.
> Not the answer I wanted to hear, but at least I now know. Too bad this
> didn't work. It seemed so simple, but just didn't work.
>
> I will have to redesign and create another step to pop the PA30 and place
> the user on the IT and record I want to take them to.
>
> Thanks,
> Rick
>
>
>
>
> From: sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu>
> [mailto:sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu>] On Behalf
> Of Sathish Venkatesan
> Sent: Monday, June 28, 2010 3:08 PM
> To: SAP Workflow Users' Group
> Subject: Re: Decision Task -> Link to object's default Display method
>
> Rick
>
> We also have HR workflows which uses EMPLOYEET, but mostly BO BUS1065. If
> I understand correctly, you want to use the display method to display
> specific info type through PA20. But you are passing EMPLOYEET object to
> the decision task only as an attachment and the default method for that
> task is DECISION-PROCESS. So, you are passing the container values(Info
> type/subtype) only to DECISION method but not to EMPLOYEET-Display method.
> You can confirm this by setting a breakpoint PROCESS method, where you
> will see those container values. I don't think you can pass workflow
> container values to the objects attached to the decision task.The same
> method will work if its a standard task tied directly to the display
> method.
>
> Other standard display method like PO\ME23n mostly use object-Key to
> display the transaction, but in EMPLOYEET-DISPLAY, PA20 is default and you
> want to send parameters which are not object attributes if you want to see
> specific info type.
>
> Let us know your findings...
>
> Regards,
> Sathish
>
>
>
>
> On Mon, Jun 28, 2010 at 8:25 AM, Sample, Rick
> <Rick.Sample at graybar.com<mailto:Rick.Sample at graybar.com><mailto:Rick.Sample at graybar.com<mailto:Rick.Sample at graybar.com>>>
> wrote:
> Container values - Anything passed from task -> method via WF Container.
>
> Examples:
>
> EMPLOYEET-Display
> Defined parms on method: Infotype, Subtype, ValidityBegin, and
> ValidityEnd.
> The display method is using:
> swc_get_element container 'Infotype' infotype, to get the container values
> from the task to the method.
>
> I am currently working on a WF in HR right now.
> I have a Descision task, with EMPLOYEET object passed in to descision task
> for Display as link.
> I am attempting to pass container values into the method so I can execute
> the default SAP Display method
> from the "Objects and Attachments" links.
>
> I set break in this Display method. So, from SAP Inbox, click on "Emplyee:
> Rick Sample' and you are in the Display method.
> I have no values in container for any of the container values it is
> looking for via the swc_get_element.
>
> All binding are there with data in task. But not being passed to method.
>
> Note, this is all standard SAP functionality.
>
> Thanks,
> Rick
>
>
> From:
> sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu><mailto:sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu>>
> [mailto:sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu><mailto:sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu>>]
> On Behalf Of Rick Bakker
> Sent: Sunday, June 27, 2010 12:09 PM
>
> To: SAP Workflow Users' Group
> Subject: Re: Decision Task -> Link to object's default Display method
>
> Hi Rick,
>
> I have bound an object to the Decision Task. It shows up on the right
> under Objects and Attachments.
> If I click on it, it runs its Display method. I put a breakpoint in the
> Display method, all is as expected.
>
> I'm not sure what you mean by "container values". You're passing
> parameters to the method?
> How do you do that?
>
> If I pass a container element, say XTEST, from the workflow to the
> decision task, I expect it to be available to the Decision task. I don't
> expect it to be passed to the Display method of an object in the workitem.
> I'm not even sure how to do that. Maybe I'm missing something.
>
> regards
> Rick
> On Sat, Jun 26, 2010 at 2:50 AM, Sample, Rick
> <Rick.Sample at graybar.com<mailto:Rick.Sample at graybar.com><mailto:Rick.Sample at graybar.com<mailto:Rick.Sample at graybar.com>>>
> wrote:
> Hi Rick,
>
> Just so I am clear on what you are saying.
> You have bound an object to the Decision Task. This will show in the
> "objects and attachments" pane like below.
> Meaning, this object when selected, will open the default 'Display' method
> of <whatever> BO.
> Objects and attachments
>
>
>  *   Employee: Mr Rick L Sample
>
>
> Now, if you go into (whatever BO) you are using and put a break point and
> execute, you are saying that you have container values? I step into my
> Display method and I got zip! Even though all data is in the task itself.
>
> Don't know when it stopped. But I checked every WF I have in ECC6 and I
> see no data passed into them via container. All I have is the object-key.
> Period!
> Some of my tasks just pop a session on the object-key and open <whatever>,
> but no setting parms, other container values from task make it into the
> method.
>
> Rick
>
>
> From:
> sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu><mailto:sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu>>
> [mailto:sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu><mailto:sap-wug-bounces at mit.edu<mailto:sap-wug-bounces at mit.edu>>]
> On Behalf Of Rick Bakker
> Sent: Friday, June 25, 2010 10:41 AM
>
> To: SAP Workflow Users' Group
> Subject: Re: Decision Task -> Link to object's default Display method
>
> Hi Rick,
>
> I can confirm. Just have an object in the wf container and instantiate it,
> and it will appear on the Decision task, and it works.
> I ran into a (different) problem with the Display method myself recently.
> Haven't tried passing parameters to it though.
> Did it suddenly stop working?
>
> cheers
> Rick
> On Fri, Jun 25, 2010 at 11:32 PM, Sample, Rick
> <Rick.Sample at graybar.com<mailto:Rick.Sample at graybar.com><mailto:Rick.Sample at graybar.com<mailto:Rick.Sample at graybar.com>>>
> wrote:
> Hey folks,
>
> I checked and this is occurring across the board on all WFs. I have no
> access to container values in any workflow in ECC6.
> I really recall ever doing much more than place the object on the Decision
> Task and have the Default Display method execute when user clicks on link.
> Always taken then to a display t-code like pa20, men23n, etc.
>
> Can anyone confirm this for me please?
>
>
> From: Sample, Rick
> Sent: Tuesday, June 22, 2010 1:47 PM
>
> To: SAP Workflow Users' Group
> Subject: Decision Task -> Link to object's default Display method
>
>
> I have a decision step with EMPLOYEE object.
>
> This object has a default Display method and accepts some parms.
>
> I have the binding in place, the data is making it to the task in runtime,
> but
>
> stepping through the Display method, I have no CONTAINER values.
>
>
>
> Any ideas as to why no container values being passed from Task to Display
> method?
>
>
>
>
> Rick Sample | SAP Workflow Analyst/Developer
> 11885 Lackland Road | Maryland Heights, MO 63146 | Office (314) 573-5822 |
> Mobile (314) 952-2273 |
> rick.sample at graybar.com<mailto:rick.sample at graybar.com><mailto:rick.sample at graybar.com<mailto:rick.sample at graybar.com>>
> www.graybar.com<http://www.graybar.com><http://www.graybar.com/> - Works
> to Your Advantage
> [cid:image001.gif at 01CB16D7.6AF59450]<http://www.graybar.com/>
>
>
>
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu<mailto:SAP-WUG at mit.edu><mailto:SAP-WUG at mit.edu<mailto:SAP-WUG at mit.edu>>
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu<mailto:SAP-WUG at mit.edu><mailto:SAP-WUG at mit.edu<mailto:SAP-WUG at mit.edu>>
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu<mailto:SAP-WUG at mit.edu><mailto:SAP-WUG at mit.edu<mailto: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/20100628/802b1978/attachment.htm
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: image001.gif
> Type: image/gif
> Size: 1548 bytes
> Desc: image001.gif
> Url :
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20100628/802b1978/image001.gif
>
> ------------------------------
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu<mailto:SAP-WUG at mit.edu>
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
> End of SAP-WUG Digest, Vol 67, Issue 103
> ****************************************
>
>
>
> --
> Best Regards
> Ravi Dixit
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>





More information about the SAP-WUG mailing list