How to keep first two columns constant

Hi
IF i move the scroll bar till end i should get first two Columns constant....
I mean i want to set Freez to First two columns in my report
how to du this?
Regards
Smith

HI
Can you try below for your firtst column while filling the field catalog.
wa_fieldcat_alv-fix_column = 'X'.
it works.
Thanks!

Similar Messages

  • Validating the first two columns of a excel file when importing?

    Hi everyone,
    I have an excel file in the presentation server which has to be uploaded into prog.First the user adds a additonal column in the excel file.
    For example the excel file is intially in this way,
    col1 col2 col3 col4 col5
    Now the user adds one more column 'colx' in the excel sheet and he will upload it into the prog.Before uploading programatically we have to validate that the first two columns of the excel file should be col1 colx(the newly added one).How can I do it?
    Any suggestions please?
    Thank you.

    Hi gopi,
    Thanks for the reply.
    I have one more problem.Now in the excel file I may have only 5 columns in the future it may have more than that.So the internal table which will hold the uploaded values from excel file should be dynamic.I can't declare the internal table with 5 or 6 columns like that.If the user adds some columns in the excel file and upload it,the internal table should hold these columns also.
    i hope u understood my requirement.Can u give me any ideas.If u have any sample code for this kind of requirement.
    Thank you.

  • Count first two columns

    Hello,
    I have a count requirement that i havent been able to solve by searching sdn.  Maybe someone can help.
    I have a query built on a multiprovider that points to two basic cubes.  The basic cubes do not contain a count key figure.  The first two columns of my query are characteristics.  My requirement is to count the occurences of the combination of the first two column (characteristics).  I am looking for a way to do this in the query so i do not have to reload the cubes as they have large volumes of data.  All the suggestions i have been able to find on sdn seem to be only for counting a single characteristic.  Is there a way to count the combination of two?
    Regards,
    TMS

    Hi Create a count using the formula or calculated ket figure for the count unique id like client id for your infocube.
    so you will have a count for each row now. place this count object in your column.
    now select the two char or the group whatever you want a count in your row.
    select query properties and select the display tab and make sure the option - hide repeated key values is selected (normally by default it is selected). Then select each of the char in rows and in free char and set the option under display tab result rows - always suppress.
    Execute the query now. you will get the list of char and their count. sort the count by descending to get the most duplicate entries by their highest number on top in the count coulmn.
    you can also ignore the rows which donot have a duplicate i.e count more than 1 by creating a new condintion on the count key figure > 1 and restricting the condition  by only the group of char you have given in the column. so that you can also do a drill down by free char in your query and it will only show the duplicates group.
    Hope it helps.
    regards,
    Siva

  • Export option in ALV report downloades first two columns blank

    Hi ,
    Before posting this query I searched the solution in SDN but I did't find the solution.
    My problem is  After displaying report in ALV format ,if I press Export --> Local file --->spreadsheet ;  file will downloaded to excel sheet but first two columns(only heading no data ) will be blank  and next two columns with proper data.
    I checked field catalog defination it seems to be ok,  any other mistake ?
    Please suggest.
    Narayan

    Hi
    It's the option you have in the path System->List->Save->Local file
    I means it's the standard option to export an abap list into a local file, so you should try this path too and check if the resul it's the same
    I think you should choose  Export --->spreadsheet: here before saving the file an excel document will be open
    Max

  • How to capture first two digit in a number

    Hi,
    I have numbers with differeent lenth in a variable How to capture first two digit??
    Thanks.

    Hi,
    We can achieve that using the following methods:
    DATA : loc_1  type string,
                loc_2(2) type c.
    loc_1 = '123423428340923990'.
    loc_2 = loc_1+0(2).
    Here you will get only the first two digits.
    You can use move statement also.
    MOVE LOC_1(2) TO loc_2.
    If you are having mixed string with characters and digits mixed together i.e. like this 'test01test03sample01'.
    You can so that using this method.
    data : lv_length type I.
    loc_1 = 'test01test03sample0'.
    LV_LENGTH = STRLEN( loc_1 ).
      DO LV_LENGTH TIMES.
    *&-- Read from first string validing the numeric fields and move your first two digits to the required variable --&*
      ENDDO.
    Hope it will be useful.
    Regards,
    Sakthi
    Edited by: Sakthi Saravanan C on Oct 8, 2010 6:45 PM

  • When I convert my file to excel it cuts off the first two columns, is there a way to fix that??

    When I convert my file to excel it cuts off the first two columns, is there a way to fix that??

    Hey Diann,
    Please let me know whether you are using Adobe Reader or signed up at "https://cloud.acrobat.com/"
    If you are using Adobe Reader, then try converting the file online and vice-versa.
    Let me know.
    Regards,
    Anubha

  • How to keep first form window state maximize when you called the second for

    HI,
    how to keep first form window state maximize when you called the second form ?
    Thanks

    Here is sample of doing this.
    Chris

  • How can I sort two columns?

    I've got two columns of text (names of people, actually) in a Numbers spreadsheet. I've selected all the cells and made sure they are "text" format. I cannot figure out how to sort (alphabetically) the two columns independent of one another.
    I just want two columns of names in alphabetical order. How do I do it? Every time I select one column and sort by ascending it affects the column(s) next to it.

    Not sure I totally understand the actual question. But let me give it a shot...
    Column A = Last Name, Column B = First Name. You want to sort this list of names by Last Name, then by First Name so John Smith shows up below Alex Smith on your list. Typically you would have MULTIPLE columns of data to go along with the names; Phone, Address, City, State, Zip, etc. Right? So if you Sort only ONE column (and ONLY that column, you end up with John Smith having the wrong address, etc. etc. SO, most Spreadsheets allow you to sort multiple columns at the same time, but by only one Column Title at a time. This keeps the rest of the data in the Record in the right place. Thus, you sort Column A (Last Name) in Asending order. Now all the LAST Names are alphabetical. Next, you sort Column B (First Name) in Asending order. Now the list should show up with the last Names in the correct order, AND the First Names also - BUT all the other info (address, City, State, etc) is ALSO still attached to the right records. Clear as MUD?!
    P.S. This will ONLY work when your Title Box for each Column has a SINGLE Line of text:
    Like THIS: Last Name
    NOT THIS: Last
    Name
    The Spreadsheet will leave the TOP ROW (Titles) alone, and sort the Rows beneath the Title Boxes.
    Good luck...

  • How to skip first TWO Lines of   .txt  file    using XSLT Mapping

    Hi Friends  ,
                              I have an .txt file in has the format as
                               <TEST>
                                4564564545
                                56456444566
                                56465
                                    How can i skip the first two Lines when i am writing the XSLT Mapping ?
                              That <TEST> and empty line shouldn't go the rfc  .
                             How can i skip and sent to rfc  using XSLT Mapping ?
    Best Regards .,
    V.Rangarajan

    you can avoid the empty lines in your File Content Conversion by defining offset.
    <i>Under Document Offset, specify the number of lines that are to be ignored at the beginning of the document.
    This enables you to skip comment lines or column names during processing. If you do not make an entry, the default value is zero lines.</i>
    ref: http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    then the generated XML after FCC will not have the empty lines.

  • How do I compare two columns of data in Numbers to find the unique results?

    Hello all,
    I'm looking for a way to compare the data from two columns so I can find the unique results and display that data in a third column. To be specific, here's what I'm doing.
    Column A is a list of email addresses for people I have already written. Column B is a list of email addresses for people I would like to contact. I am not sure if there are email address from Column A in Column B, but there may be and if there are, I must find out so that I don't send a second email to these recipients. How can I have Numbers look at both columns and tell me which email addresses in Column B are not in Column A?
    Thanks for the help!!!

    gfmp123,
    Here's an alternate use of MATCH to find duplicates. I hope you find one of the two solutions, Wayne's or this one, useful for your case.
    The expression in Column C is:
    =IFERROR("Dup in Row "&MATCH(B, A,0), "")
    Regards,
    Jerry

  • How to remove first two headerlines while appending files

    Hi,
    Currently the requirement is client only needs the file name without any time stamp or counter. They do not want to overwrite the records.
    They need the csv file structure as:
    Customer
    Custnum,Custname
    123,ABC
    While I am using append, it is also appending the first two header lines.
    Can you please suggest how to append without headers.

    Hi Swapna
    One option is of course to have the flag in the source structure so that you can identify whether it is first run or not. But if there is no such flag in source structure then the only possible solution will be done
    based on a look up.
    You can perform the same in java mapping using a hash table which will be updated with the file name in its first run and in the next run you will check whether the file name exists in the has table or not.Depending on that you have to pass the header value.
    Next solution can be maintaining a table in ABAP and perform a RFC look up in message mapping.
    When the file arrives, its will check whether the name is already there in the table or not. If the file not exists, then it will insert the file name in the table and return true. Based on this you will pass the header names.
    When the next file will arrive with the same name , The look up will find that file has already present in the table so it will return false and no header information will be sent. Only data will be sent.

  • How can I get two column selection list in my html form

    I required to have two column selection list in my jsp page to show name and description of a product. How can i achieve this functionality or is there any other alternative to do so.

    If i understand correctly: you can't actually create two columns in a list because it can only hold one value. The only way to achieve what you want is by concatenating the two values you want to display and put this as the value of the listbox.

  • How can I make two columns in DropDownList

    like this
    I remember that the solution met.
    Except alignment spaces in a text string.

    from the Documentation
    Creating multi-column lists
    In list controls (ListBox, DropDownList, TreeView), a set of ListItem objects represents the individual
    choices in the list. Each choice can be labeled with a localizable string, an image, or both, as specified by
    the text and image properties of the ListItem (see “Displaying images” on page 72).
    You can define a ListBox to have multiple columns, by specifying the numberOfColumns creation
    parameter. By default, the number of columns is 1. If you specify multiple columns, you can also use the
    creation parameters to specify whether headers are shown, and the header text for each column.
    If you specify more than one column, each ListItem object that you add to the box specifies one selectable
    row. The text and image of the ListItem object specifies the label in the first column, and the subitems
    property specifies labels that appear in that row for the remaining columns.
    The subitems value is an array, whose length is one less than the number of columns. That is, the first
    member, ListItem.subitems[0], specifies the label in the second column. Each member specifies one
    label, as a JavaScript object with two properties:
    { text : displayString , image : imageFileReference }
    For example, the following fragment defines a list box with two columns, and specifies the labels in each
    column for the two choices:
    // create list box with two titled columns
    var list = dlg.add ('ListBox', [0, 0, 150, 75], 'asd',
    {numberOfColumns: 2, showHeaders: true,
    columnTitles: ['First Name', 'Last Name']});
    // add an item for the first row, with the label value for the first column
    var item1 = list.add ('item', 'John');
    // add the label value for the second column in that row.
    item1.subItems[0].text = 'Doe';
    // add an item for the second row, with the text for the first column label
    var item2 = list.add ('item', 'Jane');
    // add the label text and image for the second column in the second row
    item2.subItems[0].text = 'Doe';
    item2.subItems[0].image = File ("~/Desktop/Step1.png");

  • How to keep the JSP content constant when page refresh?

    Hi All,
    When I click page tabs in WLP, it will trigger a refresh event.
    The portlet has a webflow with a refresh event whose destination is
    lastContentUrl(referent-namespace is portal, cloned from portlet2.wf).
    The question is when the page changed, the jsp files which use
    request.getParameter() to get parameters will fail to fulfill what they
    need because the event provide none parameter.
    So that everytime page changed, these portlets will have quite strange
    contents.
    How to keep these content constant when page changed?
    Sincerely,
    Alan.

    The problem is still there if the jsp file is about inserting a new record
    into the database.
    If these parameters are gotten from the session, mutliple insertings will be
    attempted when the portlet is refresh.
    Maybe we can put some control flags in the session to judge the correct
    behavior, but the method results the session full of parameters(control
    flags).
    Or is there any better design?
    Alan.
    "travis wissink" <[email protected]> ¼¶¼g©ó¶l¥ó
    news:3cc71962$[email protected]..
    >
    Alan,
    You could use the session to put your parameters in instead of letting itride completely
    on the request object. Although, your question is more than just makingthe content
    reappear, it’s about holding state. The project that I am working on, theusers
    decided that they want the page portlets to go back to the "normal" state,not the
    "Maximized" view. So, I put a processor in between the internal.refreshwildcard
    and the Preprocessor input processor so that all the portlets would beseen in their
    "normal" state.
    Good Luck
    -Travis
    "Alan Liu" <[email protected]> wrote:
    Hi All,
    When I click page tabs in WLP, it will trigger a refresh event.
    The portlet has a webflow with a refresh event whose destination is
    lastContentUrl(referent-namespace is portal, cloned from portlet2.wf).
    The question is when the page changed, the jsp files which use
    request.getParameter() to get parameters will fail to fulfill what they
    need because the event provide none parameter.
    So that everytime page changed, these portlets will have quite strange
    contents.
    How to keep these content constant when page changed?
    Sincerely,
    Alan.

  • BEx analyzer 7.x: How to determine first data column in result table?

    Hi,
    we are upgrading to 2004s where the SAPBEXqueries Sheet is not used anymore. Instead there is BExRepositorySheet. Is there a way to determine first data column in result table?
    Regards, Josko.

    hi dinesh......
    please use  'INTO TABLE' instead of  ' INTO CORRESPONDING FIELDS OF TABLE '.  and use ' FOR ALL ENTRIES '............based on relavence ....coz when I set break point  over the select queries it took me long time to execute .......
    becoz u didnt used the for all entries  in select query ............ u r read statement
    READ TABLE I_KNA1 INTO WA_KNA1 WITH KEY KUNNR = WA_KNVV-KUNNR.  ..... 
    it is reading wrong kunnr value .............even it took long time to execute ......
    use sort where ever required...
    use for all entries .......and check weather the table initial or not......
    use sy-subrc check where ever reqired ..............

Maybe you are looking for

  • How can i update rows  in a table based on a match from a select query

    Hello How can i update rows in a table based on a match from a select query fron two other tables with a update using sqlplus ? Thanks Glenn table1 attribute1 varchar2 (10) attribute2 varchar2 (10) processed varchar2 (10) table2 attribute1 varchar2 (

  • Hp Photosmart C7280 won't scan but will print

    Recently my scanner stop working, when I try to scan I get an error message saying the HP Device was not found.  Try the following steps......and then try again.  I tried all the steps and I can't scan anything.  The device is online, it is working,

  • Product hierarchy in COPA

    Hi all, I am new to COPA. What I need to do is creating a report that is using a product hierarchy that we can define. So I started and created a hierarchy in V/76 like we need it. Those values can now be entered into the "Prod. hierarchy" field for

  • My Ipad is stuck on safari pages

    My ipad is stuck on a safari page. I cannot close page. what can I do? I already turned ipad off, and still no luck

  • Pavilion dv6 webcam being not detected?

    My dv6 Laptops webcam does not work..