on 02-22-2012 12:29 PM
Hi,
I'm developing a alv report in web dynpro. The first requirement is to put traffic lights based on some criteria. This part has been done.
2nd requirement is to export this alv report into excel sheet. If traffic light of the row is 'RED' then in excel sheet it will be colored 'RED', if row is green excel sheet row will be 'GREEN' etc.
Thanks in advance for providing me solution of above problem I'm new to dynpro.
Thanks in advance,
Abhijit.
Hi,
If u want color a row dynamically based on output data,first u should provide colour features to a new excel sheet and
save the file as XML file and open it in notepad.
like this append on the perfect place
APPEND INITIAL LINE TO p_t_xml_data
ASSIGNING <fs_xml>.
MOVE : '<Interior ss:Color="#FAC090" ss:Pattern="Solid"/>' TO <fs_xml>-tdline.
CONCATENATE text <fs_xml>-tdline cl_abap_char_utilities=>newline INTO text.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
If you need cell formatting you must use the Excel XML format. Build a spreadsheet with the features you want and then choose save as XML from within Excel. Then look at the resulting file with a text editor to see how the XML format is built. This is what you need to duplicate in ABAP using Concatenations, the iXML library or XSLTs.
OR you can go through this link and check if it can help you:
link : http://www.saptechnical.com/Tutorials/WebDynproABAP/Excel/Index.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.