cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Download to excel in ALV for WD4A.

Former Member
0 Kudos

Hi SDN,

I am using standard component SALV_WD_TABLE for geting the print Version & Export button as given in standard example WDT_ALV, in my developement. but i am not getting both the buttons.

Can any one tell why?

Regards,

Rahul

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rahul

are you getting other buttons like aend or delete button

Regards

Naresh

Former Member
0 Kudos

Hi Naresh,

I am not getting any button.

Regards,

Rahul

Former Member
0 Kudos

can you paste the code ? it may help us to understand the problem better.

Former Member
0 Kudos

HI All,

Thanks for your reply i solved the problem.

But i have few duobts there is a option of selecting a view can disable it & also Print version button.

Regards,

Rahul

Former Member
0 Kudos

Rahul,

what was the problem. if you share with all of us it will be helpful for others

for hiding button we can code like this



data: l_ref_cmp_usage type ref to if_wd_component_usage,
      lr_std            TYPE REF TO if_salv_wd_std_functions.
  DATA: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .

  l_ref_cmp_usage =   wd_This->wd_CpUse_Appr( ).
  if l_ref_cmp_usage->has_active_component( ) is initial.
    l_ref_cmp_usage->create_component( ).
  endif.
 l_ref_INTERFACECONTROLLER =   wd_This->wd_CpIfc_Appr( ).


  data:
    l_VALUE type ref to Cl_Salv_Wd_Config_Table.

  l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model(
  ).

 lr_std ?= l_value.
 lr_std->SET_PDF_ALLOWED( abap_false ).

Edited by: Naresh Kumar Malik on Jun 27, 2008 11:05 AM

Former Member
0 Kudos

Hi,

I hope you have embeded the TABLE view in ur viewcontainer element.

Please check this.

Also have a look at these [tutorials|https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/webcontent/uuid/60ea94e5-0901-0010-c3bb-aad5ea9620d8] [original link is broken];

Regards,

Sumit Oberoi