Skip to content

omit EXPORTING #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion abaplint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
},
"start_at_tab": false,
"whitespace_end": true,
"exporting": false,
"exporting": true,
"empty_statement": false,
"sequential_blank": true,
"definitions_top": false,
Expand Down
1 change: 0 additions & 1 deletion src/demo009/zdemo_excel9.prog.abap
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ START-OF-SELECTION.
SELECT * FROM sbook INTO TABLE bookings UP TO 4000 ROWS.

lo_worksheet->bind_table(
EXPORTING
ip_table = bookings
* it_field_catalog = " Table binding field catalog
* is_table_settings = " Excel table binding settings
Expand Down
1 change: 0 additions & 1 deletion src/demo020/zdemo_excel20.prog.abap
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ START-OF-SELECTION.

TRY.
lo_salv->set_screen_status(
EXPORTING
report = sy-repid
pfstatus = 'ALV_STATUS'
set_functions = lo_salv->c_functions_all ).
Expand Down
1 change: 0 additions & 1 deletion src/demo026/zdemo_excel26.prog.abap
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ START-OF-SELECTION.

TRY.
lo_salv->set_screen_status(
EXPORTING
report = sy-repid
pfstatus = 'ALV_STATUS'
set_functions = lo_salv->c_functions_all ).
Expand Down
1 change: 0 additions & 1 deletion src/demo031/zdemo_excel31.prog.abap
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ START-OF-SELECTION.
lo_worksheet->set_cell( ip_column = 'A' ip_row = 3 ip_value = 'Some more data' ).

lo_worksheet->set_merge(
EXPORTING
ip_column_start = 'A'
ip_column_end = 'C'
ip_row = 1 ).
Expand Down
2 changes: 0 additions & 2 deletions src/demo032/zdemo_excel32.prog.abap
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ START-OF-SELECTION.

TRY.
lo_salv->set_screen_status(
EXPORTING
report = sy-repid
pfstatus = 'ALV_STATUS'
set_functions = lo_salv->c_functions_all ).
Expand Down Expand Up @@ -156,7 +155,6 @@ FORM export_to_excel_conv RAISING zcx_excel.

CREATE OBJECT lo_converter.
lo_converter->convert(
EXPORTING
is_option = ls_option
io_alv = lo_salv
it_table = gt_sbook
Expand Down
25 changes: 5 additions & 20 deletions src/demo039/zdemo_excel39.prog.abap
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,10 @@ START-OF-SELECTION.
ls_lower-row = 30.
ls_lower-col = 20.
lo_drawing->set_position2(
EXPORTING
ip_from = ls_upper
ip_to = ls_lower ).

lo_drawing->set_media(
EXPORTING
ip_media_type = zcl_excel_drawing=>c_media_type_xml ).
lo_drawing->set_media( zcl_excel_drawing=>c_media_type_xml ).

lo_worksheet->add_drawing( lo_drawing ).

Expand All @@ -330,13 +327,10 @@ START-OF-SELECTION.
ls_lower-row = 22.
ls_lower-col = 21.
lo_drawing->set_position2(
EXPORTING
ip_from = ls_upper
ip_to = ls_lower ).

lo_drawing->set_media(
EXPORTING
ip_media_type = zcl_excel_drawing=>c_media_type_xml ).
lo_drawing->set_media( zcl_excel_drawing=>c_media_type_xml ).

lo_worksheet->add_drawing( lo_drawing ).

Expand All @@ -352,13 +346,10 @@ START-OF-SELECTION.
ls_lower-row = 22.
ls_lower-col = 10.
lo_drawing->set_position2(
EXPORTING
ip_from = ls_upper
ip_to = ls_lower ).

lo_drawing->set_media(
EXPORTING
ip_media_type = zcl_excel_drawing=>c_media_type_xml ).
lo_drawing->set_media( zcl_excel_drawing=>c_media_type_xml ).

lo_worksheet->add_drawing( lo_drawing ).

Expand All @@ -380,13 +371,10 @@ START-OF-SELECTION.
ls_lower-row = 30.
ls_lower-col = 20.
lo_drawing->set_position2(
EXPORTING
ip_from = ls_upper
ip_to = ls_lower ).

lo_drawing->set_media(
EXPORTING
ip_media_type = zcl_excel_drawing=>c_media_type_xml ).
lo_drawing->set_media( zcl_excel_drawing=>c_media_type_xml ).

lo_worksheet->add_drawing( lo_drawing ).

Expand All @@ -408,13 +396,10 @@ START-OF-SELECTION.
ls_lower-row = 30.
ls_lower-col = 20.
lo_drawing->set_position2(
EXPORTING
ip_from = ls_upper
ip_to = ls_lower ).

lo_drawing->set_media(
EXPORTING
ip_media_type = zcl_excel_drawing=>c_media_type_xml ).
lo_drawing->set_media( zcl_excel_drawing=>c_media_type_xml ).

lo_worksheet->add_drawing( lo_drawing ).

Expand Down
22 changes: 8 additions & 14 deletions src/demo042/zdemo_excel42.prog.abap
Original file line number Diff line number Diff line change
Expand Up @@ -46,31 +46,27 @@ START-OF-SELECTION.

"set theme colors
lo_theme->set_color(
EXPORTING
iv_type = zcl_excel_theme_color_scheme=>c_dark1
iv_srgb = '5F9EA0'
* iv_syscolorname =
* iv_syscolorlast =
).
lo_theme->set_color(
EXPORTING
iv_type = zcl_excel_theme_color_scheme=>c_dark2
iv_srgb = 'FFA500'
* iv_syscolorname =
* iv_syscolorlast =
).
lo_theme->set_color(
EXPORTING
iv_type = zcl_excel_theme_color_scheme=>c_light1
iv_srgb = '778899'
iv_type = zcl_excel_theme_color_scheme=>c_light1
iv_srgb = '778899'
* iv_syscolorname =
* iv_syscolorlast =
).

lo_theme->set_color(
EXPORTING
iv_type = zcl_excel_theme_color_scheme=>c_light1
iv_srgb = '9932CC'
iv_type = zcl_excel_theme_color_scheme=>c_light1
iv_srgb = '9932CC'
* iv_syscolorname =
* iv_syscolorlast =
).
Expand All @@ -79,17 +75,15 @@ START-OF-SELECTION.

"set theme latin fonts - major and minor
lo_theme->set_latin_font(
EXPORTING
iv_type = zcl_excel_theme_font_scheme=>c_major
iv_typeface = 'Britannic Bold'
iv_type = zcl_excel_theme_font_scheme=>c_major
iv_typeface = 'Britannic Bold'
* iv_panose =
* iv_pitchfamily =
* iv_charset =
).
lo_theme->set_latin_font(
EXPORTING
iv_type = zcl_excel_theme_font_scheme=>c_minor
iv_typeface = 'Broadway'
iv_type = zcl_excel_theme_font_scheme=>c_minor
iv_typeface = 'Broadway'
* iv_panose =
* iv_pitchfamily =
* iv_charset =
Expand Down
8 changes: 4 additions & 4 deletions src/demo044/zdemo_excel44.prog.abap
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ START-OF-SELECTION.
iv_no_line_if_empty = p_mtyfil ).

*** Create output
lcl_output=>output( EXPORTING cl_excel = lo_excel_no_line_if_empty
iv_writerclass_name = 'ZCL_EXCEL_WRITER_CSV' ).
lcl_output=>output( cl_excel = lo_excel_no_line_if_empty
iv_writerclass_name = 'ZCL_EXCEL_WRITER_CSV' ).

gc_save_file_name = '44_iTabNotEmpty.csv'.
lcl_output=>output( EXPORTING cl_excel = lo_excel
iv_writerclass_name = 'ZCL_EXCEL_WRITER_CSV' ).
lcl_output=>output( cl_excel = lo_excel
iv_writerclass_name = 'ZCL_EXCEL_WRITER_CSV' ).
6 changes: 0 additions & 6 deletions src/zdemo_calendar.prog.abap
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,13 @@ START-OF-SELECTION.
CONCATENATE month_nr '/' date_from+2(2) INTO value.
to_row = row + 2.
lo_worksheet->set_merge(
EXPORTING
ip_column_start = to_col " Cell Column Start
ip_column_end = to_col_end " Cell Column End
ip_row = row " Cell Row
ip_row_to = to_row " Cell Row
).
ENDIF.
lo_worksheet->set_cell(
EXPORTING
ip_column = to_col " Cell Column
ip_row = row " Cell Row
ip_value = value " Cell Value
Expand All @@ -283,15 +281,13 @@ START-OF-SELECTION.
IF NOT <img_descr>-url IS INITIAL.
lo_hyperlink = zcl_excel_hyperlink=>create_external_link( <img_descr>-url ).
lo_worksheet->set_cell(
EXPORTING
ip_column = from_col " Cell Column
ip_row = row " Cell Row
ip_value = value " Cell Value
ip_hyperlink = lo_hyperlink
).
ELSE.
lo_worksheet->set_cell(
EXPORTING
ip_column = from_col " Cell Column
ip_row = row " Cell Row
ip_value = value " Cell Value
Expand All @@ -303,7 +299,6 @@ START-OF-SELECTION.
IF NOT <img_descr>-photographer IS INITIAL.
value = <img_descr>-photographer.
lo_worksheet->set_cell(
EXPORTING
ip_column = to_col_end " Cell Column
ip_row = row " Cell Row
ip_value = value " Cell Value
Expand All @@ -315,7 +310,6 @@ START-OF-SELECTION.
IF p_lands = abap_true.
row = lv_from_row - 3.
lo_worksheet->set_cell(
EXPORTING
ip_column = from_col " Cell Column
ip_row = row " Cell Row
ip_value = ' ' " Cell Value
Expand Down
8 changes: 0 additions & 8 deletions src/zdemo_calendar_classes.prog.abap
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ CLASS zcl_helper IMPLEMENTATION.
from_col_int = zcl_excel_common=>convert_column2int( i_from_col ).
" Add description for Calendar Week
c_worksheet->set_cell(
EXPORTING
ip_column = i_from_col " Cell Column
ip_row = i_from_row " Cell Row
ip_value = 'CW'(001) " Cell Value
Expand All @@ -255,7 +254,6 @@ CLASS zcl_helper IMPLEMENTATION.
col = zcl_excel_common=>convert_column2alpha( col_int ).
value = <day_name>-langt.
c_worksheet->set_cell(
EXPORTING
ip_column = col " Cell Column
ip_row = row " Cell Row
ip_value = value " Cell Value
Expand All @@ -279,7 +277,6 @@ CLASS zcl_helper IMPLEMENTATION.
CONDENSE value.

c_worksheet->set_cell(
EXPORTING
ip_column = col " Cell Column
ip_row = row " Cell Row
ip_value = value " Cell Value
Expand Down Expand Up @@ -349,7 +346,6 @@ CLASS zcl_helper IMPLEMENTATION.
value = 'Created with https://github.com/abap2xlsx/abap2xlsx'(002).
hyperlink = zcl_excel_hyperlink=>create_external_link( 'https://github.com/abap2xlsx/abap2xlsx' ). "#EC NOTEXT
c_worksheet->set_cell(
EXPORTING
ip_column = i_from_col " Cell Column
ip_row = i_from_row " Cell Row
ip_value = value " Cell Value
Expand Down Expand Up @@ -394,7 +390,6 @@ CLASS zcl_helper IMPLEMENTATION.
WITH KEY wotnr = weekday.
value = <day_name>-kurzt.
c_worksheet->set_cell(
EXPORTING
ip_column = col " Cell Column
ip_row = row " Cell Row
ip_value = value " Cell Value
Expand All @@ -407,7 +402,6 @@ CLASS zcl_helper IMPLEMENTATION.
CONDENSE value.

c_worksheet->set_cell(
EXPORTING
ip_column = col " Cell Column
ip_row = row " Cell Row
ip_value = value " Cell Value
Expand All @@ -423,7 +417,6 @@ CLASS zcl_helper IMPLEMENTATION.
" Add ABAP2XLSX Footer
row = i_from_row + 2.
c_worksheet->set_cell(
EXPORTING
ip_column = col " Cell Column
ip_row = row " Cell Row
ip_value = ' ' " Cell Value
Expand Down Expand Up @@ -465,7 +458,6 @@ CLASS zcl_helper IMPLEMENTATION.
value = week_int.
CONDENSE value.
c_worksheet->set_cell(
EXPORTING
ip_column = i_col " Cell Column
ip_row = i_row " Cell Row
ip_value = value " Cell Value
Expand Down
6 changes: 3 additions & 3 deletions src/zdemo_excel_outputopt_incl.prog.abap
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@ CLASS lcl_output IMPLEMENTATION.
APPEND error TO t_errors.
* Errorhandling should be inserted here

cl_document->open_document_from_table( EXPORTING document_size = bytecount
document_table = t_rawdata
open_inplace = 'X' ).
cl_document->open_document_from_table( document_size = bytecount
document_table = t_rawdata
open_inplace = 'X' ).

WRITE: '.'. " To create an output. That way screen0 will exist
ENDMETHOD. "display_online
Expand Down