Skip to Content
0
Former Member
Jan 15, 2013 at 04:33 PM

How to update and close MIME files programatically

19 Views

Hi All,

Am facing an another issue with MIME file i.e. update and release ,

Am able to update the XML in the MIME using the below code for first time, but its not updating for the 2nd time...its updating only when I closes the browser...so what I understood is... the XML is still in use after the first time I updated.

CONCATENATE '<chart numberPrefix='''' yAxisName=''PAY''xAxisName=''RAJESH'' caption=''Weekly Sales Summary''> '
'<set value=''14400'' label=''1st Week ''/> '
'<set value=''19600'' label=''2nd Week ''/>'
'<set value=''24000'' label=''3rd Week ''/>'
'<set value=''15'' label=''4th Week ''/> '
'</chart>' INTO XMLDATA_STR.

CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
TEXT = xmldata_str
* MIMETYPE = ' '
* ENCODING =
IMPORTING
BUFFER = xmldata.

mr->PUT(
exporting
I_URL = '/sap/bc/webdynpro/sap/Z_FUSIONDEMO/Data.xml' " Object URL
I_CONTENT = xmldata " Object Contents (if exists -> overwrite contents)
).


****************** XML read
mr->GET(
exporting
I_URL = '/sap/bc/webdynpro/sap/Z_FUSIONDEMO/Data.xml' " Object URL
importing
E_CONTENT = XMLDATA1 " Object Contents
).
cl_abap_conv_in_ce=>create(
EXPORTING
encoding = 'NON-UNICODE'
endian = 'L'
RECEIVING
conv = conv
).

conv->convert(
EXPORTING
input = XMLDATA1 " type xstring
IMPORTING
data = XMLDATA_STR1 " type string
).

Am getting the update data on text message , but its not updating on IFrmae,..please suggest me how can I close the XMl after I update ..so that which can be accessable to IFrame