Attachment in Work Item

Rick Sample Rick.Sample at gbe.com
Mon Sep 27 10:41:16 EDT 2004


Had the same issue. I forgot to "get" the key in the method. 
In BO, check the DEFAULT method. For instance,
 
My BO has DISPLAY as the default method accepting DocumentNumber as the attribute.
When I select the "Objects and attachments" in the description of a WF like "NSR: 0000000098" 
the below code is needed to get the attribute, set parm, skip first screen from within the method. 
.....
* define the attribute...
data: myDOCUMENTNUMBER LIKE ZmyBusObj-myDOC. 
 
* Get attribute from BO. 
* Note: If you look at an activity with your BO and have Display, Change, whatever 
* can select the bindings you want. This is not the same as the "Objects and attachments" 
* where you can not add bindings so get from BO.
SWC_GET_ELEMENT CONTAINER 'DocumentNumber' myDOCUMENTNUMBER.
.....
 
* I use this to get / set the parm from the program. 
* This one is used from the program and using ZNSRH parm...
SET PARAMETER ID 'ZNSRH' FIELD NSRDOCUMENTNUMBER. 
 
* This is used for the Default display using the object key...
SET PARAMETER ID 'ZNSRH' FIELD OBJECT-KEY-NSRDOCUMENTNUMBER.
 
* Same key but diff name. The program passes in a different parm name.
SET PARAMETER ID 'NSRID' FIELD NSRID.
 
CALL TRANSACTION 'ZNSR03' AND SKIP FIRST SCREEN.
 
Would make sence to have the parm names the same and I will work with my 
ABAP developer to make the changes later. (Clean up code thing)
 
I am going on only a couple hours of sleep so let me know if this makes sense to you...
 
 
 
 
 
Rick Sample
SAP Workflow / Developer
Graybar, Inc.
Rick.Sample at GBE.com
 
 
 
>>> maorriyan_santoso at yahoo.com 9/27/2004 8:52:20 >>>
Hi Mark,
This evening I try what you suggested. I check on the
ECM for default method. There's different what that I
want to. Then I create a subtype (a method) to execute
transaction CC03 and create the default method to
CC03. I delegated as well. I checked as Jocelyn (a
couples months ago,thanks Jocelyn) suggested, go task
that using ECM, then double click it. It goes to my
subtype ZECM. This mean the delegation is correct. I
tested the method , it working properly. Then I'm
using it into my task. But still, in user inbox
there's a link to my object but when user click on
that link, nothings happen.
Is there anything else I have done?? I try to make a
bind from _wi_object_id from workflow to my task and
vice versa but not working as well.
 
regards,
 
Maorriyan
 --- Mark Pyc <mark_pyc at gillette.com> wrote:
> This is the same issue as just discussed regarding
> default methods. In the
> workitem you will see a link to the primary object
> of the workitem
> (_WI_OBJECTID) and clicking will execute the default
> method as specified in
> the header (hat icon) of the object in SWO1.
>
> You need to check that there is an appropriate
> default method for the ECM
> object.
>
> <Late Friday self doubt creeping in> Not certain if
> the default method is
> executed in a new window, at which point you have to
> make sure you don't
> already have 6 session windows open.
>
> Have fun,
> Mark
>
>
>
>
>                       Maorriyan
>                       <maorriyan_santoso@
> To:      SAP-WUG at MITVMA.MIT.EDU 
>                       yahoo.com>
> cc:
>                       Sent by: SAP
> Subject: Attachment in Work Item
>                       Workflow
>                       <Owner-SAP-WUG at MITV
>                       MA.MIT.EDU>
>
>
>                       24 Sep 2004 17:01
>                       Please respond to
>                       SAP Workflow Users'
>                       Group
>
>
>
>
>
>
> Hi All.
> We're in 4.7
> I saw many discussion regarding attachment in work
> item. In my previous project, I was activating
> standard workflow for PO and I checked in my
> documentation,I'm not using _Attach_Objects but in
> the
> user inbox there is a link/attachment of PO. And
> when
> user click on that link,it goes to display PO.
> At the moment I'm developing custom workflow based
> on
> ECM object type. I saw hyperlink/ object attachment
> in
> my user's inbox. But nothing happen when user
> executing that link/attachment. I'm trying to bind
> ECM
> change number to _Attach_Object but system give me
> with an error message. IT seems my object (change
> number) does not compatible with SOFM.
>
> I need your advice and suggestion.
>
> Regards.
>
>
> Maorriyan
>
> =====
> Maorriyan
>
>
________________________________________________________________________
> Yahoo! Messenger - Communicate instantly..."Ping"
> your friends today! Download Messenger Now
> http://uk.messenger.yahoo.com/download/index.html 
>
 
=====
Maorriyan
 
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html 
 


More information about the SAP-WUG mailing list