Alv_list 2 headers problem

Hi All,
I have created an ALV_List with 2 headers (columns sub columns).
e.g
    Months                 |           year
jan     feb     march    |     2012     2013
10      30     40          |      bc       ab
10      30     40          |      ad       dv
Heading one I have written in Top_of_Page event of alv_list Using Write statement so its alignment is fixed.
when I press the Sum button on the application tool bar of the report this alignment of Heading with its subheading gets changed. Any help is appreciated.
This is my output
and when I do the sum of old Acquisition by clicking on Total(Sigma) sign its alignment gets changed
I want to do the manupulations in 1st header whenever this Sum button is pressed.

This is my FM
in it events
wa_evt-NAME = 'TOP_OF_PAGE'.
wa_evt-FORM = 'TOP_OF_PAGE'.
APPEND wa_evt to   it_evt.
    IT_EVENTS                         = it_evt
*   I_SCREEN_START_LINE               = '2'
*   i_callback_user_command = 'USER_COMMAND'
   TABLES
     T_OUTTAB                          = GT_FINAL[]
  EXCEPTIONS
    PROGRAM_ERROR                     = 1
    OTHERS                            = 2
This is my TOP_of_PAGE subroutine.
**This top of page is for creating the 1st header as you can see its using write statement Its alignment is fixed with Header2
FORM TOP_OF_PAGE.
  FORMAT COLOR = 4 INTENSIFIED .
WRITE: / SY-ULINE(255).
WRITE: / SY-VLINE,
(78)'',
SY-VLINE,
(78) 'Network Tarrif'CENTERED ,
SY-VLINE,
(77) 'LMC'CENTERED,
SY-VLINE,
(74) 'Compression'CENTERED ,
SY-VLINE,
(74) 'Unregulated'CENTERED ,
SY-VLINE,
(79) 'Common'CENTERED ,
SY-VLINE,
(33) 'Total'CENTERED ,
SY-VLINE.
*    FORMAT COLOR = 1.
ENDFORM.
**This top of page is for creating the 1st header as you can see its using write statement Its alignment is fixed with Header2
Now when i press the Sum button in the list columns(Header2) are slightly shifted while top header(header1) is fixed and hence my alignment is getting disturbed.
hope you understood the problem now?

