Commit Graph

962 Commits

Author SHA1 Message Date
Bernd
564d60e0f5
Update zcl_excel_reader_2007.clas.abap (#1234) 2024-06-09 10:39:59 +02:00
sandraros
fd2dc14ac2
Support of empty cell address by LOAD (workbook) (#1225)
Fix #1081

Co-authored-by: sandraros <sandra.rossi@gmail.com>
Co-authored-by: Andrea Borgia <andrea@borgia.bo.it>
2024-05-12 11:57:33 +02:00
RixarSAP
c2096d1f9b
Added field WIDTH in field catalog of method BIND_TABLE (#1224)
Fix #1227
2024-05-11 17:34:06 +02:00
sandraros
aee3b3efa4
More control on comment box position/size (#1226) 2024-05-11 16:56:20 +02:00
RixarSAP
a9e1068e44
Add possibility to change the size of the comments. (#1219)
Fix #1221
2024-05-06 08:42:16 +02:00
Domi Bigl
3cb8f883f1
fix hidden compare values (#1208)
set hidden compare values to constants lc_xml_attr_true and lc_xml_attr_true_int ( 'true' and '1' )
2024-04-27 12:14:29 +02:00
Bernd
5cb47b143c
Header/footer images and comments together create wrong file destinations in sheet#.xml.rels (#1201)
* Update zcl_excel_writer_2007.clas.abap

Fix #1214
2024-04-20 18:32:50 +02:00
Bernd
191bf9cf61
Update zcl_excel_writer_2007.clas.locals_imp.abap (#1200)
solves #1113
2024-04-20 12:26:15 +02:00
Kjetil Kilhavn
f9685c981d
Convert fields with date & time value correctly to just date or just time (#1197)
* Convert fields with date 

Ignore decimals when converting to date and ignore integer when converting to time
Fix #1132

* New ip_exact parameter of excel_string_to_date

- I'm not comfortable about changing the logic in `excel_string_to_date`, in case other people have implemented a "-1 day" fix after the call, so I added a parameter `ip_exact` to keep an ascending compatibility.
- I reused the old structure of unit tests to simplify the diff
- fix #1205 (I added this time issue that you fixed, the original issue mentioned only the date issue)

---------

Co-authored-by: sandraros <sandra.rossi@gmail.com>
2024-04-20 09:53:31 +02:00
juancarlosrodriguezf
0f473095e1
Format Date (#1050)
* Fix format date for dd/mm/yyyy
* added new date format DD/MM/YY
* New constant for dd/mm/yyyy instead of changing the existing one to keep the ascending compatibility

---------

Co-authored-by: Abo <andrea@borgia.bo.it>
Co-authored-by: Domi Bigl <dominik.bigl@cadaxo.com>
Co-authored-by: sandraros <sandra.rossi@gmail.com>
2024-04-14 10:32:55 +02:00
sandraros
a69258e829
set_table to support table components not DDIC (#1204)
Fix #1166
2024-04-13 15:54:22 +02:00
Aditya Waghmare
35425c3220
CSV Initial External Date (#1190)
* CSV Initial External Date

Added code to set an initial external date other than the value returned by function module 'CONVERT_DATE_TO_EXTERNAL'.

* Default value as public constant

---------

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
Co-authored-by: sandraros <34005250+sandraros@users.noreply.github.com>
2024-02-15 15:20:09 +01:00
sandraros
39f92725a0
Update LICENSE Copyright (#1191)
Fix #1153
2024-02-15 11:16:49 +01:00
sandraros
242a3d4e43
Ineffective Set_Namespace_Prefix on DOM document (#1186)
It always return an error but isn't handled → line removed
2024-02-06 20:01:26 +01:00
sandraros
e4f0ca2333
Unused calls/variables about cl_xml_document (#1185) 2024-02-06 15:15:51 +01:00
sandraros
b77b48fd15
Cleanup unused variables in zcl_excel_theme (#1183)
Removing the statement ixml_element->get_attribute( 'xmlns:a' ) is anyway a good thing because getting a namespace attribute this way is not supported by IXML and it is always returning an empty string even if this "attribute" exists.
2024-02-01 17:37:36 +01:00
sandraros
cc8fb819ad
Fix freeze and topLeftCell in reader/writer (#1178)
Fix freeze and topLeftCell in reader/writer

Fix #1175
Adds new methods set_pane_top_left_cell and set_sheetview_top_left_cell to zcl_excel_worksheet
2024-01-31 16:23:15 +01:00
Lars Hvam
1148838a0f
add basic unit test for recursive_struct_to_class (#1124)
* add basic unit test for recursive_struct_to_class

* Update zcl_excel_common.clas.testclasses.abap
2024-01-29 07:21:05 +01:00
Lars Hvam
b4a79ebe6c
start unit testing setup (#872) 2024-01-29 07:18:57 +01:00
sandraros
5f784c8ed6
Fix zoom information in reader and writer (#1177)
Fix #1176
2024-01-19 21:37:06 +01:00
Attila Berencsi
6bb02920df
Address DDIC Issues on BTP ABAP Environment: SAP_BASIS 794 (SAPK-79406INSAPBASIS 0006) (#1169)
* Address DDIC Issues on BTP ABAP Environment.
SAP_BASIS 794 (SAPK-79406INSAPBASIS  0006)

* Move DynPro related DDIC to NOT_CLOUD package

* Remove one langu from DTEL, DOMA 2 see git changes

* Remove non-english translations for copied data elements for cloud

* Package assignment and diff cleanup
Moved from package <root>_NOT_CLOUD to <root>
- ZEXCEL_S_FIELDCATALOG
Moved from package <root> to <root>_NOT_CLOUD:
- ZEXCEL_T_CONVERTER_COL
- ZEXCEL_T_CONVERTER_FCAT
- ZIF_EXCEL_CONVERTER
"No change" (latest abapGit version indicates a Diff but details give message "no diff" - abapGit bug?), let's see if it solves:
- /src/not_cloud/zexcel_component_position.dtel.xml
- /src/not_cloud/zexcel_convexit.doma.xml
- /src/not_cloud/zexcel_convexit.dtel.xml
- /src/not_cloud/zexcel_ddic_flag.doma.xml
- /src/not_cloud/zexcel_disp_text_long.doma.xml
- /src/not_cloud/zexcel_disp_text_long.dtel.xml
- /src/not_cloud/zexcel_disp_text_medium.dtel.xml
- /src/not_cloud/zexcel_disp_text_short.doma.xml
- /src/not_cloud/zexcel_disp_text_short.dtel.xml
- /src/not_cloud/zexcel_screen_display.dtel.xml

---------

Co-authored-by: 04c82057-cb12-4722-bad9-5d002feb93ac <attila.berencsi@gmail.com>
Co-authored-by: sandraros <sandra.rossi@gmail.com>
2024-01-14 14:43:22 +01:00
HuprichTo
92809a41e3
Fix unescape string value when not escpaped (#1160)
* BUGFIX: Skip Input without escaped Character

Some special Values, e.g. "TEST_X" were handled like it was an escaped Character, thats because it was not checked if the second conition, an "_" behind it was there

* Adjust Package Description to its Original

* Remove commented Code

Was there for testing, not needed anymore

* Downport to 7.02

Adjust Method Call to apply 7.02 Syntax

* Fix abaplint Issues

* Fix abaplint Issues (again)

---------

Fix #1122 

Co-authored-by: sandraros <34005250+sandraros@users.noreply.github.com>
2024-01-11 17:35:46 +01:00
sandraros
76a39a7819
Make the reader get the Tables (#1159)
Fix #1158
Fix #1168
2023-12-25 16:36:58 +01:00
Lars Hvam
1c2607f655
move ZEXCEL_TR_DOCPROPS_CORE to demos (#1165) 2023-12-24 20:28:06 +01:00
Lars Hvam
a6176d7f17
replace use of REFFIELD (#1154) 2023-11-05 11:21:52 +01:00
Lars Hvam
bcec07b41a
fix syntax warning (#1155) 2023-11-05 11:18:36 +01:00
larsip
c1a20e870b
Convert currency amount to external format (#1147)
Fix #1145

* Convert currency amount to external format
Fetching currency reference field from ALV and use the value from this field convert the value to external format

* Missing field catalog update

* Little changes proposed

* Code best positioned, delete unused declaration
Latest changes proposed by darnoc312
2023-11-04 17:09:11 +01:00
Arno
ccda3a0aa8
read all header/footer (odd/even) elements (#1144)
Previously only the "oddFooter" was read and stored. Read the missing elements as well.
2023-10-29 19:09:30 +01:00
Daniel Wegner
cf8bb2c501
add iv_end_row to convert_to_table (#1148)
Co-authored-by: sandraros <34005250+sandraros@users.noreply.github.com>
2023-10-29 18:29:51 +01:00
sandraros
d30855345c
XML I18N_LANGS/DD02_TEXTS - ZEXCEL_S_FIELDCATALOG (#1149)
New XML added by abapGit while serializing the DDIC structure ZEXCEL_S_FIELDCATALOG:
  <I18N_LANGS>
    <LANGU>1</LANGU>
    ...
  </I18N_LANGS>
  <DD02_TEXTS>
    <item>
     <DDLANGUAGE>1</DDLANGUAGE>
     <DDTEXT>Fieldcatalog for Table Binding</DDTEXT>
    </item>
    ...
  </DD02_TEXTS>
2023-10-29 18:11:02 +01:00
Lars Hvam
2f970b82a1
abaplint: update msag_consistency rule settings (#1142)
to not require numeric parameters
2023-10-01 17:33:07 +02:00
Matthias
4d33c4e20e
Fix CSV Export with date and time in excel format (#1140)
* solving issue #1134
* changes after testing
* CSV export - Dateretention of cellstyles - fix issue #1134
* undo previous changes for issue #1134
2023-09-30 14:07:30 +02:00
sandraros
ec32e7ade4
ZCX_EXCEL diff <SOTS_USE> due to new abapGit (#1141)
Pull of latest abap2xlsx via latest abapGit still shows a diff on ZCX_EXCEL. The abapGit serialization adds an extra <SOTS_USE> block.
2023-09-30 11:17:07 +02:00
Domi Bigl
c28162d1d1
add escape of - (#1128)
* add escape of -

* add untitests

* replace inline data declaration
2023-08-04 14:57:02 +02:00
Lars Hvam
425b6a2b7d
add basic unit test for style changer (#1123)
* add basic unit test for style changer

* xml

* revert
2023-07-28 07:02:16 +02:00
Lars Hvam
ac78cd87d2
split unit test delete_merge (#1121)
* split unit test delete_merge

into one unit test per test

* add unit test get_rows_iterator
2023-07-28 07:00:11 +02:00
Matthias
1fe298d5be
Update zcl_excel_converter_salv_table.clas.abap (#1120)
fix issue #1119
2023-07-10 14:07:26 +02:00
Domi Bigl
2b01655cab
do not use NO-ZERO for none numeric cell values (#1100) 2023-05-26 07:47:59 +02:00
sandraros
829529cf6a
don't run SALV get_metadata if not displayed yet (#1109)
fix #1097

* don't run SALV get_metadata if not displayed yet

---------

Co-authored-by: Sandra Rossi <sandraros@gmail.com>
2023-05-08 20:18:18 +02:00
sandraros
869dc52e40
Escape/unescape control characters in writer/reader (#1099)
* Escape/unescape control characters

Fix #1098

---------

Co-authored-by: sandraros <sandra.rossi@gmail.com>
2023-04-21 17:51:25 +02:00
Lars Hvam
04b143ca2e
zcl_excel_theme_fmt_scheme, replace use of cl_xml_document (#1046)
* zcl_excel_theme_fmt_scheme, add unit test

* replace use of cl_xml_document

---------

Co-authored-by: Abo <andrea@borgia.bo.it>
2023-04-08 16:36:04 +02:00
Abo
530d9e207a
replace quit-no with older name for constant (#1088)
ABAP Unit parameter Quit constant for "no" valid in versions 7.31+ is IF_AUNIT_CONSTANTS=>NO
2023-02-04 17:18:33 +01:00
Abo
e0c4fade08
fix code template generation to work on 731 (#1086)
* Update zexcel_template_get_types.prog.abap: fix code template generation to work on 731

* Update README.md: added minimum version support
2023-02-04 16:52:29 +01:00
Enno
8b729bb01a
link for demos (#1084) 2023-02-04 15:24:32 +01:00
Rüdiger Plantiko
bd8105f800
Update zcl_excel_worksheet.clas.testclasses.abap (#1082)
Replacing IF_ABAP_UNIT_CONSTANT by IF_AUNIT_CONSTANTS, as proposed by @sandraros
2023-01-28 21:18:04 +01:00
Domi Bigl
34a8ed4865
use INSERT for sorted ITab (#1066) 2023-01-14 12:18:30 +01:00
Domi Bigl
684c8f71e0
get INT8 typekind dynamic (#1065) 2022-11-20 20:44:47 +01:00
Rahul Dwivedi
df9db3d55c
zcl_excel_writer- create_xl_sheet Refactor1 (#1069) 2022-10-27 20:10:38 +02:00
sandraros
d9f557ea75
XML changes after latest abapGit (#1071)
Latest abapGit version did a cleanup of useless elements /DESCRIPTIONS/SEOCOMPOTX/CLSNAME because it's duplicate information.

<?xml version="1.0" encoding="utf-8"?>
<abapGit version="v1.0.0" serializer="LCL_OBJECT_CLAS" serializer_version="v1.0.0">
 <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
  <asx:values>
   <VSEOCLASS>
    <CLSNAME>ZCL_EXCEL_WRITER_2007</CLSNAME>
    <LANGU>E</LANGU>
    <DESCRIPT>Excel writer 2007</DESCRIPT>
    <STATE>1</STATE>
    <CLSCCINCL>X</CLSCCINCL>
    <FIXPT>X</FIXPT>
    <UNICODE>X</UNICODE>
    <WITH_UNIT_TESTS>X</WITH_UNIT_TESTS>
   </VSEOCLASS>
   <DESCRIPTIONS>
    <SEOCOMPOTX>
     <CLSNAME>ZCL_EXCEL_WRITER_2007</CLSNAME>  <============= Removed
     <CMPNAME>ADD_FURTHER_DATA_TO_ZIP</CMPNAME>
     <LANGU>E</LANGU>
     <DESCRIPT>Add further data to zip ( used by child-classes )</DESCRIPT>

Co-authored-by: sandraros <sandra.rossi@gmail.com>
2022-10-23 21:22:30 +02:00
Derby
90981b21c5
add METHOD convert_to_table. (#999)
* added METHOD convert_to_table.

Co-authored-by: Abo <andrea@borgia.bo.it>
Co-authored-by: Lars Hvam <larshp@hotmail.com>
Co-authored-by: Domi Bigl <dominik.bigl@cadaxo.com>
2022-08-29 18:04:16 +02:00