Column heading change in print ALV report

Hi,
when i see ALV report output that time column heading is correct. but when i see print preview it's give another column heading.
like
column heading - Delivery Challan no it's come in print preview only delivery.
Thanks in Advance.
regards.
Sam.

Hi,
thanks.
I have already use this in report.
like.
  CLEAR WA_FIELDCAT.
  WA_FIELDCAT-COL_POS       = POS.
  WA_FIELDCAT-FIELDNAME = 'VBELN'.
  WA_FIELDCAT-REF_TABNAME = 'LIPS'.
  WA_FIELDCAT-SELTEXT_M = 'DELIVERY CHALLAN NO'.
  WA_FIELDCAT-OUTPUTLEN       = 20.
  APPEND WA_FIELDCAT TO T_FIELDCAT.
Regard
Sam

Similar Messages

  • Re: Increasing Column Header Length While Printing in ALV Grid

    Hi
    For some column headers in a report, the translations in Turkey are more than 40 characters, because of which while executing the report in TR language, the column header is getting truncated.
    So, I would like to know if we can increase the column header length while printing the ALV Grid(OO ALV) output.
    Or else, Is there any way where we can divide the column header into 2 rows.
    Please let me know.
    Thanks and Regards,
    Vishwa.

    Jose and Sivaram,
    Thanks for replying.
    The problem we have is with the column headers, there is a limit of 40 characters for the column header in ALV reports. So, increasing the outputlen also did not help.
    Regards,
    Vishwa.

  • I want to display header information of My ALV Report center Aligned.

    Hi all,
    I want to display header information of My ALV Report center Aligned. How can I do it..Also I want to show two different Layout display of ALV report according to the Radio Button Present in the selection screen.. Pls help me out in this.

    Hi,
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
    Form top-of-page.
    *ALV Header declarations
    data: t_header type slis_t_listheader,
          wa_header type slis_listheader,
          t_line like wa_header-info,
          ld_lines type i,
          ld_linesc(10) type c.
    Title
      wa_header-typ  = 'H'.
      wa_header-info = '       EKKO Table Report            '. Leave Space such that it comes to Center
      append wa_header to t_header.
      clear wa_header.
    Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      CONCATENATE  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) INTO wa_header-info.   "todays date
      append wa_header to t_header.
      clear: wa_header.
    Total No. of Records Selected
      describe table it_ekko lines ld_lines.
      ld_linesc = ld_lines.
      concatenate 'Total No. of Records Selected: ' ld_linesc
                        into t_line separated by space.
      wa_header-typ  = 'A'.
      wa_header-info = t_line.
      append wa_header to t_header.
      clear: wa_header, t_line.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                it_list_commentary = t_header.
               i_logo             = 'Z_LOGO'.
    endform.

  • Printing ALV report

    Hi everyone,
    I have a report that was created with ALV, everything works fine until we print.
    When we print the report, it is printed in one page and that's ok, but the size is reduced, I mean the size is very small, any idea why we have this issue?.
    Thanks
    Eduardo Campos.

    HI Hduardo Campos,
    For printing ALV report or Normal report we need separte format while printing.
    Please fallow the fallowing steps to achieve your requirement.
    Steps:
    1. You have to create your own page format.
    SPAD-> Full Administration -> Device Types -> Page Formats -> Define the respective Page formats
    2. You have to define your own format type and attach the newly created page format to that.
    3. while creating the format type using existing script code from other formats.
    ( Here while wrting the script just test the font & font size as per your requirement)
    4. While ALV report printing select the Format option and enter your newly created format name( If you are not seeing report format option then select the properties option then select the report format then enter the required format name)
    fallow the above steps, so that you will able to print ALV report successfully.
    Still if you are facing any problem, let me know i will send you the detailed screen shots for the same.
    Right now in my current project i am using the same procedure and succesfuuly achieved the results.
    Regards,
    Rajani

  • Fast Change in OO ALV Report

    Hi
    Can any one please tell me how to implement FAST CHANGE option in ALV Report. FAST CHANGE is the option you can see in ME22N to change all item Values at one time.
    Regards
    Ravi

    hi
    In ME22N
    Go to Fast Change--> Change layout
    In hidden fields, select therequired field
    for selecting one field, there are four arrows
    left shift, left, right, right shift fields.
    then select<-- this arrow for one field.
    if want to add more fields then go for
    <<-- this arrow.
    so that it will be moved to display field
    Regards
    Nishant Malhotra

  • Run time error while printing ALV report

    Hi,
    At the time of printing a report  output we get a dump GETWA_NOT_ASSIGNED.
    The printer used here is LOCL.
    The length of the report increases dynamically according to no. of months given in range.
    In report , there are 3 static columns & no. of columns increases by 2 for each month. System is printing the report for 1 month ie. (3+2) columns . but if no. of months increased to 2 ..... no. of columns also increases by 2.... in this case system is giving dump.
    Please help.
    Thanks in advance,
    Vijeta

    Hi
    1. check the fieldcat ( ie. CURR field without WAERS field.. )
    2. check if you want to use colours at calling the ALV.. but you don´t fill the deep structure for the colours...
    bestreg Robert

  • Setting the column labels in webdynpro abap alv report

    Hello,
    Right now I have programmed an ALV report. The selection criterion and the display of the report all work.
    However, there is an issue with the labels of columns in the ALV report. The report takes the field names of the structure I am using in the ALV report as the labels of the report. I have been trying to play around with the ALV class model to see if something will change the labels of the fields but to no avail. Would you guys know of some code or way to change the labels of the columns in the ALV report.
    Thank you for your help in advance.
    Sumit.
    Here is some of the code I tried but does no work in the wdInit() method. It does not change the label. Any suggestions???
    METHOD wddoinit .
    * instantiate used component from wizard
    DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
    lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
    IF lo_cmp_usage->has_active_component( ) IS INITIAL.
      lo_cmp_usage->create_component( ).
    ENDIF.
    * call a method in the used component from wizard
      DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
      lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).
        DATA lo_value TYPE REF TO cl_salv_wd_config_table.
        lo_value = lo_interfacecontroller->get_model(
    DATA: lr_field TYPE REF TO cl_salv_wd_field.
    lr_field = lo_value->if_salv_wd_field_settings~get_field( 'CUSTOMER_NUMBER' ).
    * change the label of the report.
    DATA: lr_CUSTOMER_NUMBER TYPE REF TO cl_salv_wd_column.
                CALL METHOD lo_value->if_salv_wd_column_settings~get_column
                  EXPORTING
                    id     = 'CUSTOMER_NUMBER'   receiving value  = LR_CUSTOMER_NUMBER.
    * SET THE LABEL OF THE COLUMN
    DATA: HR_CUSTOMER_NUMBER TYPE REF TO CL_SALV_WD_COLUMN_HEADER.
    CALL METHOD lr_customer_number->get_header
      receiving
        value  = HR_CUSTOMER_NUMBER.
    ***** set the text of the column
    CALL METHOD hr_customer_number->set_text
      EXPORTING
        value  = 'Customer1 Number1'.
    ENDMETHOD.

    You have to disable the DDic binding on the column before your override text will show up:
    data: l_ref_cmp_usage type ref to if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_alv( ).
      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( ).
      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.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'POSTING_DATE' ).
      data l_header type ref to cl_salv_wd_column_header.
      l_header = l_column->get_header( ).
      l_header->set_prop_ddic_binding_field(
        property =  if_salv_wd_c_ddic_binding=>bind_prop_text
        value = if_salv_wd_c_ddic_binding=>ddic_bind_none ).
      l_header->set_text( `Posting Date` ).

  • Creating header in printout of ALV report in WD4A

    Hi
    I have created one alv report in WD4A. When I click on the "print version" button, the report appears in pdf format.
    I want to create header on that pdf output. Please let me know how can i do that ? . it is coming on alv but not on pdf.
    The code follows:
    DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
    l_ref_cmp_usage =   wd_this->wd_cpuse_ztime( ).
    IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
      l_ref_cmp_usage->create_component( ).
    ENDIF.
    DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table .
    l_ref_interfacecontroller =   wd_this->wd_cpifc_ztime( ).
      DATA:
        l_value TYPE REF TO cl_salv_wd_config_table.
      l_value = l_ref_interfacecontroller->get_model(
    *set header for the table
    data: lr_table_settings type ref to if_salv_wd_table_settings.
    data: lr_header type ref to CL_SALV_WD_HEADER.
    lr_table_settings ?= l_value.
    lr_header = lr_table_settings->get_header( ).
    lr_header->set_text( 'ATTANDENCE LIST' ).
    *PDF output header
    data: pdf_header TYPE REF TO IF_SALV_WD_PDF_SETTINGS.
    pdf_header ?= l_value.
    data: lv_head type abap_bool.
    call METHOD pdf_header->set_export_no_tol( 'X' ).
    lv_head = pdf_header->get_export_no_tol( ).
    regards
    Vishal kapoor
    Message was edited by:
            vishal kapoor

    if you're still having this problem, try this (given your own code sample):
    data:
      lv_header type string.
    pdf_header ?= l_value .
    CONCATENATE 'My header text' INTO lv_header RESPECTING BLANKS .
    pdf_header->set_header_left_freetext( lv_header ).
    pdf_header->set_header_left( if_salv_wd_c_pdf_settings=>text_free ).

  • Print ALV Report

    I am using class CL_SALV_TABLE to generate an ALV report.
    When the report is printed, I want to be able to display the report name, date and time and page number. How to do this?

    Try this way
      data: lr_display_settings type ref to cl_salv_display_settings,
            l_title type lvc_title.
      l_title = text-t01. " Your title ie report name & date & time
      lr_display_settings = gr_table->get_display_settings( ).
      lr_display_settings->set_list_header( l_title ).
      gr_table->display( ).

  • Heading with parameter in ALV report

    hi
    i want to add heading to my ALV report which i created using factory method.
    in my code i wrote:
    data:gr_display type ref to cl_salv_display_settings.
    gr_display = gr_table->get_display_settings(  ).
    gr_display ->set_striped_pattern( cl_salv_display_settings=>true).
    gr_display->set_list_header( 'this alv report has' X <-- here i want to add variable)
    how can i add variable ( which is global variable ) insted of the X ??
    thanks

    hi,
    use this.
    DATA:
       gd_headr type char100.
    concatenate 'this alv report has' <variable>
      into gd_headr separated by space.
    gr_display->set_list_header( gd_headr ).
    regards,
    Peter

  • Printing ALV report by suppressing print dialog box

    Hi,
      I want to print a alv report by passing value in IS_PRINT export parameter which is working prefectly. But I want to suppress the dialog box which is appearing while printing and printing should go to spool directly is it possible.

    Hi,
    You could try something like:
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          no_dialog      = 'X'
        IMPORTING
          out_parameters = ls_params
          valid          = lv_valid
        EXCEPTIONS
          OTHERS         = 1.
      NEW-PAGE PRINT ON PARAMETERS ls_params NO DIALOG.
    * Display Table
      lr_table->display( ).
    hope it helps,
    Kr,
    m.

  • How to remove "Records passed" list when printing ALV report

    Hi all,
    I have developed an ALV report, in which I have used reuse_alv_list_display functional module to print the output. After pressing print button, when I view the output in spool request transaction, an additional list with Number of records passed and "Calculated total records" is displayed. How to remove this additional list.
    I am using Get_print_paramaters FM to print.
    Thanks,
    rajan

    Hi
    Suppress the messages of the FM by commenting the exceptions and message statement
    Regards
    Shiva

  • Column Header in 2 rows in report file but export to excel data only displays only bottom row of column header

    Post Author: blofrese
    CA Forum: Exporting
    I am using Crystal XI and need to output several columns worth of data. Do to so I attempted to have the data presented in 2 rows within the same section.
    Example:Page Header b contains:  7 columns  5 columns
    Details a contains:  7 columns  5 columns
    When exporting to excel data only I only see the bottom 5 column header info and all the detail data in the correct order. How do I get all the Headers to display on the export file?
    Thank you for your time.

    Post Author: jw1234
    CA Forum: Exporting
    I have the same problem. Have you find the solution yet??
    I'm trying to export as Excel data only and have 2 page header band. It only display the 2nd band with the bottom label. None of the 1st band shows up. 
    Page Header a contains:Report TitleDate Range
    Page Header b contains:Dept Name4 columns
    Please help. Thanks!

  • Presentation Layer column name change effects on existing reports ?

    Hello Gurus,
    I have one requirement where user are not sure about the column names in Presentation Layer.
    so they want us to create the reports and once the reports are delivered they will give us the column name as per their requirement.
    now i read couple of blogs related to this, that does it affects the exiting reports?
    in couple of blogs they says that i won't. becaus BI server creates the alias for the old name and will reflects it wherever it's used in reports..
    So can anyone tell me where this alias name has been stored in OBIEE?
    and is there any precaution that needs to be done while doing this beacuse we are expecting to create around 40-50 reports and changing the column name after changing the presentation layer name change will increase lots of work..
    Thanking You..

    I've confirmed it on a 10g environment that when you rename the column in the RPD the existing reports reflect the change.
    What I was referring to in the statement you highlight is that a column name can be changed when being used as the definition of a report. If somebody specifies an abbreviation of the current name to fit it in a table or chart then it will not be updated from a name change in the RPD.
    So long as you build reports using the name provided by the RPD and none of the developers take the liberty of renaming it in the column properties of the request/analyses the single rename should take effect through all the reports you build.
    You can also manage the column name by renaming it in a report and using the save as system wide default. But the way you intend to do it would be the best method.
    Edited by: James - Projected on 25-May-2012 14:07

  • How can i change column header value dynamically in IR report

    HI,
    I have created report with the help of collections. Report query has been changing dynamically but i got problem with report header names and headers names has not been changing dynamically it is always showing like c001,c002....etc so, i have created global item(G_ITEM) in shared components--->Applications items after that
    I have created process(before headers) and assigning some value to G_ITEM and used &G_ITEM to column headres in IR Report but here &G_ITEM is not showing any value.
    How can i achieve dynamic headers names by using *&G_ITEM(global items)* Please guide me to achieve this.
    Thanks in advance.
    Regards
    Narender B

    Narender wrote:
    HI,
    I have created report with the help of collections. Report query has been changing dynamically but i got problem with report header names and headers names has not been changing dynamically it is always showing like c001,c002....etc so, i have created global item(G_ITEM) in shared components--->Applications items after thatWhy didn't you answer the questions in the other thread to see if there was a better approach than this?
    I have created process(before headers) and assigning some value to G_ITEM and used &G_ITEM to column headres in IR Report but here &G_ITEM is not showing any value.
    How can i achieve dynamic headers names by using *&G_ITEM(global items)* Please guide me to achieve this.The static text exact substitution method of referencing the value of an APEX item requires a terminating dot ("."):
    &G_ITEM.

Maybe you are looking for

  • Websphere 3.5 + MSSQL Server 2000 performance

    Hi, I am developing a web application with WAS 3.5 and MS-SQL Server 2000. My application contains Entity and Stateless beans. When a single user is running the application I see that a bean method called from JSP takes about 4-5 seconds for retreivi

  • Why can't I set a second alert on my iPad calendar app?

    Why can't I set a second alert on my iPad calendar app? I can set two alerts per event on the iPhone version, but the iPad version doesn't show the option that pops up after entering a first alert on the iPhone.

  • Roles not showing up

    Hi, We are using EP sp 10, and using LDAP as our data source, we have just moved the portal content from Development to QA and despite attaching the roles to the users, when the users log in it shows up blank, to content at all. Please advice at the

  • CUP - Editing Auto Provisioning Email Content

    Hi, I am looking into the possibility of editing the content of the Auto Provisioning email that is automatically sent out after user creation is done. Our policy is to send User ID and Password in separate emails. Below not provides some insight int

  • S40-how to update the Library fast.

    many nokia phones even older s40 phones that updates it's library TOO SLOW .how can we make an S40 phone updates it's library fast. even a lil bit? cause unlike other NEW s40 phones updates fast I think it will be slow if it makes a number of 500++ l