mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 02:12:05 +08:00
Sandraros/check demo regressions 2 (#940)
* remove sy-datum/sy-uzeit from demo programs * Fixed data for all demo programs Co-authored-by: sandraros <sandra.rossi@gmail.com> Co-authored-by: Abo <andrea@borgia.bo.it>
This commit is contained in:
parent
9d0c970682
commit
3ef605e74a
|
@ -14,6 +14,7 @@ DATA: lv_workdir TYPE string,
|
|||
|
||||
|
||||
PARAMETERS: p_path TYPE zexcel_export_dir.
|
||||
PARAMETERS: p_checkr NO-DISPLAY TYPE abap_bool.
|
||||
|
||||
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path.
|
||||
lv_workdir = p_path.
|
||||
|
@ -37,7 +38,7 @@ START-OF-SELECTION.
|
|||
|
||||
SUBMIT zdemo_excel1 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Hello world
|
||||
SUBMIT zdemo_excel2 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Styles
|
||||
SUBMIT zdemo_excel3 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: iTab binding
|
||||
SUBMIT zdemo_excel3 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path WITH p_checkr = p_checkr AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: iTab binding
|
||||
SUBMIT zdemo_excel4 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Multi sheets, page setup and sheet properties
|
||||
SUBMIT zdemo_excel5 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Conditional formatting
|
||||
SUBMIT zdemo_excel6 WITH rb_down = abap_true WITH rb_show = abap_false WITH p_path = p_path AND RETURN. "#EC CI_SUBMIT abap2xlsx Demo: Formulas
|
||||
|
|
|
@ -12,7 +12,9 @@ REPORT zdemo_excel1.
|
|||
DATA: lo_excel TYPE REF TO zcl_excel,
|
||||
lo_worksheet TYPE REF TO zcl_excel_worksheet,
|
||||
lo_hyperlink TYPE REF TO zcl_excel_hyperlink,
|
||||
lo_column TYPE REF TO zcl_excel_column.
|
||||
lo_column TYPE REF TO zcl_excel_column,
|
||||
lv_date TYPE d,
|
||||
lv_time TYPE t.
|
||||
|
||||
CONSTANTS: gc_save_file_name TYPE string VALUE '01_HelloWorld.xlsx'.
|
||||
INCLUDE zdemo_excel_outputopt_incl.
|
||||
|
@ -25,8 +27,10 @@ START-OF-SELECTION.
|
|||
" Get active sheet
|
||||
lo_worksheet = lo_excel->get_active_worksheet( ).
|
||||
lo_worksheet->set_cell( ip_column = 'B' ip_row = 2 ip_value = 'Hello world' ).
|
||||
lo_worksheet->set_cell( ip_column = 'B' ip_row = 3 ip_value = sy-datum ).
|
||||
lo_worksheet->set_cell( ip_column = 'C' ip_row = 3 ip_value = sy-uzeit ).
|
||||
lv_date = '20211231'.
|
||||
lv_time = '055817'.
|
||||
lo_worksheet->set_cell( ip_column = 'B' ip_row = 3 ip_value = lv_date ).
|
||||
lo_worksheet->set_cell( ip_column = 'C' ip_row = 3 ip_value = lv_time ).
|
||||
lo_hyperlink = zcl_excel_hyperlink=>create_external_link( iv_url = 'https://abap2xlsx.github.io/abap2xlsx' ).
|
||||
lo_worksheet->set_cell( ip_column = 'B' ip_row = 4 ip_value = 'Click here to visit abap2xlsx homepage' ip_hyperlink = lo_hyperlink ).
|
||||
|
||||
|
|
BIN
src/demos/zdemo_excel1.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel1.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel1.w3mi.xml
Normal file
28
src/demos/zdemo_excel1.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL1</NAME>
|
||||
<TEXT>01_HelloWorld.xlsx (ZDEMO_EXCEL1)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL1</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL1</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL1</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
REPORT zdemo_excel10.
|
||||
|
||||
TYPES: ty_sflight_lines TYPE TABLE OF sflight.
|
||||
|
||||
DATA: lo_excel TYPE REF TO zcl_excel,
|
||||
lo_worksheet TYPE REF TO zcl_excel_worksheet,
|
||||
lo_style_cond TYPE REF TO zcl_excel_style_cond,
|
||||
|
@ -51,8 +53,8 @@ START-OF-SELECTION.
|
|||
lo_style_cond->mode_iconset = ls_iconset.
|
||||
lo_style_cond->priority = 1.
|
||||
|
||||
DATA lt_test TYPE TABLE OF sflight.
|
||||
SELECT * FROM sflight INTO TABLE lt_test. "#EC CI_NOWHERE
|
||||
DATA lt_test TYPE ty_sflight_lines.
|
||||
PERFORM load_fixed_data CHANGING lt_test.
|
||||
|
||||
lt_field_catalog = zcl_excel_common=>get_fieldcatalog( ip_table = lt_test ).
|
||||
|
||||
|
@ -93,3 +95,50 @@ START-OF-SELECTION.
|
|||
|
||||
*** Create output
|
||||
lcl_output=>output( lo_excel ).
|
||||
|
||||
|
||||
FORM load_fixed_data CHANGING ct_test TYPE ty_sflight_lines.
|
||||
DATA: lt_lines TYPE TABLE OF string,
|
||||
lv_line TYPE string,
|
||||
lt_fields TYPE TABLE OF string,
|
||||
lv_comp TYPE i,
|
||||
lv_field TYPE string,
|
||||
ls_test TYPE sflight.
|
||||
FIELD-SYMBOLS: <lv_field> TYPE simple.
|
||||
|
||||
APPEND 'AA 0017 20171219 422 USD 747-400 385 371 191334 31 28 21 21' TO lt_lines.
|
||||
APPEND 'AA 0017 20180309 422 USD 747-400 385 365 189984 31 29 21 20' TO lt_lines.
|
||||
APPEND 'AA 0017 20180528 422 USD 747-400 385 374 193482 31 30 21 20' TO lt_lines.
|
||||
APPEND 'AA 0017 20180816 422 USD 747-400 385 372 193127 31 30 21 20' TO lt_lines.
|
||||
APPEND 'AA 0017 20181104 422 USD 747-400 385 44 23908 31 4 21 3' TO lt_lines.
|
||||
APPEND 'AA 0017 20190123 422 USD 747-400 385 40 20347 31 3 21 2' TO lt_lines.
|
||||
APPEND 'AZ 0555 20171219 185 EUR 737-800 140 133 32143 12 12 10 10' TO lt_lines.
|
||||
APPEND 'AZ 0555 20180309 185 EUR 737-800 140 137 32595 12 12 10 10' TO lt_lines.
|
||||
APPEND 'AZ 0555 20180528 185 EUR 737-800 140 134 31899 12 11 10 10' TO lt_lines.
|
||||
APPEND 'AZ 0555 20180816 185 EUR 737-800 140 128 29775 12 10 10 9' TO lt_lines.
|
||||
APPEND 'AZ 0555 20181104 185 EUR 737-800 140 0 0 12 0 10 0' TO lt_lines.
|
||||
APPEND 'AZ 0555 20190123 185 EUR 737-800 140 23 5392 12 1 10 2' TO lt_lines.
|
||||
APPEND 'AZ 0789 20171219 1030 EUR 767-200 260 250 307176 21 20 11 11' TO lt_lines.
|
||||
APPEND 'AZ 0789 20180309 1030 EUR 767-200 260 252 306054 21 20 11 10' TO lt_lines.
|
||||
APPEND 'AZ 0789 20180528 1030 EUR 767-200 260 252 307063 21 20 11 10' TO lt_lines.
|
||||
APPEND 'AZ 0789 20180816 1030 EUR 767-200 260 249 300739 21 19 11 10' TO lt_lines.
|
||||
APPEND 'AZ 0789 20181104 1030 EUR 767-200 260 104 127647 21 8 11 5' TO lt_lines.
|
||||
APPEND 'AZ 0789 20190123 1030 EUR 767-200 260 18 22268 21 1 11 1' TO lt_lines.
|
||||
APPEND 'DL 0106 20171217 611 USD A380-800 475 458 324379 30 29 20 20' TO lt_lines.
|
||||
APPEND 'DL 0106 20180307 611 USD A380-800 475 458 324330 30 30 20 20' TO lt_lines.
|
||||
APPEND 'DL 0106 20180526 611 USD A380-800 475 459 328149 30 29 20 20' TO lt_lines.
|
||||
APPEND 'DL 0106 20180814 611 USD A380-800 475 462 326805 30 30 20 18' TO lt_lines.
|
||||
APPEND 'DL 0106 20181102 611 USD A380-800 475 167 115554 30 10 20 6' TO lt_lines.
|
||||
APPEND 'DL 0106 20190121 611 USD A380-800 475 11 9073 30 1 20 1' TO lt_lines.
|
||||
LOOP AT lt_lines INTO lv_line.
|
||||
CONDENSE lv_line.
|
||||
SPLIT lv_line AT space INTO TABLE lt_fields.
|
||||
lv_comp = 2.
|
||||
LOOP AT lt_fields INTO lv_field.
|
||||
ASSIGN COMPONENT lv_comp OF STRUCTURE ls_test TO <lv_field>.
|
||||
<lv_field> = lv_field.
|
||||
lv_comp = lv_comp + 1.
|
||||
ENDLOOP.
|
||||
APPEND ls_test TO ct_test.
|
||||
ENDLOOP.
|
||||
ENDFORM.
|
||||
|
|
BIN
src/demos/zdemo_excel10.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel10.w3mi.data.xlsx
Normal file
Binary file not shown.
29
src/demos/zdemo_excel10.w3mi.xml
Normal file
29
src/demos/zdemo_excel10.w3mi.xml
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL10</NAME>
|
||||
<TEXT>10_iTabFieldCatalog.xlsx (ZDEMO_EXCEL10)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL10</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL10</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
<VALUE>10_iTabFieldCatalog.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL10</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel12.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel12.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel12.w3mi.xml
Normal file
28
src/demos/zdemo_excel12.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL12</NAME>
|
||||
<TEXT>12_HideSizeOutlineRowsAndColumns.xlsx (ZDEMO_EXCEL12)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL12</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL12</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL12</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel13.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel13.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel13.w3mi.xml
Normal file
28
src/demos/zdemo_excel13.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL13</NAME>
|
||||
<TEXT>13_MergedCells.xlsx (ZDEMO_EXCEL13)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL13</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL13</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL13</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel14.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel14.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel14.w3mi.xml
Normal file
28
src/demos/zdemo_excel14.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL14</NAME>
|
||||
<TEXT>14_Alignment.xlsx (ZDEMO_EXCEL14)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL14</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL14</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL14</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel15_01.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel15_01.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel15_01.w3mi.xml
Normal file
28
src/demos/zdemo_excel15_01.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL15_01</NAME>
|
||||
<TEXT>15_01_HelloWorldFromReader.xlsx (ZDEMO_EXCEL15)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_01</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_01</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_01</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel15_02.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel15_02.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel15_02.w3mi.xml
Normal file
28
src/demos/zdemo_excel15_02.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL15_02</NAME>
|
||||
<TEXT>15_02_StylesFromReader.xlsx (ZDEMO_EXCEL15)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_02</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_02</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_02</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel15_03.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel15_03.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel15_03.w3mi.xml
Normal file
28
src/demos/zdemo_excel15_03.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL15_03</NAME>
|
||||
<TEXT>15_03_iTabFromReader.xlsx (ZDEMO_EXCEL15)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_03</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_03</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_03</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel15_04.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel15_04.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel15_04.w3mi.xml
Normal file
28
src/demos/zdemo_excel15_04.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL15_04</NAME>
|
||||
<TEXT>15_04_SheetsFromReader.xlsx (ZDEMO_EXCEL15)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_04</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_04</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_04</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel15_05.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel15_05.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel15_05.w3mi.xml
Normal file
28
src/demos/zdemo_excel15_05.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL15_05</NAME>
|
||||
<TEXT>15_05_ConditionalFromReader.xlsx (ZDEMO_EXCEL15)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_05</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_05</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_05</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel15_07.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel15_07.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel15_07.w3mi.xml
Normal file
28
src/demos/zdemo_excel15_07.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL15_07</NAME>
|
||||
<TEXT>15_07_ConditionalAllFromReader.xlsx (ZDEMO_EXCEL15)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_07</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_07</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_07</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel15_08.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel15_08.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel15_08.w3mi.xml
Normal file
28
src/demos/zdemo_excel15_08.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL15_08</NAME>
|
||||
<TEXT>15_08_RangeFromReader.xlsx (ZDEMO_EXCEL15)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_08</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_08</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_08</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel15_13.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel15_13.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel15_13.w3mi.xml
Normal file
28
src/demos/zdemo_excel15_13.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL15_13</NAME>
|
||||
<TEXT>15_13_MergedCellsFromReader.xlsx (ZDEMO_EXCEL15)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_13</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_13</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_13</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel15_24.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel15_24.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel15_24.w3mi.xml
Normal file
28
src/demos/zdemo_excel15_24.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL15_24</NAME>
|
||||
<TEXT>15_24_Sheets_with_different_default_date_formatsFromReader.xlsx (ZDEMO_EXCEL15)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_24</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_24</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_24</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel15_31.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel15_31.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel15_31.w3mi.xml
Normal file
28
src/demos/zdemo_excel15_31.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL15_31</NAME>
|
||||
<TEXT>15_31_AutosizeWithDifferentFontSizesFromReader.xlsx (ZDEMO_EXCEL15)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_31</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_31</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL15_31</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel16.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel16.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel16.w3mi.xml
Normal file
28
src/demos/zdemo_excel16.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL16</NAME>
|
||||
<TEXT>16_Drawings.xlsx (ZDEMO_EXCEL16)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL16</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL16</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL16</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel17.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel17.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel17.w3mi.xml
Normal file
28
src/demos/zdemo_excel17.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL17</NAME>
|
||||
<TEXT>17_SheetProtection.xlsx (ZDEMO_EXCEL17)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL17</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL17</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL17</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel18.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel18.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel18.w3mi.xml
Normal file
28
src/demos/zdemo_excel18.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL18</NAME>
|
||||
<TEXT>18_BookProtection.xlsx (ZDEMO_EXCEL18)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL18</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL18</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL18</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel19.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel19.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel19.w3mi.xml
Normal file
28
src/demos/zdemo_excel19.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL19</NAME>
|
||||
<TEXT>19_SetActiveSheet.xlsx (ZDEMO_EXCEL19)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL19</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL19</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL19</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel2.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel2.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel2.w3mi.xml
Normal file
28
src/demos/zdemo_excel2.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL2</NAME>
|
||||
<TEXT>02_Styles.xlsx (ZDEMO_EXCEL2)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL2</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL2</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL2</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel21.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel21.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel21.w3mi.xml
Normal file
28
src/demos/zdemo_excel21.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL21</NAME>
|
||||
<TEXT>21_BackgroundColorPicker.xlsx (ZDEMO_EXCEL21)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL21</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL21</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL21</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
REPORT zdemo_excel22.
|
||||
|
||||
TYPES: ty_sflight_lines TYPE TABLE OF sflight.
|
||||
|
||||
DATA: lo_excel TYPE REF TO zcl_excel,
|
||||
lo_worksheet TYPE REF TO zcl_excel_worksheet,
|
||||
lo_style TYPE REF TO zcl_excel_style,
|
||||
|
@ -38,8 +40,8 @@ START-OF-SELECTION.
|
|||
lo_worksheet = lo_excel->get_active_worksheet( ).
|
||||
lo_worksheet->set_title( ip_title = 'PN_MASSIVE' ).
|
||||
|
||||
DATA lt_test TYPE TABLE OF sflight.
|
||||
SELECT * FROM sflight INTO TABLE lt_test. "#EC CI_NOWHERE
|
||||
DATA lt_test TYPE ty_sflight_lines.
|
||||
PERFORM load_fixed_data CHANGING lt_test.
|
||||
|
||||
" sheet style (white background)
|
||||
lo_style = lo_excel->add_new_style( ).
|
||||
|
@ -125,3 +127,50 @@ START-OF-SELECTION.
|
|||
|
||||
*** Create output
|
||||
lcl_output=>output( lo_excel ).
|
||||
|
||||
|
||||
FORM load_fixed_data CHANGING ct_test TYPE ty_sflight_lines.
|
||||
DATA: lt_lines TYPE TABLE OF string,
|
||||
lv_line TYPE string,
|
||||
lt_fields TYPE TABLE OF string,
|
||||
lv_comp TYPE i,
|
||||
lv_field TYPE string,
|
||||
ls_test TYPE sflight.
|
||||
FIELD-SYMBOLS: <lv_field> TYPE simple.
|
||||
|
||||
APPEND 'AA 0017 20171219 422 USD 747-400 385 371 191334 31 28 21 21' TO lt_lines.
|
||||
APPEND 'AA 0017 20180309 422 USD 747-400 385 365 189984 31 29 21 20' TO lt_lines.
|
||||
APPEND 'AA 0017 20180528 422 USD 747-400 385 374 193482 31 30 21 20' TO lt_lines.
|
||||
APPEND 'AA 0017 20180816 422 USD 747-400 385 372 193127 31 30 21 20' TO lt_lines.
|
||||
APPEND 'AA 0017 20181104 422 USD 747-400 385 44 23908 31 4 21 3' TO lt_lines.
|
||||
APPEND 'AA 0017 20190123 422 USD 747-400 385 40 20347 31 3 21 2' TO lt_lines.
|
||||
APPEND 'AZ 0555 20171219 185 EUR 737-800 140 133 32143 12 12 10 10' TO lt_lines.
|
||||
APPEND 'AZ 0555 20180309 185 EUR 737-800 140 137 32595 12 12 10 10' TO lt_lines.
|
||||
APPEND 'AZ 0555 20180528 185 EUR 737-800 140 134 31899 12 11 10 10' TO lt_lines.
|
||||
APPEND 'AZ 0555 20180816 185 EUR 737-800 140 128 29775 12 10 10 9' TO lt_lines.
|
||||
APPEND 'AZ 0555 20181104 185 EUR 737-800 140 0 0 12 0 10 0' TO lt_lines.
|
||||
APPEND 'AZ 0555 20190123 185 EUR 737-800 140 23 5392 12 1 10 2' TO lt_lines.
|
||||
APPEND 'AZ 0789 20171219 1030 EUR 767-200 260 250 307176 21 20 11 11' TO lt_lines.
|
||||
APPEND 'AZ 0789 20180309 1030 EUR 767-200 260 252 306054 21 20 11 10' TO lt_lines.
|
||||
APPEND 'AZ 0789 20180528 1030 EUR 767-200 260 252 307063 21 20 11 10' TO lt_lines.
|
||||
APPEND 'AZ 0789 20180816 1030 EUR 767-200 260 249 300739 21 19 11 10' TO lt_lines.
|
||||
APPEND 'AZ 0789 20181104 1030 EUR 767-200 260 104 127647 21 8 11 5' TO lt_lines.
|
||||
APPEND 'AZ 0789 20190123 1030 EUR 767-200 260 18 22268 21 1 11 1' TO lt_lines.
|
||||
APPEND 'DL 0106 20171217 611 USD A380-800 475 458 324379 30 29 20 20' TO lt_lines.
|
||||
APPEND 'DL 0106 20180307 611 USD A380-800 475 458 324330 30 30 20 20' TO lt_lines.
|
||||
APPEND 'DL 0106 20180526 611 USD A380-800 475 459 328149 30 29 20 20' TO lt_lines.
|
||||
APPEND 'DL 0106 20180814 611 USD A380-800 475 462 326805 30 30 20 18' TO lt_lines.
|
||||
APPEND 'DL 0106 20181102 611 USD A380-800 475 167 115554 30 10 20 6' TO lt_lines.
|
||||
APPEND 'DL 0106 20190121 611 USD A380-800 475 11 9073 30 1 20 1' TO lt_lines.
|
||||
LOOP AT lt_lines INTO lv_line.
|
||||
CONDENSE lv_line.
|
||||
SPLIT lv_line AT space INTO TABLE lt_fields.
|
||||
lv_comp = 2.
|
||||
LOOP AT lt_fields INTO lv_field.
|
||||
ASSIGN COMPONENT lv_comp OF STRUCTURE ls_test TO <lv_field>.
|
||||
<lv_field> = lv_field.
|
||||
lv_comp = lv_comp + 1.
|
||||
ENDLOOP.
|
||||
APPEND ls_test TO ct_test.
|
||||
ENDLOOP.
|
||||
ENDFORM.
|
||||
|
|
BIN
src/demos/zdemo_excel22.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel22.w3mi.data.xlsx
Normal file
Binary file not shown.
29
src/demos/zdemo_excel22.w3mi.xml
Normal file
29
src/demos/zdemo_excel22.w3mi.xml
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL22</NAME>
|
||||
<TEXT>22_itab_fieldcatalog.xlsx (ZDEMO_EXCEL22)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL22</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL22</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
<VALUE>22_itab_fieldcatalog.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL22</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel23.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel23.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel23.w3mi.xml
Normal file
28
src/demos/zdemo_excel23.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL23</NAME>
|
||||
<TEXT>23_Sheets_with_and_without_grid_lines.xlsx (ZDEMO_EXCEL23)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL23</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL23</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL23</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
|
@ -22,6 +22,8 @@ DATA: lv_full_path TYPE string,
|
|||
lv_file_separator TYPE c.
|
||||
|
||||
DATA: lv_value TYPE string.
|
||||
DATA: lv_date TYPE d VALUE '19000226',
|
||||
lv_row TYPE i.
|
||||
|
||||
CONSTANTS: gc_save_file_name TYPE string VALUE '24_Sheets_with_different_default_date_formats.xlsx'.
|
||||
INCLUDE zdemo_excel_outputopt_incl.
|
||||
|
@ -36,9 +38,9 @@ START-OF-SELECTION.
|
|||
lo_worksheet = lo_excel->get_active_worksheet( ).
|
||||
lo_worksheet->set_title( ip_title = 'Sheet1' ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 1 ip_value = 'Default Date Format' ).
|
||||
" Insert current date
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 3 ip_value = 'Current Date:' ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 4 ip_value = sy-datum ).
|
||||
" Insert date
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 3 ip_value = 'Date:' ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 4 ip_value = lv_date ).
|
||||
|
||||
lo_hyperlink = zcl_excel_hyperlink=>create_internal_link( iv_location = 'Sheet2!A1' ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 6 ip_value = 'This is a link to the second sheet' ip_hyperlink = lo_hyperlink ).
|
||||
|
@ -52,8 +54,8 @@ START-OF-SELECTION.
|
|||
lo_worksheet->set_title( ip_title = 'Sheet2' ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 1 ip_value = 'Date Format set to YYYYMMDD' ).
|
||||
" Insert current date
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 3 ip_value = 'Current Date:' ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 4 ip_value = sy-datum ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 3 ip_value = 'Date:' ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 4 ip_value = lv_date ).
|
||||
|
||||
lo_hyperlink = zcl_excel_hyperlink=>create_internal_link( iv_location = 'Sheet3!B2' ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 6 ip_value = 'This is link to the third sheet' ip_hyperlink = lo_hyperlink ).
|
||||
|
@ -66,8 +68,8 @@ START-OF-SELECTION.
|
|||
lo_worksheet->set_title( ip_title = 'Sheet3' ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 1 ip_value = 'Date Format set to YYYY/MM/DD' ).
|
||||
" Insert current date
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 3 ip_value = 'Current Date:' ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 4 ip_value = sy-datum ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 3 ip_value = 'Date:' ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 4 ip_value = lv_date ).
|
||||
|
||||
lo_hyperlink = zcl_excel_hyperlink=>create_internal_link( iv_location = 'Sheet4!B2' ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 6 ip_value = 'This is link to the 4th sheet' ip_hyperlink = lo_hyperlink ).
|
||||
|
@ -81,8 +83,6 @@ START-OF-SELECTION.
|
|||
" Loop from Start Date to the Max Date current data in daily steps
|
||||
CONSTANTS: lv_max TYPE d VALUE '19000302'.
|
||||
|
||||
DATA: lv_date TYPE d VALUE '19000226',
|
||||
lv_row TYPE i.
|
||||
lo_worksheet->set_cell( ip_column = 'B' ip_row = 3 ip_value = 'Formated date' ).
|
||||
lo_worksheet->set_cell( ip_column = 'C' ip_row = 3 ip_value = 'Integer value for this date' ).
|
||||
lo_worksheet->set_cell( ip_column = 'D' ip_row = 3 ip_value = 'Date as string' ).
|
||||
|
|
BIN
src/demos/zdemo_excel24.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel24.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel24.w3mi.xml
Normal file
28
src/demos/zdemo_excel24.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL24</NAME>
|
||||
<TEXT>24_Sheets_with_different_default_date_formats.xlsx (ZDEMO_EXCEL24)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL24</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL24</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL24</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel27.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel27.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel27.w3mi.xml
Normal file
28
src/demos/zdemo_excel27.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL27</NAME>
|
||||
<TEXT>27_ConditionalFormatting.xlsx (ZDEMO_EXCEL27)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL27</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL27</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL27</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
REPORT zdemo_excel3.
|
||||
|
||||
TYPES: ty_sflight_lines TYPE TABLE OF sflight.
|
||||
|
||||
DATA: lo_excel TYPE REF TO zcl_excel,
|
||||
lo_worksheet TYPE REF TO zcl_excel_worksheet,
|
||||
lo_column TYPE REF TO zcl_excel_column.
|
||||
|
@ -31,6 +33,7 @@ CONSTANTS: gc_save_file_name TYPE string VALUE '03_iTab.xlsx'.
|
|||
INCLUDE zdemo_excel_outputopt_incl.
|
||||
|
||||
PARAMETERS: p_empty TYPE flag.
|
||||
PARAMETERS: p_checkr NO-DISPLAY TYPE abap_bool.
|
||||
|
||||
START-OF-SELECTION.
|
||||
" Creates active sheet
|
||||
|
@ -40,10 +43,14 @@ START-OF-SELECTION.
|
|||
lo_worksheet = lo_excel->get_active_worksheet( ).
|
||||
lo_worksheet->set_title( ip_title = 'Internal table' ).
|
||||
|
||||
DATA lt_test TYPE TABLE OF sflight.
|
||||
DATA lt_test TYPE ty_sflight_lines.
|
||||
|
||||
IF p_empty <> abap_true.
|
||||
SELECT * FROM sflight INTO TABLE lt_test. "#EC CI_NOWHERE
|
||||
IF p_checkr = abap_true.
|
||||
PERFORM load_fixed_data_for_checker CHANGING lt_test.
|
||||
ELSE.
|
||||
SELECT * FROM sflight INTO TABLE lt_test. "#EC CI_NOWHERE
|
||||
ENDIF.
|
||||
ENDIF.
|
||||
|
||||
ls_table_settings-table_style = zcl_excel_table=>builtinstyle_medium2.
|
||||
|
@ -93,3 +100,51 @@ START-OF-SELECTION.
|
|||
|
||||
*** Create output
|
||||
lcl_output=>output( lo_excel ).
|
||||
|
||||
|
||||
|
||||
FORM load_fixed_data_for_checker CHANGING ct_test TYPE ty_sflight_lines.
|
||||
DATA: lt_lines TYPE TABLE OF string,
|
||||
lv_line TYPE string,
|
||||
lt_fields TYPE TABLE OF string,
|
||||
lv_comp TYPE i,
|
||||
lv_field TYPE string,
|
||||
ls_test TYPE sflight.
|
||||
FIELD-SYMBOLS: <lv_field> TYPE simple.
|
||||
|
||||
APPEND 'AA 0017 20171219 422 USD 747-400 385 371 191334 31 28 21 21' TO lt_lines.
|
||||
APPEND 'AA 0017 20180309 422 USD 747-400 385 365 189984 31 29 21 20' TO lt_lines.
|
||||
APPEND 'AA 0017 20180528 422 USD 747-400 385 374 193482 31 30 21 20' TO lt_lines.
|
||||
APPEND 'AA 0017 20180816 422 USD 747-400 385 372 193127 31 30 21 20' TO lt_lines.
|
||||
APPEND 'AA 0017 20181104 422 USD 747-400 385 44 23908 31 4 21 3' TO lt_lines.
|
||||
APPEND 'AA 0017 20190123 422 USD 747-400 385 40 20347 31 3 21 2' TO lt_lines.
|
||||
APPEND 'AZ 0555 20171219 185 EUR 737-800 140 133 32143 12 12 10 10' TO lt_lines.
|
||||
APPEND 'AZ 0555 20180309 185 EUR 737-800 140 137 32595 12 12 10 10' TO lt_lines.
|
||||
APPEND 'AZ 0555 20180528 185 EUR 737-800 140 134 31899 12 11 10 10' TO lt_lines.
|
||||
APPEND 'AZ 0555 20180816 185 EUR 737-800 140 128 29775 12 10 10 9' TO lt_lines.
|
||||
APPEND 'AZ 0555 20181104 185 EUR 737-800 140 0 0 12 0 10 0' TO lt_lines.
|
||||
APPEND 'AZ 0555 20190123 185 EUR 737-800 140 23 5392 12 1 10 2' TO lt_lines.
|
||||
APPEND 'AZ 0789 20171219 1030 EUR 767-200 260 250 307176 21 20 11 11' TO lt_lines.
|
||||
APPEND 'AZ 0789 20180309 1030 EUR 767-200 260 252 306054 21 20 11 10' TO lt_lines.
|
||||
APPEND 'AZ 0789 20180528 1030 EUR 767-200 260 252 307063 21 20 11 10' TO lt_lines.
|
||||
APPEND 'AZ 0789 20180816 1030 EUR 767-200 260 249 300739 21 19 11 10' TO lt_lines.
|
||||
APPEND 'AZ 0789 20181104 1030 EUR 767-200 260 104 127647 21 8 11 5' TO lt_lines.
|
||||
APPEND 'AZ 0789 20190123 1030 EUR 767-200 260 18 22268 21 1 11 1' TO lt_lines.
|
||||
APPEND 'DL 0106 20171217 611 USD A380-800 475 458 324379 30 29 20 20' TO lt_lines.
|
||||
APPEND 'DL 0106 20180307 611 USD A380-800 475 458 324330 30 30 20 20' TO lt_lines.
|
||||
APPEND 'DL 0106 20180526 611 USD A380-800 475 459 328149 30 29 20 20' TO lt_lines.
|
||||
APPEND 'DL 0106 20180814 611 USD A380-800 475 462 326805 30 30 20 18' TO lt_lines.
|
||||
APPEND 'DL 0106 20181102 611 USD A380-800 475 167 115554 30 10 20 6' TO lt_lines.
|
||||
APPEND 'DL 0106 20190121 611 USD A380-800 475 11 9073 30 1 20 1' TO lt_lines.
|
||||
LOOP AT lt_lines INTO lv_line.
|
||||
CONDENSE lv_line.
|
||||
SPLIT lv_line AT space INTO TABLE lt_fields.
|
||||
lv_comp = 2.
|
||||
LOOP AT lt_fields INTO lv_field.
|
||||
ASSIGN COMPONENT lv_comp OF STRUCTURE ls_test TO <lv_field>.
|
||||
<lv_field> = lv_field.
|
||||
lv_comp = lv_comp + 1.
|
||||
ENDLOOP.
|
||||
APPEND ls_test TO ct_test.
|
||||
ENDLOOP.
|
||||
ENDFORM.
|
||||
|
|
BIN
src/demos/zdemo_excel3.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel3.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel3.w3mi.xml
Normal file
28
src/demos/zdemo_excel3.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL3</NAME>
|
||||
<TEXT>03_iTab.xlsx (ZDEMO_EXCEL3)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL3</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL3</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL3</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel30.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel30.w3mi.data.xlsx
Normal file
Binary file not shown.
29
src/demos/zdemo_excel30.w3mi.xml
Normal file
29
src/demos/zdemo_excel30.w3mi.xml
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL30</NAME>
|
||||
<TEXT>30_CellDataTypes.xlsx (ZDEMO_EXCEL30)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL30</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL30</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
<VALUE>30_CellDataTypes.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL30</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel31.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel31.w3mi.data.xlsx
Normal file
Binary file not shown.
29
src/demos/zdemo_excel31.w3mi.xml
Normal file
29
src/demos/zdemo_excel31.w3mi.xml
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL31</NAME>
|
||||
<TEXT>31_AutosizeWithDifferentFontSizes.xlsx (ZDEMO_EXCEL31)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL31</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL31</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
<VALUE>31_AutosizeWithDifferentFontSizes.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL31</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
|
@ -8,12 +8,14 @@
|
|||
|
||||
REPORT zdemo_excel33.
|
||||
|
||||
TYPES: ty_t005t_lines TYPE TABLE OF t005t.
|
||||
|
||||
DATA: lo_excel TYPE REF TO zcl_excel,
|
||||
lo_worksheet TYPE REF TO zcl_excel_worksheet,
|
||||
lo_converter TYPE REF TO zcl_excel_converter,
|
||||
lo_autofilter TYPE REF TO zcl_excel_autofilter.
|
||||
|
||||
DATA lt_test TYPE TABLE OF t005t.
|
||||
DATA lt_test TYPE ty_t005t_lines.
|
||||
|
||||
DATA: l_cell_value TYPE zexcel_cell_value,
|
||||
ls_area TYPE zexcel_s_autofilter_area.
|
||||
|
@ -33,7 +35,7 @@ START-OF-SELECTION.
|
|||
lo_worksheet = lo_excel->get_active_worksheet( ).
|
||||
lo_worksheet->set_title( ip_title = 'Internal table' ).
|
||||
|
||||
SELECT * UP TO 2 ROWS FROM t005t INTO TABLE lt_test. "#EC CI_NOWHERE
|
||||
PERFORM load_fixed_data CHANGING lt_test.
|
||||
|
||||
CREATE OBJECT lo_converter.
|
||||
|
||||
|
@ -65,3 +67,30 @@ START-OF-SELECTION.
|
|||
|
||||
*** Create output
|
||||
lcl_output=>output( lo_excel ).
|
||||
|
||||
|
||||
FORM load_fixed_data CHANGING ct_test TYPE ty_t005t_lines.
|
||||
DATA: lt_lines TYPE TABLE OF string,
|
||||
lv_line TYPE string,
|
||||
lt_fields TYPE TABLE OF string,
|
||||
lv_comp TYPE i,
|
||||
lv_field TYPE string,
|
||||
ls_test TYPE t005t.
|
||||
FIELD-SYMBOLS: <lv_field> TYPE simple.
|
||||
|
||||
APPEND '001 E AD Andorra Andorran Andorra Andorran ' TO lt_lines.
|
||||
APPEND '001 E BE Belgium Belgian Belgium Belgian ' TO lt_lines.
|
||||
APPEND '001 E DE Germany German Germany German ' TO lt_lines.
|
||||
APPEND '001 E FM Micronesia Micronesian Micronesia Micronesian' TO lt_lines.
|
||||
LOOP AT lt_lines INTO lv_line.
|
||||
CONDENSE lv_line.
|
||||
SPLIT lv_line AT space INTO TABLE lt_fields.
|
||||
lv_comp = 1.
|
||||
LOOP AT lt_fields INTO lv_field.
|
||||
ASSIGN COMPONENT lv_comp OF STRUCTURE ls_test TO <lv_field>.
|
||||
<lv_field> = lv_field.
|
||||
lv_comp = lv_comp + 1.
|
||||
ENDLOOP.
|
||||
APPEND ls_test TO ct_test.
|
||||
ENDLOOP.
|
||||
ENDFORM.
|
||||
|
|
BIN
src/demos/zdemo_excel33.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel33.w3mi.data.xlsx
Normal file
Binary file not shown.
29
src/demos/zdemo_excel33.w3mi.xml
Normal file
29
src/demos/zdemo_excel33.w3mi.xml
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL33</NAME>
|
||||
<TEXT>33_autofilter.xlsx (ZDEMO_EXCEL33)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL33</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL33</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
<VALUE>33_autofilter.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL33</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel34.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel34.w3mi.data.xlsx
Normal file
Binary file not shown.
29
src/demos/zdemo_excel34.w3mi.xml
Normal file
29
src/demos/zdemo_excel34.w3mi.xml
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL34</NAME>
|
||||
<TEXT>34_Static Styles_Chess.xlsx (ZDEMO_EXCEL34)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL34</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL34</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
<VALUE>34_Static Styles_Chess.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL34</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel35.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel35.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel35.w3mi.xml
Normal file
28
src/demos/zdemo_excel35.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL35</NAME>
|
||||
<TEXT>35_Static_Styles.xlsx (ZDEMO_EXCEL35)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL35</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL35</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL35</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel36.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel36.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel36.w3mi.xml
Normal file
28
src/demos/zdemo_excel36.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL36</NAME>
|
||||
<TEXT>36_DefaultStyles.xlsx (ZDEMO_EXCEL36)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL36</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL36</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL36</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel38.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel38.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel38.w3mi.xml
Normal file
28
src/demos/zdemo_excel38.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL38</NAME>
|
||||
<TEXT>38_SAP-Icons.xlsx (ZDEMO_EXCEL38)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL38</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL38</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL38</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel39.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel39.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel39.w3mi.xml
Normal file
28
src/demos/zdemo_excel39.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL39</NAME>
|
||||
<TEXT>39_Charts.xlsx (ZDEMO_EXCEL39)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL39</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL39</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL39</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel4.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel4.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel4.w3mi.xml
Normal file
28
src/demos/zdemo_excel4.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL4</NAME>
|
||||
<TEXT>04_Sheets.xlsx (ZDEMO_EXCEL4)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL4</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL4</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL4</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel40.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel40.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel40.w3mi.xml
Normal file
28
src/demos/zdemo_excel40.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL40</NAME>
|
||||
<TEXT>40_Printsettings.xlsx (ZDEMO_EXCEL40)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL40</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL40</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL40</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel5.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel5.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel5.w3mi.xml
Normal file
28
src/demos/zdemo_excel5.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL5</NAME>
|
||||
<TEXT>05_Conditional.xlsx (ZDEMO_EXCEL5)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL5</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL5</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL5</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel6.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel6.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel6.w3mi.xml
Normal file
28
src/demos/zdemo_excel6.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL6</NAME>
|
||||
<TEXT>06_Formulas.xlsx (ZDEMO_EXCEL6)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL6</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL6</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL6</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel7.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel7.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel7.w3mi.xml
Normal file
28
src/demos/zdemo_excel7.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL7</NAME>
|
||||
<TEXT>07_ConditionalAll.xlsx (ZDEMO_EXCEL7)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL7</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL7</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL7</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel8.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel8.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel8.w3mi.xml
Normal file
28
src/demos/zdemo_excel8.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL8</NAME>
|
||||
<TEXT>08_Range.xlsx (ZDEMO_EXCEL8)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL8</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL8</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL8</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
BIN
src/demos/zdemo_excel9.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel9.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel9.w3mi.xml
Normal file
28
src/demos/zdemo_excel9.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL9</NAME>
|
||||
<TEXT>09_DataValidation.xlsx (ZDEMO_EXCEL9)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL9</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL9</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL9</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
1384
src/demos/zdemo_excel_checker.prog.abap
Normal file
1384
src/demos/zdemo_excel_checker.prog.abap
Normal file
File diff suppressed because it is too large
Load Diff
22
src/demos/zdemo_excel_checker.prog.xml
Normal file
22
src/demos/zdemo_excel_checker.prog.xml
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_PROG" serializer_version="v1.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<PROGDIR>
|
||||
<NAME>ZDEMO_EXCEL_CHECKER</NAME>
|
||||
<DBAPL>S</DBAPL>
|
||||
<SUBC>1</SUBC>
|
||||
<FIXPT>X</FIXPT>
|
||||
<LDBNAME>D$S</LDBNAME>
|
||||
<UCCHECK>X</UCCHECK>
|
||||
</PROGDIR>
|
||||
<TPOOL>
|
||||
<item>
|
||||
<ID>R</ID>
|
||||
<ENTRY>abap2xlsx demos: check for regressions</ENTRY>
|
||||
<LENGTH>38</LENGTH>
|
||||
</item>
|
||||
</TPOOL>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
|
@ -23,11 +23,6 @@ START-OF-SELECTION.
|
|||
|
||||
" Get active sheet
|
||||
lo_worksheet = lo_excel->get_active_worksheet( ).
|
||||
lo_worksheet->set_cell( ip_column = 'B' ip_row = 2 ip_value = 'Hello world' ).
|
||||
lo_worksheet->set_cell( ip_column = 'B' ip_row = 3 ip_value = sy-datum ).
|
||||
lo_worksheet->set_cell( ip_column = 'C' ip_row = 3 ip_value = sy-uzeit ).
|
||||
lo_hyperlink = zcl_excel_hyperlink=>create_external_link( iv_url = 'http://www.abap2xlsx.org' ).
|
||||
lo_worksheet->set_cell( ip_column = 'B' ip_row = 4 ip_value = 'Click here to visit abap2xlsx homepage' ip_hyperlink = lo_hyperlink ).
|
||||
|
||||
" Comments
|
||||
lo_comment = lo_excel->add_new_comment( ).
|
||||
|
@ -42,15 +37,6 @@ START-OF-SELECTION.
|
|||
|
||||
" Second sheet
|
||||
lo_worksheet = lo_excel->add_new_worksheet( ).
|
||||
lo_worksheet->set_default_excel_date_format( zcl_excel_style_number_format=>c_format_date_yyyymmdd ).
|
||||
lo_worksheet->set_title( ip_title = 'Sheet2' ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 1 ip_value = 'Date Format set to YYYYMMDD' ).
|
||||
" Insert current date
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 3 ip_value = 'Current Date:' ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 4 ip_value = sy-datum ).
|
||||
|
||||
lo_hyperlink = zcl_excel_hyperlink=>create_internal_link( iv_location = 'Sheet3!B2' ).
|
||||
lo_worksheet->set_cell( ip_column = 'A' ip_row = 6 ip_value = 'This is link to the third sheet' ip_hyperlink = lo_hyperlink ).
|
||||
|
||||
lo_comment = lo_excel->add_new_comment( ).
|
||||
lo_comment->set_text( ip_ref = 'A8' ip_text = 'What about a comment on second sheet?' ).
|
||||
|
|
BIN
src/demos/zdemo_excel_comments.w3mi.data.xlsx
Normal file
BIN
src/demos/zdemo_excel_comments.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/zdemo_excel_comments.w3mi.xml
Normal file
28
src/demos/zdemo_excel_comments.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZDEMO_EXCEL_COMMENTS</NAME>
|
||||
<TEXT>Comments.xlsx (ZDEMO_EXCEL_COMMENTS)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL_COMMENTS</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL_COMMENTS</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZDEMO_EXCEL_COMMENTS</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
|
@ -82,8 +82,7 @@ START-OF-SELECTION.
|
|||
lo_worksheet = lo_excel->add_new_worksheet( 'Sheet2' ).
|
||||
|
||||
" Add some content otherwise the error "nothing to be printed" is shown
|
||||
lo_worksheet->set_cell( ip_column = 'B' ip_row = 3 ip_value = sy-datum ).
|
||||
lo_worksheet->set_cell( ip_column = 'C' ip_row = 3 ip_value = sy-uzeit ).
|
||||
lo_worksheet->set_cell( ip_column = 'B' ip_row = 3 ip_value = 'Hello world' ).
|
||||
|
||||
**********************************************************************
|
||||
*** Header Left
|
||||
|
|
BIN
src/demos/ztest_excel_image_header.w3mi.data.xlsx
Normal file
BIN
src/demos/ztest_excel_image_header.w3mi.data.xlsx
Normal file
Binary file not shown.
28
src/demos/ztest_excel_image_header.w3mi.xml
Normal file
28
src/demos/ztest_excel_image_header.w3mi.xml
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_W3MI" serializer_version="v2.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<NAME>ZTEST_EXCEL_IMAGE_HEADER</NAME>
|
||||
<TEXT>Image_Header_Footer.xlsx (ZTEST_EXCEL_IMAGE_HEADER)</TEXT>
|
||||
<PARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZTEST_EXCEL_IMAGE_HEADER</OBJID>
|
||||
<NAME>fileextension</NAME>
|
||||
<VALUE>.xlsx</VALUE>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZTEST_EXCEL_IMAGE_HEADER</OBJID>
|
||||
<NAME>filename</NAME>
|
||||
</WWWPARAMS>
|
||||
<WWWPARAMS>
|
||||
<RELID>MI</RELID>
|
||||
<OBJID>ZTEST_EXCEL_IMAGE_HEADER</OBJID>
|
||||
<NAME>mimetype</NAME>
|
||||
<VALUE>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</VALUE>
|
||||
</WWWPARAMS>
|
||||
</PARAMS>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
19
src/zexcel_tr_docprops_core.xslt.source.xml
Normal file
19
src/zexcel_tr_docprops_core.xslt.source.xml
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?sap.transform simple?>
|
||||
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
|
||||
|
||||
<tt:root name="ROOT"/>
|
||||
|
||||
<tt:template>
|
||||
|
||||
<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi=
|
||||
"http://www.w3.org/2001/XMLSchema-instance" tt:ref="ROOT" tt:extensible="deep-dynamic">
|
||||
<dc:creator tt:value-ref="CREATOR"/>
|
||||
<dc:description tt:value-ref="DESCRIPTION"/>
|
||||
<cp:lastModifiedBy tt:value-ref="LAST_MODIFIED_BY"/>
|
||||
<dcterms:created tt:value-ref="CREATED" xsi:type="dcterms:W3CDTF"/>
|
||||
<dcterms:modified tt:value-ref="MODIFIED" xsi:type="dcterms:W3CDTF"/>
|
||||
</cp:coreProperties>
|
||||
|
||||
</tt:template>
|
||||
|
||||
</tt:transform>
|
12
src/zexcel_tr_docprops_core.xslt.xml
Normal file
12
src/zexcel_tr_docprops_core.xslt.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_XSLT" serializer_version="v1.0.0">
|
||||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
|
||||
<asx:values>
|
||||
<ATTRIBUTES>
|
||||
<XSLTDESC>ZEXCEL_TR_DOCPROPS_CORE</XSLTDESC>
|
||||
<LANGU>E</LANGU>
|
||||
<DESCRIPT>docProps/core.xml</DESCRIPT>
|
||||
</ATTRIBUTES>
|
||||
</asx:values>
|
||||
</asx:abap>
|
||||
</abapGit>
|
Loading…
Reference in New Issue
Block a user