Output data in row wise instead of column

hi all,
i need to get the output data in row wise which is getting now as column wise.
for eg:
below is my final internal table.
HEADING      DATE   MATNR   BUKRS   DMBTR
jan/08        200801    567       10       800
feb/08       200802    567       10       900
mar/08      200803    567       10       200
apr/09       200804    567       10       400 
the output should come as
MATNR  BUKRS   Jan/08   Feb/08   Mar/08   Apr/08
567      10       800    900       200      400.
instead of column wise the output should display as row as above.
please help how to get this.
thanks in advance

Hi Vignesh,
Please use below program which I created for you reference. It will work for your requirement.
DATA:BEGIN OF it_test OCCURS 1,
     date(6),
     matnr(5),
     bukrs(3),
     END OF it_test.
it_test-date = 'jan/08'.
it_test-matnr = '01234'.
it_test-bukrs = 'AE1'.
APPEND it_test.
it_test-date = 'feb8'.
it_test-matnr = '56789'.
it_test-bukrs = 'AE1'.
APPEND it_test.
it_test-date = 'mar8'.
it_test-matnr = '23478'.
it_test-bukrs = 'AE1'.
APPEND it_test.
START-OF-SELECTION.
  LOOP AT it_test.
    WRITE :/ 'DATE', 'MATNR', 'BUKRS', it_test-date, it_test-matnr,  it_test-bukrs .
  ENDLOOP.
Output Will be as follows :-
DATE MATNR BUKRS jan/08 01234 AE1
DATE MATNR BUKRS feb8   56789 AE2
DATE MATNR BUKRS mar8   23478 AE3
Please set to resolve if this satisfies your requirement.
Regards
Abhii..

