Attaching PDF at WF initiation

Dart, Jocelyn jocelyn.dart at sap.com
Mon Jan 5 17:13:15 EST 2009


Hi George,
You should be able to upload a PDF as an ordinary attachment to a
workflow - i.e. users can open it and look at it in subsequent steps but
the system itself will not read the data.  In your description below I
am dubious about the use of fmod SCMS_BINARY_TO_XSTRING - I don't
believe that is the correct approach for conversion.  Last time I did
something like this (many many moons ago) I was using some of the OTF
conversion routines.  But again your problem is NOT workflow it is a
basis issue to do with parsing Adobe files and you need to raise it on
an appropriate forum - not the workflow forum. 

Regards,
Jocelyn 

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Knoske, George
Sent: Wednesday, 24 December 2008 3:44 AM
To: sap-wug at mit.edu
Subject: RE: Attaching PDF at WF initiation

Jocelyn,
Thanks for responding.  If we take the Adobe Form and WebDynpro out of
the equation for a moment I should still be able to upload a PDF from my
desktop (via some dialogue appl), and trigger a workflow with the PDF as
an attachment.  Correct?  I tried doing this by using fmod Gui_upload
(filetype = binary), and then triggering an event to call the WF with
the PDF as an attachment.  In my workflow method I convert the binary
table (passed by the event call) to XSTRING using fmod
SCMS_BINARY_TO_XSTRING.  I then call SAP_WAPI_ATTACHMENT_ADD (requires
XSTRING). 

Again, the attachment exists in the work item, but it is corrupted and
won't open.  Am I making invalid assumptions with my binary to xstring
process?

Thanks for any insights!

George Knoske 
Kao Brands Company
----------------------------------------------------------------------

Message: 1
Date: Fri, 19 Dec 2008 05:18:27 +0800
From: "Dart, Jocelyn" <jocelyn.dart at sap.com>
Subject: RE: [LIKELY JUNK]Attaching PDF at WF initiation
To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
Message-ID:
	<2EAD340DEF223745B1AC9A10B49FBB4702BE653B at sgsine13.sin.sap.corp>
Content-Type: text/plain; charset="us-ascii"

Hi George, 
This is actually a SAP Interactive Forms by Adobe question and not a
workflow question - suggest you raise your question on the appropriate
forum in SDN.   There is a specific Adobe forum there.
 
Usually with Adobe forms you are importing the data associated with the
form rather than the PDF document itself.  You can of course import the
PDF document and parse it but it still needs to obey some rules.   The
form must have been generated originally from SAP to pick up the Reader
Rights Credential from Adobe Document Services before sending it
offline.   You need to be careful that you have the appropriate
ContainerFoundation_JS JavaScript added to the form etc. as per the ZCI
(Zero Client Installation) guidelines if the form is to pass data into
SAP or be called in interactive mode from the workflow. 
 
So there are a number of things you need to check ... either way it has
nothing at all to do with the workflow that has been triggered and
everything to do with your WebDynpro application.
 
So please try the Adobe forum on SDN. 
Regards,
Jocelyn 

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Knoske, George
Sent: Friday, 19 December 2008 3:15 AM
To: sap-wug at mit.edu
Subject: [LIKELY JUNK]Attaching PDF at WF initiation



Hello All,

I have the requirement to initiate a workflow from the population of an
Adobe Form via WebDynpro.  We've been able to trigger the workflow just
fine, however, the PDF attachment (the adobe form) will not open.  The
message says that the attachment is corrupted. I found a whitepaper on
SDN from R.Reddy that talks about this, however, when following his
process it still does not work for us.  

 

Has anyone gone through this before?  Are there snags in the XSTRING to
BINARY then binary back to xstring conversion that we should watch out
for?  Again the PDF needs to be attached via batch mode.  All
suggestions are appreciated.

 

George Knoske

Business Analyst Technical 

Kao Brands Company

Cincinnati, OH 45214 
 
 Confidentiality Notice:  This e-mail message, including all
accompanying documents, may contain information which is confidential,
privileged or otherwise protected from disclosure under law. The
information is intended only for the person(s) to whom it is addressed.
If the recipient of this e-mail is not the designated recipient or the
employee or agent responsible for delivering this e-mail to the
designated recipient, you are hereby notified that any use, review,
disclosure, copying, distribution, alteration or manipulation of this
e-mail or its contents is strictly prohibited. If you have received this
e-mail in error, please notify the sender and delete the e-mail from
your computer system immediately.
KBCDISv1

_______________________________________________
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