Removing "print version" button in alv

Hi Experts,
I am trying to hide the buttons in ALV table.
I did hide all other buttons except "Print Version".
Can anyone assist.
Thanks,
Siva.

Hi,
I think use this "'SALV_WD_EXPORT' to hide the print version
Use the below code -
***Reference to the standard button reference of the ALV
  DATA:
    ls_functions_std type SALV_WD_S_FUNCTION_STD_REF.
***Modifying The standard functionality buttons
if lt_functions_std1 is not initial.
  loop at lt_functions_std1 into ls_functions_std.
    case ls_functions_std-id.
      when wd_assist->GC_APPEND_ROW.                           "'SALV_WD_INPUT_APPEND_ROW'
        CALL METHOD LS_FUNCTIONS_STD-R_FUNCTION->SET_VISIBLE
          EXPORTING
            VALUE = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
      when wd_assist->GC_INPUT_DELETE.                         "'SALV_WD_INPUT_DELETE'
        CALL METHOD LS_FUNCTIONS_STD-R_FUNCTION->SET_VISIBLE
          EXPORTING
            VALUE = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
      when wd_assist->GC_INSERT_ROW.                           "'SALV_WD_INPUT_INSERT_ROW'
        CALL METHOD LS_FUNCTIONS_STD-R_FUNCTION->SET_VISIBLE
          EXPORTING
            VALUE = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
      when wd_assist->GC_EXPORT_EXCEL.                        "'SALV_WD_EXPORT_EXCEL'
        CALL METHOD LS_FUNCTIONS_STD-R_FUNCTION->SET_VISIBLE
          EXPORTING
            VALUE = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
      when wd_assist->GC_PDF.                                     "'SALV_WD_PDF'
        CALL METHOD LS_FUNCTIONS_STD-R_FUNCTION->SET_VISIBLE
          EXPORTING
            VALUE = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
      when wd_assist->GC_INPUT_CHECK.                            "'SALV_WD_INPUT_CHECK'
        CALL METHOD LS_FUNCTIONS_STD-R_FUNCTION->SET_VISIBLE
          EXPORTING
            VALUE = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
      when wd_assist->GC_EXPORT.                                "'SALV_WD_EXPORT'
        CALL METHOD LS_FUNCTIONS_STD-R_FUNCTION->SET_VISIBLE
          EXPORTING
            VALUE = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
      when wd_assist->GC_FILTER .                               "'SALV_WD_FILTER'
        CALL METHOD LS_FUNCTIONS_STD-R_FUNCTION->SET_VISIBLE
          EXPORTING
            VALUE = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
      when wd_assist->GC_SETTINGS.                              "'SALV_WD_SETTINGS'
        CALL METHOD LS_FUNCTIONS_STD-R_FUNCTION->SET_VISIBLE
          EXPORTING
            VALUE = CL_WD_UIELEMENT=>E_VISIBLE-NONE.
    endcase.                     "Case ls_functions_std-id
    clear LS_FUNCTIONS_STD.
  endloop.                       "LOOP at lt_functions_std1 into ls_functions_std.
endif.                           "IF lt_functions_std1 is not initial.
Regards,
Lekha.

