Setting ALV Header text doesn't work

I'm trying to set different titles on my headers of the ALV table. To do this I do the following during the WDDOINIT of the COMPONENTCONTROLLER.
  CALL METHOD WD_THIS->GO_ALV_EINSTELL->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMNS
    RECEIVING
      VALUE  = lt_columns
  LOOP AT lt_columns INTO ls_column.
    CASE ls_column-ID.
      WHEN 'SETTING_ID'.
        CALL METHOD LS_COLUMN-R_COLUMN->SET_FIXED_POSITION
           EXPORTING
             VALUE  = CL_WD_ABSTR_TABLE_COLUMN=>E_FIXED_POSITION-LEFT
        CALL METHOD LS_COLUMN-R_COLUMN->SET_POSITION
          EXPORTING
            VALUE  = '2'
        CALL METHOD LS_COLUMN-R_COLUMN->GET_HEADER
          RECEIVING
            VALUE  = lo_header
        IF NOT ( lo_header IS BOUND ).
          CALL METHOD LS_COLUMN-R_COLUMN->CREATE_HEADER
            RECEIVING
              VALUE  = lo_header
        ENDIF.
        CALL METHOD LO_HEADER->SET_TEXT
          EXPORTING
            VALUE  = 'Einstellung'
      WHEN 'EVENT_TYPE'.
    ENDCASE.
  ENDLOOP.
The debugger shows me that the different titles are updated but when it gets displayed I see the old DDIC titles. Any ideas on how to fix this?

I hope you want to change the name of ALV column in the display.
Try following code for the same:
  DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table .
  l_ref_interfacecontroller =   wd_this->wd_cpifc_alv_table( ). " Value from the prop tab of the view
  DATA: l_value TYPE REF TO cl_salv_wd_config_table.
  l_value = l_ref_interfacecontroller->get_model( ).
  DATA l_column TYPE REF TO cl_salv_wd_column.
  DATA l_header TYPE REF TO cl_salv_wd_column_header.
  l_column = l_value->if_salv_wd_column_settings~get_column( 'MATNR' ). " Name of column you want to change
  l_header = l_column->get_header( ).
  l_header->set_ddic_binding_field( ).
  l_header->set_text( `Material Nuber` ).  " Name that is to be displayed
Regards,
Saket.
Edited by: Saket  Abhyankar on Jan 13, 2010 3:32 PM
Edited by: Saket  Abhyankar on Jan 13, 2010 3:48 PM