Similar Messages

  • How to display the data in row wise in smartform

    Hi,
        I have to make a modification a smartform of poprinting and i want to display the row wise . At present it is displaying the  
        column wise. Actually there is a text which i want to display the data row wise.
        It is possible to display the data in row wise of the text .
    Edited by: nav009 on Oct 8, 2009 10:39 AM

    Hello ,
    I  assume that your requiremen is related to smartform.the below is the solution i suggest.
    As per my understanding of your requirement ,It's clear that as of now there is some description field which is also getting displayed along with other PO fields.
    However you would like to display the description field in a new line since the length of this field is longer than other fields as a result the data is getting scattered .
    Therefore one better option could be: since the whole data from PO would be in a loop you can display all other fields in one line type of the table as per the intial requirement and you display the description line alone in a new line type wth the desired length so that data would not be scattered and no data loss would happen.
    I assume you are aware of creating of line types for table.
    Thanks
    M.Naveen.

  • Display data as rowwise (horizontally ) instead of column wise ( verticaly)

    I am displaying the data from milti select prompt of BI Answers in BIP report.
    The data from the table is displayed as
    Table structure :
    Company. Unit name f_company_._unit_e
    output :
    unit1
    unit2
    unit3
    I want output as unit1, unit2, unit3
    Thanks
    Aj
    Edited by: user9031011 on May 11, 2010 7:35 AM
    Edited by: user9031011 on May 11, 2010 7:46 AM

    Hi Aj,
    First of all, correct me my previous solution.
    1. If you want to print the units in column wise i.e. if the for loop is in a table and you want each unit to be displayed in a separate columns side by side then in one of the table cell (i.e. in the for-each field of the cell) keep below code,
    <?for-each@column:ROW?> <?EMPNO?> <?end for-each?>
    2. If you want to print as a normal text (with out table) then use
    <?for-each@inlines:ROW?> <?EMPNO?> <?end for-each?>
    Second, to modify the form field,
    Select the for-each form field, go to to Add-Ins -> Tools -> Field Browser , then double click the for-each and in the edit box change the text according to your requirement, then click 'Update' button.
    You can also place that for-each condition out side(i mean with out form field)

  • Transpose Columnwise data to row wise date in 10g

    Hi,
    How can I transpose the below type of data to
    ID     MOTNH      YEAR     Pram1     Param2 Parm2
    10000     11     2012 200     300     500
    10001     11     2012     700     800 100
    to
    ID     MONTH     YEAR PARAMETER TARGET     
    10000     11     2013     Pram1          200          
    10000     11     2013     Pram2          300          
    10000     11     2013 Pram3          500          
    10001     11     2013 Pram1     700          
    10001     11     2013     Pram2     800          
    10001     11     2013     Pram3     100
    Regards,
    Tarun

    Basic think in converting column to row is you need to know the number of columns up front. In your case its 3. Now you have to create a dummy table that will have three rows and cross join this with your original table. Then you need to manipulate your data with a DECODE or CASE statement.
    below is an example.
    with my_table
    as
    select 10000 id, 11 mth, 2012 yr, 200 prm1, 300 prm2, 500 prm3 from dual union all
    select 10001 id, 11 mth, 2012 yr, 700 prm1, 800 prm2, 100 prm3 from dual
    ), cross_join_table
    as
    select level no
      from dual
    connect by level <= 3 -- This will change based on number of param columns in my_table
    select id, mth, yr, decode(no, 1, prm1, 2, prm2, 3, prm3) prm
      from my_table
      cross
      join cross_join_table
    order by id, mth, yr, no

  • Row wise total in column cell

    Hi,
    I would like to access a total(which is a sum of some 25 rows) in another column cell.
    How do i do that.
    Regards,
    Tulsi.

    Hi Tulsi,
    Create variable
    =If [Product]InList("A";"B";"C") Then Sum([Amount]+[Amount2]+[Amount3])
    or use this formula
    = If [Product]=[Product] Then Sum([Amount]+[Amount2]+[Amount3])
    Regards
    Mustafa

  • Abt Row - Wise initialization

    Hi Gurus,
    What is the use of row wise initialization when we have go for this can i have one scenario for better under standing.
    Thanks,

    Check these
    http://gerardnico.com/wiki/dat/obiee/row-wise
    http://docs.oracle.com/cd/E12103_01/books/admintool/admintool_Variables6.html
    http://obiee10grevisited.blogspot.com/2012/03/row-wise-initialization.html

  • How 2 Change of column wise o/p  to row wise output in ABAP?

    Hi all,
    I am getting the output in column wise as normally but how can I get the ouput in row wise.in ABAP.
    its urgent. can any one help me how to change the output layout?
    thanks in advance,
    Sakthi.C

    if it is normal report  .then
    go through the write  statents  . one of that is below 
    Loop at itab .
    write  : itab  .
    endloop.
    if it is  ALV  then you have to  define an internal table which are the fieldds  you  want palce in the  Row .
    so  that  
    data  c type  i value    '1'.
    loop at  itab .
    fieldcatalog-fieldname   = itab-field.
    fieldcatalog-col_pos     = c.
    append fieldcatalog to fieldcatalog.
    clear  fieldcatalog
    c = c + 1.
    endloop.
    so that  the Col_pos  will be increased  and the  Column data will be moved into Row .
    reward  points if it is usefull...
    Girish

  • Can I get a query to get the output data like 4th column instead of 3rd col

    Can I get a query to get the output data like 4th column instead of 3rd column ?
    SQL&gt; select emp.deptno, empno, rownum from emp, dept where emp.deptno=dept.deptno;
    DEPTNO EMPNO ROWNUM
    10 7782 *1* *1*
    10 7839 *2* *2*
    10 7934 *3* *3*
    20 7369 *4* *1*
    20 7876 *5* *2*
    20 7902 *6* *3*
    20 7788 *7* *4*
    20 7566 *8* *5*
    30 7499 *9* *1*
    30 7698 *10* *2*
    30 7654 *11* *3*
    30 7900 *12* *4*
    30 7844 *13* *5*
    30 7521 *14* *6*
    14 rows selected.

    SQL> select emp.deptno, emp.empno,
      2    row_number() over(order by emp.deptno, emp.empno) rn,
      3    row_number() over(partition by emp.deptno order by emp.empno) dept_rn
      4  from emp, dept
      5  where emp.deptno=dept.deptno
      6  order by emp.deptno, emp.empno;
        DEPTNO      EMPNO         RN    DEPT_RN
            10       7782          1          1
            10       7839          2          2
            10       7934          3          3
            20       7369          4          1
            20       7566          5          2
            20       7788          6          3
            20       7876          7          4
            20       7902          8          5
            30       7499          9          1
            30       7521         10          2
            30       7654         11          3
            30       7698         12          4
            30       7844         13          5
            30       7900         14          6
    14 rows selected.Regards,
    Dima

  • TDMS Data appears in row instead of column

    Hi,
    I am working on a program that reads in temperature data from a TDMS file, shifts the data through a 'normalising' equation and puts it back into the same TDMS file onto a different page.
    The problem I am getting is when the normalised data gets written back into the TDMS file, the data that should appear in the columns now appears in rows. See picture attached that illustrates this.
    Does anyone know how I can write the data to the file so that it appears in the column and not the row. In my VI you will see that I have had to transpose the 2D array otherwise all the data just appears in one single row.
    Also several cells just containing 0 have appeared in my data set which should not be there.
    I will attach my VI to this. I will also attach one of the TDMS data files.
    Thanks in advance,
    Rhys
    Solved!
    Go to Solution.
    Attachments:
    Row Column Switch.png ‏285 KB
    normalising program.vi ‏36 KB
    TDMS Files.zip ‏18 KB

    Hi Rhys,
    After looking into your normalising program.vi, I would recommend:
    Don't use that Transpose 2D array, it doesn't solve your problem.
    Write the "normalized" data to different channels, you get all the data just appears in one single column because you write all the “normalized” data to one single channel repeatedly, thus they'll appear in one column(channel).
    Several cells containing zeros is because float64 y1[30] array in your normalising equation, you need remove the zero elements from y1[30] before writing to file.
    I attached the modified normalising program.vi, hope this can do some help to your problem.
    The snapshot below shows the data in Excel after "normalising" equation, the channel data appears in columns.
    Attachments:
    normalising program(updated).vi ‏37 KB

  • How to print column wise istead of row wise

    Hi,
    please help on this..
    i want to print coloumn wise Employee data instead of row wise.
    Keeping Employee name constant i want to print month wise salary..
    Like this..
    Employee name|Jan-2010-Wages paid|Feb-2010-Wages paid
    soon...
    Plez help me..
    Edited by: user651567 on Feb 28, 2010 5:30 AM

    Please post CREATE TABLE and a few INSERT statements as well as your desired output and your database version.
    Always put the tag before and after your examples to keep it formatted.
    See the FAQ regarding tags: http://forums.oracle.com/forums/help.jspa (scroll a bit down).
    You might want to search this forum first (search box is on right side of screen), since your question has been asked and explained before.
    Also, regarding string aggregation. see this link explaining various techniques (depending on database version):
    http://www.oracle-base.com/articles/misc/StringAggregationTechniques.php                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How can we show data in rows when it is in Columns........

    I have strucked with a simple but a complex problem.
    I have a Report with data in vertical rows..need of the hour is how can we show that data into column structure.
    here is the table sample which i have in Database..
    Location      chrg_type    Effective_date
    xxxxxxx        xxxx          xx-xx
    thhis is the structure in effective date we have several months in it in a single column i want show the effective date or effective month in various columns instead of a single column.
    my required table is....
                                Effective_date     Effective_date
    Location      chrg_type     xx-xx              xx-xx
    xxxxxxx        xxxx          xx-xx
    any tough heads?????

    Hi Sunil,
    Your 1st problem is that you are going to need one more field to accomplish you goal. What type of data do want under your new date columns?
    Anyway, once you have that you need to move on to how to move the data out into columns based on date.
    Try something like this.
    0_Date = IF DATEPART('m',{tbl.Effective_date}) = DATEPART('m',CurrentDate) AND
    DATEPART('yyyy',{tbl.Effective_date}) = DATEPART('yyyy',CurrentDate)
    THEN {tbl.DataField}
    1_Date = IF DATEPART('m',{tbl.Effective_date}) = DATEPART('m',DATEADD('m', -1, CurrentDate)) AND
    DATEPART('yyyy',{tbl.Effective_date}) = DATEPART('yyyy',DATEADD('m', -1, CurrentDate))
    THEN {tbl.DataField}
    2_Date = IF DATEPART('m',{tbl.Effective_date}) = DATEPART('m',DATEADD('m', -2, CurrentDate)) AND
    DATEPART('yyyy',{tbl.Effective_date}) = DATEPART('yyyy',DATEADD('m', -2, CurrentDate))
    THEN {tbl.DataField}
    ... Repeat this process until you have all of the columns you need, following this format.
    Hope this works for you,
    Jason

  • Displaying SQL Query results in rows instead of Columns

    Hi,
    I'm fairly new to Oracle so forgive me if this is a really stupid question.
    I used Mysql for a while and if I wanted to display query results in rows instead of columns I could end the SQL command with '\G' instead of a semicolon.
    This would give me output like...
    Column_1: AAAA
    Column_2: BBBB
    Column_3: CCCC
    Instead of the normal
    Column_1 Column_2 Column_3
    AAAAAA BBBBBBB CCCCCCC
    Is there an equivalent in SQLPlus to the MySQL \G termination?
    Thanks.
    John

    > so forgive me if this is a really stupid question.
    It is certainly not a stupid question, but pivoting is a very frequently asked and answered question:
    [url http://forums.oracle.com/forums/search.jspa?threadID=&q=pivot&objID=f75&dateRange=all&userID=&numResults=15]http://forums.oracle.com/forums/search.jspa?threadID=&q=pivot&objID=f75&dateRange=all&userID=&numResults=15
    In 11g you have special PIVOT and UNPIVOT functions.
    Regards,
    Rob.

  • How to handle Output Data Association when no row returned?

    In BPM 11g, I'm using a Service to select a row from an external database passing a parameter using a Database Adapter.  Works fine when a row is returned.  But if no row is returned (which can happen because no match is found on the Select based on the parameter value), I'm getting an error on the composite because the Output Data Association has the return values, including integers, mapped to a Data Object I defined in the process.  Well if no row is found, the integer value is empty, and errors out trying to save it.
    How do I handle this situation?
    The specific message is this:
    The expression bpmn:getDataOutput('wm91AInterfaceMainCollection')/ns:Wm91AInterfaceMain[1]/ns:board is empty. An attempt to read or copy data referenced or computed by the XPath expression either had invalid data, according to the XML schema, or did not contain certain optional data. Ensure that the variable or expression result named in the error message is not empty. Enable XML schema validation of related data elements to ensure the run-time data is valid.
    I must be missing something obvious here, but cannot find a way to handle this.  Thanks in advance!

    Dan - Never mind about my request for an example.  I figured it out.  My problem was that the destination variable was a primitive process variable of type Integer, thus not allowing the creation of an XSLT.  Once I created a Complex process data object containing that Integer, I could create an XSLT with an If statement.  Thanks again.

  • Displaying jtable as rows instead of columns

    This may be really simple, but I can't figure it out. I want to display information in a JTable as rows instead of columns. Can anyone help me with this?
    Thanks in advance,
    m

    Check here:
    http://www2.gol.com/users/tame/swing/examples/SwingExam
    les.html
    They may well have what you want, if not they will
    probably have some ideas you can use.There's always the swing tutorial, also. I learned JTables from the tutorial at http://java.sun.com/docs/books/tutorial/uiswing/components/table.html and it gave me a lot of good ideas and points to start from.
    You could probably create your own cell renderer (or use the header renderer) and set the first column to use that to display their text.

  • Ordering row wise totals in a column.

    Hi,
    I have a report in Pivot view having two columns namely Count and Category. I have to apply sort on these two columns-first on Count and then on Category.
    The Total Count is also calculated row wise. Now when I apply sort on count column, only the values in that column are being sorted and not according to row wise total count. But my requirement is to sort the total count row wise first and then by Category.I am unable to do so.
    Kindly provide me the solution to this problem.
    Thanks
    Ankita

    Use RunningSum() function.
    Regards,
    Rohit

Maybe you are looking for

  • V32 iOS 8 Error: The library can not be updated

    Hi, our customers have this error message after open an app v32: Knihovnu nelze aktualizovat Došlo k chybě in english: The library can not be updated An error has occurred This error is only when iPad is setup to czech language. When we setup to engl

  • I have mail Ver. 7 and I am having trouble syncing my work gmail account

    Hi, From the time I have upgraded to Mavericks, I am having trouble syncing my gmail emails. After the mail update my personal mail accounts from gmail are working fine but I am still having trouble with my office gmail account. I am receving new ema

  • How much is it to change a new battery of iphone 5 in France?

    how much is it to change a new battery of iphone 5 in France?

  • BADI or EXIT for MIGO

    Hi, I need a BADI or EXIT that is executed AFTER TO POST Goods Receipt from Purchase Order (101 Goods receipt for purchase order into warehouse/stores) for transaction MIGO I try with MB_MIGO_BADI, MB_DOCUMENT_BADI AND EXITS but are executed before t

  • Problem deploying Faces to 10.1.2 OAS

    I have a simple app, that uses EJB 2 and loads up a list from a database table. Then this list is displayed to the screen using a "Data Table" it works fine in Jdev 10.1.3 but when I deploy it to our OAS 10.1.2 I get the following error: Request URI: