<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
@font-face
        {font-family:"Arial Black"}
@font-face
        {font-family:Andalus}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif"}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
        {}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">Lalitha,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">Here is something I got from the WUG a few years ago on this topic.&nbsp; Maybe it will help you.&nbsp; I can&#8217;t remember who it was, maybe Florian?</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Note from WUG on GOS attachments</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">yes and no, as it is depending on what you address to be a &quot;GOS object&quot;,</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">but most of the times, they are, indeed, related to a BOR business object.</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">In the case of a scanned invoice image, it's not the SOFM type, but IMAGE</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">what you need to look for.</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Whenever you're able to retrieve an instance of such a business object</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">(BOR or ABAP-OO-Workflow) you can add this to the predefined workflow</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">container element _ADHOC_OBJECTS. In this case, all such object will</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">appear as links on the work item display.</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">In order to get something more &quot;running&quot;, such as performing the</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">.Display() action of the IMAGE, you'll also need to assign it to a single</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">workflow container element, e.g. &quot;Image&quot; and maintain the &quot;Methods&quot;</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">section of the particular workflow step and choose under &quot;Before methods&quot;:</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">Image.Display() and the scanned invoice will show up, every time a user</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">clicks on the work item.</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">So the real question is: How do you find out, which objects are assigned</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">or visible via GOS, and the second one is, how to get an instance of that.</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">And the answer is, that it depends on the object type again :-) , what</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">wonder, as the relationship is provided by the GOS-object itself and it</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">may be stored at any place in the database.</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">&nbsp;</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">In the case of Attachments, they are stored either in the</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">SAP-Office-Folders or in the linkage tables of SAP ArchiveLink. For the</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">latter one you may use ARCHIV_GET_CONNECTIONS with your existing targeted</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">object that you hold in your workflow. The result must then be put into</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">any kind of instantiation process for the object type IMAGE. This could be</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">one of the wizard's step of generic instantiation, or, as you need to make</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">at least one custom background step anyways, you can perform both action</span></p>
<p style="margin:0in; margin-bottom:.0001pt"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">in that one step, returning the leading IMAGE instance.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><b><span style="font-size:13.5pt; font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;; color:olive">Michael McLey</span></b><b><span style="font-size:11.0pt; font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;; color:olive">&nbsp;</span></b><span style="font-size:11.0pt; font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;; color:olive"><br>
MBUSI - IT Parts &amp; Administration </span><span style="font-size:10.0pt; font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;; color:olive"><br>
Mercedes-Benz US International, Inc.</span><span style="font-size:11.0pt; font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;; color:olive">&nbsp;</span><span style="font-size:10.0pt; font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;; color:olive"><br>
1 Mercedes Drive</span><span style="font-size:11.0pt; font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;; color:olive">&nbsp;</span><span style="font-size:10.0pt; font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;; color:olive"><br>
Vance, AL 35490</span><span style="font-size:11.0pt; font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;; color:olive">&nbsp;</span><span style="font-size:10.0pt; font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;; color:olive"><br>
PHONE: &nbsp;(205) 462 - 5239</span><span style="font-size:11.0pt; font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;; color:olive">&nbsp;</span><span style="font-size:10.0pt; font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;; color:olive"><br>
EMAIL: &nbsp; </span><span style="font-size:11.0pt; font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;; color:#1F497D"><a href="mailto:michael.mcley@daimler.com"><span style="font-size:10.0pt; color:blue">michael.mcley@daimler.com</span></a></span><span style="font-size:11.0pt; font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;; color:olive">&nbsp;
 &nbsp;</span><span style="font-size:11.0pt; font-family:&quot;Arial Black&quot;,&quot;sans-serif&quot;; color:#1F497D"><br>
<br>
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;; color:#1F497D">&nbsp;</span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu]
<b>On Behalf Of </b>Lalitha Sankaran<br>
<b>Sent:</b> Friday, April 04, 2014 1:30 PM<br>
<b>To:</b> SAP Workflow Users' Group<br>
<b>Subject:</b> Display Image as a attachment in Approval Workitem - FIORI</span></p>
<p class="MsoNormal">&nbsp;</p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">&nbsp;</p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi All,</p>
</div>
<p class="MsoNormal">I am trying to modify one of our existing Workitem to display the scanned image of the document as an attachment. The WF is for an invoice, The business object is FIPP.</p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">The approval task is a an activity task, and not a user decision task. Since we have a custom Approval screen, with the Approve, Reject and Cancel options.</p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I have created a container element FI_IMage of type BOR IMAGE, in the Workflow and the Approval task. I do see that it is instantiated, but it is not displayed as an attachment. Am not sure what step I am missing.
 Can you please let me know if I am going about it the wrong way.</p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I do see the image as a Process object. We are trying to integrate this custom WF with Fiori, The approval part is working, but to be able to view the scanned images, it needs to be an attachment in the workitem.
 Tested this out by manually uploading an image to the workitem and we are able to view it from Fiori.</p>
</div>
<div>
<p class="MsoNormal">Attaching 2 images, the &quot;Attachment&quot; is what we want it to be under,
</p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">the second one is what is currently happening, it is displayed under &quot;Process objects&quot;</p>
</div>
<p class="MsoNormal">Appreciate your input.</p>
</div>
<p class="MsoNormal">&nbsp;</p>
</div>
<p class="MsoNormal">Thank you<br>
Lalitha</p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<br>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<table cellpadding="0" cellspacing="0" border="0">
<font face="sans-serif, Arial, Helvetica" size="-1" color="#808080"><br>
If you are not the addressee, please inform us immediately that you have received this e-mail by mistake, and delete it. We thank you for your support.<br>
<br>
</font>
</table>
</body>
</html>