From bd8975ec66b281073a894bee1465ba06e3925556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20M=C3=B6ller?= Date: Wed, 10 Feb 2021 09:08:57 +0100 Subject: [PATCH] Possibility to get the fieldcatalog with mandt (#732) * Possibility to get the fieldcatalog with mandt In some cases i need the mandt in the table. Normally it is hidden but can be displayed if necessary * adjusted code style --- src/zcl_excel_common.clas.abap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zcl_excel_common.clas.abap b/src/zcl_excel_common.clas.abap index bfe3eba..9238973 100644 --- a/src/zcl_excel_common.clas.abap +++ b/src/zcl_excel_common.clas.abap @@ -101,6 +101,7 @@ public section. class-methods GET_FIELDCATALOG importing !IP_TABLE type STANDARD TABLE + !IV_HIDE_MANDT type ABAP_BOOL default ABAP_TRUE returning value(EP_FIELDCATALOG) type ZEXCEL_T_FIELDCATALOG . class-methods NUMBER_TO_EXCEL_STRING @@ -845,7 +846,7 @@ METHOD get_fieldcatalog. -dynpfld = 'X'. " What in the world would we exclude here? " except for the MANDT-field of most tables ( 1st column that is ) - IF -position = 1 AND lo_salv_column_table->get_ddic_datatype( ) = 'CLNT'. + IF -position = 1 AND lo_salv_column_table->get_ddic_datatype( ) = 'CLNT' AND iv_hide_mandt = abap_true. CLEAR -dynpfld. ENDIF.