Attachment Links for Trip Expense Workflow

Griffiths, Mark mark.griffiths at sap.com
Thu Jun 30 09:31:10 EDT 2011


The attachments link from the portal/UWL is actually a BOR object / Class link.  By default it will start an ITS service and use the default method for your BOR object / Class.

So, if you want to see the attachments for a trip you could try having these as an explicitly bound object in your task and seeing if they appear in the Attachment list.  You could also try creating a new default method on BUS2089 to display the attached documents and see how this looks.

If this doesn't work you may need to use SWFVISU to create an alternative object visualisation and do some development work to retrieve the document in an acceptable manner.

Good luck! Let us know if you find a simple approach.

Regards,


Mark

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Dale Brown
Sent: 29 June 2011 21:21
To: sap-wug at mit.edu
Subject: Attachment Links for Trip Expense Workflow

I've been looking at prior posts on this subject but I still can not seem to come to a point where I can get the results I'm after.  Our users will be running workflow for BUS2089 (Employee Trip).  They have handled doing the XML code for this.  I am responsible for doing the workflow.  Right now when the user creates a trip they will add attachments to the trip and then save and send to kickoff workflow.  When it gets to the approval step, there is an Employee Trip link that will take them to the ECC side where they can see the attachments using Generic Services.  The financial analyst does not think it is appropriate for the users to be able to go to ECC to see these attachments and would like to have them viewable in portal instead.  I've seen where some posts have talked about using function modules referring to SAP_WAPI_GET_ATTACHMENTS, SAP_WAPI_ATTACHMENT_ADD, SCMS_BINARY_TO_XSTRING, etc.. but I am not sure of some of the inputs to these function modules.  I have been able to get the instid_ A and instid_B  information for these attachments using cl_binary_relation=>read_links_of_objects, but that's about all I have found thus far.  I've used other functions modules on prior workflows before such as BINARY_RELATION_CREATE, ARCHIV_CONNECTION_INSERT, etc.. but do not for sure how they all relate and do not know if needed for this request of the user.  I feel like I'm all around what needs to be done, but can't seem to find the correct starting point.  I've tried to bind info into the _Attach_Objects, but still can't get that right combination to get a link.   Any advice ?  Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20110630/84a8c16a/attachment.htm


More information about the SAP-WUG mailing list