Skip to Content
0
Former Member
Nov 20, 2013 at 02:29 PM

Cancel an appointment using CL_APPOINTMENT

187 Views

I am trying to cancel an already sent appointment to outlook from SAP, as below, trying to create ICS file as an attachment to CL_BCS, refering to below link

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/209e4aee-3743-2e10-4190-e075c38889a3?quicklink=index&overridelayout=true

lv_row = 'BEGIN:VCALENDAR'.

lv_cnt_nn = strlen( lv_row ).

concatenate '0' lv_cnt_nn lv_blank_tt lv_row into lv_row RESPECTING BLANKS.

append lv_row TO lt_attachment.

lv_row = 'VERSION:2.0'.

lv_cnt_nn = strlen( lv_row ).

concatenate '0' lv_cnt_nn lv_blank_tt lv_row into lv_row RESPECTING BLANKS.

append lv_row TO lt_attachment.

lv_row = 'PRODID:-//SYFADIS//PORTAIL FORMATION//FR'.

lv_cnt_nn = strlen( lv_row ).

concatenate '0' lv_cnt_nn lv_blank_tt lv_row into lv_row RESPECTING BLANKS.

append lv_row TO lt_attachment.

lv_row = 'METHOD:CANCEL'.

lv_cnt_nn = strlen( lv_row ).

concatenate '0' lv_cnt_nn lv_blank_tt lv_row into lv_row RESPECTING BLANKS.

In between this I try to append the body text using, DESCRIPTION: keyword.

But I am unable to add multiple lines with line break, in body text, although there seems to limitation of 255 chars in single line ?

Any idea how to implement it. I tried search on forum but no luck !