Similar Messages

  • Refreshing new column headers problem

    id like to change the column headers at any time, the number of columns dont change..just the headers, so i use a myDefaultTableModel.setColumnIdentifiers(myColumnNamesArray), it kinda works in that when i print out the actual JTables column headers..they reflect the changes...i just dont see them
    DefaultTableModel dm = new DefaultTableModel(dataArray, colArray);
    JTable table = new JTable(dm);
    ...to change..
    dm.setColumnIdentifiers(newColArray);
    dm.fireTableChanged(new TableModelEvent(tableModel,TableModelEvent.HEADER_ROW));at this point if i do a
    System.out.println(table.getColumnName(0-n));i can see that the actual table has the changed column names. what am i missing? i tried
    dm.fireTableDataChanged();
    dm.fireTableStructureChanged9);but that didnt do anything either :)
    any help??

    cuz just setting and repainting doesnt work for me :(Is it a programming problem or version problem?
    I can't tell, which is why you should always post your test program. A test program is not that hard to create. The following works for me on JDK1.4.2:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class TableHeaderChange extends JFrame
         public TableHeaderChange()
              final DefaultTableModel model = new DefaultTableModel(5, 3);
              JTable table = new JTable(model);
              JScrollPane scrollPane = new JScrollPane( table );
              getContentPane().add( scrollPane );
              JButton button = new JButton("Change Header");
              button.addActionListener( new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        String[] columnNames = {"One", "Two", "Three"};
                        model.setColumnIdentifiers( columnNames );
              getContentPane().add(button, BorderLayout.SOUTH);
         public static void main(String[] args)
              TableHeaderChange frame = new TableHeaderChange();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setVisible(true);
    }Problem solving always works better when you simplify the problem.

  • Headers Problem

    Hi,
    I keep on having the same problem - and was wondering if you guys could help me...
    If I have two classes which I want to include in each other (i.e. have a reference to the other in each of them). The obvious step would be to include an import statement for the other in each of the headers...
    E.G.// Classes: Class1 and Class2
    Class1.h
    +#import <Foundation/Foundation.h>+
    +#import "Class2.h"+
    +@interface Class1 : NSObject {+
    +Class2 *myClass2Ref;+
    @end
    Class2.h
    +#import <Foundation/Foundation.h>+
    +#import "Class1.h"+
    +@interface Class2 : NSObject {+
    +Class1 *myClass1Ref;+
    @end
    When I try to compile this, I get the errors:
    In Class1.m "Error: syntax error before Class1"
    In Class2.m "Error: syntax error before Class2"
    Is there a way round this other than using "NSObject *" or '"id" instead of one of the class names in the declarations?

    You need to use "forward declaration" using @class in your header file, and then the actual import in your implementation file. Google for more details.

  • Spry.Utils.loadURL headers problem

    I am posting a request with the loadURL function.
    I am getting two values from a form :
    - a WYSIWYG texarea editor which id is 'elm1'
    - an input text field 'contentfilename'
    In my textarea, I wrote a phone number that have the
    following cars : +33
    My PHP script that receive the posted data ($_POST variables)
    don't receive the '+' cars.
    Why is that ??
    Here is my save function :
    function saveEditorContent() {
    var dataString = "elm1="+
    tinyMCE.getInstanceById('elm1').getHTML()
    + "&contentfilename=" +
    document.getElementById('contentfilename').value
    var options = {
    postData: dataString,
    headers: {"Content-Type":
    "application/x-www-form-urlencoded; charset=ISO-8859-1" },
    errorCallback: saveEditorError
    var url = "editorAction.php?action=savecontenteditor";
    var req = Spry.Utils.loadURL( "POST", url, true,
    saveEditorSucess,options );
    removeMCE('elm1');
    spEditor.showPanel( 2 ) ;
    function saveEditorSucess(req) {
    Spry.Utils.setInnerHTML('statusMessageBox',
    'SUCCESS<br/>'+req.xhRequest.responseText );
    Thank you
    Corentin

    Hello,
    You miss a step in this code. You'll have to URI encode every
    value you will send to the browser. In your situation the + in the
    phone has a special meaning in the URI encoding and will be treated
    as a blank space.
    Please modify the following line:
    var dataString = "elm1="+
    tinyMCE.getInstanceById('elm1').getHTML()
    + "&contentfilename=" +
    document.getElementById('contentfilename').value
    with this one:
    var dataString = "elm1="+
    encodeURIComponent(tinyMCE.getInstanceById('elm1').getHTML())
    + "&contentfilename=" +
    encodeURIComponent(document.getElementById('contentfilename').value);
    Regards,
    Cristian

  • Kernel-headers problem

    Hi guys,
    I am currently trying to compile the User Mode Linux inside my Arch box. I think my problem is related to the lack of the file /usr/include/linux/threads.h. I know that this file is a header provided by some legacy kernel-threads package. My question is: is there any way to find this header inside the the arch linux or is replaced by another header?
    Thanks,

    Benedict_White wrote:
    Is there any way to get it to support LinuxThreads?
    Only I have to get MySQL 3.23.58 working and that appears to need it.
    No. Glibc 2.4 dropped linuxthreads support. Don't try and downgrade glibc, otherwise you will need to recompile almost every single package on the system.

  • Wireshark headers problem after upgrade to 1.10.0

    Hello,
      I was developing dissector for Wireshark and had Wireshark 1.8 installed at first. After release of 1.10.0 I've upgraded and my dissector plug-in fails to compile now. With following output:
    In file included from /usr/include/wireshark/epan/packet.h:28:0,
    from /home/andrey/grive/wireshark-dissector-template/packet-intellect.c:30:
    /usr/include/wireshark/wiretap/wtap.h:32:30: fatal error: ws_symbol_export.h: No such file or directory
    #include "ws_symbol_export.h"
    I've asked for help on Wireshark community site they said  to check Wireshark package.

    Hello Oscar,
    I apologise for reviving such an old thread, but did you happen to solve this problem? I am hitting something very similar, I already opened an SR but any supplementary insight would be welcome.
    Best regards,
    Iulian

  • Pro*C: status? fix? (being worked on?)

    Anyone have succeeded using Pro*C?
    My experience has been segmentations faults and missing includes
    (case problems with names, etc, see previous posts).
    The question is: * is there a (consistent... :-) workaround?
    * will be a new version fixed?
    I'm interested more in connecting local processes to oracle in
    other machines (and OSes) than running a server locally.
    So far the EAP release has worked for me pretty well for the
    later, but not for the former (unable to locally compile with
    ProC, compiling in another platform and moving the .c's works for
    small apps, but big apps core dumps, etc).
    Any experiences / suggestions?
    New release in our future?
    -cristian
    null

    Cristian Ferretti (guest) wrote:
    : Anyone have succeeded using Pro*C?
    : My experience has been segmentations faults and missing
    includes
    : (case problems with names, etc, see previous posts).
    : The question is: * is there a (consistent... :-) workaround?
    : * will be a new version fixed?
    : I'm interested more in connecting local processes to oracle in
    : other machines (and OSes) than running a server locally.
    : So far the EAP release has worked for me pretty well for the
    : later, but not for the former (unable to locally compile with
    : ProC, compiling in another platform and moving the .c's works
    for
    : small apps, but big apps core dumps, etc).
    : Any experiences / suggestions?
    : New release in our future?
    : -cristian
    Hi
    Missing headers problem can be solved by applying patches 1 and 2
    from support -section of technet.oracle.com.
    Pro*C coredumps can be avoided either by Pro*C compiler option
    PARSE=NONE or Pro*C compiler option LTYPE=NONE
    At least I have been able to compile and run Pro*C-programs with
    EAP-version.
    Hope this helped
    Tervo Salminen
    null

  • Problems Aligning Text in Headers and Footers

    I have tried to add headers and footers to documents and the  alignment is wrong.  The center footer/header should be center-aligned  and the right header/footer should be right-aligned.  Unfortunately,  they are both left-aligned.
    The preview shows the headers and footers aligned correctly, but when  the headers/footers are inserted in the document, the alignment reverts  to left aligned, although it is centered and on the right side of the  page, as appropriate.
    This is not a problem in Acrobat 7.
    Please advise if this is a bug and is awaiting an update, or if there is  something that I need to do to fix this problem.
    This is a screen shot of the preview windowindicating the proper alignment as indicated in the ovals:
    Here is the actual document once the header and footer are added.  Notice how the alignment switches to flush left:
    Any guidance is appreciated.
    Thanks.
    - James

    Nope.  The good folks at Adobe have neither addressed this issue (and I have
    heard from others that it is a problem for them as well) nor have they been
    very good about maintaining my account to be able to log in and follow up on
    it.
    The truth of the matter is that it appears to be a glitch in some, but not
    all, versions of this product and clearly it is not a big enough problem for
    them to want to fix it.
    I wind up using Acrobat 7 when I need properly formatted headers and footers
    or ‹ and this ought to get the attention of the folks at Adobe and maybe
    prompt someone (anyone!) to take a look and fix this glitch ‹ you should
    check out PDFPen.  It does much of what Adobe can do including headers and
    footers.
    If I didn't already have Acrobat 7 (and 8 and now 9), I would ditch Acrobat
    and just use Preview or PDFPen.
    - James
    From:  superfluities1 <[email protected]>
    Reply-To:  <[email protected]>
    Date:  Tue, 04 Jan 2011 12:11:19 -0700
    To:  "James A. Sarna, Esq." <[email protected]>
    Subject:  Problems Aligning Text in Headers and Footers
    Anybody ever solve this problem? I just started using(trying too, that is)
    Acrobat Pro for writing letters and starting at the top I ran right into
    this problem. Seems like a deal killer.

  • Problem converting to PDF - headers disappear

    People, I have been using Acrobat 11 for a year with no problems. I am now creating Word documents using a new template, and when I PDF them their headers disappear in the PDF files. A colleague using Acrobat 9 can convert them to PDF without encountering this problem. Has anyone else had this problem? Can anyone suggest a solution? Thanks in advance.

    Hello,
    Would it be possible for you to share the sample template with me. I will test it at my end.
    Regards,
    Anoop

  • [SOLVED] kernel-headers & VirtualBox. Still same problems! (

    Hi guys, i'm new to this forum, but i didn't found an answer anywhere! I'm trying to install VirtualBox 4.2.10 from terminal on my x86 Oracle Linux.
    Half year ago, when i tried first, i couldn't resolv the problem and still the same problem today - NO KERNEL HEADERS for ORACLE Linux in REPO! What did wrong after update? I can found headers only for RHEL original kernel, but i don't want to use 2.6.32 kernel version.
    Can someone help me and describe true and complete installation VirtualBox for Oracle Linux??? Thanks ahead!
    Edited by: 996048 on 25.03.2013 13:26
    Edited by: 996048 on 25.03.2013 13:30

    996048 wrote:
    Hi guys, i'm new to this forum, but i didn't found an answer anywhere! I'm trying to install VirtualBox 2.4.10 from terminal on my x86 Oracle Linux.
    Half year ago, when i tried first, i couldn't resolv the problem and still the same problem today - NO KERNEL HEADERS for ORACLE Linux in REPO! What did wrong after update? I can found headers only for RHEL original kernel, but i don't want to use 2.6.32 kernel version.
    Can someone help me and describe true and complete installation VirtualBox for Oracle Linux??? Thanks ahead!In spite of Rukbat's response, I don't see that we are dealing with a vbox issue .... yet.
    We can't know what you did wrong until you know what you did.
    Exactly What command did you issue? *Exactly what response did you get?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Hierarchy problem when creating IDoc with multiple headers

    Hi,
    In general, When you create an inbound IDoc for the IDoc Type FIDCCP02, you have all the data records arranged in hierarchical order (while viewing it in the we02 transaction).
    Our requirement is to have m number of headers(E1FIKPF) and in turn it has n number of items(E1FISEG) inside a same IDoc. We have a problem in viewing the hierarchy of them in the data records tab. It comes down in a flat order without hierarchical division.
    If we have only one header, we get the hierarchy sorted by default. If we have multiple headers we see the same problem again.
    We guess some make-ups in the EDIDD structure which contains segnum, hlevel etc needs to be done.
    Let us know the correct method to get this fixed.
    Points will be rewarded.Thanks in advance.
    Regards,
    Reni

    Every Idoc segment has a place to put in the parent segment for that Idoc. When you "fill" the Idoc , this tsep might not be executing for some reason.
    Is this some customer development?
    in EDID4 ,see these fields
    PSGNUM-Number of the hierarchically higher SAP segment
    HLEVEL Hierarchy level.
    Regards

  • Discoverer Export Problem - Column headers dropped & row data used instead

    In Discoverer 9i, when I export the data for a 12 month period from one of my workbooks to Excel 2002, three of the twelve column headers are dropped in the spreadsheet and one piece of row data is used as a column header instead. The total number of records exported for the workbook is 33586 which is below the export limit for Excel. This problem does not happen when 11 months of data (28174 rows) is exported out to Excel. Any idea what may be causing this?
    Regards,
    Andrew

    pallen,
    As usual the Express VI has its limitations.  It seems to be setup for a 2D array of info in this case.  The best way I've found is to name range in template and use the Excel Easy Table.vi.

  • Problem processing Headers

    I'm having difficulty processing headers with a Web Service implemented as an EJB. I have managed to process headers with a Web Service implemented as a Java class with no problems.
    Is the HeaderCallback interface supported on EJB style Web Services?

    Hi, I have a similar issue I was able to get callback on a java class using StatelessJavaRpcWebService, however I cant get it working for an EJB 2.0 SSB with SessionBeanWebService.
    I have tried combinations of:
    - implementing HeaderCallback on the Bean
    - in the RemoteInterface (it doesn't like it because the method doesn't throw RemoteException, and maybe a problem that Header is not serializable)
    - creating a local interface for the callback
    My output for SessionBeanWebService: (Not working)
    WS Debug: initQnameMap('null')
    Oracle Application Server Containers for J2EE 10g (9.0.4.1.0) initialized
    WS Debug: Generating WSDL with Rpc Style Operations with service url http://***.***.144.55:8888/app/EmployerService
    WS Debug: Invoking method employerSearch on target object urn:***-webservice-ejbs-EmployerService
    ** DEBUG: in method employerSearch **
    My output for StatelessJavaRpcWebService: (Working)
    WS Debug: initQnameMap('null')
    Oracle Application Server Containers for J2EE 10g (9.0.4.1.0) initialized
    WS Debug: Generating WSDL with Rpc Style Operations with service url http://***.***.144.55:8888/app/EmployerService
    WS Debug: getQName('org.apache.soap.Header') - default
    WS Debug: Invoking method employerSearch on target object urn:***-webservice-IEmployerService
    ** DEBUG: in method processHeader **
    ** DEBUG: in method employerSearch **
    Any suggestions welcome

  • CFHTTP problem with Host Headers

    I am trying to post a form on a windows server using cfhttp.
    The website relies on host headers to work properly (there are many sites on the server), but cfhttp posts appear not to send the required header information, returning a "No websites are configured" error message.
    I've tried sending header info with <cfhttpparam type="header" name="host" value="www.mydomain.tld"> and it hasn't worked.
    It may be important to know that the domain name is local only and relies on an entry in the hosts file, both on the browser machine and the server machine.
    I have recently reconfigured the web server.  Previously, each site had its own IP address, but now they are all the same and using host headers.  Before, when each site had a unique IP, the cfhttp posts worked fine.
    Is there a way to get them working in the host header configuration?
    Thanks for replies.
    - Don

    The hosts file is used by the machine initiating TCP/IP communications to resolve an IP address from a domain name.  It's not used by the server to resolve a domain name from incoming HTTP requests (how could it: many domain names could map to the same IP address?).  The hosts file is a TCP/IP conceit; host headers are an HTTP conceit.  They are only loosely related in that HTTP is transported over TCP/IP.
    On your client some agent makes a request to a domain name (this can be any TCP/IP protocol, not just HTTP).  The hosts file is checked to see if the domain name has a mapping, and if it does, the request is routed to that IP address.  If there's no entry, then the standard DNS look-ups are made, and the IP address is found that way.  But that's the only involvement in the request (or any sort of routed traffic) that the hosts file has.
    Can you replicate this behaviour with <cfhttp> requests and other web servers, or is it just that one?  IE: can you set up a web server in the lab which has the same web site / host header config, and see the same problem when making <cfhttp> requests?  Does the web server log failed requests like this?  Usually IIS's logs are website-centric aren't they?  And if the request is not making to a web site, is it logged some other way?
    Can you inspect the incoming request to see if any of the headers are bung?
    Are you sure your host header for your website has the exact domain name the <cfhttp> request is... err... requesting?  And that you're making the request on the same port, and IP address as the host header is configured for?
    I really doubt <cfhttp> is the culprit here - at least in the way you're suggesting - because almost every web server in existence will be serving more than one website, and it's not like <cfhttp> usually has this problem...
    Adam

  • SP4 Problem to add information in headers

    Hi,
    I have a problem with a filter in which i would like to add some information into the header.
    The filter works well with SP1, but doesn't work with SP3 nor SP4.
    The proxy server is used as a reverse proxy.
    I have tried the two following methods:
    1.
    param_free(pblock_remove("login", rq->headers));
    pblock_nvinsert("login","toto",rq->headers);
    2.
    fullheaders=pblock_findval("full-headers",rq->reqpb);
    fullheaderswithlogin=MemoryAlloc((strlen(fullheaders)+strlen("toto")+5)*sizeof(char *),sn,rq);
    param_free(pblock_remove("full-headers",rq->reqpb));
    pblock_nvinsert("full-headers",fullheaderswithlogin,rq->reqpb);
    Any ideas about this problem?
    Thanks a lot !

    i got the soln..

Maybe you are looking for