Skip to Content
0
Former Member
Sep 25, 2009 at 12:02 PM

xstring to string for ms_excel

52 Views

Hi ALL,

I am using OFFICE CONTROL UI ELEMENT for displaying iternal table data into EXCEL OFFICE CONTROL UI .

i am displaying data into OFFICE CONTROL UI EXCEL, then i will update excel of office control and then i will save,when i save that updated data need to send one internal table .

DATA :OUT_STRING1 TYPE STRING,

CONTENTXMLSOURCE TYPE XSTRING.

WD_CONTEXT->GET_ATTRIBUTE( EXPORTING NAME = 'DATAS' IMPORTING VALUE = CONTENTXMLSOURCE ).

CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'

EXPORTING

  • FROM_CODEPAGE = '8500'

IN_XSTRING = CONTENTXMLSOURCE

  • OUT_LEN =

IMPORTING

OUT_STRING = OUT_STRING1.

data lr_conv type ref to cl_abap_conv_in_ce.

lr_conv = cl_abap_conv_in_ce=>create( ).

lr_conv->convert( exporting input = xstring importing data = string ).

NOT FOR LIKE Excel file (like Tab Delimited, CVS, XML, etc). Only for ms_excel.

the above mention two concepts are not working to convert from xstring to string ,is there any concept ms_excel format xstring to string?

THANKS,

RAMA

Edited by: Ramakullay Challa on Sep 25, 2009 2:03 PM

Edited by: Ramakullay Challa on Sep 25, 2009 2:06 PM