Merging various columns into 1 field

Hi,
I would like to merge the address columns(e.g. Address Line 1, Address Line 2, Zipcode, Country) into 1 field but at the same time each column will appear on a new line. How is it possible to do that without using separate fields? Thank you.

Hi
You can create a formula column like this:
return addr_line1 || '
' addr_line 2 || '
' zipcode || '
' country;
(note the line break between each pair of single quotes)
hth

Similar Messages

  • 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

  • ALV report: How to merge 2 columns into 1 column?

    Hello,
    I have a list of data which I would like format the header to look as below:
    | -
    Quater 1---- | -
    Quater 2 -
    | -
    Quater 3---- | -
    Quater 4---- |  <--- header 1
    | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | <--- header 2
    | -
    F---- | -
    S- | -F-- | -
    S- | -F-- | -
    S- | -F-- | -
    S- | <- header 3
    xxxxxxx | xxxxxx | xxxxx | xxxxx | xxxxxx | xxxxx | xxxxxx | xxxxx |  <--- data lines start here....
    Is there anyway I able to achieve this layout?
    I found quite a numerous of "cell_merge" information on ALV but I do not know how exactly it work and how to modify it?
    Would be appreaciate if anyone of you able to guide me with sample code.
    Thanks in advance,
    Aish :P

    Hi,
    U can do this by using Row position in FIELD CATALOG.
    Steps are:
    u2022     First we have to declare an internal table of output type with few dummy character type fields.
    u2022     Use this structure when populating field catalog.
    u2022     When populating field catalog we have to change row position, column position, offset value, field length, text, reference table and field name (if required), justification etc.
    u2022     Pass this field catalog as exporting parameter into function module u2018REUSE_ALV_LIST_DISPALYu2019.
    Type declaration for Output table
         TYPES: BEGIN OF ty_address,
             add_detl(1)     TYPE c,            u201CDummy field
             add_init(1)     TYPE c,            u201CDummy field
             pers_detl(1)    TYPE c,            u201CDummy field
             res_detl(1)     TYPE c,            u201CDummy field
             off_detl(1)     TYPE c,            u201CDummy field
             addrnumber      TYPE ad_addrnum,   "Address number
             name1           TYPE ad_name1,     "First Name
             name2           TYPE ad_name2,     "Middle Name
             name3           TYPE ad_name3,     "Last Name
             home_city       TYPE ad_city3,     "Residential City
             city2           TYPE ad_city2,     "District
             post_code1      TYPE ad_pstcd1,    "Residential postal code
             city1           TYPE ad_city1,     "Office City
             post_code2      TYPE ad_pstcd2,    "Office postal code
             tel_number      TYPE ad_tlnmbr1,   "First telephone no.
             tel_extens      TYPE ad_tlxtns1,   "First Telephone No.: Extension
             fax_number      TYPE ad_fxnmbr1,   "First fax no.
           END OF ty_address.
    In the above type declaration first five fields are used to populate field catalog only for the first and second line headings. These fields do not contain any data.
    Main processing:
    To get multiple line ALV layout we have to declare few dummy fields. When we build field catalog, then we have to put those dummy fields in proper places. In our example last 12 fields are known as valid fields with data and first 5 fields (1 at first line and 4 at second line) are knows as invalid or dummy variables containing no data.
    When we build field catalog, we call a perform name CREATE_CATALOG using
                                                    Column position          Row position
                                         Field name                   Table name
                                         Justification             Text heading
                                         Reference table         Reference field
                                         Output length       Offset value
    For the first row, we have to set row position 1, column position 1. When we call the perform we have to pass, these two values in addition with dummy field name (ADD_DETL), table name (I_ADDRESS), justification (left or right), text (Address Details), Reference table and Reference field name (we can pass SPACE, if not required), Output length and Offset value (Length from left margin or last field, for the first row it is 225. Means the text u201CAddress Detailsu201D  will be printed at 225th char position).
      l_off    = 225.        "Offset Value
      l_pos    = 1.          "Column position
      l_row    = 1.          "Row position
      l_just   = u2018Lu2019.        "Allignment (u2018Lu2019 for Left)
      l_outlen = 50.         "Field length
    Address Details *****************
      PERFORM    create_catalog USING
      l_pos l_row 'ADD_DETL' 'I_ADDRESS' l_just text-002 space space l_outlen  
      l_off.
    Perform CREATE_CATALOG is used to append the field catalog table with the passing parameters.
    SUBROUTINE ***************************************
    FORM create_catalog  USING    p_pos     TYPE sycucol
                                  p_row     TYPE sycurow
                                  p_field   TYPE any
                                  p_tab     TYPE any
                                  p_just    TYPE char1
                                  p_text    TYPE reptext
                                  p_reftab  TYPE any
                                  p_reffld  TYPE any
                                  p_outlen  TYPE outputlen
                                  p_off     TYPE outputlen.
      s_fieldcat-col_pos            = p_pos.     "Column position
      s_fieldcat-row_pos            = p_row.     "Row position
      s_fieldcat-fieldname          = p_field.   "Field name
      s_fieldcat-tabname            = p_tab.     "Table name
      s_fieldcat-just               = p_just.    "Justification
      s_fieldcat-reptext_ddic       = p_text.    "Text heading
      s_fieldcat-ref_tabname        = p_reftab.  "Reference table
      s_fieldcat-ref_fieldname      = p_reffld.  "Reference field
      s_fieldcat-outputlen          = p_outlen.  "Output length
      s_fieldcat-offset             = p_off.     "Offset value
      APPEND s_fieldcat TO i_fieldcat.
      CLEAR  s_fieldcat.
    ENDFORM.                    " create_catalog
    Regards,
    Joy.

  • Merge multiple columns into single column?

    Hi,
    I need to execute queries dynamically and return the values. I need to fetch the values of the queries in single column only by concatenating the multiple columns. I cannot use PL/SQL in my scenario.
    is there any way to execute a query and the result will be fetched in single column (values of multiple columns needs to be concatenated)?
    Thanks,
    Raja.

    hi,
    do you mean this??
      1* select EMPNO||' '||ENAME||' '||JOB||' '||MGR||' '||HIREDATE||' '||SAL||' '||COMM||' '||DEPTNO||
    SQL> /
    MULTIPLE_COL
    100 JDF DIR  05-SEP-09 200 1000 10
    7497 MILLER CLERK 7782 23-JAN-82 25000 195 35
    7566 JONES MANAGER 7839 02-APR-81 3175 446.25 20
    7654 RAR SALESMAN 7698 28-SEP-81 1450 1587.5 30
    7698 BLAKE MANAGER 7839 01-MAY-81 3050 427.5 30
    7782 CLARK MANAGER 7839 09-JUN-81 2650 367.5 10
    7788 SCOTT ANALYST 7566 09-DEC-82 3200 450 20
    7839 KING PRESIDENT  17-NOV-81 5200 8250 10
    7844 TURNER SALESMAN 7698 08-SEP-81 1700 225 30
    7876 ADAMS CLERK 7788 12-JAN-83 1300 165 20
    7900 JAMES CLERK 7698 03-DEC-81 1150 85.5 30 [email protected]
    MULTIPLE_COL
    7902 FORD ANALYST 7566 03-DEC-81 3200 450 20
    8000 KINGBABA PRESIDENT  17-NOV-81 5200 8250 10
    8001 TURNER RAV SALESMAN 8000 08-SEP-81 1700 450 30
    1001 KITTU DOR  05-SEP-09 1200 100 40
    15 rows selected.Or
    Mean this??
    SQL> ed
    Wrote file afiedt.buf
      1  With T As
      2     ( Select Level col1 From dual Connect By Level<=10
      3     )
      4     Select Max(SYS_CONNECT_BY_PATH(COL1||',',' ')) Multi_col
      5       From
      6     ( Select COL1, Lag(COL1) Over (Order By COL1) As Lag
      7             From   T  )
      8      Start With Lag Is Null
      9        Connect By
    10*    Prior col1 = LAG
    SQL> /
    MULTI_COL
    1, 2, 3, 4, 5, 6, 7, 8, 9, 10,Edited by: user291283 on Sep 8, 2009 10:10 PM

  • Merging data from 2 columns into a single cell

    How can I get 2 lines of data in one cell? I want to merge 2 columns, so that the data in the cell in one column fits under the data in the adjoining cell in the other column. If I just merge the cells, the column would make the spreadsheet to wide to fit on the page needed to print it on.

    enaid,
    Let's say you want to merge Col A and Col B into Col C, with the Col A text over the Col B text.
    In Col C you would use: =A&CHAR(8232)&B
    Don't forget to increase the row heights so you can see both lines in Col C.
    Best regards,
    Jerry

  • Merge data files into spreadsheet exports 1 field

    In acrobat 11.0.5 the 'merge data files into spreadsheet' tool only exports the filename and 1 field. The form was created in livecycle designer ES3 and previous versions created in livecycle 2 and 2.5, using previous versions of acrobat have exported all fields when using the 'merge data files into spreadsheet' tool. IU there a fix for this?

    Hi Lori
    Many thanks the binding was set to 'none'.
    Regards
    Dave

  • Merge multiple rows into single row (but multiple columns)

    How to merge multiple rows into single row (but multiple columns) efficiently.
    For example
    IDVal IDDesc IdNum Id_Information_Type Attribute_1 Attribute_2 Attribute_3 Attribute_4 Attribute_5
    23 asdc 1 Location USA NM ABQ Four Seasons 87106
    23 asdc 1 Stats 2300 91.7 8.2 85432
    23 asdc 1 Audit 1996 June 17 1200
    65 affc 2 Location USA TX AUS Hilton 92305
    65 affc 2 Stats 5510 42.7 46 9999
    65 affc 2 Audit 1996 July 172 1100
    where different attributes mean different thing for each Information_type.
    For example for Information_Type=Location
    Attribute_1 means Country
    Attribute_2 means State and so on.
    For example for Information_Type=Stats
    Attribute_1 means Population
    Attribute_2 means American Ethnicity percentage and so on.
    I want to create a view that shows like below:
    IDVal IDDesc IDNum Country State City Hotel ZipCode Population American% Other% Area Audit Year AuditMonth Audit Type AuditTime
    23 asdc 1 USA NM ABQ FourSeasons 87106 2300 91.7 46 85432 1996 June 17 1200
    65 affc 2 USA TX AUS Hilton 92305 5510 42.7 46 9999 1996 July 172 1100
    Thanks

    Hi,
    That's called Pivoting . The forum FAQ has a section on this subject: {message:id=9360005}
    I hope this answers your question.
    If not, post your best attempt, along with a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data. (You did post the results you wanted, but they're very hard to read because they're not formatted. Use \ tags, as described in the forum FAQ, below.)
    Explain, using specific examples, how you get the results you want from the data given.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).  This is always important, but especially so with pivots.
    See the forum FAQ {message:id=9360002}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Merging values of CKFs in two columns into single column

    Hi ,
    I want to merge values present in two different columns.The values present in rows of one column are not present in rows of other column, I have to merge the values into a single column.so that in the single column i can get all the values.how to do it in BEx.
    regards ,
    man.

    Hi,
    Dear murali , the solution you gave has helped me a bit as i am able to get the values for both the formula KF's in the same column,But another problem has arisen.
       For both the formula KF's I had to choose 'New Selection' (and not 'New formula')after R-cllick on the structure, as I had to use a Characteristic as restriction for Each of the KF's, and also to use the Characteristic I had to associate it with some KF so that the Characteristic wil be used as a KF in the formula.
       Now what is happening is that I am getting the values of that associated KF also in the empty rows.(i.e. the rows where the value of both the KF1 and KF2 is not present)
       What has to be done to remove them and keep the empty rows empty and not show the value of the KF taken with the Characteristic for restriction. Also its value is summing up with KF1 and KF2 in the coulmn which is having both KF1 and KF2 together.
    Regards
    man

  • How do I insert multiple values into different fields in a stored procedure

    I am writing a Stored Procedure where I select data from various queries, insert the results into a variable and then I insert the variables into final target table. This works fine when the queries return only one row. However I have some queries that return multiple rows and I am trying to insert them into different fields in the target table. My query is like
    SELECT DESCRIPTION, SUM(AMOUNT)
    INTO v_description, v_amount
    FROM SOURCE_TABLE
    GROUP BY DESCRIPTION;
    This returns values like
    Value A , 100
    Value B, 200
    Value C, 300
    The Target Table has fields for each of the above types e.g.
    VALUE_A, VALUE_B, VALUE_C
    I am inserting the data from a query like
    INSERT INTO TARGET_TABLE (VALUE_A, VALUE_B, VALUE_C)
    VALUES (...)
    How do I split out the values returned by the first query to insert into the Insert Statement? Or do I need to split the data in the statement that inserts into the variables?
    Thanks
    GB

    "Some of the amounts returned are negative so the MAX in the select statement returns 0 instead of the negative value. If I use MIN instead of MAX it returns the correct negative value. However I might not know when the amount is going to be positive or negative. Do you have any suggestions on how I can resolve this?"
    Perhaps something like this could be done in combination with the pivot queries above, although it seems cumbersome.
    SQL> with data as (
      2        select  0 a, 0 b,  0 c from dual   -- So column a has values {0, 1, 4},
      3  union select  1 a, 2 b, -3 c from dual   --    column b has values {0, 2, 5},
      4  union select  4 a, 5 b, -6 c from dual ) --    column c has values {0, -3, -6}.
      5  --
      6  select  ( case when max.a > 0 then max.a else min.a end) abs_max_a
      7  ,       ( case when max.b > 0 then max.b else min.b end) abs_max_b
      8  ,       ( case when max.c > 0 then max.c else min.c end) abs_max_c
      9  from    ( select  ( select max(a) from data ) a
    10            ,       ( select max(b) from data ) b
    11            ,       ( select max(c) from data ) c
    12            from      dual ) max
    13  ,       ( select  ( select min(a) from data ) a
    14            ,       ( select min(b) from data ) b
    15            ,       ( select min(c) from data ) c
    16            from      dual ) min
    17  /
    ABS_MAX_A  ABS_MAX_B  ABS_MAX_C
             4          5         -6
    SQL>

  • 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

  • Converting multiple columns into one.

    All,
    I have a requirement to convert multiple columns into one. Following is the pseudo code of current implementation. It unions the various columns ( col1, col2........) into a new column new_col. But perforamnce is extrmely slow owing to multiple unions. It may be noted that tables and where conditions of all these queries are same.
    Can you help me create a more efficient query?
    select col1 , col2, col3, col4 from my_tables where some_cols = my_condition;Below is the query used to convert these columns into one.
    select col1 new_col from my_tables where some_cols = my_condition
    union all
    select col2 from my_tables where some_cols = my_condition
    union all
    select col3 from my_tables where some_cols = my_condition
    union all
    select col4 from my_tables where some_cols = my_condition

    Without looking at those things you could be barking up the wrong tree by assuming the issue relates to the unioning of queries or other such things.Well, might be.........
    Execution time of this query (just the execution time not the retrival) is around 34 seconds with connect-by clause for returning 22,000 records.
    Here's the plan
    Execution Plan
    | Id  | Operation                          | Name                        | Rows
    | Bytes | Cost (%CPU)|
    |   0 | SELECT STATEMENT                   |                             |   326
    | 33904 |   135   (2)|
    |   1 |  SORT ORDER BY                     |                             |   326
    | 33904 |   135   (2)|
    |   2 |   MAT_VIEW ACCESS BY INDEX ROWID   | MV_COMQ_RM_DEAL             |     1
    |    62 |     1   (0)|
    |   3 |    NESTED LOOPS                    |                             |   326
    | 33904 |   134   (1)|
    |   4 |     MERGE JOIN CARTESIAN           |                             |   326
    | 13692 |     3   (0)|
    |   5 |      VIEW                          |                             |     1
    |    13 |     2   (0)|
    |   6 |       COUNT                        |                             |
    |       |            |
    |   7 |        CONNECT BY WITHOUT FILTERING|                             |
    |       |            |
    |   8 |         FAST DUAL                  |                             |     1
    |       |     2   (0)|
    |   9 |      BUFFER SORT                   |                             |   326
    |  9454 |     3   (0)|
    |  10 |       TABLE ACCESS BY INDEX ROWID  | SF_SEARCH_IDS_TMP_COMQ      |   326
    |  9454 |     1   (0)|
    |  11 |        INDEX RANGE SCAN            | IDX1_SF_SEARCH_IDS_TMP_COMQ |   349
    |       |     1   (0)|
    |  12 |     INDEX RANGE SCAN               | IDX_MV_COMQ_RM_DEAL         |     9
    |       |     1   (0)|
    -----------------------     Hope, It's readable.......
    I would have posted sample data and query but........I cant do that...:(

  • How can I gather multiple copies of photos on various devices into one central repository?

    Various episodes over the years of making albums, assembling collections for export or import, migrating between machines, etc have resulted in multiple copies of images to be scattered, in some cases, in unexpected combinations on a couple of separate iPhoto libraries.  Does the latest iPhoto (or Aperture, or ??) have means to identify and gather copies?
    Any help in this direction would be greatly appreciated.

    The paid version of  iPhoto Library Manager can merge multiple libraries into one library while excluding duplicate image files.
    OT

  • Help needed in returning multiple columns from one field

    Hi,
    I have been given a task to rewrite the query (see below), so that I get three columns from the one field, based on their contents.
    The script returns all the columns and concatenates them into one, but returns them as comma delimmited within the returned column, to generate a report.
    These tables are from Siebel.
    Our Oracle version is:
    select banner from sys.v_$version;
    --returns
    Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
    PL/SQL Release 8.1.7.4.0 - Production
    CORE     8.1.7.0.0     Production
    TNS for Solaris: Version 8.1.7.4.0 - Production
    NLSRTL Version 3.4.1.0.0 - Production
    Here is what I was given;
    set arraysize 200
    Spool d:\Daily_reports\Data\RegManage\Electricity\eCISPLUS_Product_Switch_Not_Started_Discount.csv
    -- this will concatenate all the returned columns into one
    SELECT DISTINCT '"'||
    rtrim(ltrim(S_ORG_EXT.OU_NUM)) || '","' ||
    rtrim(ltrim(S_ORG_EXT.NAME)) || '","' ||
    rtrim(ltrim(S_EVT_ACT.TODO_CD)) || '","' ||
    rtrim(ltrim(S_EVT_ACT.EVT_STAT_CD)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_SOURCE_TYPE)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_TXU_PRICELIST_NAME)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_CLASS_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_PEAKANYTIME_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_PA_CLASS_ELEC)) || '","' ||
    rtrim(ltrim(S_ORG_EXT.X_OTH_ACCOUNT_NUMBER)) || '","' ||
    rtrim(ltrim(S_ADDR_PER.X_NMI_NUM)) || '","' ||
    rtrim(ltrim(S_ADDR_PER.X_NMI_CHECKSUM)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.QUOTE_NUM)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_COOLING_OFF_DATE)) || '","' ||
    rtrim(ltrim(S_PROD_INT.NAME)) || '"'
    The field S_PROD_INT.NAME is the one that I need to split so that it is retured
    into three different columns.
    1st column needed -
    where S_PROD_INT.NAME Like 'Electricity TRUenergy Business Edge __ %'
    OR S_PROD_INT.NAME Like 'Electricity TRUenergy Business Now __ %'
    OR S_PROD_INT.NAME Like 'Electricity Go for More __ %'
    OR S_PROD_INT.NAME Like 'Electricity Mates Rates __ %'
    2nd column needed -
    where S_PROD_INT.NAME Like 'Gas TRUenergy Business Edge __ %'
    OR S_PROD_INT.NAME Like 'Gas TRUenergy Business Now __ %'
    OR S_PROD_INT.NAME Like 'Gas Go for More __ %'
    OR S_PROD_INT.NAME Like 'Gas Mates Rates __ %'
    3rd column needed from
    S_PROD_INT.NAME Like '* ___ Discount for Paying Your Bill by the Due Date')
    -- Tables
    FROM SIEBEL.S_ADDR_PER S_ADDR_PER,
    SIEBEL.S_DOC_QUOTE S_DOC_QUOTE,
    SIEBEL.S_EVT_ACT S_EVT_ACT,
    SIEBEL.S_ORG_EXT S_ORG_EXT,
    SIEBEL.S_PRI_LST S_PRI_LST,
    SIEBEL.S_PROD_INT S_PROD_INT,
    SIEBEL.S_QUOTE_ITEM S_QUOTE_ITEM
    WHERE S_EVT_ACT.TARGET_OU_ID = S_ORG_EXT.ROW_ID
    AND S_DOC_QUOTE.ROW_ID = S_QUOTE_ITEM.SD_ID
    AND S_ADDR_PER.ROW_ID = S_ORG_EXT.PR_ADDR_ID
    AND S_PROD_INT.ROW_ID = S_QUOTE_ITEM.PROD_ID
    AND S_ORG_EXT.ROW_ID = S_DOC_QUOTE.TARGET_OU_ID
    AND S_DOC_QUOTE.PRI_LST_ID = S_PRI_LST.ROW_ID
    AND S_EVT_ACT.TODO_CD = 'Product Switch-Electricity'
    AND S_EVT_ACT.EVT_STAT_CD In ('In Progress','Not Started','On Hold')
    AND S_DOC_QUOTE.STAT_CD In ('Completed','Verbal Acceptance','Written Acceptance')
    AND S_DOC_QUOTE.X_OFFER_TYPE = 'Product Switch'
    AND (S_PROD_INT.NAME Like 'Electricity TRUenergy Business Edge __ %' OR S_PROD_INT.NAME Like 'Electricity TRUenergy Business Now __ %'
    OR S_PROD_INT.NAME Like 'Electricity Go for More __ %' OR S_PROD_INT.NAME Like 'Electricity Mates Rates __ %'
    OR S_PROD_INT.NAME Like 'Electricity __ Discount for Paying Your Bill by the Due Date' or S_PROD_INT.NAME Like 'Electricity TRUenergy Business Edge ___ %'
    OR S_PROD_INT.NAME Like 'Electricity TRUenergy Business Now ___ %'
    OR S_PROD_INT.NAME Like 'Electricity Go for More ___ %'
    OR S_PROD_INT.NAME Like 'Electricity Mates Rates ___ %'
    OR S_PROD_INT.NAME Like 'Electricity ___ Discount for Paying Your Bill by the Due Date')
    UNION
    SELECT DISTINCT '"'||
    rtrim(ltrim(S_ORG_EXT.OU_NUM)) || '","' ||
    rtrim(ltrim(S_ORG_EXT.NAME)) || '","' ||
    rtrim(ltrim(S_EVT_ACT.TODO_CD)) || '","' ||
    rtrim(ltrim(S_EVT_ACT.EVT_STAT_CD)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_SOURCE_TYPE)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_TXU_PRICELIST_NAME)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_CLASS_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_PEAKANYTIME_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_PA_CLASS_ELEC)) || '","' ||
    rtrim(ltrim(S_ORG_EXT.X_OTH_ACCOUNT_NUMBER)) || '","' ||
    rtrim(ltrim(S_ADDR_PER.X_NMI_NUM)) || '","' ||
    rtrim(ltrim(S_ADDR_PER.X_NMI_CHECKSUM)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.QUOTE_NUM)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_COOLING_OFF_DATE)) || '"'
    FROM SIEBEL.S_ADDR_PER S_ADDR_PER,
    SIEBEL.S_DOC_QUOTE S_DOC_QUOTE,
    SIEBEL.S_EVT_ACT S_EVT_ACT,
    SIEBEL.S_ORG_EXT S_ORG_EXT,
    SIEBEL.S_PRI_LST S_PRI_LST
    WHERE S_EVT_ACT.TARGET_OU_ID = S_ORG_EXT.ROW_ID
    AND S_ADDR_PER.ROW_ID = S_ORG_EXT.PR_ADDR_ID
    AND S_ORG_EXT.ROW_ID = S_DOC_QUOTE.TARGET_OU_ID
    AND S_DOC_QUOTE.PRI_LST_ID = S_PRI_LST.ROW_ID
    AND S_EVT_ACT.TODO_CD = 'Product Switch-Electricity'
    AND S_EVT_ACT.EVT_STAT_CD In ('In Progress','Not Started','On Hold')
    AND S_DOC_QUOTE.STAT_CD In ('Completed','Verbal Acceptance','Written Acceptance')
    AND S_DOC_QUOTE.X_OFFER_TYPE = 'Product Switch'
    AND NOT EXISTS (SELECT /*+ unnest */ 'X'
    FROM SIEBEL.S_PROD_INT S_PROD_INT, SIEBEL.S_QUOTE_ITEM S_QUOTE_ITEM
    WHERE S_DOC_QUOTE.ROW_ID = S_QUOTE_ITEM.SD_ID
    AND S_PROD_INT.ROW_ID = S_QUOTE_ITEM.PROD_ID
    AND (S_PROD_INT.NAME Like 'Electricity TRUenergy Business Edge __ %'
    OR S_PROD_INT.NAME Like 'Electricity TRUenergy Business Now __ %'
    OR S_PROD_INT.NAME Like 'Electricity Go for More __ %'
    OR S_PROD_INT.NAME Like 'Electricity Mates Rates __ %'
    OR S_PROD_INT.NAME Like 'Electricity __ Discount for Paying Your Bill by the Due Date' or S_PROD_INT.NAME Like 'Electricity TRUenergy Business Edge ___ %'
    OR S_PROD_INT.NAME Like 'Electricity TRUenergy Business Now ___ %'
    OR S_PROD_INT.NAME Like 'Electricity Go for More ___ %'
    OR S_PROD_INT.NAME Like 'Electricity Mates Rates ___ %'
    OR S_PROD_INT.NAME Like 'Electricity ___ Discount for Paying Your Bill by the Due Date'));
    spool off
    This is what one row looks like;
    "1-UWLHY","Alpha Vic Kelly Kay","Product Switch-Electricity","Not Started","AMBASS_50REBATE","Go Green PKANY-Powercor","QEGS1","GG","QEGS1","GG","","6407421678","8","1-UWLI6","12-JUN-07","Electricity Mates Rates 7% Discount"
    we want
    "1-UWLHY","Alpha Vic Kelly Kay","Product Switch-Electricity","Not Started","AMBASS_50REBATE","Go Green PKANY-Powercor","QEGS1","GG","QEGS1","GG","","6407421678","8","1-UWLI6","12-JUN-07",'Electricity Mates Rates 7% Discount","Gas TRUenergy Business Edge 10% Discount","Electricity 3% Discount for Paying Your Bill by the Due Date"
    I have tried to:
    - create a cursor
    - each column as - ie
    S_PROD_INT.NAME as "EVD",
    S_PROD_INT.NAME as "GVD",
    S_PROD_INT.NAME as "PbDDD"
    but when I try to use them in where "EVD" Like 'etc...'
    error that table does not exist
    I have tried also as
    where 'EVD' Like 'etc...' -- error
    where EVD Like 'etc...' -- error
    - create them as %TYPE variable
    - more
    but keep getting errors
    Any ideas and help will be most appreciated as I have tried and researched all I can think and get my hands on with my limited skills.
    Thanks.
    Regards, Steve

    Unfortunately my skills are not high enough as I obviously don't know where to put the code exaclty.
    I am first just running it on the top part of the script but get the error;
    ORA-00900: invalid SQL statement
    What I am running is; -- Commented
    WITH s_prod_int AS
    SELECT 1 row_id, 'Electricity Mates Rates 7% Discount' name FROM s_prod_int --these were 'FROM dual' originally, I changed to s_prod_int (Received same error regardless whether from dual or s_prod_int)
    UNION ALL
    SELECT 1, 'Gas TRUenergy Business Edge 10% Discount' FROM s_prod_int
    UNION ALL
    SELECT 1, 'Electricity 3% Discount for Paying Your Bill by the Due Date' FROM s_prod_int
    SELECT DISTINCT '"'||
    rtrim(ltrim(S_ORG_EXT.OU_NUM)) || '","' ||
    rtrim(ltrim(S_ORG_EXT.NAME)) || '","' ||
    rtrim(ltrim(S_EVT_ACT.TODO_CD)) || '","' ||
    rtrim(ltrim(S_EVT_ACT.EVT_STAT_CD)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_SOURCE_TYPE)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_TXU_PRICELIST_NAME)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_CLASS_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_PEAKANYTIME_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_PA_CLASS_ELEC)) || '","' ||
    rtrim(ltrim(S_ORG_EXT.X_OTH_ACCOUNT_NUMBER)) || '","' ||
    rtrim(ltrim(S_ADDR_PER.X_NMI_NUM)) || '","' ||
    rtrim(ltrim(S_ADDR_PER.X_NMI_CHECKSUM)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.QUOTE_NUM)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_COOLING_OFF_DATE)) || '","' ||
    rtrim(ltrim(a.name)) ||'","'|| --I assume I am still able to right and left trim
    rtrim(ltrim(b.name)) ||'","'||
    rtrim(ltrim(c.name))||'"' name -- not sure what this name is here for (have ran with and without it here
    FROM SIEBEL.S_ADDR_PER S_ADDR_PER,
    SIEBEL.S_DOC_QUOTE S_DOC_QUOTE,
    SIEBEL.S_EVT_ACT S_EVT_ACT,
    SIEBEL.S_ORG_EXT S_ORG_EXT,
    SIEBEL.S_PRI_LST S_PRI_LST,
    s_prod_int a, -- I assume these needed to go in here
    s_prod_int b,
    s_prod_int c
    SIEBEL.S_QUOTE_ITEM S_QUOTE_ITEM
    WHERE S_EVT_ACT.TARGET_OU_ID = S_ORG_EXT.ROW_ID
    AND S_DOC_QUOTE.ROW_ID = S_QUOTE_ITEM.SD_ID
    AND S_ADDR_PER.ROW_ID = S_ORG_EXT.PR_ADDR_ID
    AND S_PROD_INT.ROW_ID = S_QUOTE_ITEM.PROD_ID
    AND S_ORG_EXT.ROW_ID = S_DOC_QUOTE.TARGET_OU_ID
    AND S_DOC_QUOTE.PRI_LST_ID = S_PRI_LST.ROW_ID
    AND S_EVT_ACT.TODO_CD = 'Product Switch-Electricity'
    AND S_EVT_ACT.EVT_STAT_CD In ('In Progress','Not Started','On Hold')
    AND S_DOC_QUOTE.STAT_CD In ('Completed','Verbal Acceptance','Written Acceptance')
    AND S_DOC_QUOTE.X_OFFER_TYPE = 'Product Switch'
    AND a.NAME LIKE 'Electricity TRUenergy Business Edge%' --Placed all the where part in the original where clause
    OR a.NAME LIKE 'Electricity TRUenergy Business Now%'
    OR a.NAME LIKE 'Electricity Go for More%'
    OR a.NAME LIKE 'Electricity Mates Rates%'
    AND a.row_id = b.row_id
    AND (
    b.NAME LIKE 'Gas TRUenergy Business Edge%'
    OR b.NAME LIKE 'Gas TRUenergy Business Now%'
    OR b.NAME LIKE 'Gas Go for More%'
    OR b.NAME LIKE 'Gas Mates Rates%'
    AND b.row_id = c.row_id
    AND (
    c.NAME LIKE '%Discount for Paying Your Bill by the Due Date'
    NAME -- Not sure what this NAME is for - tried with and without - same error

  • Error Message (Arrow and Exclaimation Mark in Yellow Triangle) Showing on Bottom Right of Some Photos after Merging iPhoto Library into Aperture

    The strange thing is that some of these said photos with an error message have a normal thumbnail and can be opened fine, but the others (most of them) just have an empty space in the thumbnail as if the image can't be found.
    I tried to Locate Referenced Files as Leonie suggested in https://discussions.apple.com/thread/3686982?tstart=0 but got this message 'The Selection Doesn't Have Any Referenced Files', so i presume that's not the issue.
    In the thread mentioned above, Leonie mentioned something about not emptying trash. I did empty my trash recently, and started to think these images may have been poor quality ones i previously deleted in the iPhoto library … but that still doesn't explain why the error currently appears on some images which seem to work fine (these images are ok quality ones and there is no way i would have deleted them in the past).
    Also - the 'Processing' message at the bottom of the browser seems to be spinning endlessly. I just left it for over 10 hours overnight and it's still going. Could this be linked to these error images which it's having a hard time finding/loading?
    Quite baffled at the moment, and would really appreciate any feedback. TIA.
    EDIT:
    I just looked more closely. It appears that most of my folders have duplicates of the same image with exactly the same file name. And all the images with the error message have them on both duplicates (i.e. one on an image that has an empty thumbnail, and one on an image that's fine).
    When i initially tried to import the library, it proceeded half way then failed. After opening the iPhoto library in Aperture first, and then doing the import again, everything worked fine. So, i'm wondering if the images with errors that are empty/blank may be the result of the failed 1st import.
    What's puzzling is why they weren't overwritten (especially since all the file names are exactly the same). When importing the library, i chose 'merge' instead of 'add' when prompted, thinking that would solve it. Obviously not.
    EDIT 2:
    After reflecting on this, i thought one solution may be to:
    a) Find all the error'd images that are empty/blank and delete them, and then
    b) Find and remove all duplicates
    So i followed Leonie's suggestion to create a Smart Album and use the 'File Status is Missing' rule.
    But now, i see that there are images that i imported into Aperture months ago that have the same problem. And the new thing is that there are duplicates with errors where *both* images are visible (whereas for the iPhoto library i just imported, there were dupes where one version was blank and the other was visible and seemingly ok).
    I'm really hoping there is a simple solution to this, and am awaiting some feedback before i try anything else.
    NB. This is a super large (over 100GB) Aperture library that i am trying to consolidate everything into. It is Work In Progress and i was only going to back it up once the import of various iPhoto libraries was done. However, I'm wondering if it's better to just back up first - but if i do it now, the backup will include all these errors and duplicates. What would you guys do?

    UPDATE 2:
    The users in these 2 threads seem to have a similar File Status Not Found issue:
    https://discussions.apple.com/thread/4086569?tstart=0
    https://discussions.apple.com/message/17757686#17757686
    Followed Leonie's advice to look for the (missing) masters inside the Masters folder, and indeed, they were missing. So, that confirms the reason for the error message.
    If this does not work, because you have managed originals, inside the Aperture Library, look for your originals in the Aperture Library Package. Select the Library in the Finder and ctrl-click, then select "Show Package Contents" from the pop-up. In the Finder window that opens, navigate to the folder "Masters". Your missing images should be inside; the folder is structured by date of import.
    Of course, the question is - why the masters for these few images are missing, when the other images in the same project that were imported/merged at the same time are fine.
    Trying to do the library import/merge from iPhoto into Aperture again. Fingers crossed. Will report back on the result.

  • Feature Request:  iTunes to merge the "Song Name" & "Artist" fields

    This is a feature request that i would like to see in a future release of iTunes. The option to merge the "Song Name" & "Artist" fields together. This would be a very valuable option when surfing your iTunes Library thru your iPod, Front Row, or Apple TV.
    Let me explain:
    Not everyone knows at the top of their head who sings a particular song. This is especially true when someone other than the owner of the iTunes Library is browsing through it.
    Let's say that I want to browse my ENTIRE music collection all at once. The easiest way to do this, is by browsing thru the "Songs" list because it creates 1 massive list displaying ALL the songs in the library, without having to jump into different fields. The current problem with this, is, it only lists the name of the song. There are 2 problems with this philosophy. #1 - You must know who sings the songs to have any chance of making this a useful option because the artist is not displayed. #2 - It puts them in alphabetical based on the song name. Once again, not a very useful way to make this option really functional because you will have the Artists all over the map! Keeping the Artist's songs together makes it a much more feasable option.
    The solution, I feel, would be to have iTunes create an "Option" that would allow users like me to make iTunes merge the "Artist" & "Name" fields together. Make it an option so that users who do not see the benefit to this, would not have to use it. By doing this, I could now surf my ENTIRE collection via the "Songs" field in a very logical approach.
    For an example, let's take a song: Artist - "Def Leppard" & Song Name - "Pour Some Sugar On Me". By clicking this option, when browsing thru the "Songs" field, it would now display as: Def Leppard - Pour Some Sugar On Me. This allows me to browse my ENTIRE library while at the same time, keeping "like" songs together, and making it very easy to distinguish whether or not it is a song I want to select. By knowing that Def Leppard is a Rock Artist, it helps to distinguish the song.
    I work for a custom AV integration shop that has put hundreds of music servers into homes. We have been teaching our clients the benefits of this for some time now, with great feedback. The only problem presently, is it requires the users to have to re-edit every single file by putting the Artist's Name & the Song Title into the "Name" field of iTunes. Very time consuming! As well, because you also have the "Artists" name entered in the "Artist" field, you get Front Row displaying the "Artist" name twice, once in the song name, and once in the artist's field.
    Any feedback would be welcomed.
    Regards,
    Trevor

    You might be able to get where you want using Chaotic Software's MediaRage. It can automate and batch tag editing, including building a Title tag that combines Artist and Title and, to possibly address you other problem, blanking the Artist tag.
    MediaRage is not expensive and it is very powerful, you can even define regexs for how to parse tags.
    HTH. - Tom

Maybe you are looking for

  • Tomboy has %100 CPU usage :S

    I started using Tomboy but have a big problem with it.. When I log in to my session of GNOME, Tomboy starts and starts also using %100 CPU.. It also starts not minimized to the tray... I think that the applet that comes out of the box with GNOME is f

  • Budget checking document type wise

    Dear sapient I have mapped fund management as per the business scenario but i need some solution for the following point. Can budget checking mapped as per the PR docuemnt type . i checked in derivatio rule but docment type is available as per the fi

  • Trouble Combining 2 QT Movies Into One

    Help! I have QT Pro but this is driving me nuts! I am using select all, copy and then paste to combine 2 separate 20 second QT movies into one 40 second consolidated movie. The trouble is that when the play head reaches the beginning of the second mo

  • Changing source system reference

    Hi,      When I transport from dev to Q, how can I change the source system assignments to Q system? I guess I have to change the assignments as they are referencing dev source system in development and should reference Q when they come to Q. Thanks.

  • Delay in broadband activation

    I ordered BT broadband on the 24th November I was given the activation date of the 15th December, originally I was supposed to have an engineer out on the 15th however the day enforce this I checked the online status of my order and it said the engin