Display Image as a attachment in Approval Workitem - FIORI
Prakashreddy Sabbu
prakashreddy.sabbu at mytecsoft.com
Fri Apr 4 21:12:46 EDT 2014
Hi Lalitha,
Couple of years back I got this working by creating SOFM object for attachment and mapped to container element Attach_object and it worked. Hope this will give you some light.
Sent from my iPhone
On 05-Apr-2014, at 3:29 AM, "Lalitha Sankaran" <lalisan at gmail.com<mailto:lalisan at gmail.com>> wrote:
Hi Michael,
I did try to instantiate the IMAGE object using a BG task. And I see the IMAGE in the container.
But have not tried the Adhoc objects, will give that a try.
Attaching a screenshot of the WF log.
Thank you
Lalitha
On Fri, Apr 4, 2014 at 2:50 PM, <michael.mcley at daimler.com<mailto:michael.mcley at daimler.com>> wrote:
Lalitha,
Here is something I got from the WUG a few years ago on this topic. Maybe it will help you. I can’t remember who it was, maybe Florian?
Note from WUG on GOS attachments
yes and no, as it is depending on what you address to be a "GOS object",
but most of the times, they are, indeed, related to a BOR business object.
In the case of a scanned invoice image, it's not the SOFM type, but IMAGE
what you need to look for.
Whenever you're able to retrieve an instance of such a business object
(BOR or ABAP-OO-Workflow) you can add this to the predefined workflow
container element _ADHOC_OBJECTS. In this case, all such object will
appear as links on the work item display.
In order to get something more "running", such as performing the
.Display() action of the IMAGE, you'll also need to assign it to a single
workflow container element, e.g. "Image" and maintain the "Methods"
section of the particular workflow step and choose under "Before methods":
Image.Display() and the scanned invoice will show up, every time a user
clicks on the work item.
So the real question is: How do you find out, which objects are assigned
or visible via GOS, and the second one is, how to get an instance of that.
And the answer is, that it depends on the object type again :-) , what
wonder, as the relationship is provided by the GOS-object itself and it
may be stored at any place in the database.
In the case of Attachments, they are stored either in the
SAP-Office-Folders or in the linkage tables of SAP ArchiveLink. For the
latter one you may use ARCHIV_GET_CONNECTIONS with your existing targeted
object that you hold in your workflow. The result must then be put into
any kind of instantiation process for the object type IMAGE. This could be
one of the wizard's step of generic instantiation, or, as you need to make
at least one custom background step anyways, you can perform both action
in that one step, returning the leading IMAGE instance.
Michael McLey
MBUSI - IT Parts & Administration
Mercedes-Benz US International, Inc.
1 Mercedes Drive
Vance, AL 35490
PHONE: (205) 462 - 5239<tel:%28205%29%20462%20-%205239>
EMAIL: michael.mcley at daimler.com<mailto:michael.mcley at daimler.com>
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 Lalitha Sankaran
Sent: Friday, April 04, 2014 1:30 PM
To: SAP Workflow Users' Group
Subject: Display Image as a attachment in Approval Workitem - FIORI
Hi All,
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.
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.
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.
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.
Attaching 2 images, the "Attachment" is what we want it to be under,
the second one is what is currently happening, it is displayed under "Process objects"
Appreciate your input.
Thank you
Lalitha
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.
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu<mailto:SAP-WUG at mit.edu>
http://mailman.mit.edu/mailman/listinfo/sap-wug
<Image Instance.JPG>
_______________________________________________
SAP-WUG mailing list
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/20140405/252f5eee/attachment.htm
More information about the SAP-WUG
mailing list