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

Similar Messages

  • 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

  • How can i suppress columns in ALV ?? Will reward points.

    Hello Gurus, how can i suppress column in ALV when i`m using the transparent table:
    CALL METHOD grid->set_table_for_first_display
          EXPORTING
            i_structure_name = 'ZIANEXE'
            is_layout        = wa_layout
            is_variant       = wa_variant
            i_save           = 'U'
            IT_TOOLBAR_EXCLUDING = LT_EXCLUDE
          CHANGING
            it_outtab        = itab[]
            it_fieldcatalog  = fieldcat.
    Please help.

    in the fieldcatalog you are providing there is a field NO_OUT use this.
    Loop over internal table and check fieldname. If fieldname = column you want to hide, NO_OUT = 'X'.
    Edited by: Micky Oestreich on May 8, 2008 12:06 PM

  • How to add two columns in OBIEE report?

    Hi to All,
    Can anyone tell me how to add two columns in OBIEE report and get that result in a new column?
    Thanks in Advance,
    Thenmozhi

    Assume you already have two columns SalesAmt1 and SalesAmt2, and you want to derive 3rd column say SalesAmt3 which would be the sum of SalesAmt1 and SalesAmt2.
    For this, as I mentioned above pull SalesAmt1 and SalesAmt2 columns in Report. Now pull another column (say SalesAmt1) and open the fx. Clear the contents of fx. Now locate the columns button in the bottom of the fx. From Here, first select SalesAmt1 and + sign and the select SalesAmt2.
    Now in this new column, the fx should look like SalesAmt1 + SalesAmt2.
    Let me know if you are looking for something else.
    Thanks

  • Concatenate two columns in Obiee 11g

    Hi,
    I am trying to concatenate two columns from same table in OBIEE 11G , i tried all below syntax
    cast("Period"."Year" as Varchar)|| cast ("Period"." Month Name" as Varchar)
    cast("Period"."Year" as char)|| cast ("Period"." Month Name" as char)
    contact(cast("Period"."Year" as char), cast ("Period"." Month Namer" as char))
    I am getting this error as - Invalid Alias Format : Table_name.Column_name require . Plz Help me Guys
    Thanks
    Edited by: Neha on Apr 16, 2012 3:41 PM

    Column forumal example based on vanilla usage tracking RPD:
    cast("Query Time"."Year" as varchar(4)) || "Query Time"."Month"BTW: "Month Name" implies a string already so I doubt you'll need to cast it as one...
    C.

  • How to add Two Columns in SQL

    How to add Two Columns in SQL
    For Example
    Jan Feb
    215 NULL
    How to add these two values in SQL

    Anything + NULL is NULL.
    Check this:
    SQL> SELECT 1 + NULL from dual;
        1+NULL
    SQL> You have to do this:
    SQL> with t as (SELECT 235 JAN, NULL FEB FROM dual)
      2  SELECT NVL(JAN,0) + NVL(FEB,0) FROM t;
    NVL(JAN,0)+NVL(FEB,0)
                      235
    SQL>

  • How to create two columns in a header?

    Can anyone tell me how to create two columns in a header please?
    Thanks!!

    Sandra,
    I'm suspicious about your motives.  It just doesn't seem logical to me to put so much content into a Header that two columns would be required.
    You might consider the alternate header-like approach; use a Text Box set to two-column format and Format > Advanced > Move Object to Section Master.
    Jerry

  • How to hide ,unhide columns  in ALV List

    Hi all,
    How to hide ,unhide columns  in ALV List..
    Plz guide me.
    Thanks in advance..
    Albert

    Hi Joseph,
    Check the following thread:
    Hide Unhide columns of ALV grid Report.
    Regards,
    Archana

  • How to concatenate two colums into one single column

    I need some ideas to concatenate two different columns into one single column using a set of distinct values.
    For Example,
    Customer Product Number
    xyz A 1
    xyz B 2
    xyz B 1
    AAA C 7
    AAA A 1
    The result should look like this,
    Customer Value
    xyz A1 B2 B1
    AAA C7 A1
    How would I group this into once value ?
    Thanks in advance ...

    Tom's discussion of writing your own aggregate routines
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:2196162600402
    starts off with a link to the 8i alternatives
    "see
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:229614022562
    for 8i methods (not aggregates)"
    Unforutnately, it's a lot more work in 8i.
    Justin

  • How to add two columns in criteria(OBIEE 11g)

    Hi,
    I am trying to add two columns in a criteria in obiee
    *"Fact - OLB Processed Invoices"."Invoice Amount - Functional Currency"__"Fact - OLB Processed Invoices"."AR Tax Amount - Invoice Currency"
    but the problem is :-
    The first column have 500000000 and the second column contains NULL values the actual table. I think this might be the problem when I am trying to add them it is giving no output.
    just a blank box.
    Can any one tell me how can we add columns in this condition.
    Thank to one and all.

    Try IFNULL(expr, value)
    for other column
    "Fact - OLB Processed Invoices"."Invoice Amount - Functional Currency"+IFNULL("Fact - OLB Processed Invoices"."AR Tax Amount - Invoice Currency",0)
    Edited by: Srini VEERAVALLI on Mar 20, 2013 10:02 AM

  • How to remove a column from alv table

    Hi All
    How to remove a specific column from alv table.?
    Thanks & Regards
    SUN

    For delete u can follow the above post..
    Fo making invisible :
    data m_col type ref to cl_salv_wd_column.
    m_col = alv_mode->IF_SALV_WD_COLUMN_SETTINGS->GET_COLUMN (' col1' ).
    m_col->SET_VISIBILITY( '01'  ).

  • How to concatenate two linked lists?

    Can anyone help me with this? I'm stuck. I'm trying to concatenate two linked lists. I've created a method that adds a node to the beginning of a list and a second method to concatenate. My first method works, but not my second...
    First method:
    public static Node insertFirst(Node head, Node node){
              Node newNode = new Node();          // declare and initialize newNode.
              newNode = node;                    // store the new item in the new node.
              newNode.link = head;               // newNode.link points to the head.
              head = newNode;                    // update head to be newNode.
              return head;
         }Here is where I have my problem:
    public static Node mergeTwoLists(Node a, Node b){
              Node heada = a;
              Node headb = b;
              if(heada == null)
                   return headb;                    //if heada is null then returns list headb.
              else if(headb == null)
                   return heada;                    //if headb is null then returns list heada.
              else if(heada == null && headb == null)     //if both lists are null, returns null.
                   return null;
              else if(heada.link == null){     //only one element in heada.
                   headb = insertFirst(b, a);               // inserts the element in heada into headb.
                   return headb;
              }//end else if(heada.link == null).
              else if(headb.link == null){     //only one element in headb.
                   heada = insertFirst(a,b);               // inserts the element in headb into heada.
                   else {
                        mergeTwoLists(heada.link, headb);
                        return heada;
                   }//end else
              return heada;
              }//end mergeTwoLists method.I think in this method I'm only adding the nodes if there is only one node in one of the lists. But if there are more than one element in a list...I'm confused as to how to code the last else statement that contains the recursive call.
    Can someone help?
    Thanks
    aiki985

    Can't you just point the tail of A to the head of B?
    I don't think I'd do this recursivly at all. Use a
    while look to find the last node in A and then link
    it to whatever the first element in B is.
    while(A.next != null){
    A = A.next;
    A.next = B;
    Java that up a bit and check for nulls and it should
    work.o.k. thanks...let me try that. It does seem awkward recursively...
    aiki985

  • Concatenate two Columns in OAF

    Dear Friends ,
    I have a OAF Page developed with advanced table , i would like to concatenate first two
    columns . is there any way that i can achieve this ?
    Note : I am using a sear without entity Object ( VO based Search )
    Please share your thoughts .
    Thanks in Advance ,
    Keerthi.k

    There are multiple ways to do it.
    Fully Declarative Way
    1. Add transient variable to your VO.
    Expand Attributes in VO Editor, select the newly created attribute, Check 'selected in query' checkbox.
    in Query Column, give some alias, enter expression as <column1> || <column2>
    Fully Programmatic Way
    1. Add transient variable to your VO.
    2. Capture the event in CO...pass the control to AM...from AM pass the control to VOImpl.
    3. Loop thru VO using an iterator.
    4. create a method in VORowImp to concatenate the two column and populate into the attribute created in step 1 (Use populateAttribute(.., ..) so that the VORow is not dirtied)
    5. for every row, call the method created in step 4.
    Hrishikesh

  • How to Display Sub-Columns using ALV Grid

    Hi ,
      Could someone tell me how to display sub-columns under a parent column using ALV Grid. Do we have any standard Program which has this scenario. Please let me know.
    Thanks,
    Abaper.
    Message was edited by:
            ABAP'er

    you can check all with <b>BCALV* or RSDEMO*</b> in SE38 for all Std
    check below
    BCALV_DND_01                   Drag ALV Row to Tree Folder
    BCALV_DND_02                   Drag Icons from Tree to Rows of the Grid
    BCALV_GRID_DND_TREE            ALV Grid: Drag and Drop with ALV Tree
    BCALV_GRID_DND_TREE_SIMPLE     ALV GRID: Drag and drop with ALV tree (simple)
    BCALV_TEST_COLUMN_TREE         Program BCALV_TEST_COLUMN_TREE
    Rewards if useful............
    Minal

  • How to relate two columns in a same row

    I want to relate two columns in a same row, like if A2 is Jack then B2 to be A, if A2 is Anand then B2 to be B, If A2 is Arun then B2 to be C and so on. How to do it?

    Anand,
    Create a table that lists the relationships:
    Name
    Associated Letter
    Jack
    A
    Anand
    B
    Arun
    C
    Then, use a Lookup function to find the name in the lookup table and return the proper letter to your main table.
    Jerry

Maybe you are looking for

  • IMac is not detecting my home wifi

    Hello everyone, My home wifi have been working great for many many yrs. I have 3 iPads, 2 MBP, 1 iMac and 2 iPhones in this home and all are connected to my wifi with absolutely no problem. Today I restarted my iMac and suddenly my iMac can no longer

  • Autocorrect sentence in quotes in word 2007?

    When i start a sentence in quotes and the first letter of the first word is not capitalized it doesn't correct the first word. For example: "this is a blue color." doesn't autocorrect it to "This is a blue color." Can i make Word autocorrect the firs

  • Downloaded songs from iStore don't work

    I have downloaded an album paying with an itunes card. All songs are on my computer, but won't start. Other songs I have downloaded previously just work fine, but the new songs are being skipped when I click them. Any idea how to get them running? My

  • In ios8 my dictation button is gone

    I do not have any 3rd party keyboards installed, so I'll get that out of the way right off the bat.  Prior to my upgrade to iOS8 on my iPhone 5, I used the dictation button on the keyboard all the time - especially in Messages.  Now, after the update

  • Where are Bridge's keywords stored?

    Hey I am using Bridge CS3. My image storage methodology in brief: I have a partition on my main work station that acts as my image storehouse. I have the same on my laptop. I have Bridge pointing at those partitions, receptively on each computer. Whe