mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 19:26:10 +08:00
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
This commit is contained in:
parent
976c3c1d3c
commit
bd8975ec66
|
@ -101,6 +101,7 @@ public section.
|
||||||
class-methods GET_FIELDCATALOG
|
class-methods GET_FIELDCATALOG
|
||||||
importing
|
importing
|
||||||
!IP_TABLE type STANDARD TABLE
|
!IP_TABLE type STANDARD TABLE
|
||||||
|
!IV_HIDE_MANDT type ABAP_BOOL default ABAP_TRUE
|
||||||
returning
|
returning
|
||||||
value(EP_FIELDCATALOG) type ZEXCEL_T_FIELDCATALOG .
|
value(EP_FIELDCATALOG) type ZEXCEL_T_FIELDCATALOG .
|
||||||
class-methods NUMBER_TO_EXCEL_STRING
|
class-methods NUMBER_TO_EXCEL_STRING
|
||||||
|
@ -845,7 +846,7 @@ METHOD get_fieldcatalog.
|
||||||
|
|
||||||
<fcat>-dynpfld = 'X'. " What in the world would we exclude here?
|
<fcat>-dynpfld = 'X'. " What in the world would we exclude here?
|
||||||
" except for the MANDT-field of most tables ( 1st column that is )
|
" except for the MANDT-field of most tables ( 1st column that is )
|
||||||
IF <fcat>-position = 1 AND lo_salv_column_table->get_ddic_datatype( ) = 'CLNT'.
|
IF <fcat>-position = 1 AND lo_salv_column_table->get_ddic_datatype( ) = 'CLNT' AND iv_hide_mandt = abap_true.
|
||||||
CLEAR <fcat>-dynpfld.
|
CLEAR <fcat>-dynpfld.
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user