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

Similar Messages

  • Can i change the column width in a table row dynamically

    Hi,
    There are two columns in one of the row of the table, can i change the width of the cells dynamically.
    Sometimes one of them will be blank and the other cell has to print the entire string .
    Left cell is left aligned and the right cell is right aligned.
    I tried to change the width using field.W but it didnot work.
    Regards,
    Sobhan

    Hi,
    We can change the column width of a column dynamically. Try the javascript code in the appropriate event.
    Table.columnWidths = "2in 3in 4in 5in";
    Thanks & Regards,
    Sanoosh

  • How to insert column values into database as rows

    Hi,
    I have 8 columns and some not null columns. Based on not null columns I want to insert into table as rows. The 8 columns may contain values or no value. If the first column contains data, then I have to insert into one row. if the second column contains data I have to insert a row and in second column. respectively...So How can I insert column values into rows. Can I write 8 insert statements. (OR) is it possible to insert data from columns using where clause.
    Please help me out....
    Thanks in Advance

    Lines Table:
    line_id, orcl_bank_account_num, product_type, service_type, lease_type,
    funding_type, cpi, billing_frequency_unit_cd , annual_due_date ,
    pricing_start_date, pricing_end_date, install_date, contract_end_date ,
    prdct_replacement_cost_amt, cradle_replacement_amt, supranet_contract,
    issuance_fee, board_inactive_date, header_id, creation_date, last_modified_date,
    created_by_nam, modified_by_nam, activeinactive_flg, prdct_bill_amt_yr1,
    prdct_bill_amt_yr2, prdct_bill_amt_yr3, prdct_bill_amt_yr4, prdct_bill_amt_yr5,
    prdct_bill_amt_yr6, prdct_bill_amt_yr7, prdct_bill_amt_yr8, activation_fee_yr1,
    activation_fee_yr2, activation_fee_yr3, activation_fee_yr4, activation_fee_yr5,
    activation_fee_yr6, activation_fee_yr7, activation_fee_yr8,
    In this table the columns structure is :
    -- PRDCT_BILL_AMT_YR (1 to 8) NUMBER(14,4)
    -- ACTIVATION_FEE_YR (1 to 8) NUMBER(8,2)
    I have one more table:
    PRDCT_INS_AMT               NUMBER(14,4)
    ACTIVATION_FEE_AMT          NUMBER(14,4)
    I want to insert prdct_bill_amt_yr (1 to 8) columns data into PRDCT_INS_AMT column. similarly activation_fee (1 to 8) columns data.
    But the data should be inserted based product_type, service_type, lease_type columns values. (These 3 columns may contain upto 45 combinations).

  • How to get column value of a selected row of ALV

    Hello ,
    I have application POWL POWL_UI_COMP uses  another component  POWL_TABLE_COMP.
    This POWL_TABLE_COMP uses SALV_WD_TABLE.
    I want to select value of ORDER id and it need to be passed whenever user selects a display order button(Which is self defined function generated in POWL_TABLE_COMP) . I am calling a display order on action of this display button(http://nap60.nalco.one.net:8042/sap/bc/webdynpro/sap/mt_order_app?IV_ACTIVITYTYPE=A&IV_EQUIPMENT=aaaa&IV_ORDERID=90001511&IV_ORDERTYPE=STD&IV_QMNUM=00&IV_TPLNR=00)
    ORDERID is one column value of selected row of ALV table.
    So please can you suggest , how to read ORDERID and pass it to the self defined function..
    thanks in advance,
    Sharada

    Anoop,
    I have plcaed this code in event handler of  on_lead_select.
    Its giving error  the element doesnt exist. 
    static_attributes should give me row data but it's giving short dump saying
    Pl can you suggest.
    data:   set_of_element type WDR_CONTEXT_ELEMENT_SET,
            element1 type ref to IF_WD_CONTEXT_ELEMENT,
            result type POWL_CRESULT_STY,
            table_helper type ref to CL_POWL_TABLE_HELPER,
          context_node type ref to IF_WD_CONTEXT_NODE,
           lt_selected_elements TYPE wdr_context_element_set,
           static_attributes type ref to data.
      table_helper = wd_comp_controller->mr_table_helper.
      context_node = table_helper->get_data_node( ).
      context_node = wd_comp_controller->mr_table_helper->get_data_node( ).
      context_node->get_static_attributes( exporting index = r_param->index
                                          importing static_attributes = static_attributes ).
    thanks,
    Sharada

  • How to convert columns of record into multiple rows

    Hi,
    I have the following data:
    Col1 Col2 Col3
    Dat1 Dat2 Dat3
    I would like to convert the above data into:
    Col1
    Dat1
    Dat2
    Dat3
    How can I achieve this beside using UNION?
    Appreciate advise urgently.
    Thanks and Regards,
    Shiau Chin

    Sorry, I misread your reqs. Is this what you are looking for:
    with t as (
               select 'Row1Dat1' col1,'Row1Dat2' col2,'Row1Dat3' col3,'Row1Dat4' col4 from dual union all
               select 'Row2Dat1' col1,'Row2Dat2' col2,'Row2Dat3' col3,'Row2Dat4' col4 from dual
    select  col4 col1,
            case lvl
              when 1 then col1
              when 2 then col2
              when 3 then col3
              else col4
            end col2
      from  t,
            (select level lvl from dual connect by level <= 3)
    COL1     COL2
    Row1Dat4 Row1Dat1
    Row2Dat4 Row2Dat1
    Row1Dat4 Row1Dat2
    Row2Dat4 Row2Dat2
    Row1Dat4 Row1Dat3
    Row2Dat4 Row2Dat3
    6 rows selected.
    SQL> SY.

  • How to convert column with delimited string into rows

    I have a string value in a single column, delimited by colon. The number of items in the string is variable. I need to select the data from this column into separate rows based on the delimiter. I can write a function with a loop but if there is a way to do this in SQL it would be better.
    Table contains a column with data value:
    12:130:1400
    And I want to select data and return as:
    12
    130
    1400
    This in in Oracle 9i.
    Please don't post "look for pivot or transpose in the forum" as that is not a helpful answer (I have already done that).
    Thanks!
    Message was edited by:
    splinternet

    SQL> create table mytable (id,value)
      2  as
      3  select 1, '12:130:1400' from dual union all
      4  select 2, '483' from dual union all
      5  select 3, '1:2:3:4:5:6:77:888' from dual union all
      6  select 4, null from dual
      7  /
    Tabel is aangemaakt.
    SQL> select id
      2       , trim(':' from v) value
      3       , substr
      4         ( v
      5         , instr(v,':',1,t.column_value) + 1
      6         , instr(v,':',1,1 + t.column_value)
      7           - instr(v,':',1,t.column_value) - 1
      8         ) part
      9    from ( select id, ':' || value || ':' v from mytable ) m
    10       , table
    11         ( cast
    12           ( multiset
    13             ( select level l
    14                 from dual
    15              connect by rownum <= length(m.v) - length(replace(m.v,':')) - 1
    16             )
    17           as sys.dbms_debug_vc2coll
    18           )
    19         ) t
    20   order by m.id
    21       , t.column_value
    22  /
            ID VALUE                PART
             1 12:130:1400          12
             1 12:130:1400          130
             1 12:130:1400          1400
             2 483                  483
             3 1:2:3:4:5:6:77:888   1
             3 1:2:3:4:5:6:77:888   2
             3 1:2:3:4:5:6:77:888   3
             3 1:2:3:4:5:6:77:888   4
             3 1:2:3:4:5:6:77:888   5
             3 1:2:3:4:5:6:77:888   6
             3 1:2:3:4:5:6:77:888   77
             3 1:2:3:4:5:6:77:888   888
             4
    13 rijen zijn geselecteerd.Regards,
    Rob.

  • How can i  change the column label text in a alv table display

    how can i change the column label text in a alv table display??
    A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
    <i>*  declare column, settings, header object
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
    get column by specifying column name.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
    set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( ' ' ).</i>
    My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
    <i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
    i have checked in debugging and the error occured at the statement :
    <i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
    Thanks,
    Suri

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

  • How can I change excel column header using Labile.

    Dear Experts,
                          How can i change excel column header using LabVIEW.
    Thanks for any and all help!
    M.S.Sivaraj.
    Sivaraj M.S
    CLD

    As I said in my previous post, column headers in Excel are merely row 1 cells. May be I missing something here, so please be more explicit with your question.
    I guess you are using the Excel Report tools, and you want to modify an existing sheet. From my limited experience with the Excel Report tools, it is not possible to open an existing woorkbook (except as template...), so the answer to your question should be "Forget it"...
    The work around is to use the example I pointed for you before, and either to write the whole new colum headers as a string array, starting in A1, or to write a single string to a given cell in row 1.
    Hope this helps 
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • How do you change the column widths in a master-detail input form?

    I have changed several columns to af:inputText so that the field contents can be modified, but this defaults the column width to a huge size, way past the size of the actual data field itself. Modifying the width attribute is ignored and dragging the column dividers is also ignored.
    How do I reduce the widths of these columns?
    Thanks

    Hi,
    maybe this blog entry "Referencing Maximum Length of an Attribute in an EL Expression" by Steve Muench helps
    http://radio.weblogs.com/0118231/2007/06/04.html#a839
    Frank

  • How to change the columns in more than one playlist

    I am trying to change the columns in my playlists for all of my audio books. I have over thirty books on my computer with a play list for every cd adding up to over 500 playlists inside of folders for each book. I want to change all of the play lists to have audiobook related columns only. I was wondering if there is any shortcuts besides going into every folder and every playlist and manually changing them all.
    What I already know: Changing the view options of a folder containing a playlist or other folder doesn't change the view options of all containing folders and playlists.
    Doug's Applescript "Assimilate view options" is for changing all of my playlists to match the view options as the library and I cannot change the library because I have over 1500 album playlists.
    If anyone could tell me how to change that I would really appreciate the help

    Hi Manish,
    There is no need to delete/inactive those entres.
    It is the funtionality provided by SAP to store the short texts for catalog in multiple languages.
    If you go to QS42 transaction with another language key selected during login.  You can find another language short text.
    Regards
    Amit

  • How to change the column width in Smartforms..?

    Hi All..
    I need to change the column width in a smartform.
    The requirement has been mentioned as follows...
    Adjust the column width of the following columns:
    MATERIAL: 14 char
    DESCRIPTION: 20 char
    How to perform this..??
    Where can i find the column width of various columns of a smartform..???
    Please Help me...
    Regards
    Pavan

    In the SMART Forms, you would have created a Table object and specified the line width and divided that into no. of columns that you want, you have to mandatorily specify the width of each column so that total of column width will be equal to that of the line width.
    When you double click on the Table object, you can TABLE tab on the right side. If you can't see the line / columns details, click on the DETAILS button.
    Regards,
    Ravi
    Note - Please mark all the helpful answers

  • How to change the column names in display

    Hi,
    I want to change the columns names and give the display names as more User friendly..
    How should I acheive this in WebI reports.
    Regards,
    BOB

    Hi,
    the columns names are normal text fields. Just selecdt to edit your report , go to the editor panel and select the column header you want to modify. You can enter the text you want to display
    Regards,
    Stratos

  • How to change the column order in the DB?

    Hi all,
    For example,
         there is an employee database with the field names empno(1),empname(2), empphone(3), empaddress(4), empsal(5). the values in the brackets are the column order i.e., the order in which the column names are placed.
         I have the details of the employee records in a .txt file and i have to upload the file with the same column order with some delimiter. I done it but in future if any one have the details of the employee details with some other column order i.e., empaddress(1), empsal(5), empno(3), empname(4), empphone(5)
         how i can change the column order of the database ...
    Thanx in advance...
    Bye,

    how i can change the column order of the databaseYou don't. You specify the column order in you're insert.
    PreparedStatement pstmt = conn.prepareStatement ("insert into EMP (EMPNO, ENAME) values (?, ?)");
    pstmt.setInt (1, 1500);
    pstmt.setString (2, "A Name");
    pstmt.execute ();
    Steve.

  • How to change the column name as bold in adf table

    Hi,
    How can I change the column name with bolder style and blue colour in adf Table?
    I changed the color and font weight in af:column properties, but its effecting the data in that column but not with the column Header Text property.(i have given column name in header text).
    can any one have any idea how to do this?
    and I have taken panel tabbed layout and in that i'm displaying this table.
    but this table has scroll beneath of it to show all columns.
    but i want to display all columns (for this, page should have scroll at the bottom side).
    how can I achieve this???

    Hi,
    Add the following CSS Code to the custom skin css file that is to be created as per the suggestions above.
    *af|column::column-header-cell{*
    color:Blue;
    font-weight:bold;
    This would ensure that all the table column headers are blue in color and bolder font style through-out the application.
    By the way, what version of JDeveloper are you using?
    Thanks,
    Navaneeth

  • How to change the column text of an ALV in WD?

    Hiya,
    I have an ALV and it displays this in the column headings:
    I'd like to change 'Name 1' to 'Name' and 'Boolean' to 'Selection', but I can't seem to figure out how to do this in the maze of all the classes and methods...
    Could someone give me a few pointers please.
    Thanks in advance!

    Hi ,
    We can change the column heading through if_salv_wd_column_settings interface. Please check the following code for changing the same.
    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( ).
      data l_column type ref to cl_salv_wd_column.
      l_column = l_table->if_salv_wd_column_settings~get_column( 'Name_1' ).
      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( `Name` ).
      l_column = l_table->if_salv_wd_column_settings~get_column( 'Boolean' ).
      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( `Selection` ).
    Regards,
    Harsha

Maybe you are looking for

  • T60 will not boot - lights, but nothing on the screen, no beeps

    Hey everyone, My approximately 4 year old (and thus out of warranty) T60 is having trouble booting. Sometimes, but not always, when I press the power button I get the lights turning on, but then all but the power (Z in a circle) indicator and the bat

  • Can't find 3d option in photoshop cc

    I Can't find 3d option in photoshop cc

  • Printing HTML PAGE in a Applet

    I am tryng to print a HTML Page in a Applet . When Using Eclipse Environment everythig goes fine. Now I am trying to use the appletviewer to run the same source, but it appears the following: http://10.15.1.26/ Conecting to http://10.15.1.26/ Excepti

  • Trading with Sub-Contracting Scenario

    Dear All, I have one requirement of Traded Material Scenario, where the material is delivered by Sub-Contractor directly to Customer. The details are - Sub-Contractor delivers material A to customer. The material A has BOM maintained, where component

  • Error when trying to set up email

    When I try to set up my email by going to "Manage Internet Email" an error message reads: "The application has encountered an error and cannot continue." Anyone know how to bypass this error so I can get my email set up? Thanks for your help!!!