Similar Messages

  • New iPhone texting doesn't work

    My texting doesn't work just bought iPhone yesterday can anyone help

    Someone just brought me to light (Thanks Jason)
    Make sure you have the 10-digit number saved and not a 7 digit number.
    http://support.apple.com/kb/TS1291

  • Had problem with my hotmail account and had to change my password. Ever since then, my default e-mail account set up to hotmail doesn't work...it sends from gmail. How can I correct that?

    Had problem with my hotmail account and had to change my password. Ever since then, my default e-mail account set up to hotmail doesn't work...it sends from gmail. How can I correct that?

    On your iPhone you need to change your password in 2 places:
    - Incoming Mail Server and
    - Outgoing Mail Server
    To get to the password entry for the Outgoing Mail Server you have to tap on cell smtp.live.com and again on the second view.

  • Since the kitkat update, my "talk to text" doesn't work on my LG G2

    Since the kitkat update, my "talk to text" doesn't work on my LG G2 unless it is connected to WiFi.  It says "unable to reach Google.  try again later".  Can somebody tell me how to fix this!? I need this feature most when I'm NOT connected to WiFi!

        Hello drewzytoo, let's get to the bottom of this together! Let's first start by resetting the Voice Mate app. Go to settings, applications, keyboard settings, voice commands and clear app data. If the issue still persists, the next step is to test in safe mode: http://vz.to/1n1hKWA Keep us posted!
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

  • I upgraded my 4s to IOS 7 and now texting doesn't work

    HI,
    I upgraded my 4s to IOS 7 and now texting doesn't work.  I can imessage but i cant sms text.  every time i try and send a text i get a not delivered error.
    please help

    Thanks for the quick reply, but I already turned on Send as SMS and it still doesnt work.  I have turned off imessage to see if that would help and restarted the phone a few times.

  • Rename alv header text in webdynpro abap

    Hi ,
    I have created two attribute PART_NUMBER and TERM_CODE in context level with type CHAR10.
    AND in ALV header PART_NUMBER and TERM_CODE is displaying, which is coming from context level.
    i want to rename the header of ALV to PARTNUMBER and TERMCODE.
    could any one send me the sampls code or any solution?
    Thanks
    Rakshar

    First get access to the ALV Model object for your ALV usage:
    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( ).
    Then access the column you want to change the header on. In addition to setting the text of the header of the column, you must also force off the data dictionary binding for the field property text.
    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` ).

  • JTextField - Setting the column size doesn't work. Help, please.

    Hi,
    I want to set the column size of a text field from another text field by the input from the user. However, it just doesn't work. The following is my code. Just check out the last anonymous inner class action listener. Somehow i can get the user text, but it just doesn't work.
    Thanks for any helpful inputs.
    * Introduction to Java Programming: Comprehensive, 6th Ed.
    * Excercise 15.11 - Demonstrating JTextField properties, dynamically.
    * @Kaka Kaka
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.Border;
    import javax.swing.border.LineBorder;
    import javax.swing.border.TitledBorder;
    public class Ex15_11 extends JFrame{
        // Create two text fields and three radio buttons
        private JTextField jtfUserText = new JTextField(10);
        private JTextField jtfColumnSize = new JTextField(new Integer(10));
        private JRadioButton jrbLeft = new JRadioButton("Left");
        private JRadioButton jrbCenter = new JRadioButton("Center");
        private JRadioButton jrbRight = new JRadioButton("Right");
        public static void main(String[] args){
            Ex15_11 frame = new Ex15_11();
            frame.pack();
            frame.setTitle("Excercise 15.11 - Text Field Property");
            frame.setLocationRelativeTo(null);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
        // Start of Constructor
        public Ex15_11(){
            // Set the the frame layout
            setLayout(new BorderLayout(5, 5));
            // Create three panels and two labels
            JPanel jpText = new JPanel();
            JPanel jpHorizontalAlignment = new JPanel();
            JPanel jpColumn = new JPanel();
            JLabel jlblTextField = new JLabel("Text Field");
            JLabel jlblColumn = new JLabel("Column Size");
            // Create a button group for the radio buttons to be grouped
            ButtonGroup group = new ButtonGroup();
            // Group the radio buttons
            group.add(jrbLeft);
            group.add(jrbCenter);
            group.add(jrbRight);
            // set a titled border for a panel
            jpHorizontalAlignment.setBorder(new TitledBorder("Horizontal Alignment"));
            // Create a line border
            Border lineBorder = new LineBorder(Color.BLACK, 1);
            // the all the components to their corresponding panels
            jpText.add(jlblTextField);
            jpText.add(jtfUserText);
            jpHorizontalAlignment.add(jrbLeft);
            jpHorizontalAlignment.add(jrbCenter);
            jpHorizontalAlignment.add(jrbRight);
            jpColumn.setBorder(lineBorder);
            jpColumn.add(jlblColumn);
            jpColumn.add(jtfColumnSize);
            // add the panels to the frame
            add(jpText, BorderLayout.NORTH);
            add(jpHorizontalAlignment, BorderLayout.WEST);
            add(jpColumn, BorderLayout.EAST);
            jrbLeft.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    jtfUserText.setHorizontalAlignment(SwingConstants.LEFT);
            jrbCenter.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    jtfUserText.setHorizontalAlignment(SwingConstants.CENTER);
            jrbRight.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    jtfUserText.setHorizontalAlignment(SwingConstants.RIGHT);
            // Register the listener for the coloum size
            jtfColumnSize.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    System.out.println(Integer.parseInt(jtfColumnSize.getText()));
                    jtfUserText.setColumns(Integer.parseInt(jtfColumnSize.getText()));
    }Edited by: ChangBroot on Dec 16, 2008 6:13 PM

    don't forget to revalidate the JPanel after changing the components it holds:
        jtfColumnSize.addActionListener(new ActionListener()
          // Handle event
          public void actionPerformed(ActionEvent e)
            System.out.println(Integer.parseInt(jtfColumnSize.getText()));
            jtfUserText.setColumns(Integer.parseInt(jtfColumnSize.getText()));
            jpText.revalidate();
        });This will tell the jpText JPanel's layout manager to relayout the components that this JPanel holds. It should resize your JTextField. Note that in order to call this from within the anonymous inner ActionListener jpText will need to be declared "final". Either that or declared as a class field.

  • TS2755 I used to get iMessages on my iPad 2 and iPhone 4 now it goes to one or the other, not both.  Icloud is not working for this and iMessage texting doesn't work I need to send it as a regular text. How do I fix this issue.

    Icloud doesn't work between my iPad 2 and iPhone 4. And when I try to iMessage from my iphone 4 it doesn't send. I need to send it as a regular text message. Any ideas why they won't sync and iMessage won't send?

    To delete, tap "Edit" (tap to enlarge image)

  • Extract PO header text in PO work flow item description

    Hi,
    I'm trying to display PO header text using standard PO workflow.
    I managed to retrieve the PO header text information at the business object(SWO1). Now it is only displaying the last line of the PO header text. I define object &_WI_OBJECT_ID.POTEXT& in the work item text. POTEXT is of type VIRTUAL and with reference to table tline and field tdline.
    How to make this field POTEXT multiline in the workflow work item?
    For example PO header text contains:
    Header testing1
    Header testing2
    Header testing3.
    Currently, it is showing only Header testing 3. I'm not sure how to do coding in business objects for this case.
    I am using 'READ_TEXT' function module, but how to display the text information in this field POTEXT?
    Please advise. Thanks.

    Hi Dev,
    Thank you for your quick & prompt response.
    The program that you have given is showing the text details but it is not showing complete text details, it is only showing 1st line of text. Please see screen shot for your reference, please suggest how to get complete text details.

  • Po header text doesn't display on po printing?

    Hi experts,
    We create new po doc type. Now we found when we create po and input header text manually, it can't be previewed in po form. We check some table ,it seems T166K / xT166K doesn't include this text.
    May I know for new doc type, any text config need be done? Or how to setup text with doc type ?
    Thanks
    Alice

    check in SPRO:
    Materials ManagementPurchasingMessagesDefine Texts for Purchase Order- > Text for Document Header , maintain your doc type , object EKKO , Text id F01, and try again.

  • Change notification E_mail text doesn't work in Portal 7.0

    I am changing notification E_Mail text accroding this link:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/33/d494c86203ea40b7b44ddd471baab1/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/33/d494c86203ea40b7b44ddd471baab1/frameset.htm</a>
    But it doesn't work.
    and I have a question ,
    where should I saved the file 'com.sap.security.core.util.notification.notificationTexts_language_zh_CN.properties'  in the Portal server.

    Since you have not provided a more detailed desription of what is not working, and what is at error and what you assume the desired output to be for the specific user(s), I can only recommend you check the following:
    1.) The email parameters are being configured per language. As such the user you are testing with needs to have the same default portal language assigned. Either by default or by personalisation.
    2.) The 'com.sap.security.core.util.notification.notificationTexts_language_zh_CN.properties' file you are using may be referencing a notificationTexts_cn.properties language entry. Check the language installations are named the same and be aware this can be case sensitive.
    3.) Ensure that you have the entry in the config tool in the same case.

  • Sales document header-- head text changes not working in VA01 if we rasie with reference to quotation

    Hi,
    Greetings!!
    We have raised a quotation, in this quotation we have manually updated Job number (1234) and project number (9876) in header--> header text and saved the quotation.
    With reference to this Quotation we raised a sales order(VA01)  and here we have changed job number from 1234 to ABCD and project number  from 876 to EFGHIJ and saved the sales document but system by default takes quotation  job and project number only. If we go to change mode of sales document (VA02) our changes working fine.
                    ould you please let us know how we can overcome this issue?  Or this is standard  behavior or what?
    Regards,
    Sree

    Hi,
    Text determination configuration is done in VOTXN
    check VOTXN for your text determination procedure and under access sequence check if there is any routine added

  • Rules: header fields doesn't work

    I want to use a header field List-Id: [<xyzzy.yahoogroups.com]>  [without the square brackets and using the real list ID]
    One of the conditions for the rule is:
    List-Id:   contains  xyzzy.yahoogroups.com
    but the rule does not move the message to the designated mailbox.
    In the first box of the rule, I selected 'Edit header list' and added List-Id:
    I've tried header fields before with not much luck.
    It doesn't work any better if I just select Header:-(
    any clues?
    tnx
    jt

    I have the same problem in Mavericks Mail. Trying to have a rule trigger on "List-Id" contains whatever, the rule never triggers. I've verified that the field exists in the message.

  • Set report header text.VI

    OFFICE TOOLKIT内VI(Set report header(footer) text.VIにてEXCELへヘッダーフッターを挿入したいのですが、フォントサイズが大きくなってしまいます。ヘッダーフッターに対するフォントサイズを制御する方法もしくは、上述VIの使用方法に何らかの制限があるのでしょうか。
    宜しくお願い致します。
    Attachments:
    ヘッダーサンプル.vi ‏37 KB

    平素より弊社製品を、ご使用いただきまして誠にありがとうございます。
    日本ナショナルインスツルメンツ技術部の荒瀬と申します。
    お問い合わせいただきましたレポート生成ツールキットに関しまして以下のようにお答えさせていただきます。
    Microsoftエクセルレポートのヘッダ・フッタのフォントは、エクセルレポート全体と同じもの(サイズを含む)が適用されます。
    Set report header(footer) text.VIにてヘッダ、フッタのフォントを変更することはできなくなっております。
    ただし、手動でSet report theader(footer) text.VIを編集していただくことによって、フォントを
    変更することができるようになります。
    ご参考までにフォント設定ができるようにSet report header (footer) text.VIを変更し、添付いたしました。
    フォント用のの制御器を作成し、サブVI入力端子として設定いたしました。
    お客様に添付していただきましたVIも、あわせて若干変更させていただきましたのでご参照下さい。
    以上の内容でご不明な点などございましたらご連絡下さい。
    今後ともよろしくお願い致します。
    日本ナショナルインスツルメンツ技術部
    荒瀬
    Attachments:
    Set Report Header Text2.vi ‏244 KB
    変更済みVI.vi ‏46 KB

  • Inserting of transitions & text doesn't work !!

    I made my first iMovie film, reading very carefully the Help and Manual files.
    Up to now two things won't work !!! Inserting transitions or text in between the fragments doesn't work. I can select the transitions and text icons but when I draw them to paste, they won't fit or drop in the space between the fragments. Also the automatic insert of transitions doesn't work. The icon which should appear between the fragments doesn't work.
    Please Help !

    Up to now two things won't work Inserting transitions or text in between the fragments doesn't work.
    When you say "fragments" here, how long of a clip are you referring to as a fragment? Since most effects, transitions, and titles normally create an overlap of the preceding and succeeding segments, these segments or "fragments" do have a minimum length limitation for the insertion to take effect.

Maybe you are looking for

  • R184 System Update - Scheduled to go live March 26th, 2013

    We are announcing a new Business Catalyst release, scheduled to go live on Tuesday, March 26th, between 1AM - 6AM PST. Please refer to our blog post for an overview of all major changes. Minor enhancements and cosmetic improvements When disabling the

  • DBMS_XMLSAVE + Oracle XE 10.2

    The official documentation of the Oracle XE 10.2 ( http://download.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25108.pdf ) at the page 149 indicated that this version supports Oracle packages DBMS_XMLSAVE and DBMS_XMLQUERY, but I haven't those packa

  • Visual Studio Grid Component that is sortable and updatable

    Hello,  We have a need to pull a group of records from SQL Server into a grid component on a web site. Once the data is in the grid we'd like to be able to sort it a couple of different ways. We also need to write that data back to the database (Upda

  • Text not translating into another language

    Hi! When I'm working in Robohelp HTML, and I select topic langauge and change to another language, it does not change the text. I've even tried just selecting a paragraph and changing the language there, but still nothing happens. I'm not sure if som

  • I have os x 10.6.8 and illustrator cc wont install

    i have os x 10.6.8 and illustrator wont install