2 Replies Latest reply: Aug 9, 2012 10:22 PM by Sandra Newton RSS

LSO Correspondence doesn't work with vCalendar attachment in MSOutlook 2007

reddy kumar
Currently Being Moderated

Hello,

 

Is anyone using the Learning Solution Request-Based Correspondence with either vCalendar attachments and Microsoft Outlook 2007?

 

Our client moved from Microsoft Outlook 2003 to Microsoft Outlook 2007. None of our vCalendar attachments work since we have moved to Outlook 2007. When we try to open the .VCS attachment, we receive an error message stating that it is not a valid Internet calendar file.

 

I even tried .ICS attachment but same error pops up !

 

Any work around !!

 

Request to help , it would be greatly appreciated !!

 

Thanks!

 

Hello SAP Gurus ,

 

    Please help me out on the issue.

    or any alternative to this.

 

Thanks in advance

 

Edited by: Kumar214reddy on Jan 19, 2012 3:45 PM

  • Re: LSO Correspondence doesn't work with vCalendar attachment in MSOutlook 2007
    Matt Hall
    Currently Being Moderated

    Did you resolve this issue?  I'm testing a solution where I am using SAP as the master and sending out internet calendar meetings.  I am also receiving the same error message that the file ... is not a valid Internet Calendar file.  I edited the attachment with notepad and striped out the blank lines and line numbering and I was able to open and accept the meeting in Outlook.

  • Re: LSO Correspondence doesn't work with vCalendar attachment in MSOutlook 2007
    Sandra Newton
    Currently Being Moderated

    I was experiencing this same issue and have finally have it resolved with a code recommendation from SAP.  Hopefully you have already performed all the actions as outlined in this document:

     

    http://aspireopenmic.com/2011/06/29/lso-outlook-calendar-requests-as-attachments/

     

    However this does not work with Outlook 2007/2010 - only with Outlook 2003.  I had to do this additional work:

    1) Copy Class CL_LSO_CRP_RENDER_EXAMPLE to ZCL_LSO_CRP_RENDER_EXAMPLE

    2) Edit the method CREATE_VCAL of this new class.

         - Comment all code out from this line onwards:

      * BEGIN:VCALENDAR

        ls_soli-line = 'BEGIN:VCALENDAR'.

       APPEND ls_soli TO lt_soli.

    .......

      * Add CR/LF

        LOOP AT lt_soli ASSIGNING <fs_soli>.

          <fs_soli>-line+253(2) = cl_abap_char_utilities=>cr_lf.

       ENDLOOP.

     

    3) Add this statement:

    DATA: helpstring    TYPE string.                  

    4) Add the following code within the method:

    * BEGIN:VCALENDAR
     
    CONCATENATE 'BEGIN:VCALENDAR' cl_abap_char_utilities=>cr_lf
       
    INTO helpstring.* BEGIN:VCALENDAR
     
    CONCATENATE helpstring 'VERSION:1.0' cl_abap_char_utilities=>cr_lf
       
    INTO helpstring.* BEGIN:VEVENT
     
    CONCATENATE helpstring 'BEGIN:VEVENT' cl_abap_char_utilities=>cr_lf
       
    INTO helpstring.* ORGANIZER
     
    CONCATENATE helpstring 'ORGANIZER:MAILTO:' ls_data-sender-smail
        cl_abap_char_utilities
    =>cr_lf
       
    INTO helpstring.* ATTENDEE
     
    CONCATENATE helpstring 'ATTENDEE;ROLE=ATTENDEE:' ls_data-astxt '<' ls_data-amail '> '
        cl_abap_char_utilities
    =>cr_lf
       
    INTO helpstring.* DTSTART
     
    CONCATENATE helpstring 'DTSTART:' ls_data-kbgda 'T'
       
    INTO helpstring.
     
    IF NOT ls_data-kbtim IS INITIAL.
       
    CONCATENATE helpstring ls_data-kbtim INTO helpstring.
     
    ENDIF.
     
    CONCATENATE helpstring
        cl_abap_char_utilities
    =>cr_lf
       
    INTO helpstring.* DTEND
     
    CONCATENATE helpstring 'DTEND:' ls_data-kndda 'T'
       
    INTO helpstring.
     
    IF NOT ls_data-kbtim IS INITIAL.
       
    CONCATENATE helpstring ls_data-ketim INTO helpstring.
     
    ENDIF.
     
    CONCATENATE helpstring
        cl_abap_char_utilities
    =>cr_lf
       
    INTO helpstring.* LOCATION
     
    IF NOT ls_data-b_ort IS INITIAL OR NOT ls_data-rstxt IS INITIAL.
       
    CONCATENATE 'LOCATION:' ls_data-b_ort ls_data-rstxt
         
    INTO l_subject SEPARATED BY space.
       
    CONCATENATE helpstring l_subject
          cl_abap_char_utilities
    =>cr_lf
         
    INTO helpstring.
     
    ENDIF.* CATEGORIES
     
    CONCATENATE helpstring 'CATEGORIES;ENCODING=QUOTED-PRINTABLE:EDUCATION'
        cl_abap_char_utilities
    =>cr_lf
       
    INTO helpstring.* CLASS
     
    CONCATENATE helpstring 'CLASS:PUBLIC'
        cl_abap_char_utilities
    =>cr_lf
       
    INTO helpstring.* SUMMARY
     
    CONCATENATE text-001 ls_data-kstxt INTO l_subject SEPARATED BY space.
     
    CONCATENATE helpstring 'SUMMARY;ENCODING=QUOTED-PRINTABLE:' l_subject
        cl_abap_char_utilities
    =>cr_lf
       
    INTO helpstring.* DESCRIPTION
     
    CONCATENATE helpstring 'DESCRIPTION:' l_subject
        cl_abap_char_utilities
    =>cr_lf
       
    INTO helpstring.* END:VEVENT
     
    CONCATENATE helpstring 'END:VEVENT'
        cl_abap_char_utilities
    =>cr_lf
       
    INTO helpstring.* END:VCALENDAR
     
    CONCATENATE helpstring 'END:VCALENDAR'
        cl_abap_char_utilities
    =>cr_lf
       
    INTO helpstring.

     
    CALL METHOD CL_DOCUMENT_BCS=>STRING_TO_SOLI
       
    EXPORTING
          IP_STRING
    = helpstring
        RECEIVING
          RT_SOLI
    = lt_soli.

    5) Activate this class

     

    6) Search for all occurances of where method CREATE_VCAL is used within class CL_LSO_CRP_RENDER_EXAMPLE

    7) Replace following statement:

        lr_document = cl_lso_crp_render_example=>create_vcal( lr_reader ). 

    with: 

      lr_document = zcl_lso_crp_render_example=>create_vcal( lr_reader ). 

     

    This should resolve any problems now with the calendar attachments.