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