Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

Download excel from WD with Dropdown list

$
0
0

Hi

 

I am working on Download excel from WD application. I checked Kruthika's post where an XML is generated and then tags are manipulated by Code.

{

APPEND INITIAL LINE TO P_T_XML_DATA

ASSIGNING <FS_XML>.

MOVE : '<?xml version="1.0"?>' TO  <FS_XML>-TDLINE.

CONCATENATE TEXT <FS_XML>-TDLINE  CL_ABAP_CHAR_UTILITIES=>NEWLINE INTO TEXT .

 

APPEND INITIAL LINE TO P_T_XML_DATA

ASSIGNING <FS_XML>.

MOVE : '<?mso-application progid="Excel.Sheet"?>' TO  <FS_XML>-TDLINE.

CONCATENATE TEXT <FS_XML>-TDLINE  CL_ABAP_CHAR_UTILITIES=>NEWLINE INTO TEXT . }

 

Similarly, for whole code and then,

 

CALL FUNCTION 'SCMS_STRING_TO_XSTRING'

   EXPORTING

     TEXT   = TEXT

   IMPORTING

     BUFFER = XTEXT.

 

 

WDR_TASK=>CLIENT_WINDOW->CLIENT->ATTACH_FILE_TO_RESPONSE(

   I_FILENAME = 'filename.XLS' "** String Variable

   I_CONTENT XTEXT "** File Type

   I_MIME_TYPE = 'EXCEL' ).

 

at time of generation, I get a 'Strict Parse Error'. Is it because there is listbox for one of the headers?

 

I checked project from ABAP2XLS did find what I needed, I have to show a file generated from Application with formatted cells , with Columns having lists.

 

I looked at transformation 'XLST' but didnt work, since source to be supplied which I added in Source.

 

Thanks

Mohinder


Viewing all articles
Browse latest Browse all 3667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>