Similar Messages

  • Show print version button on ALV

    Hi gurus!
    I need to show (and use) the Print Version standar button on my ALV component.
    I have set l_table->if_salv_wd_std_functions~set_pdf_allowed( abap_true ) but nothing appears.
    Any idea about it?
    Regards

    Hi,
    by default the Print Version button will be displayed on ALV. you may want to refer the code in method WDDOINIT method of standard application WDT_ALV.
    regarding using this button - Once the Print Version button is displayed then  click it. if everything is fine then you will be able to see PDF else error message will be displayed along with Display Help link. Just click it and follow the instuctions as per it.
    It says, Note 918236 contains detailed information.
    I hope this is useful for you.
    Thanks,
    Chandra

  • GRC 10 Print Version Button

    HI There
    I have setup the RFC connection to the ADS service etc but the "Print Version" button does not appear after running a report
    Please advise

    Dear Parab,
    This is a general requirement.The reason why you are getting the communication failure error  is because the print version for generating ABAP ALV is not set-up.
    The flow is : The system (GRC here)uses the RFC connection SALV_WD_EXPORT_PDF to call a portal service >the portal service uses Adobe Document Services>the system uses RFC to return the PDF document to the WD ABAP ALV
    and displays the document.
    For your NW version and SP level , please implement SNOTE  1413938 - WD ABAP ALV -creating print version.
    The  Web Service Destination for Adobe Document Services (in SAP NetWeaver
    Administrator) needs to be set-up as explained in note.
    Also see  IMG > SAP Netweaver >AS> Setup Printing for Web Dynpro ABAP ALV .
    Best Regards,
    Vishal Padiyar

  • How to remove a Sort button from ALV List

    Hi Experts,
    How to remove sort button from ALV List.
    I have requirement where I need to remove the sort button from ALV list.
    Kindly give me useful clues.
    Higher points will be awarded for the useful inputs.
    Thanks in Advance,
    Dharani

    Hi dharani,
    1. UP and Down Sort Button will get removed.
    2. Important code is marked in bold
    3. Just copy paste.
    4.
    report abc.
    TYPE-POOLS : slis.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    DATA : alvfcwa TYPE slis_fieldcat_alv.
    <b>data : excl type SLIS_T_EXTAB.
    data : exclwa type SLIS_EXTAB.</b>
    data : begin of itab occurs 0.
            include structure usr02.
    data : end of itab.
    START-OF-SELECTION.
      select * from usr02
      into table itab.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = sy-repid
          i_internal_tabname     = 'ITAB'
          i_inclname             = sy-repid
        CHANGING
          ct_fieldcat            = alvfc
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
    <b>*----
    IMPORTANT
    fcodes to remove
    Up and Down Sort Button
    exclwa-fcode = '&OUP'.
    append exclwa to excl.
    exclwa-fcode = '&ODN'.
    append exclwa to excl.</b>
    Display
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          it_fieldcat   = alvfc
          <b>IT_EXCLUDING     = excl</b>
        TABLES
          t_outtab      = itab
        EXCEPTIONS
          program_error = 1
          OTHERS        = 2.
    regards,
    amit m.

  • Info Field is not shown in PDF by toolbar Print Version button

    Hi Everyone,
    I need your help:
    I enhanced 0ANALYSIS_PATTERN to include UserID / DateTime information when Export to PDF and excel.  I added Info Filed in this template and added this new web item in BUTTON_TOOLBAR_2 Button 3 (Print Version) and 4 (Export to Excel).   UserID / DateTime displayng on web is fine and Exporting to Excel is fine also.   Only problem is when clicking on Print Version the UserID / DateTime information is not showing in PDF.   I created a new button to Export PDFand it's working fine.  Somehow just this toolbar button Print Version has issue with Info Field.
    Can anyone help me to resolve this problem?
    Thanks, Jin

    Hi Jin.
    I have tried using the separate print template method but didn't manage to get it to work (and not very excited about the concept anyway as it means even more web templates to manage).
    But I got it to work without using a separate print template, by inserting the InfoField as part of the Filter Area (because I didnt want it displayed in the face of the Web when the report was run initially). But it seems to be that as long as the InfoField is displayed somewhere in the Web, then it can be exported/printed. Having done the data binding step, obviously.
    You mind if I pick your brains (offline) re the print template method?
    Patrick
    (points if that helps?)

  • How to Disable or remove Assign Version button in CBIH82 screen

    Hi
    In the T Code CBIH82,the user instead of clicking on Safety measures,by mistake he clicked on ASSIGN VERSION which resulted in the same log entry no appearing 4 times in the Safety Observation report instead of appearing only once.So for this reason the Business wants us to remove  or disable the Assign Version button.Is there any function module to disable or remove the ASSIGN VERSION icon from the CBIH82 screen.Attached is the screen shot of the ASSIGN VERSION icon in CBIH82 screen.
    Regards
    Ismail

    You can put an entry in the magnus.conf of
    ServerString none
    This will make it not display the info about the server type and version but will not make your site any more secure.

  • ALV Print Version

    Hi,
    I have displayed some columns in an ALV table. One of the columns has data element length of 400.
    When I use the print version button the data get exported to PDF but the column which has length of 400 takes the entire page width but then too some data of that column get truncated.
    I have selected Poster radio button from Print Version tab in settings because when I select the other 2 radio buttons it displays the entire ALV data in one page which is not readable.
    Ho should I enable the wrapping for the column which is of length 400 in the PDF
    Thanks,
    Feroz

    Hi Feroz,
    Try programmatically setting the column attributes via the ALV Model:
    Regards,
    Uday
    data: l_ref_cmp_usage type ref to if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_alv_adv( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
      data l_salv_wd_table type ref to iwci_salv_wd_table.
      l_salv_wd_table = wd_this->wd_cpifc_alv_adv( ).
      data l_table type ref to cl_salv_wd_config_table.
      l_table = l_salv_wd_table->get_model( ).
      data l_column type ref to cl_salv_wd_column.
      data textview type ref to cl_salv_wd_uie_text_view.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'ADD_PARTICIPANTS' ).
      create object textview.
      textview->set_text_fieldname( 'ADD_PARTICIPANTS' ).
      textview->set_wrapping( abap_true ).
      l_column->set_cell_editor( textview ).

  • Print Version ALV

    hi ,
    I am able to use the print version option in ALV report for 10 - 20 records. But when the data is 25000 records it says print failure. I know we have 1000 records restriction when displaying the Visible row count. Does this restriction apply for print version also?
    Any clues?
    Thanks

    Well a workaround!  Export the records to excel and then call print from EXCEL may be that would let you over come the record limit.
    Greetings
    Prashant

  • Print version about BORGR_C

    My system is R3 46C.I want to output GR slip via WE03 condition type. The material document doesn't generate message after I post goods receipt via BORGR_C, I have created the condition record for the condition type. I check the access sequence about WE03, it consist of Transaction/event type, print version and print item. Transaction/event type is WE about GR, We can set the print version when we use transaction code MIGO. But I can not set the print version in BORGR_C. I check the setting via OMBR, but I canu2019t find the setting with
    BORGR_C. So I want to know which print version the system use when I post goods receipt via BORGR_C. thank you!

    Hi,
    by default the Print Version button will be displayed on ALV. you may want to refer the code in method WDDOINIT method of standard application WDT_ALV.
    regarding using this button - Once the Print Version button is displayed then  click it. if everything is fine then you will be able to see PDF else error message will be displayed along with Display Help link. Just click it and follow the instuctions as per it.
    It says, Note 918236 contains detailed information.
    I hope this is useful for you.
    Thanks,
    Chandra

  • "Error while generating pdf" error come when clicking on "Print Version "

    Hello ,
    When we execute Query in the Portal there is a 'Print version' button.
    When you select it, it opens up print dialog and click OK
    It is supposed to send 'pdf' stream to  Web browser client on end user but it is not able to generate the pdf .
    getting ' Error while generating pdf '
    I am working on BI 7.0 .
    The same is running fine in the Q Environment .But in Production we are getting this error .
    Thanks ,
    Rahul

    Hi,
    I think this is an ADS error. This is a reason why pdf's are not working. We had the same issue.
    You can check your installation:
    Usage of SAP NetWeaver BI Diagnostics & Support Desk Tool
    SAP Note Number: [937697|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d393337363937%7d]
    Exceptions: Prerequisites for messages in the area BI Java
    SAP Note Number: [1224043 |https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bw_bex/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d31323234303433%7d]
    Solution in our case was to update the SAPADS package to 7.00 17.1
    Regards
    Andreas

  • Question about WAD print version configuration

    Hi gurus,
    We are having a problem with the WAD print version. We have created two WAD templates, one of them is for be viewed at the portal and the other one for the export to PDF.
    Our template has several tables(data providers) in a horizontal line. The template for the export is exactly like this original template, but despite this, when we press the "print version" button in the portal, the PDF appears desconfigure and shows the data providers one under the other, in a vertical line.
    We have tried to change the size of the data providers but we are not getting the expected result.
    Could anyone give me some idea of how to proceed correctly for this situation?
    Thank you in advanced.
    Manuel.

    Ok Mike, thank you very much! I was already guessing it would really not work in Firefox, and we would have to look for alternative solutions.
    We followed your advice and we are now trying to use a Firefox plugin named IE Tab, and it looks like its going to solve our problem.
    Thanks a lot for your attention.
    Sincerely,
    Carlos Eduardo Lacombe

  • In CC214 PS Why has adobe removed the "print Size Button"  And why have they made the Brush preview window so small you can't see the effects to accurately adjust them?

    In CC214 PS Why has adobe removed the "print Size Button"  And why have they made the Brush preview window so small you can't see the effects to accurately adjust them?
    These two things need to be remedied in their upgrades because It's become such a bother I've had to revert to older versions of PS.

    Yea, and it's a pain to get to.  What was the rational for removing the print size button?   With the magnifying glass tool selected in older versions of Photoshop you would get a button that says "print size" right next to Actual pixels, Fit Screen, Fill Screen. Now I have to go out of my way and dig for it if I want to see the print size.  Of all the buttons you could have taken away, why not fill screen?  I never use that.
    Besides the point I just downloaded the Oct Upgrade for PS and surprise! Nothing has changed and these are two big black eyes on newer versions of Photoshop.   The Brush preview window is  unchanged in CC but in CC2014 it's basically worthless.  If you apply a texture to a brush you can't properly see the scale of the texture, the spacing, scatter, etc...

  • Remove buttons in ALV grid display in ABAP Web Dynpro

    Hi,
    Sub: ALV grid-->Web Dynpro ABAP.
    Request guidance to prevent display of the buttons "Microsoft Excel" and "Print Version" (which provide options to export the ALV grid output into an Excel format document).
    Is there a way we could hide this from being displayed on the ALV grid in a Web dynpro ABAP component output?
    Thanks very much.
    Best Regards,
    Adi

    Hi Adithya,
    really simple solution is to call cl_salv_wd_model_table_util=>if_salv_wd_table_util_stdfuncs=>set_all( abap_false ). This deactivates all ALV functionality.
    For individual setting cl_salv_wd_config_table if_salv_wd_standard_functions~set_<x>_allowed.
    - Michelle

  • ALV .  How to remove the sort buttons on toolbar in ALV report?

    Hi,experts
      As you know, in default case , the alv report will display two sort buttons(ascending ,descending) on its toolbar , So How to remove the sort buttons on toolbar in ALV report?
      Thanks for your help .

    Hi guixin,
    1. Before calling REUSE_ALV_LIST_DISPLAY
    2. Write this code :
    data : excl type SLIS_T_EXTAB.
    data : exclwa type SLIS_EXTAB.
    exclwa = '&OUP'.
    append exclwa to excl.
    exclwa = '&ODN'.
    append exclwa to excl.
    3. Then while calling the FM,
       pass this parameter also .
    IT_EXCLUDING     = excl
    It will work fantastic.
    regards,
    amit m.

  • Problem with 'Print' button in ALV

    Hi All,
    I have developed a OOPs based ALV report. When ever we create an ALV we also have to create Menu bar I did that providing fuctionality for 'BACK' and 'CANCEL' buttons in main toolbar. But user wants funtionality for 'SAVE' and 'PRINT'.
    How do I do this ? Is there any stadard code which I can paste in PAI and use it. Classic ALVs handle this by default and OOPs doesn't do this it handles only a table level. But in my report I have a header information also. If user uses the standard 'PRINT' button at table level, only table contents are printed not the header information.
    Please let me know how to handle 'PRINT' & 'SAVE' button in OOPs ALV.
    Thanks in advance.

    Cancelled

