<div dir="ltr">Hi Florin,<br>&nbsp; I am getting the following error while using the FM SCMS_URL_GENERATE :<b>&quot;Overflow in calculation of URI&quot; </b>. Please find my coding below.<br><br>CALL FUNCTION &#39;SCMS_URL_GENERATE&#39;<br>
EXPORTING<br>command = &#39;get&#39;<br>contrep = &#39;Z1&#39;<br>docid =&nbsp; &#39;76ADA248DBDE881CE100000048250C94&#39;<br>accessmode = &#39;r&#39;<br>signature = &#39;X&#39;<br>security = &#39;B&#39;<br>IMPORTING<br>ABSOLUTE_URI = lv_abs_uri<br>
HTTP_URI = lv_http_uri<br>HTTPS_URI = lv_https_uri.<br><br>Regards,<br>IKhan<br><br><div class="gmail_quote">On Fri, Aug 15, 2008 at 5:20 PM, Florin Wach <span dir="ltr">&lt;<a href="mailto:florin.wach@gmx.net">florin.wach@gmx.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hm...<br>
As I was using a complete .URL-File holding the hyperLink I didn&#39;t have that problem. Anyways we had deactivated the Security-key for the archive. Furthermore when creating the URI for the document access keep in mind that there&#39;s a timeOut of 2hours usually included. To make the link available more longer, you had to use a more underlaying API like SCMS_URL_GENERATE<br>

<br>
For the URL itself and the mail text: As far as I know, Outlook combines hrefs embraces by &lt; and &gt; over linebreaks, so you may split your URL into 255char&#39;s internal table making it a multi-line element and put a &lt; in the first place and &gt; at the very end of the URL.<br>

