mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-06 07:01:02 +08:00
Merge branch 'main' into fix-bind_no_filter
This commit is contained in:
commit
639066865c
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
## Procedure
|
## Procedure
|
||||||
|
|
||||||
Execute abapGit using the report **ZABAPGIT_FULL**, click on *New Online*, fill the field *Git repository URL* with *https://github.com/abap2xlsx/abap2xlsx.git*, package with *$abap2xlsx* if you just want to test. If you want to transport abap2xlsx to production then use a non local package, for example ZABAP2XLSX. Click *Create package* if the package doesn't exist yet. Then click *Clone online repo*.
|
Execute abapGit using the report **ZABAPGIT_STANDALONE**, click on *New Online*, fill the field *Git repository URL* with *https://github.com/abap2xlsx/abap2xlsx.git*, package with *$abap2xlsx* if you just want to test. If you want to transport abap2xlsx to production then use a non local package, for example ZABAP2XLSX. Click *Create package* if the package doesn't exist yet. Then click *Clone online repo*.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
|
@ -2967,14 +2967,18 @@ CLASS zcl_excel_worksheet IMPLEMENTATION.
|
||||||
|
|
||||||
DATA: lt_field_catalog TYPE zexcel_t_fieldcatalog,
|
DATA: lt_field_catalog TYPE zexcel_t_fieldcatalog,
|
||||||
lv_value_lowercase TYPE string,
|
lv_value_lowercase TYPE string,
|
||||||
|
lv_scrtext_l_initial TYPE scrtext_l,
|
||||||
|
lv_long_text TYPE string,
|
||||||
|
lv_max_length TYPE i,
|
||||||
|
lv_temp_length TYPE i,
|
||||||
lv_syindex TYPE c LENGTH 3,
|
lv_syindex TYPE c LENGTH 3,
|
||||||
lt_column_name_buffer TYPE SORTED TABLE OF string WITH UNIQUE KEY table_line.
|
lt_column_name_buffer TYPE SORTED TABLE OF string WITH UNIQUE KEY table_line.
|
||||||
FIELD-SYMBOLS: <ls_field_catalog> TYPE zexcel_s_fieldcatalog,
|
FIELD-SYMBOLS: <ls_field_catalog> TYPE zexcel_s_fieldcatalog,
|
||||||
<scrtxt1> TYPE any,
|
<scrtxt1> TYPE any,
|
||||||
<scrtxt2> TYPE any,
|
<scrtxt2> TYPE any,
|
||||||
<scrtxt3> TYPE any.
|
<scrtxt3> TYPE any.
|
||||||
|
|
||||||
" Due restrinction of new table object we cannot have two column with the same name
|
" Due to restrictions in new table object we cannot have two columns with the same name
|
||||||
" Check if a column with the same name exists, if exists add a counter
|
" Check if a column with the same name exists, if exists add a counter
|
||||||
" If no medium description is provided we try to use small or long
|
" If no medium description is provided we try to use small or long
|
||||||
|
|
||||||
|
@ -3011,6 +3015,8 @@ CLASS zcl_excel_worksheet IMPLEMENTATION.
|
||||||
<ls_field_catalog>-scrtext_l = 'Column'. " default value as Excel does
|
<ls_field_catalog>-scrtext_l = 'Column'. " default value as Excel does
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
|
lv_scrtext_l_initial = <ls_field_catalog>-scrtext_l.
|
||||||
|
DESCRIBE FIELD <ls_field_catalog>-scrtext_l LENGTH lv_max_length IN CHARACTER MODE.
|
||||||
DO.
|
DO.
|
||||||
lv_value_lowercase = <ls_field_catalog>-scrtext_l.
|
lv_value_lowercase = <ls_field_catalog>-scrtext_l.
|
||||||
TRANSLATE lv_value_lowercase TO LOWER CASE.
|
TRANSLATE lv_value_lowercase TO LOWER CASE.
|
||||||
|
@ -3020,7 +3026,14 @@ CLASS zcl_excel_worksheet IMPLEMENTATION.
|
||||||
EXIT.
|
EXIT.
|
||||||
ELSE.
|
ELSE.
|
||||||
lv_syindex = sy-index.
|
lv_syindex = sy-index.
|
||||||
CONCATENATE <ls_field_catalog>-scrtext_l lv_syindex INTO <ls_field_catalog>-scrtext_l.
|
CONCATENATE lv_scrtext_l_initial lv_syindex INTO lv_long_text.
|
||||||
|
IF strlen( lv_long_text ) <= lv_max_length.
|
||||||
|
<ls_field_catalog>-scrtext_l = lv_long_text.
|
||||||
|
ELSE.
|
||||||
|
lv_temp_length = strlen( lv_scrtext_l_initial ) - 1.
|
||||||
|
lv_scrtext_l_initial = substring( val = lv_scrtext_l_initial len = lv_temp_length ).
|
||||||
|
CONCATENATE lv_scrtext_l_initial lv_syindex INTO <ls_field_catalog>-scrtext_l.
|
||||||
|
ENDIF.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
ENDDO.
|
ENDDO.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user