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 ).

Similar Messages

  • 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

  • Move Print Version and Export of ALV to the right

    Hello online experts,
    Merry Christmas and Happy New Year!
    I am working on a webdynpro that displays data in ALV format.
    I now want to move Print Version and Export of ALV to the right side and hide View(Standard View).
    I am able to hide View(Standard View), but the Print Version and Export are automatically moved to the
    left.
    How can I have Print Version and Export on the left side when I hide View(Standard View)?
    Thanks,
    AS.

    Hi Anna,
    For the standard ALV Function ( Print version, Export, View, Filter ) you can only to display or hide them. And unfortunately you can not change their position or their order .
    Regards,
    $=====$
    Are you newbie? Check this out: [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]

  • 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.

  • 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

  • Print version System Failure: Bean SALV_WD_EXPORT_PDF not found on host

    Hi,
    I have created a ALV report in ABAP Webdynpro.
    When i try to print the ALV Report it gives Communication failure : Print version System Failure: Bean SALV_WD_EXPORT_PDF not found on host.
    I belive i need to install Usage Type BI Java.
    Can someone help me with the same how to find the installation. I am unable to find what to install.
    Thanks and Regards,
    Nuzhat

    Hi Sergio,
    Thanks for the immediate reponse.
    I have already gone thru the blog u have sent.
    I am uable to do installation of Usage type BI-Java.
    I need anyone's help for the same.
    Thanks and Regards,
    Nuzhat

  • 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

  • GRC 10 Print Version -Export to PDF in User Interface

    Hi Experts ,
    There is a functionality for getting pdf files generated for most of the reports in GRC 10 user interface elements .but in all the screens while generating the pdf via print version we are getting communication failure  as follows :
    Print Version Communication Failure : RFC Destination SALV_WD_EXPORT_PDF does not exist.
    What could be the reason, export to MS excel worked fine . We are on NW 7.02 SP08 and GRC SP05.
    Cheers ,
    Dev. Parab

    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

  • 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

  • Trigger Print Version

    Hi Experts,
    I am wondering if it is possible to create a button and when I click on this button, the Print Version of
    ALV is triggered.
    Thanks for your help!
    AS.

    Hi,
    Can I know the dump analysis.
    Please check wether you model object (lo_value) is referencing to the model object or not Or
    it might be the case that you did not create the object for the button choice.
    Please try this code again-
    DATA: lr_btnui type REF TO cl_salv_wd_fe_button,
       lr_function TYPE REF TO CL_SALV_WD_FUNCTION,
    lo_value type ref to cl_salv_wd_config_table.
    **Custom buttons for Print version
      CREATE OBJECT lr_btnui.
      lr_btnui->SET_TEXT( 'Print' ).
      lr_function =
    lo_value->IF_SALV_WD_FUNCTION_SETTINGS~create_function( id = 'PRINT').
    lr_function->set_function_std( IF_SALV_WD_C_STD_FUNCTIONS=>PDF ).
      lr_function->SET_EDITOR( lr_btnui ).
    In the Event handler ( type ON_FUNCTION of your ALV), you should write the code-
      DATA: lv_temp TYPE string.
    lv_temp = r_param->id.
      If lv_temp EQ 'PRINT'.
        wd_this->set_print( ). " Your method for print
    endif.
    Regards,
    Lekha.

  • Is there a way in Pages to show and print all the added "comments?" (those you add by highlighting text)  I'd like students to be able to view my comments on printed version of their papers.

    Is there a way in Pages to show and print all the added "comments?" (those you add by highlighting text)  I am a teacher, and I would  like students to be able to view my comments on printed versions of their papers. I know word displays the comments off to the side of the document, and those comments can be viewed all at once and printed alongside the document.

    There doesn't appear to be a way to print conmments in either Pages or Numbers in the Mavericks versions.
    Jerry

  • "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

  • How to add LOGO to the print version of a webreport

    Hi experts..can anyone tell me the detail steps for the below query?
    Q)how we can add a logo to the print version of a web report. The report is displayed in pdf and the logo should come on every page of the pdf.

    hii marasa naidu,
    pls check the foll. link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4f439490-0201-0010-b3af-d33b499f00fa
    hope it helps,
    Assigning points is say thanks,
    regards,
    raghu.

  • Error in Using Print Version  on Standard Report

    Hi Experts,
    I am working on Governance risk compliance and on clicking  'Print Version' on output of a report, sytem is giving the following error:
    Print version System Failure: call FM SALV_WD_EXPORT_PDF to ProgId ssrchgrc_PORT
    I have checked the entire configuration as specified in SAP Note : 918236.
    Please help.
    Thank you
    Depesh

    Hi Depesh
    Did you solve this issue? If so are you able to advise what was done to fix the issue.
    I am also having a similar issue. It works OK on our development systems but on our UAT systems we getr this message.
    Thanks
    Rajdeep Kumar

  • 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?)

Maybe you are looking for

  • Driver issue with GTX470 and GTX570 in CS5.03

    So we have two different video cards as we can't find the GTX470 easily anymore. Both computers when the video card driver is updated to a newer version the video is displayed weird. The rest of the hardware is the same on both computers Core i5 3.3g

  • Atribute Validation Against a VO Value

    I am a beginner and have no professional experience on OAF. I am an oracle forms developer professional. My problem is I have a master detail form with an AM, may AM contains three VO AMCRequisitionsHeaderVO -> Header (Based On EO) AMCRequisitionsLin

  • Table access by index rowid taking more time

    Hi All I've a query like update tab1   set col1 = ( select col2 from                        tab2                  where tab1.id = tab2.id) table 1 has arnd 10,000 rows table 2 has arnd 1,700,000 rows and has a primay key on column id. This query is t

  • Powershell script to set custom attribute on mailuser returns WARNING: The command completed successfully but no settings of user have been modified.

    I am trying to write a script to enable a mailuser (I do know the difference between mailuser and mailbox) and set a custom attribute for that mailuser.  Every time I run the script I get "WARNING: The command completed successfully but no settings o

  • Referenced files show up as managed

    Using Aperture 3.4.1 I have about 10.000 images (each is a 125MB TIFF file) in Aperture. As the AP library became very large (about 1,3 TB), I decided to go from Managed to Referenced. So I used the "Relocate Original for Project" from the File Menu.