Merging Two Columns in ALV

Hi Experts,
I have a requirement, and I need to merge the the two columns in ALV. How can I do this?
Points will be rewarded for helpful answers.
Thanks in advance...

Hi Salem
Check this sample code
LOOP AT itab.
CONCATENATE itab-amount itab-currency INTO itab-combined.
MODIFY itab.
ENDLOOP.
You will probably need to embellish just that concat command as all fields will be treated as TYPE C.
Then inhibit the display of the original fields ‘amount’ and ‘currency’ by setting NO_OUT=’X in the fieldcat loop (or other method).
There may be a FM to merge/format amounts and currency but I couldn’t find one on quick search.
The option 'USING EDIT MASK' from WRITE command is also available in ALV structure IT_FIELDCAT.
I have only used it in write and for simple stuff, but it may have some options for you.
Check '==conv' for output conversion routine...
Reward all helpfull answers
Regards
Pavan

Similar Messages

  • Display TextBox Merging two columns

    hi
    In a Form i want to display textbox merging two columns
    when i increading the width of textbox , elements(textbox,selectlist) in the column 2 move right side

    Edit your item and go to
    Displayed > ColSpan
    and increase it to two or three...
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Merging two columns with muliple rows in Numbers '09

    I am trying to merge two columns each with 100 rows and related data. Column one is the street address and column two have office numbers. The final result would be one column with 100 rows with address and office numbers.
    Ed Carreon

    sanpanza wrote:
    I am trying to merge two columns each with 100 rows and related data. Column one is the street address and column two have office numbers. The final result would be one column with 100 rows with address and office numbers.
    Ed Carreon
    Hi Ed,
    Use the CONCATENATE() function.
    Street address in column D, Office number in Column E
    100 Smith ST            212
    Formula: =CONCATENATE(E," ",D)
    Result:
    212 100 Smith ST
    Note the formula has three arguments, the reference to column E, a text literal (" ") containing a single space, and a reference to column D.
    Regards,
    Barry

  • How to merge two columns in WAD(column chart)

    Dear Experts,
    Please provide your valuable suggestion to get a merge two columns in one column WAD column chart.
    Example: we are having 3 fields (Budgeted value, Actual budgeted value & non budgeted value).
    In the chart to be shown, budgeted value in one column, remaining two to be merged in one column
    In below sample image Actual(Volume) column is having twe fields (Budgeted SKU value & Non budgeted SKU),
    please provide solution to get same in SAP BI/BW WAD.
    Thanks & Regards,
    Sudarsan Reddy.

    Hi..,
      With in the internal table structure you can declare one more field like NAME(30).
    And concate nate first name and last name into that NAME field of internal table and modify the internal table
    Now display this field..
    Thanks,
    Naveen.I

  • How to merge two columns in csv file using vbscript?

    How i can merge two column in csv file using vbscript or powershell?
    1  , 2  , 3  , 4  , 5
    1  , 23 ,  4 ,  5
    thanks

    Here are two examples
    http://msdn.microsoft.com/en-us/library/ms191250.aspx
    calulated
    http://msdn.microsoft.com/en-us/library/ms191250.aspx
    Gary Newman MCSE, MCT, CCNA, MCSD, MCPD, MCDBA, MCAD, MCSA, MCTS Developer and Administrator On SharePoint 2013 SharePoint Practice Manager for AmeriTeach Denver, CO.

  • Merge two column value in single column

    Team,
    I have a requirement where in I need to merge 2 column values in a single column.
    ex. I have Percent_complete column in my table. and my table has only one record.
    I need to query such that I need to store the values of percent_complete and (100- percent_complete) values in a single column.
    ex
    Percent complete has 30 value.
    I need to select 30 and 70(100-30) both in a single column.
    Thanks,

    SQL> select  *
      2    from  tbl
      3  /
    PERCENT_COMPLETE
                  30
    SQL> select  abs(grouping(1) * 100 - max(percent_complete)) percent_complete
      2    from  tbl
      3    group by rollup(1)
      4  /
    PERCENT_COMPLETE
                  30
                  70
    SQL> select  nvl(percent_complete,100 - max(percent_complete)) percent_complete
      2    from  tbl
      3    group by rollup(percent_complete)
      4  /
    PERCENT_COMPLETE
                  30
                  70
    SQL>
    SY.

  • How to concatenate two column in ALV

    dear,
    How to concatenate two ALV columns
    yatendra sharma

    dear
    I have to concatenate 3 fields
    PERFORM fill_fields_of_fieldcatalog
        USING 'IT_FINAL' 'NAME2' ' ' ' ' 'Customer Address' .
      PERFORM fill_fields_of_fieldcatalog
        USING 'IT_FINAL' 'STRAS' ' ' ' ' 'Street' .
      PERFORM fill_fields_of_fieldcatalog
        USING 'IT_FINAL' 'ORT01' ' ' ' ' 'City'.
    how can we join them
    Yatendra

  • Merge Two Columns in a Single Column

    Dear,
    Inputs
    Table1 |
    Col1 (Number) |
    1 |
    2 |
    3 |
    4 |
    5 |
    6 |
    and table 2
    Table2 |
    Col1 (Number) |
    7 |
    8 |
    9 |
    10 |
    11 |
    12 |
    No relation between the two tables
    I want to write a select statement that will result
    Column
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    No sorting is required, I just need to have all the values listed in a single column... How can I do?
    Thanks in Advance.

    If there is dup values between the two tables and you want get only unique, use UNION. If not UNION ALL as already stated.
    Nicolas.

  • Merge two columns of url/text and locator numbers

    Want to merge a url - http://www.vimeo.com to a numbered vimeo film locator for the 'screeners sheet' for a film contest.
    The current set up is: Column A - film title; Column B will be the Category; Column C - the url of vimeo with a / at the end to accept...Column D - the vimeo film locator number; Columns E-I will be the rating topics (originality, technical accuracy etc); Column J will contain the sum of the screeners ratings from Columns E-I.
    There is no need to have totals at the bottom of columns just at the end of the rows. We have about 1000 films being rated for the Contest to win over $30k in Awards (sweet!).  Ultimately this list will be divided into Categories then 'shared' with the individual screening teams to view remotely through this spread sheet and rate the film work.
    Oh the coup de gras is the merge needs to keep it as an active link to Vimeo (which doesn't happen in the =Concatenate(C,D) formula. The lyper link stays active when we manually input each letter/number - but for 1,000 films - that's a yikes amount of work. Gotta be an easier way!
    Thanks for your help!
    Possible Futures Film Contest
    Programming Team
    May 29

    Might need the mystics as well!
    I'm having difficulty getting Numbers to recognize URLs to begin with, not just when they've been put together with the concatenation function (or the concatenation operator). I do have the feature turned on, but the recognition has been sporadic, to say the least.
    Assuming you have that sorted out, this might be a profitable line of enquiry:
    After joining the items using concatenation, select the cells now containing the full URL and Copy, then go to the Edit menu and choose Paste Values.
    Can't test it myself, for the reasons given above, but the labor cost of the home test isn't unendurable.
    Regards,
    Barry

  • MERGE TWO COLUMNS ?

    hi i queried on my database as follow,
    <pre>
    SELECT
    C.LKP_ID ID,D.LKP_ID AS ID,C.ROOT_CAUSE_CODE AS CODE,D.PART_DISPOSTN_DESC AS CODE
    FROM
    SELECT DISTINCT
    A.LKP_ID AS LKP_ID
    ,D.PART_CNDTN_CD as ROOT_CAUSE_CODE
    ,C.LKP_NM as ROOT_CAUSE_DESC
    ,A.CREATED_DT AS OD_CREATED_DATE
    ,A.UPDATED_DT AS OD_LAST_UPDATED_DATE
    ,CURRENT_TIMESTAMP AS CREATED_DATE
    ,CURRENT_TIMESTAMP AS LAST_UPDATED_DATE
    FROM FWOWNER.CLM_LKP_VALUE A, FWOWNER.CLM_LKP_USAGE B , FWOWNER.CLM_LKP_VALUE_LANG C,
    IWOWNER.WC_CLM_SRVC_PART D
    WHERE B.LKP_USED_AS IN ('RR_CAUSAL_PART_CNDTN_CODE')
    AND A.LKP_REF BETWEEN B.LKP_REF
    AND B.LKP_REF + '.99999' and A.LKP_ID = C.LKP_ID
    AND C.LANG_CD = 'ENG_USA'
    AND A.LKP_LVL = 3
    and D.PART_CNDTN_CD = A.LKP_VALUE
    )C
    CROSS JOIN
    SELECT DISTINCT
    A.LKP_ID AS LKP_ID
    ,D.PART_DISPOSTN_CD as PART_DISPOSTN_CODE
    ,C.LKP_NM as PART_DISPOSTN_DESC
    ,A.CREATED_DT AS OD_CREATED_DATE
    ,A.UPDATED_DT AS OD_LAST_UPDATED_DATE
    ,CURRENT_TIMESTAMP AS CREATED_DATE
    ,CURRENT_TIMESTAMP AS LAST_UPDATED_DATE
    FROM FWOWNER.CLM_LKP_VALUE A, FWOWNER.CLM_LKP_USAGE B , FWOWNER.CLM_LKP_VALUE_LANG C,
    IWOWNER.WC_CLM_SRVC_PART D
    WHERE B.LKP_USED_AS IN ('rr_parts_disposition')
    AND A.LKP_REF BETWEEN B.LKP_REF
    AND B.LKP_REF + '.99999' and A.LKP_ID = C.LKP_ID
    AND C.LANG_CD = 'ENG_USA'
    AND A.LKP_LVL = 3
    and D.PART_DISPOSTN_CD = A.LKP_VALUE
    )D
    </pre>
    which resulted with :
    <pre>
    ID ID CODE CODE
    25768 28225 CP01 OVERHAULED
    25771 28225 CP04 OVERHAULED
    25774 28225 CP07 OVERHAULED
    25777 28225 CP10 OVERHAULED
    25778 28225 CP11 OVERHAULED
    25779 28225 CP12 OVERHAULED
    25780 28225 CP13 OVERHAULED
    25781 28225 CP14 OVERHAULED
    25783 28225 CP16 OVERHAULED
    25785 28225 CP18 OVERHAULED
    25786 28225 CP19 OVERHAULED
    25788 28225 CP21 OVERHAULED
    25789 28225 CP22 OVERHAULED
    25790 28225 CP23 OVERHAULED
    25793 28225 CP26 OVERHAULED
    25795 28225 CP28 OVERHAULED
    25796 28225 CP29 OVERHAULED
    25797 28225 CP30 OVERHAULED
    25798 28225 CP31 OVERHAULED
    25799 28225 CP32 OVERHAULED
    20 record(s) selected [Fetch MetaData: 0/ms] [Fetch Data: 0/ms]
    </pre>
    i need to Merge both ID's and Code which may yield 21 records, how to do this, please help me
    Regards
    Naren.

    Hi, Naren,
    Whenever you have a problem, it helps if you pst a little sample data (CREATE TABLE and INSERT statements, elevenat columns only) and the results you want from that data.
    I suspect you want to do something like this:
    SELECT  A.LKP_ID          AS ID
    ,     D.PART_CNDTN_CD          as CODE
    FROM     FWOWNER.CLM_LKP_VALUE          A
    ,     FWOWNER.CLM_LKP_USAGE          B
    ,     FWOWNER.CLM_LKP_VALUE_LANG      C
    ,     IWOWNER.WC_CLM_SRVC_PART     D
    WHERE     B.LKP_USED_AS          IN ( 'RR_CAUSAL_PART_CNDTN_CODE'
                           , 'rr_parts_disposition'
    AND     A.LKP_REF          BETWEEN     B.LKP_REF
                        AND     B.LKP_REF + .99999     -- No quotes
    and     A.LKP_ID          = C.LKP_ID
    AND     C.LANG_CD          = 'ENG_USA'
    AND     A.LKP_LVL          = 3
    and      A.LKP_VALUE          = CASE
                             WHEN  B.LKP_USED_AS     IN ( 'RR_CAUSAL_PART_CNDTN_CODE')
                             THEN  D.PART_CNDTN_CD
                             WHEN  B.LKP_USED_AS     IN ('rr_parts_disposition')
                             THEN  D.PART_DISPOSTN_CD
                          END
    ;or maybe a UNION instead of a join.
    Edited by: Frank Kulash on Feb 9, 2010 9:08 AM
    Revised last condition.

  • Merging two columns

    Hi All,
    I have 1 tables. Scripts and some values are given below.
    create table T1(s_id varchar2(30), rs_id varchar2(30));
    insert into T1(s_id,rs_id ) values (s1,rs1 );
    insert into T1(s_id,rs_id ) values (s1,rs2 );
    insert into T1(s_id,rs_id ) values (s1,rs3 );
    insert into T1(s_id,rs_id ) values (s1,rs4 );
    The value s1 will be repeated for all of the rs_id value.
    I want to make the output like :
    s1
    rs1
    rs2
    rs3
    rs4
    Can any body tell me how to proceed without using union or union all, may be by using Analytic function using single SQL statement.

    This?
    SQL> select decode(row_number() over(partition by s_id order by null),1,s_id,null) s_id,rs_id
      2  from t1;
    S_ID                           RS_ID
    s1                             rs1
                                   rs4
                                   rs3
                                   rs2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to merge two cells in a row

    hi freinds,
    how to merge two cells in alv grid using oops.
    for eg ,in the first row there is text premraj
             n in the second row there is cheguri
              my requriment is two merge the two cells ie to remove the horizontal line between them
    thanks & regards,
    premraj

    Well, as a new member you should learn to search the forum first before posting questions. Using keywords like "jtable merge cell" will find other postings on this topic. Some with solutions some without, so you will need to read a few and decide on the approach you want to take.

  • Merging 2 Columns into 1 in ALV

    Hi Experts,
    I am using ALV grid to display data.
    I have two fields for icon in my internal table. if i concatenate the fields into one in the internal table
    itself then the second icon is displayed like @8O@ -> internal representation.
    Is there any way that i can show the two icons in one column of the ALV.
    Like if there is any way to remove the dividing line between the two columns only (not the whole ALV)
    Thanks
    Rajat

    Hi Naveen,
    I dont want to merge two different table of structure.
    I want to merge two icon fields into one column to display..
    Thanks
    Rajat

  • 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

  • Merge Two Rows of a table to One row but into two columns

    Hi
    I Am struck in writing a query to merge two rows into two columns of one row.
    Here is the Sample data i am working with,
    Col 1     Col 2     Col3 Col4 Col Col6
    5000     573-3000 2     0     Phone      
    5000     573-3036 1     0          Fax
    5000     893-5703 3     0     WOrk      
    3000     232-5656     1     0     Phone     
    3000     353-5656     2     0          FAx
    Here Col,Col3,Col4 form the Key.
    now wht i am trying to do is to Merge these type of rows put them into Columns P,F,W,E respectively to achive a Structure as below
    Col1      P     F     W
    5000     573-3000      573-3036      893-5703
    3000     232-5656     353-5656     
    Can you please help me how could i do this.
    I am pretty ordinary at writing SQL's.
    Thanks a Lot in Advance
    Message was edited by:
    Sreebhushan

    Search the forum for PIVOT and you'll find plenty of examples.

Maybe you are looking for

  • Start Page is not showing up-to-date after running update

    Run the update, about shows 9.0.1 and UP-To-Date... but everytime I open the browser, it shows that i'm behind and need to update? I've refreshed, etc.. still won' accept that i am up-to-date

  • Automated Balance Sheet Reconciliation

    Hi I have a user requirement in terms of automated balance sheet recs. The key consideration is that the recs are identified on an exception basis and secondly the we can flag the reconciling items so that they are identifiable on a month to month ba

  • Live Update

    When I try to run live update on my KT3 Ultra ARU I get to about 10% on the download and it just stops downloading. I am having this problem on several of the drivers and utilities. Any idea what is going on here? Any other downloads from other sight

  • Numbers wont open, cant delete it neither

    Hey guys! About three days ago I have a problem with numbers, I can't open the app (it launches but freezes in the gray screen). Also, when I try to reinstall it, I can't delete the app, every time I press the little "x" it freezes and the automatica

  • Apple TV music playback skips a second every once and a while

    Audio playback on my Apple TV has been having very quick delays, maybe half a second, then continues playing. It's pretty random but getting very annoying. Anyone had a similar issue?