Changing header text of column in ALV

Hello. I'm trying to change header of a column in WD ALV using this code:
  lr_col = lo_value->if_salv_wd_column_settings~get_column( 'DESCRIPTION' ).
  lr_header = lr_col->get_header( ).
  lr_header->set_text( EXPORTING value = 'My perfect text' ).
But it doesn't work. Where was I wrong?

Hi..
Add the following code after set_text
lr_header->set_prop_ddic_binding_field( ).
this will clear the binding of dataelement text with the column..
Ranganathan

Similar Messages

  • Changing header title of column at runtime

    Hi
    I want to change the column header in an ALV table at runtime. I know how to overwrite a DDIC binding text of the column header with my own static text but I also want to know how to modify this column header text dynamically. I have a separate attribute in my context node to serve as the column header, which I can keep modifying at runtime, but the problem is to bind this attribute  to the header of the column.
    Thanks and regards
    Sukanya

    Hi Sukanya,
    Refer to code given by Thomas in this thread: change ALV column Header
    Also refer these threads: Webdynpro ALV title
    Re: Change Header Text for a ALV table column
    I hope it helps.
    Regards
    Arjun
    Edited by: Arjun Thakur on Mar 26, 2009 4:41 PM

  • How to Change the position of Column in ALV report

    Hi Follks,
        Is is possible to change the position of column in ALV report?.If yes then how?
        Basically my requirement is, that user want afacility where , he should be able to change the position
        of column aftre he runs the report.
        Eg: After running the report , user felt that column 5 should be at position 2 , in that case he should   
               be able to drag column 5 at position 2 and vice versa.
        Please help me, how to solve this issue.
        Note : I am using NW 7.0 SP 9
        Regards
        PG
    Edited by: PG on Apr 13, 2009 11:10 AM

    HI PG,
    do below whie filling the filed catlog
    wa_fieldcat-fieldname        = 'Field1".
    wa_fieldcat-COL_POS = '1',
    append wa_fieldcat to it_fieldcat.
    wa_fieldcat-fieldname         = 'Field2".
    wa_fieldcat-COL_POS = '2',
    wa_fieldcat-fieldname         = 'Field3".
    wa_fieldcat-COL_POS = '3',
    Thanks!

  • BDC to change header Text

    hello friends,
    need ur help.
    I have made recording for changing header text
    cForm name & cForm Ammout
    but the fields are not recorded in recording.
    is their any issue of sap script?
    i get code from recording as follows.
    perform open_group.
    perform bdc_dynpro      using 'SAPMV60A' '0101'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'VBRK-VBELN'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'VBRK-VBELN'
                                  '3100000384'.
    perform bdc_dynpro      using 'SAPMV60A' '0104'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'VBRK-FKART'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=KFTE'.
    perform bdc_dynpro      using 'SAPMV60A' '6001'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=%_GC 123 22'.
    perform bdc_dynpro      using 'SAPMV60A' '6001'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=%_GC 123 22'.
    perform bdc_dynpro      using 'SAPMV60A' '6001'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SICH'.
    perform bdc_transaction using 'VF02'.
    perform close_group.
    please help me.
    suggest answer.

    To update text use the FM  'SAVE_TEXT'.

  • Header Text for Field Catalog ALV Grid doubt ..

    Hi everybody
    I have an ALV Grid List Report (REUSE_ALV_LIST_DISPLAY)
    but i have a trouble:  the header texts for the fields are always truncated to 10 positions.
    The code for fill the Field Catalog are:
      CLEAR l_field_cat.
      l_field_cat-COL_POS       =  2.
      l_field_cat-FIELDNAME     =  'AVERAGE'.
      l_field_cat-TABNAME       =  'T_REPORT'.
      l_field_cat-REF_TABNAME   =  'RPSCO'.
      l_field_cat-REF_FIELDNAME =  'WLP00'.
      l_field_cat-SELTEXT_S   =  TEXT-004. <- 'AverageAmount' 20 lenght
      l_field_cat-DDICTXT       =  'S'.
      l_field_cat-KEY           =  ' '.
      l_field_cat-KEY_SEL       =  ' '.
      APPEND l_field_cat  TO  p_field_cat.
    But, although the column appears with 20 characters lenght, the header text appears 'AverageAmo', and it is in the same way for all the fields, even with fields with 40 characters lenght.
    What am i doing incorrect ?
    Thanks in Advanced
    Frank

    That is because of field I_field_cat-SELTEXT_S.
    This will always display 10 char long text.
    To avoid truncating you can specify length for the header.
    Try this
            x_fieldcat-seltext_l = TEXT-004.
            x_fieldcat-outputlen = 20.
            x_fieldcat-ddictxt   = c_l.
    Message was edited by: Ashish Gundawar
    Message was edited by: Ashish Gundawar

  • How to change the text of the standard ALV button?

    Hallo everybody,
    WebDynpro ALV has its own buttons e.g. Export,   Is it possible to change the text "Export" as own text 'SaveInExcel' ?
    Many thanks,
    Meer

    Answer  to this question:
    Wenn der Typ des Oberflächenelements in der Toolbar oder seine Beschriftung vom Standard abweichen sollen, lassen Sie zwar die ALV-Standardfunktion zu, blenden jedoch das zugehörige Oberflächenelement aus. Stattdessen erzeugen Sie eine selbstdefinierte Funktion und weisen ihr die gewünschte ALV-Standardfunktion zu.
    Folgende Oberflächenelemente für ALV-Standardfunktionen können Sie auf diese Weise ersetzen:
    ●      Dropdown-Listbox Senden sowie die einzelnen Einträge der Dropdown-Listbox
    ●      Dropdown-Listbox Anzeigen als sowie die einzelnen Einträge der Dropdown-Listbox
    ●      Drucktasten Zeile einfügen, Zeile anhängen und  Zeile löschen
    ●      Drucktaste Prüfen
    ●      Drucktaste Rückgängig
    ●      Drucktasten Excel und Druckversion
    ●      Drucktaste Filter sowie die Einzelfunktionen Filter definieren und Filter löschen
    ●      Drucktaste Einstellungen  sowie die Einzelfunktionen Dialogfenster Einstellungen öffnen und Dialogfenster Einstellungen schließen
    ●      Dropdown-Listbox Sichten
    Um einer selbstdefinierten Funktion eine ALV-Standardfunktion zuzuweisen, verwenden Sie Methoden der Klasse CL_SALV_WD_FUNCTION.
    sap help

  • How to change header text in MB02

    Dear All,
    We update qty of the stores acknowledgement in the MB02. However if the qty that was punched earlier has been found to be incorrect as is the scenario below:
    GR: 166
    Stores ack: 147
    GR reversed: 166
    Now we are not able to cancel the mat doc because of the diff in the stores ack.
    When we go to change the stores ack in the MB02 header text the error thrown is: Qty is already updated for Mat doc.
    Regards
    Arpita

    Hi Arpita ,
    Is it a Standard error ?. If yes provide the class and the error no.
    In normal cases system does not take text into consideration while reversing a mat.doc unless a user exit is implemented.
    Regards
    Ramesh Ch

  • Change header text of currrency field in sap query

    Hi,
    I have a sap query , fetching data from VBAP, one of the feild fetched is VBAP-WAVWR(cost) , for this feild query automaticaaly fetched the currency field , which i can not see in basic list in Transaction SQ01.
    I need to change the header text of this currency field which by default is 'CURR.'. TO 'COST CURR.'

    hello Kummr,
       in sq01, you can always change the field text as you want , go to sq01 ->change-> basic list , on the right hand side box click the field of "Curr" and change.
    rgds
    Mu

  • COPA report change Header text

    Hi,
    I am preparing COPA line item report. I am not able to change or add header text in the report as we  do in report painter report.
    The form I am  using is KE94 Create and KE95 Chage.The report painter option extras-> Report Text -> header text is not available in KE95 forms.
    Any Idea on how to do the changes in header text in this case.
    Regds

    Hi Suchitra,
    You can try it with KE32.
    Regards,

  • Direct navigation of header text of vd53 from alv

    Hi expert
    I have created one alv report based on the delivery level.The user need to know the hader text information of VD53.I alredy developed click event in the report.The problem is user need so many navigation reach the header text.The user want to navigate directly to the header text.
    Please give any soln for this
    Regards
    Manoj

    Hi Manoj,
    U have to make a BDC recording VD53 upto that particular screen. now in the click event make a call transaction for the BDC recording in Error mode.
    This will help user to navigate to the particular screen without interacting.
    Amitava

  • Changing Header Text

    Hi,
    Somebody  has an example using IDOC's,  about  how change o modify the header text  in PurchaseOrder?
    Thanks  in advance.
    Regards.
    Marisol.

    Thanks,
    I found that in .xsd, It doesn't show the Dimension name , however it clears out the headers. Whatever I put in header cells from back end by modifying the xls,
        <xsd:complexType name="RowAxisLayout">
            <xsd:complexContent>
                <xsd:extension base="AxisLayout">
                    <xsd:attribute name="columnOffset" type="xsd:int" use="required" />
                    <xsd:attribute name="showDimensionName" type="xsd:boolean" use="optional" default="true" />
                </xsd:extension>
            </xsd:complexContent>
        </xsd:complexType>Regards,
    Sumant

  • Single heading for Multiple columns in ALV

    Hi Experts,
          I need to display a common column heading for multiple columns in my ALV Grid Display output. I am giving the sample output here.
    MATNR...WERKS..| Unrestricted Stock|....|Stock in transfer        |....|Stock in Quality|.
    ............................| CAT | SAP  | Differe| .. |  CAT   |  SAP  | Diff   | .. | CAT   |  SAP  | Diff  |
    As I shown above, for 3 columns CAT, SAP, and for Difference, I need to get "Unrestricted Stock" as column heading... and so on...
    Pl. suggest me on this.
    Thanks in Advance
    Ramakrishna

    Hello Ramki,
    NOT POSSIBLE IN ALV AT ALL :-((
    You have to use classical report using WRITE stmts for this.
    If your client does not want to lose ALV functionalities, then you can try something like.
    Unrestricted Stock-SAP | Unrestricted Stock-CRM | Unrestricted Stock-Diff. Stock ... and so on !!!
    BR,
    Suhas
    Edited by: Suhas Saha on Jan 21, 2009 3:00 PM

  • Display two heading in single column using ALV report

    Hi Experts,
    I got a requirement for displaying 2 rows heading in a single column report. Is it possible that I can perform this task using ALV. How to get this 2 rows in ALV.
    This is a criteria that need to be output in ALV REPORT.
    MATERIAL CODE--MATERIAL NUMBERSTORAGE LOC----SLOC1     SLOC2
    --DATE--DATE1      DATE2
    123445--TEST MATERIAL22--
    3
    As mentioned above storage loc and date will be changing with respect to data dynamically and under this double heading qty will be displayed.
    Just want to know how to get double heading. It is clear that how to display dynamically but unaware of double heading using fieldcatalog.
    Regards,
    Yahya

    Hi Yahya,
    Please pass row position in fieldcatalogue for the respective columns.
    E.g  MOVE '2' to w_fieldcat-row_pos.  " This will display the field in 2nd row.
    Thanks,
    Rupali

  • How to change header value dynamiclly in procedural alv report?

    Hi experts,
    I develop one report (using procedural alv ).I gave 3 input check boxes (ex : in 1st checkbox 10days in 2nd check box 20 days
    in 3rd check box 30 days they entered like this in the input checkboxes in days 10,20,30.In o/p report 3 columns i maintained like this .   Column1                          column2                                                 column  3
           from 0 to 10 days          from 11 to 20 days                                    from 21 to 30 days.
    I want to display alv report o/p like this in the respective columns.
    For example they enter 15 25  35 (i/p)
    o//p in alv report 
       Column1                          column2                                                 column  3
           from 0 to 15 days          from 16 to 25 days                                    from 26 to 35 days.
    i want to change days  dynamically  in alv header  .Pls give me the code using procedural alv report.
    If u want i will give u detail.pls help me in this.

    I assume the main issue is chaniging ALV header dynamically, isn't it? For this you need to use field seltext_m of fieldcatalog for particular column. So you can contruct header dynamically by string concatenation like
    parameters: pa_1st(2) type n,  "i.e. 15
                        pa_2nd(2) type n,  "i.e 25
                        pa_3rd(2) type n.  "i.e. 35
    "first field
    concatenate '0' 'to' pa_1st into it_fieldcatalog-seltext_m.
    "next field
    add 1 to pa_1st.
    concatenate pa_1st 'to' pa_2nd into it_fieldcatalog-seltext_m.
    "last field
    add 1 to pa_2nd.
    concatenate pa_2nd 'to' pa_3rd into it_fieldcatalog-seltext_m.
    Refer [Sample ALV: Heading in ALV|http://www.sap-img.com/abap/sample-alv-heading-in-alv.htm] for more information.
    Regards
    Marcin

  • How to change heading text  for parameter field of type date

    Hi,
        After creating a parameter field with the type " Date Time" when I open the report for entering the parameter then it displays  the given parameter with the following text:
    " Please enter Date in format "yyyy-mm-dd". "
    I want to change it to some other text like as:
    " You have to enter the date and time in format yyyy-mm-dd . "
    Is there any way by which I can change this given header to some other text.
    Let me know if anyone needs some more information in this regard so as to solve my given query soon.

    Hi Garrett,
                  Well first of all I can change only the prompt text that is user defined. I cannot change any parameter as of now whose type is let suppose Date. Since in this case the Business Object itself shows the text which is something like this " Please enter Date in format "yyyy-mm-dd". " .
       Here I want to change this given text to some other format like " You have to enter the date in the format yyyy-mm-dd" or in any other manner.
    Also the current Crystal Report version which I am using is 11.0.0.1282.

Maybe you are looking for

  • Billing Doc with over 200 item lines, wont post to FI

    Hi there i have a F2 billing doc with 209 lines on it, this will not post to FI as it is trying to post over 999 lines into FI, has anyone overcome this issue if so how did you do it? If not what are my options, i have customers who want monthly bill

  • PE9 Error Compiling Movie. Out of memory.

    I don't know what is going on when exporting.  I have my export settings set for PC: AVI.  It seems to do fine at first, but about 75%, I received an error message stating that the program had an error while compiling the movie because it was out of

  • When I try to add a Watermark to my Interactive pdf, a pop-up message informs me "You do not have su

    I created a great interactive pdf in Indesign and then added Reader extension capability in Acrobat XI. However, when I now try to add a Watermark to my Interactive pdf, using Acrobat XI, a pop-up message informs me "You do not have sufficient permis

  • How to connect WDJ to 3rd Party Backend Systems(Oracle).

    Hi Friends, How to connect WDJ to 3rd Party Backend Systems(Oracle). Please give Step-by-Step Explanation. This is first time I am connect  to Oracle System. Can you give Step-by-Step Explanation. Regards Vijay Kalluri

  • IPod - BMW Connector - Mine just stopped working???

    My factory BMW/Ipod connector has worked perfectly up until last week (over 1yr). I don't recall updating any software on either my ipod or my itunes software recently. It just stopped working. When it is plugged into the connector in my vehicle, it