Maybe you are looking for

  • How many JDBC receiver CC?

    Hi all, I am in doubt how many JDBC receiver CC I need to configure. I have many different inbound interfaces on database side (Oracle ). At first I have thought that I would need one JDBC receiver per interface, but now it seems that one CC could be

  • Itunes stops downloading when almost complete

    Hi there, my friend has a dell laptop brand new not sure what model running windows 7. Whenever i attempt to download itunes the download reaches around 70-90% completion and then stops. I've tried IE, firefox and google chrome and all of them fail.

  • Integrating image map in iWeb?

    I've created an image map with MapSpinner and have it saved as an HTML file. Is there anyway this can be integrated into an iWeb page like, say, a QuickTime movie or a Photo? Or am I going to need a hyperlink that points to an external page/site?

  • Apple Mail DB with plenty of multiple messages

    Over the last year or so, I have noticed that my Apple Mail DB (currently version 7.3) is increasing in size at an alarming rate. Now it is almost 150 GB (!!!) and as you can imagine, it is almost unmanageable. However, I have noticed that every sing

  • How to write BDC for tcode F-32

    Hi Experts, How to write BDC for tcode F-32 . is it possible i recorded in SHDB BUT IF I AM DOING IT'S COMING WRONG . plz guide me sir. regars, Hari Edited by: hari311 on Oct 27, 2009 9:22 AM