You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/development/xlsx.md
+2-37Lines changed: 2 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,7 +179,7 @@ The code snippets above are not compatible with ABAP Cloud, modify the lcl_help
179
179
:::
180
180
181
181
#### abap2xlsx
182
-
Instead of using the above XLSX API (which may change between releases), consider leveraging the excellent open-source project abap2xlsx. It provides reusable APIs for common XLSX operations and works entirely within the ABAP stack, ensuring seamless integration with abap2UI5. The following example demonstrates using abap2xlsx in the LCL_HELP class:
182
+
Instead of using the above XLSX API (which may change between releases), consider leveraging the excellent open-source project [abap2xlsx](https://github.com/abap2xlsx/abap2xlsx). It provides reusable APIs for common XLSX operations and works entirely within the ABAP stack. The following example demonstrates using abap2xlsx in the `LCL_HELP` class:
183
183
::: code-group
184
184
185
185
```abap
@@ -217,18 +217,9 @@ ENDMETHOD.
217
217
```
218
218
219
219
```abap [LCL_HELP]
220
-
CLASS lcl_help DEFINITION
221
-
FINAL
222
-
CREATE PUBLIC .
220
+
CLASS lcl_help DEFINITION FINAL CREATE PUBLIC .
223
221
224
222
PUBLIC SECTION.
225
-
226
-
CLASS-METHODS get_itab_by_xlsx
227
-
IMPORTING
228
-
val TYPE string
229
-
RETURNING
230
-
VALUE(result) TYPE REF TO data.
231
-
232
223
CLASS-METHODS get_xlsx_by_itab
233
224
IMPORTING
234
225
val TYPE any
@@ -237,9 +228,7 @@ CLASS lcl_help DEFINITION
237
228
238
229
ENDCLASS.
239
230
240
-
241
231
CLASS lcl_help IMPLEMENTATION.
242
-
243
232
METHOD get_xlsx_by_itab.
244
233
TRY.
245
234
@@ -250,7 +239,6 @@ CLASS lcl_help IMPLEMENTATION.
250
239
DATA: lt_field_catalog TYPE zexcel_t_fieldcatalog,
251
240
ls_table_settings TYPE zexcel_s_table_settings.
252
241
253
-
254
242
" Creates active sheet
255
243
CREATE OBJECT lo_excel.
256
244
@@ -277,29 +265,6 @@ CLASS lcl_help IMPLEMENTATION.
277
265
z2ui5_cL_util=>x_raise( x->get_text( ) ).
278
266
ENDTRY.
279
267
ENDMETHOD.
280
-
281
-
METHOD get_itab_by_xlsx.
282
-
TRY.
283
-
284
-
SPLIT val AT `;` INTO DATA(lv_dummy) DATA(lv_data).
0 commit comments