Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV-Grid: Display variant linked to an Excel-template ?

Former Member
0 Kudos

Dear fellow developers,

I have linked an own version of sap_om.xls to the display variant of a certain report (which works fine).

Now I'm looking for a SIMPLE way to retrieve the information whether or not a specified display variant will come up with an Excel inplace view in order to minimize the ALV-header-window before I call the "REUSE..."-FM.

Does anybody know an easy way ?

Thanks in advance !

Andreas Flügel

1 REPLY 1

Former Member
0 Kudos

DATA: xls_template_vorhanden TYPE xfeld,

it_dblayout TYPE TABLE OF ltdxdata,

wa_dblayout TYPE ltdxdata.

  • Import Layout-Tables from Cluster:

IMPORT lt_dblayout TO it_dblayout

FROM DATABASE ltdx(lt)

ID id_ltdx.

CLEAR xls_template_vorhanden.

LOOP AT it_dblayout INTO wa_dblayout WHERE param = 'TEMPLATE'.

IF wa_dblayout-value CS '.xls'.

xls_template_vorhanden = 'X'.

ENDIF.

ENDLOOP.