<div class="Ih2E3d"><br>
Best wishes,<br>
Florin<br>
<br>
-------- Original-Nachricht --------<br>
</div>&gt; Datum: Fri, 15 Aug 2008 16:57:02 +0800<br>
<div><div></div><div class="Wj3C7c">&gt; Von: &quot;Ibrahim Khan&quot; &lt;<a href="mailto:ikhansap@gmail.com">ikhansap@gmail.com</a>&gt;<br>
&gt; An: &quot;SAP Workflow Users\&#39; Group&quot; &lt;<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>&gt;<br>
&gt; Betreff: Re: How to attach a document stored in Archive link in a notification<br>
<br>
&gt; Hi Guys,<br>
&gt; &nbsp; I am facing one more issue here. Since my URL link is more than 255<br>
&gt; characters i am not able to create a virtual attribute, also i tried with<br>
&gt; FM<br>
&gt; SO_NEW... but since the contents table can accept only 255 characters i<br>
&gt; can&#39;t use this as well. Please let me know how to achieve this.<br>
&gt;<br>
&gt; Thanks.<br>
&gt; Ikhan<br>
&gt;<br>
&gt; On Fri, Aug 15, 2008 at 11:26 AM, Ibrahim Khan &lt;<a href="mailto:ikhansap@gmail.com">ikhansap@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi All,<br>
&gt; &gt; &nbsp; Its working now. I was just seeing the structure output from the FM<br>
&gt; where<br>
&gt; &gt; the link &nbsp;was not properly formulated. Thanks Florin and Sudhir.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Fri, Aug 15, 2008 at 11:08 AM, Ibrahim Khan &lt;<a href="mailto:ikhansap@gmail.com">ikhansap@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt;&gt; Hi Sudhir,<br>
&gt; &gt;&gt; &nbsp; Thanks. I got the following output using the function module you<br>
&gt; said,<br>
&gt; &gt;&gt; but i dont know how to formulate the exact link to that object using<br>
&gt; this<br>
&gt; &gt;&gt; URL field. Pls let me know the same.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; SAP_OBJECT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; BUS2104<br>
&gt; &gt;&gt; OBJECT_ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 000000010327<br>
&gt; &gt;&gt; ARCHIV_ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Z1<br>
&gt; &gt;&gt; ARC_DOC_ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;76ADA248DBDE881CE100000048250C94<br>
&gt; &gt;&gt; AR_OBJECT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ZIMOPDF<br>
&gt; &gt;&gt; AR_DATE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;08/13/2008<br>
&gt; &gt;&gt; DEL_DATE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; / &nbsp;/<br>
&gt; &gt;&gt; URI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *<br>
&gt; &gt;&gt; <a href="http://omhq10d5:48020/acsap/dispatcher?get&amp;pVersion=0046&amp;contRep=Z1&amp;do*" target="_blank">http://omhq10d5:48020/acsap/dispatcher?get&amp;pVersion=0046&amp;contRep=Z1&amp;do*</a><br>
&gt; &gt;&gt; MIMETYPE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; application/pdf<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Regards,<br>
&gt; &gt;&gt; Ibrahim Khan<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; 2008/8/15 Sudhir Pargaonkar &lt;<a href="mailto:pargov@gmail.com">pargov@gmail.com</a>&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Use Function Module &quot;ARCHIVOBJECT_GET_URI&quot;...<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; sudhir<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; 2008/8/14 Ibrahim Khan &lt;<a href="mailto:ikhansap@gmail.com">ikhansap@gmail.com</a>&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Hi Florin,<br>
&gt; &gt;&gt;&gt;&gt; &nbsp; Thanks for your idea. Can you Please let me know from where can we<br>
&gt; get<br>
&gt; &gt;&gt;&gt;&gt; this http link,<br>
&gt; &gt;&gt;&gt;&gt; Is there any table using which we can formulate the http link using<br>
&gt; the<br>
&gt; &gt;&gt;&gt;&gt; archive id. Please reply.<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; Regards,<br>
&gt; &gt;&gt;&gt;&gt; Ikhan<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; On Thu, Aug 14, 2008 at 9:16 PM, Florin Wach<br>
&gt; &lt;<a href="mailto:florin.wach@gmx.net">florin.wach@gmx.net</a>&gt;wrote:<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; He Ikhan,<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; I once have programmed a custom send-mail-step that reads the<br>
&gt; &gt;&gt;&gt;&gt;&gt; archiveLink-object via the ArchiveLink API and creates a full mail<br>
&gt; &gt;&gt;&gt;&gt;&gt; attachment from that.<br>
&gt; &gt;&gt;&gt;&gt;&gt; Later on I have changed this to an attachment of type .URL having<br>
&gt; the<br>
&gt; &gt;&gt;&gt;&gt;&gt; http-Link of the contentServer to avoid too much traffic/storage.<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; Mayhaps you could create a virtual attribute that resolve as a<br>
&gt; &gt;&gt;&gt;&gt;&gt; http-link to the archiveLink object and put this in the workitem&#39;s<br>
&gt; long<br>
&gt; &gt;&gt;&gt;&gt;&gt; text, so the recipient may click on it?!<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; Best wishes,<br>
&gt; &gt;&gt;&gt;&gt;&gt; Florin<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; -------- Original-Nachricht --------<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; Datum: Thu, 14 Aug 2008 20:42:40 +0800<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; Von: &quot;Ibrahim Khan&quot; &lt;<a href="mailto:ikhansap@gmail.com">ikhansap@gmail.com</a>&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; An: &quot;SAP Workflow Users\&#39; Group&quot; &lt;<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; Betreff: Re: How to attach a document stored in Archive link in a<br>
&gt; &gt;&gt;&gt;&gt;&gt; notification<br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; Hi Akshay,<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &nbsp; Thanks for your reply. It can be done if it is a work item, but<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; notification attachment can be of only type SOFM right, in this<br>
&gt; case<br>
&gt; &gt;&gt;&gt;&gt;&gt; how<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; to<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; do. Please advice.<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; Regards,<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; IKhan<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; 2008/8/14 &lt;<a href="mailto:akshay.bhagwat@wipro.com">akshay.bhagwat@wipro.com</a>&gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; I can think of an option like, &nbsp;instead of attachment if you can<br>
&gt; &gt;&gt;&gt;&gt;&gt; use the<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; archived image as object in this notification and use object<br>
&gt; link<br>
&gt; &gt;&gt;&gt;&gt;&gt; of<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; this<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; object in notification ( which gets displayed in &nbsp;work item<br>
&gt; &gt;&gt;&gt;&gt;&gt; preview), to<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; refer the stored PDF image??<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; Thanks and Regards,<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; Akshay Bhagwat<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; SAP Practice<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; *Wipro Technologies*<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; &nbsp;------------------------------<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; *From:* <a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a> [mailto:<a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a>]<br>
&gt; &gt;&gt;&gt;&gt;&gt; *On<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; Behalf Of *Ibrahim Khan<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; *Sent:* Thursday, August 14, 2008 1:38 PM<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; *To:* SAP Workflow Users&#39; Group<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; *Subject:* How to attach a document stored in Archive link in a<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; notification<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; &nbsp;Hi Friends,<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; &nbsp;Is it possible to get the PDF file stored in Archive link and<br>
&gt; make<br>
&gt; &gt;&gt;&gt;&gt;&gt; it<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; as<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; an attachment in a notification. I think we need to get this PDF<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; attachment<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; and convert it into SOFM instance, then only we can make it as<br>
&gt; an<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; attachment<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; in notification &nbsp;becoz notification can accept only SOFM<br>
&gt; instance<br>
&gt; &gt;&gt;&gt;&gt;&gt; right?<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; Please let me know how to do this or is there any other simple<br>
&gt; way<br>
&gt; &gt;&gt;&gt;&gt;&gt; to<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; convert this attachment to SOFM instance.<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; * Please do not print this email unless it is absolutely<br>
&gt; necessary.<br>
&gt; &gt;&gt;&gt;&gt;&gt; *<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; The information contained in this electronic message and any<br>
&gt; &gt;&gt;&gt;&gt;&gt; attachments<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; to<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; this message are intended for the exclusive use of the<br>
&gt; addressee(s)<br>
&gt; &gt;&gt;&gt;&gt;&gt; and<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; may<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; contain proprietary, confidential or privileged information. If<br>
&gt; you<br>
&gt; &gt;&gt;&gt;&gt;&gt; are<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; not<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; the intended recipient, you should not disseminate, distribute<br>
&gt; or<br>
&gt; &gt;&gt;&gt;&gt;&gt; copy<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; this<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; e-mail. Please notify the sender immediately and destroy all<br>
&gt; copies<br>
&gt; &gt;&gt;&gt;&gt;&gt; of<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; this<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; message and any attachments.<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; WARNING: Computer viruses can be transmitted via email. The<br>
&gt; &gt;&gt;&gt;&gt;&gt; recipient<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; should check this email and any attachments for the presence of<br>
&gt; &gt;&gt;&gt;&gt;&gt; viruses.<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; The<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; company accepts no liability for any damage caused by any virus<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; transmitted<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; by this email.<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; <a href="http://www.wipro.com" target="_blank">www.wipro.com</a><br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; SAP-WUG mailing list<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; <a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt; <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; &gt; &gt;<br>
&gt; &gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt; &gt;&gt;&gt;&gt;&gt; SAP-WUG mailing list<br>
&gt; &gt;&gt;&gt;&gt;&gt; <a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
&gt; &gt;&gt;&gt;&gt;&gt; <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
&gt; &gt;&gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt; _______________________________________________<br>
&gt; &gt;&gt;&gt;&gt; SAP-WUG mailing list<br>
&gt; &gt;&gt;&gt;&gt; <a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
&gt; &gt;&gt;&gt;&gt; <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; _______________________________________________<br>
&gt; &gt;&gt;&gt; SAP-WUG mailing list<br>
&gt; &gt;&gt;&gt; <a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
&gt; &gt;&gt;&gt; <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
</div></div></blockquote></div><br></div>