From c765b00ac0641354253bd42f8fbdd562b07fd8dc Mon Sep 17 00:00:00 2001 From: Ivan Femia Date: Mon, 19 Mar 2012 19:29:50 +0000 Subject: [PATCH] Changed Demo 32 now it generates 2 files Demo32 and Demo33 included in Demo collection Fix for issues #143 and #142 included in daily build git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@268 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049 --- ZA2X/PROG/ZDEMO_EXCEL.slnk | 4 +++- ZA2X/PROG/ZDEMO_EXCEL32.slnk | 14 ++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/ZA2X/PROG/ZDEMO_EXCEL.slnk b/ZA2X/PROG/ZDEMO_EXCEL.slnk index 3cfb2a0..feb6ace 100644 --- a/ZA2X/PROG/ZDEMO_EXCEL.slnk +++ b/ZA2X/PROG/ZDEMO_EXCEL.slnk @@ -1,5 +1,5 @@ - + @@ -67,6 +67,8 @@ START-OF-SELECTION. " SUBMIT zdemo_excel29 WITH p_path = p_path AND RETURN. " abap2xlsx Demo: Macro enabled workbook SUBMIT zdemo_excel30 WITH p_path = p_path AND RETURN. " abap2xlsx Demo: ABAP Cell data types SUBMIT zdemo_excel31 WITH p_path = p_path AND RETURN. " abap2xlsx Demo: Autosize Column with different Font sizes + " zdemo_excel32 is not added because it uses ALV and cannot be processed (Native) + SUBMIT zdemo_excel33 WITH p_path = p_path AND RETURN. " abap2xlsx Demo: Table autofilter " " Reader/Writer Demo must always run at the end " to make sure all documents where created diff --git a/ZA2X/PROG/ZDEMO_EXCEL32.slnk b/ZA2X/PROG/ZDEMO_EXCEL32.slnk index 56ce3c1..b84a7ff 100644 --- a/ZA2X/PROG/ZDEMO_EXCEL32.slnk +++ b/ZA2X/PROG/ZDEMO_EXCEL32.slnk @@ -1,5 +1,5 @@ - + @@ -381,7 +381,8 @@ DATA: l_path TYPE string, " local dir lv_file_separator TYPE c. CONSTANTS: - lv_default_file_name TYPE string VALUE '32_Export_ALV.xlsx'. + lv_default_file_name TYPE string VALUE '32_Export_ALV.xlsx', + lv_default_file_name2 TYPE string VALUE '32_Export_Convert.xlsx'. *--------------------------------------------------------------------* *START-OF-SELECTION *--------------------------------------------------------------------* @@ -449,18 +450,19 @@ FORM user_command . cl_gui_frontend_services=>get_file_separator( CHANGING file_separator = lv_file_separator ). - CONCATENATE l_path lv_file_separator lv_default_file_name - INTO l_path. +* export file to save file path CASE sy-ucomm. WHEN 'EXCELBIND'. -* export file to save file path - + CONCATENATE l_path lv_file_separator lv_default_file_name + INTO l_path. PERFORM export_to_excel_bind. WHEN 'EXCELCONV'. + CONCATENATE l_path lv_file_separator lv_default_file_name2 + INTO l_path. PERFORM export_to_excel_conv. ENDCASE.