CATS_DA and CADO different column fields

Hy friends,
i have problem with CATS_DA when i log on in different language in system. I create z field in CATSDB - zccode. When i create report in English version everything is fine - field zccode show results. When i logon in Bulgarian language in system field zccode is not there. Other think when open report CADO - old of CATS_DA the filed zccode show in every language.
And now is the question where field zccode is language dependent ?

Hi,
Table maintenance generator is an auto generated module pool program.
Whenever you change anything in your table delete the maintenance generator it will ask for TR give TR and regenerate it (again give TR ) now transport it to QA it will work fine.
One common mistake done by developer is they do not give or give some local TR (which do not get transported)  while deleting the maintenanc generatior and it cause the problem you are facing.
Hope this helps.
Regards
Bikas

Similar Messages

  • Different Column Fields - Inbox & Sent

    Hello,
    I've recently converted from Windows to Mac.  I successfully setup my Exchange account in Mail 5.0.  I use several devices to send mail from so not all are coming from one mac.
    Under the Mailboxes header in the side bar, I have my generic "Inbox" & "Sent" folders which are displaying fine.  The Inbox has the "From" column and "Sent" has the "To" column.  This Sent folder only shows emails sent from this specific machine.  Again, I use 3 different macs.
    When I go down to the "Sent" folder that shows all emails sent from my Exchange account, it has the "From" column.  Obviously everything came from me so it's useless.  When I click to add the "To" column it adds it here but it also adds it to the generic "Inbox" folder.
    Hopefully this isn't difficult to understand and I explained it clearly.  Basically I want to customize the columns for the indivdual folders and not have the options I set for one folder go across all folders.
    Thanks.

    Column view settings are stored globally for all mailboxes. You cannot change them for one mailbox without also affecting the rest, except Mail allows you to have slightly different From/To and Date Sent/Date Received settings for Sent.

  • Drop Column Field and Drop Row Fields in the Details Field area in the Cube Browser of BIDS/SSDT 2012

    Hello. When I right click a cube in the solution explorer and click browse, I am presented with a Details field area which doesn't have "Drop Row Fields" area like in BIDS 2008, and doesn't have "Drop Column Fields" area like in BIDS. It just has one details
    area with the message "Drag levels or measures here to add to the query".
    How do I include the  "Drop Row Fields" area and the  "Drop Column Fields" area in this Details area so it can be like 2008? 

    I am using MDX query to build SSRS report.
    How do i get MDX query from Excel ?
    Hi Vishal,
    We can use "OLAP PivotTable Extension" to get MDX query in Excel, please download it from:
    http://olappivottableextend.codeplex.com/
    In addition, I would suggest you open a new case if you have any more questiosn.
    Regards,
    Elvis Long
    TechNet Community Support

  • Changing the Column Header and Hiding the Column dynamically???

    Hi friends..
    I'm new to OBIEE field. I'm working in a OBIEE project that requires to dynamically change the column header, and dynamically hide the column depending on the prompt value.
    I know we can dynamically change the table header using the presentation variable but I couldn't do that same thing with column header.
    I searched some forums that suggest to use java script for this purpose but I'm not able to do the same also. If anyone had same issue before please help.

    toony, I'm not sure it's possible to do all that you want exactly the way you want, but here are some ideas you can pursue.
    To dynamically change column headers without javascript, check this blog out...
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
    As far as dynamically hiding a column, I don't think you can do this, but since you don't provide any details on how the PV is supposed to hide a column based on the value, are you talking about hiding a column for one PV value and another (different) column for a different PV value? Or are you talking about hiding one column when a PV has certain values and displaying it when the PV has a different set of values?
    I have managed to create both scenarios via a work-around, but the procedures require some writing so I don't want to put both. Please detail how you want your PV to "hide" a column or columns.
    P.S. I don't think column selectors will do the trick for you. Basically column selectors work like this: Say you have a report using Sales Region ID, Region Name, and Sales. Now let's say you want the user to choose if he/she wants to see annual sales, or quarter sales or weekly sales, etc. The column selector view would allow you to put the various columns (Year Sales, Quarter Sales, Weekly Sales) as an option the user can select. Once selected, the sales figure will change for the time period selected. For an example of how this is done, check out the section in this "Oracle by Example" link.
    Waited too long to publish this... Madan beat me to it, so there is some overlap here...
    http://www.oracle.com/technology/obe/obe_bi/bi_ee_1013/saw/saw.html
    Edited by: LC143 on Oct 27, 2008 9:21 AM

  • Write arrays into a text file in different columns at different times

    Hi,
              I have a problem write data into a text file. I want to write 4 1D arrays into a text file. The problem is that I need to write it at different time and in different column (in other word, not only append the arrays).
    Do you have an idea to solve my problem?
    Thank you

    A file is long a linear string of data (text). In order ro insert columns, you need to rewrite the entire file, because colums are interlaced over the entire lenght of the file.
    So:
    read file into 2D array
    insert columns using array operations
    write resulting 2D array to file again.
    (Only if your colums are guaranteed to be fixed width AND you know the final number of colums, you could write the missing columns as spaces and then overwrite later. Still, it will be painful and inefficient, because column data are not adjacent in the file.)
    LabVIEW Champion . Do more with less code and in less time .

  • Different conditions for different columns

    Hi,
    I have two tables and both have 3 common columns. I have to write a query joining the two tables and get different columns with different conditions.
    For e.g., I have the tables test and test1.
    create table test (a1 varchar(10), a2 varchar(10), a3 varchar(10), a4 date, a5 number, a6 number, a7 number, a8 number);
    create table test1 (a1 varchar(10), a2 varchar(10), a3 varchar(10));
    insert into test1 values('abc', 'a', 'z');
    insert into test1 values('xyz', 'b', 'y');
    insert into test values('abc', 'a', 'x', trunc(sysdate,'MM'), 100, 200, 300, 400);
    insert into test values('abc', 'b', 'z', trunc(sysdate,'MM'), 567, 4778, 4234, 6767);
    insert into test values('xyz', 'a', 'y', trunc(sysdate,'MM'), 5467, 2134, 5678, 8332);
    insert into test values('xyz', 'b', 'z', trunc(sysdate,'MM'), 3534, 744, 678547, 46);
    insert into test values('abc', 'a', 'x', trunc(add_months(sysdate,-1),'MM'), 700, 800, 900, 600);
    insert into test values('abc', 'b', 'z', trunc(add_months(sysdate,-1),'MM'), 565477, 474578, 4456234, 226767);
    insert into test values('xyz', 'a', 'y', trunc(add_months(sysdate,-1),'MM'), 235467, 2342134, 255678, 258332);
    insert into test values('xyz', 'b', 'z', trunc(add_months(sysdate,-1),'MM'), 324534, 25744, 678547, 78846);
    select * from test1;
    A1     A2     A3
    abc     a     z
    xyz     b     y
    select * from test;
    A1     A2     A3     A4                     A5     A6     A7     A8
    abc     a     x     05/01/2010 00:00:00     100     200     300     400
    abc     b     z     05/01/2010 00:00:00     567     4,778     4,234     6,767
    xyz     a     y     05/01/2010 00:00:00     5,467     2,134     5,678     8,332
    xyz     b     z     05/01/2010 00:00:00     3,534     744     678,547     46
    abc     a     x     04/01/2010 00:00:00     700     800     900     600
    abc     b     z     04/01/2010 00:00:00     565,477     474,578     4,456,234     226,767
    xyz     a     y     04/01/2010 00:00:00     235,467     2,342,134     255,678     258,332
    xyz     b     z     04/01/2010 00:00:00     324,534     25,744     678,547     78,846I have to write a query to get values for columns a1, a4, a5, a6, a7 and a8. For each distinct month fro mthe column a4, the values for columns a1, a4 a5 and a6 should be based on the condition test1.a1=test.a1 and test1.a2=test.a2. The condition for columns a7 and a8 should be test1.a1=test.a1 and test1.a3=test.a3.
    How can I do this?
    Thanks,
    Machaan

    remove the 4th join and only duplicate test;
    SQL> ed
    Wrote file afiedt.buf
      1  select distinct
      2  case
      3          when t11a1 is null then
      4            t12a1
      5          else
      6            t11a1
      7        end as a1
      8        ,case
      9          when t11a4 is null then
    10            t12a4
    11          else
    12            t11a4
    13         end as a4
    14        ,case
    15          when t11a5 is null then
    16            t12a5
    17          else
    18            t11a5
    19         end as a5
    20  from (
    21        select t11.a1 as t11a1
    22              ,t11.a2 as t11a2
    23              ,t11.a3 as t11a3
    24              ,t11.a4 as t11a4
    25              ,t11.a5 as t11a5
    26              ,t11.a6 as t11a6
    27              ,t11.a7 as t11a7
    28              ,t11.a8 as t11a8
    29              ,t12.a1 as t12a1
    30              ,t12.a2 as t12a2
    31              ,t12.a3 as t12a3
    32              ,t12.a4 as t12a4
    33              ,t12.a5 as t12a5
    34              ,t12.a6 as t12a6
    35              ,t12.a7 as t12a7
    36              ,t12.a8 as t12a8
    37        from test1 t1
    38            ,test  t11
    39            ,test  t12
    40        where t1.a1 = t11.a1
    41        and   t1.a2 = t11.a2
    42        and   t1.a3 = t12.a3
    43* )
    SQL>
    SQL> /
    A1         A4                A5
    xyz        01-APR-10     324534
    xyz        01-MAY-10       3534
    abc        01-APR-10        700
    abc        01-MAY-10        100

  • How To UPLOAD a DATA (.DAT) fiel from PC to internal table and then split it into the data different columns

    Hi all,
    I am new to ABAP Development. I need to upload a .DAT file (the file doesn#t have any proper structure-- Please find the .DAT file in the attachment). After uploading the DATA (.DAT) fiel I need to split in into different columns. Refering the attached .DAT fiel the fields in bracets like:
    [Arbeitstag],  [Pecunia], [Mita], [Kunde], [Auftrag] and  [Position] are different fields that need to be arranged in columns in an internal table. this .DAT fiel which I want to upload and then SPLIT it into various fields will will treated as MASTER DATA table for further programming. The program that I had written is as below. Also please refer the attached .DAT table.
    Please if any one could help me. i searched a lot in different forums but couldn't find me  a solution. Also note that the attached fiel is in text (.txt) format here but in real situation the same fiel is in DATA (.DAT) format.
    *& Report  ZDEMO_ZEITERFASSUNG9
    REPORT  ZDEMO_ZEITERFASSUNG9.
    Types: Begin of ttab,
            Rec(1000) type c,
           End of ttab.
    DATA: itab  type table of ttab.
    DATA: wa_tab type ttab.
    DATA: file_str type string.
    Parameters: p_file type localfile.
    At selection-screen on value-request for p_file.
                                           CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
                                            EXPORTING
    *                                          PROGRAM_NAME        = SYST-REPID
    *                                          DYNPRO_NUMBER       = SYST-DYNNR
    *                                          FIELD_NAME          = ' '
                                               STATIC              = 'X'
    *                                          MASK                = ' '
                                             CHANGING
                                               file_name           = p_file.
    *                                        EXCEPTIONS
    *                                          MASK_TOO_LONG       = 1
    *                                          OTHERS              = 2
    Start-of-Selection.
      file_str = P_file.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                      = '\\10.10.1.92\Volume_1\_projekte\Zeiterfassung-SAP\BUP_ZEIT.DAT'   " This the file  source address
          FILETYPE                      = 'DAT'
          HAS_FIELD_SEPARATOR           = ';'
    *     HEADER_LENGTH                 = 0
    *     READ_BY_LINE                  = 'X'
    *     DAT_MODE                      = ' '
    *     CODEPAGE                      = ' '
    *     IGNORE_CERR                   = ABAP_TRUE
    *     REPLACEMENT                   = '#'
    *     CHECK_BOM                     = ' '
    *     VIRUS_SCAN_PROFILE            =
    *     NO_AUTH_CHECK                 = ' '
    *   IMPORTING
    *     FILELENGTH                    =
    *     HEADER                        =
        tables
          data_tab                      = itab
       EXCEPTIONS
         FILE_OPEN_ERROR               = 1
         FILE_READ_ERROR               = 2
         NO_BATCH                      = 3
         GUI_REFUSE_FILETRANSFER       = 4
         INVALID_TYPE                  = 5
         NO_AUTHORITY                  = 6
         UNKNOWN_ERROR                 = 7
         BAD_DATA_FORMAT               = 8
         HEADER_NOT_ALLOWED            = 9
         SEPARATOR_NOT_ALLOWED         = 10
         HEADER_TOO_LONG               = 11
         UNKNOWN_DP_ERROR              = 12
         ACCESS_DENIED                 = 13
         DP_OUT_OF_MEMORY              = 14
         DISK_FULL                     = 15
         DP_TIMEOUT                    = 16
         OTHERS                        = 17
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP at itab into wa_tab.
            WRITE: / wa_tab.
      ENDLOOP.
    I will be grateful to all you experts for ur inputs
    regards
    Chandan Singh

    For every Auftrag, there are multiple Position entries.
    Rest of the blocks don't seems to have any relation.
    So you can check this code to see how internal table lt_str is built whose first 3 fields have data contained in Auftrag, and next 3 fields have Position data. The structure is flat, assuming that every Position record is related to preceding Auftrag.
    Try out this snippet.
    DATA lt_data TYPE TABLE OF string.
    DATA lv_data TYPE string.
    CALL METHOD cl_gui_frontend_services=>gui_upload
      EXPORTING
        filename = 'C:\temp\test.txt'
      CHANGING
        data_tab = lt_data
      EXCEPTIONS
        OTHERS   = 19.
    CHECK sy-subrc EQ 0.
    TYPES:
    BEGIN OF ty_str,
      a1 TYPE string,
      a2 TYPE string,
      a3 TYPE string,
      p1 TYPE string,
      p2 TYPE string,
      p3 TYPE string,
    END OF ty_str.
    DATA: lt_str TYPE TABLE OF ty_str,
          ls_str TYPE ty_str,
          lv_block TYPE string,
          lv_flag TYPE boolean.
    LOOP AT lt_data INTO lv_data.
      CASE lv_data.
        WHEN '[Version]' OR '[StdSatz]' OR '[Arbeitstag]' OR '[Pecunia]'
             OR '[Mita]' OR '[Kunde]' OR '[Auftrag]' OR '[Position]'.
          lv_block = lv_data.
          lv_flag = abap_false.
        WHEN OTHERS.
          lv_flag = abap_true.
      ENDCASE.
      CHECK lv_flag EQ abap_true.
      CASE lv_block.
        WHEN '[Auftrag]'.
          SPLIT lv_data AT ';' INTO ls_str-a1 ls_str-a2 ls_str-a3.
        WHEN '[Position]'.
          SPLIT lv_data AT ';' INTO ls_str-p1 ls_str-p2 ls_str-p3.
          APPEND ls_str TO lt_str.
      ENDCASE.
    ENDLOOP.

  • How to show value and unit in different columns

    Hi All,
    I need ABAP help for the below requirement in BI7.0
    Data source contains  the field Amount in local currency (Data source is flat file of CSV format)
    Amount in local currency
           1000  INR
           2000  INR
           1000  GBP
           2000  EUR
    I have to get this value in target like below( value and unit should be in different columns)
    Amount in local currency              0currency
           1000                                           INR
           2000                                           INR
           1000                                           GBP
           2000                                           EUR
    Can any one help me how to declare the data type for  Amount in local currency and how to show this value in two columns in the target.
    Thanks,
    kishore.

    TYPES:BEGIN OF ty_stru,
      s1 TYPE string,
    END OF ty_stru,
    BEGIN OF ty_stru1,
      s2 TYPE string,
      s3 TYPE string,
      END OF ty_stru1.
    DATA:itab TYPE TABLE OF ty_stru,
          wa LIKE LINE OF itab.
    DATA:itab1 TYPE TABLE OF ty_stru1,
         wa1 LIKE LINE OF itab1.
    START-OF-SELECTION.
    "--Input--
    In input 1000 and USD having space
      wa-s1 = '1000 USD'.
       APPEND wa TO itab.
      wa-s1 = '1000 INR'.
       APPEND wa TO itab.
      wa-s1 = '1000 EUR'.
      APPEND wa TO itab.
    "--Input--
      LOOP AT itab INTO wa.
    SPLIT wa-s1 AT space INTO  wa1-s2 wa1-s3.*------> split command
    APPEND  wa1 TO itab1.*---------------->splited value store into another internal table
      ENDLOOP.
    "--Display--
      LOOP AT itab1 inTO wa1.
        WRITE: wa1-s2,
               wa1-s3.
      ENDLOOP.
    "--Display--
    Output:
    1000 USD
    1000 INR
    1000 EUR
    This is simple prgram for split a string into two different string based on space
    regards
    Dharma
    Edited by: dharma raj on Aug 19, 2009 2:01 PM

  • Parse string into different column and optimization

    We are in process of building an audit process for any changes that occur automatically or manually by the user on some of the table data. To do this we have two options:
    1. Have master table to store the audit event summary and a detail table to store each column change with old and new values. Something like:
    CREATE TABLE TEST_ADT_DTL
      EVNT_ID      NUMBER,
      COL_NAME     VARCHAR2(1000),
      OLD_COL_VAL     VARCHAR2(1000),
      NEW_COL_VAL     VARCHAR2(1000)
    );but this approach has some processing overhead since for the changes to each record there will be multiple records based on number of columns updated. If we are loading 40K transaction twice a month, and the changes are almost 30-40% so the detail table will grow considerably.
    2. To have the detail table with one column that will have a concatenated string of changes with field name, old and new values.
    CREATE TABLE TEST_ADT_EVNT
      EVNT_ID        NUMBER,
      TBL_NAME       VARCHAR2(100),
      OPER_CD        VARCHAR2(1),
      USR_ID         VARCHAR2(10),
      ACT_DT         DATE,
      PK_STRNG_VAL   VARCHAR2(100),
      CMNT_TXT       VARCHAR2(1000) 
    CREATE TABLE TEST_ADT_DTL
      EVNT_ID      NUMBER,
      ADT_LOG     VARCHAR2(1000)
    INSERT INTO TEST_ADT_EVNT VALUES (1, 'CUSTOMER', 'A', 'ABC', SYSDATE, 'CUS0001', 'SOME COMMENT');
    INSERT INTO TEST_ADT_EVNT VALUES (2, 'CUSTOMER', 'U', 'ABC', SYSDATE, 'CUS0001', 'SOME COMMENT');
    INSERT INTO TEST_ADT_EVNT VALUES (3, 'ORDER', 'A', 'XYZ', SYSDATE, 'CUS0002', 'SOME COMMENT');
    INSERT INTO TEST_ADT_EVNT VALUES (4, 'ORDER', 'U', 'EFG', SYSDATE, 'CUS0002', 'SOME COMMENT');
    INSERT INTO TEST_ADT_EVNT VALUES (5, 'ORDER', 'U', 'XYZ', SYSDATE, 'CUS0002', 'SOME COMMENT');
    INSERT INTO TEST_ADT_DTL VALUES (2, 'FIELD:CITY,OLD:AVENEL,NEW:EDISON;FIELD:ZIP,OLD:07001,NEW:07056;');
    INSERT INTO TEST_ADT_DTL VALUES (4, 'FIELD:ADDRESS,OLD:234 ROGER ST,NEW:124 WEST FIELD AVE;FIELD:STATE,OLD:NJ,NEW:NY;FIELD:PHONE,OLD:,NEW:2012230912;');
    INSERT INTO TEST_ADT_DTL VALUES (5, 'FIELD:MID_NAME,OLD:,NEW:JASON;FIELD:ADDRESS,OLD:,NEW:3 COURT CT;');
    COMMIT;I want to know if we want to generate a report for audit log, how can I display the data from detail table in columns. I mean how to parse the ADT_LOG column to show the data in three different columns like:
    FIELD     OLD         NEW
    CITY     AVENEL    EDISON
    ZIP       07001      07056
    .along with the columns from EVNT table.
    And, want to know which approach would be better.

    hey I think I finally got it using the model clause.
    not sure if this will be faster or not.
    you can increase the number of iterations if you are not hitting them all,
    ( the lower your iteration number the faster this will run)
    select adt_log, field, old, new from
    with TEST_ADT_DTL as
    (select 2 evnt_id, 'FIELD:CITY,OLD:AVENEL,NEW:EDISON;FIELD:ZIP,OLD:07001,NEW:07056;' ADT_LOG FROM DUAL UNION
    select 4, 'FIELD:ADDRESS,OLD:234 ROGER ST,NEW:124 WEST FIELD AVE;FIELD:STATE,OLD:NJ,NEW:NY;FIELD:PHONE,OLD:,NEW:2012230912;' from dual union
    select 5, 'FIELD:MID_NAME,OLD:,NEW:JASON;FIELD:ADDRESS,OLD:,NEW:3 COURT CT;' from dual
    select evnt_id, adt_log, field, old, new  from test_adt_dtl
    model return updated rows
    partition by (evnt_id)
    dimension by ( 0 d)
    measures (adt_log, adt_log field, adt_log old, adt_log new, 0 it_num )
    rules iterate (50) -- until ?
    adt_log[any] = adt_log[0],
    field[0] = substr(adt_log[0], instr(adt_log[0],'FIELD',1,1)+6, instr(adt_log[0],',',1,1) - instr(adt_log[0],'FIELD',1,1)-6),
    old[0] =   substr(adt_log[0], instr(adt_log[0],'OLD',1,1)+4, instr(adt_log[0],',',1,2) - instr(adt_log[0],'OLD',1,1)-4),
    new[0] =   substr(adt_log[0], instr(adt_log[0],'NEW',1,1)+4, instr(adt_log[0],';',1,1) - instr(adt_log[0],'NEW',1,1)-4),
    field[iteration_number ] =    substr(adt_log[0],
                                         instr(adt_log[0],'FIELD:',1,iteration_number + 1 ) + 6,
                                         (instr(adt_log[0],',',( instr(adt_log[0],'FIELD:',1,iteration_number + 1 ) + 6 ),1)
                                         (  instr(adt_log[0],'FIELD:',1,iteration_number + 1 ) + 6))
    old[iteration_number ] =    substr(adt_log[0],
                                         instr(adt_log[0],'OLD:',1,iteration_number + 1 ) + 4,
                                         (instr(adt_log[0],',',( instr(adt_log[0],'OLD:',1,iteration_number + 1 ) + 4 ),1)
                                         (  instr(adt_log[0],'OLD:',1,iteration_number + 1 ) + 4))
    new[iteration_number]  =    substr(adt_log[0],
                                         instr(adt_log[0],'NEW:',1,iteration_number + 1 ) + 4,
                                           (instr(adt_log[0],';',1,iteration_number + 1)
                                           (instr(adt_log[0],'NEW:',1,iteration_number + 1 ) + 4)
    order by evnt_id, it_num
    where new is not nullEdited by: pollywog on Apr 13, 2010 10:28 AM

  • Displaying one field over 5 different columns with different criteria

    Post Author: new_crystal
    CA Forum: Crystal Reports
    I am new to Crystal and need some help urgently..
    I saw you answering almost each n every question on Crystal asked in the forum...thats why sending you my question in a message...I have also posted it on the forum
    Here is what I want:
    I am creating a report which has a xml data source.
    I have a field named fieldvalue in the xml, I need to present this fieldvalue in a column format based on the name of the column heading which is another field in the database called fielddata
    here is what i want
    fielddata1     fielddata2    fielddata3 .......
    fieldvalue1    fieldvalue2   fieldvalue3......
    i have dragged the fieldvalue 3 times in the report and applied different formula for each one of them
    here is the eg. of the formula
    if ( = "A" ) then
    but it is not giving me the correct values pulled from the data source. for the first column it is pulling correctly but for the rest of the columns it is giving values as 0's.
    Thanks in Advance

    Post Author: pvierheilig
    CA Forum: Crystal Reports
    Hello -
    Can't you set the group to be on the category?  Selecting the product name in the record selection formula will present only those product (as opposed to categories).
    A subreport, as suggested, will work as well, but your stated record selection will continue to produce the same results - check that, too.  Additionally, you could group on the category and add a group 'b' section (Section Expert; see the Help file).

  • How to get multiple records in one row and different column

    Hi All,
    I am using oracle database 11g
    and i have a two tables table_1, table_2
    table_1 having columns
    emp_no
    first_name
    middle_name
    last_name
    email
    and table_2 having columns
    emp_no
    phone_type
    phone_number
    and having entires
    emp_no phone_type phone_number
    1001 MOB 9451421452
    1001 WEMG 235153654
    1001 EMG 652341536
    1002 MOB 9987526312
    1003 WEMG 5332621456
    1004 EMG 59612356
    Now i want the output of values with phone type as MOB or WEMG in a single row with different columns
    emp_no first_name middle_name last_name email mobile officeno
    1001 mark null k [email protected] 9451421452 235153654
    1002 john cena gary [email protected] 9987526312 null
    1003 dany null craig [email protected] null 5332621456
    1004 donald finn sian [email protected] null null
    can i have any inputs to achive this???
    Regards
    $sid

    Frank Kulash wrote:
    sonething like this:Frank, you missed aggregate function (pivot requires one). However main thing is it will cause ORA-01748:
    with table_1 as (
                     select 1001 emp_no,'mark' first_name,null middle_name,'k'last_name,'[email protected]' email from dual union all
                     select 1002,'john','cena','gary','[email protected]' from dual union all
                     select 1003,'dany',null,'craig','[email protected] null' from dual union all
                     select 1004,'donald','finn','sian','[email protected]' from dual
         table_2 as (
                     select 1001 emp_no,'MOB' phone_type,9451421452 phone_number from dual union all
                     select 1001,'WEMG',235153654 from dual union all
                     select 1001,'EMG',652341536 from dual union all
                     select 1002,'MOB',9987526312 from dual union all
                     select 1003,'WEMG',5332621456 from dual union all
                     select 1004,'EMG',59612356 from dual
    SELECT     *
    FROM     table_1      t1
    JOIN     table_2      t2  ON  t1.emp_no = t2.emp_no
    PIVOT     (    max(t2.phone_number)
         FOR  t2.phone_type  IN  ( 'MOB'   AS mob
                                 , 'WEMG'  AS wemg
            FOR  t2.phone_type  IN  ( 'MOB'   AS mob
    ERROR at line 19:
    ORA-01748: only simple column names allowed hereYou need to:
    with table_1 as (
                     select 1001 emp_no,'mark' first_name,null middle_name,'k' last_name,'[email protected]' email from dual union all
                     select 1002,'john','cena','gary','[email protected]' from dual union all
                     select 1003,'dany',null,'craig','[email protected] null' from dual union all
                     select 1004,'donald','finn','sian','[email protected]' from dual
         table_2 as (
                     select 1001 emp_no,'MOB' phone_type,9451421452 phone_number from dual union all
                     select 1001,'WEMG',235153654 from dual union all
                     select 1001,'EMG',652341536 from dual union all
                     select 1002,'MOB',9987526312 from dual union all
                     select 1003,'WEMG',5332621456 from dual union all
                     select 1004,'EMG',59612356 from dual
         table_3 as (
                     select  t1.emp_no,first_name,middle_name,last_name,email,
                             phone_type,phone_number
                       FROM     table_1      t1
                       LEFT JOIN     table_2      t2  ON  t1.emp_no = t2.emp_no
    SELECT     *
    FROM     table_3
    PIVOT     (    max(phone_number)
         FOR  phone_type  IN  ( 'MOB'   AS mob
                                 , 'WEMG'  AS wemg
        EMP_NO FIRST_ MIDD LAST_ EMAIL                     MOB       WEMG
          1004 donald finn sian  [email protected]
          1003 dany        craig [email protected] null            5332621456
          1001 mark        k     [email protected]      9451421452  235153654
          1002 john   cena gary  [email protected]    9987526312
    SQL>SY.

  • We are trying to do a Quick payment from payment workbench and getting 'FRM-41830: List of values contains no entries' error for payment document column/field. Payment document setup looks good. Not sure what the issue is.

    We are trying to do a Quick payment from payment workbench and getting 'FRM-41830: List of values contains no entries' error for payment document column/field. Payment document setup looks good. Not sure what the issue is.

    Already gone through following three notes but didn't found resolution.
    APXPAWKB: FRM-41830 When Clicking on Payment Document LOV (Doc ID 1081305.1)
    R12: APXPAWKB: Payment Document Lov Is Empty When Entering A Payment (Doc ID 857587.1)
    R12: Payment Workbench Error: FRM-41830 List Of Values Contains No Entries (APXPAWKB.FMB) (Doc ID 1323875.1)

  • MS Project 2010 cut and paste 255 characters in notes column field into MS Excel

    I need to copy and paste notes fields in MS Project 2010 which have more than 255 characters into MS Excel and I want all the text to paste into MS Excel (ie >255 characters). I need to be able to do this for at least a text column and the notes column
    as I can do a lookup from there. So to recap I need to copy and paste the contents of 2 columns including the notes column into Excel and paste all the text >255 characters. I know how to do this cell by cell however this is not feasible for a large
    plan on a weekly basis. It sounds so simple if you know how!

    John, 
    I agree that note field will accept more than 255 characters. May be in my comment i have written "Both" that is confusing. Limit is only for text column.
    Some time note field  may give some issues refer to http://support.microsoft.com/kb/169726
    kirtesh

  • Different columns and arrangements in different Folders

    I arrange my mail into various folders. For various reasons, I need to have different columns visible and different arrangements of columns in different folders (Kind of like needing From: in InBox and To: in sent items.)
    I can't figure out how to set this, by folder and have it 1) stick and 2) not impact other folders.
    Help!
    Thanks
    John

    must have not worn my glasses when i first checked that feature long time ago, so sorry for the erroneous info in my previous post, and no you cannot change column view whether within one email account or across email accounts. yikes, need to be more careful when i send info on these pages

  • How to make a particular row and column field editable in ALV

    Hi Experts,
    I have a requirement to make a particular row and column field editable in ALV output. Like i need to make 2nd row - 4th column editable of ALV output.
    Kindly help me out to solve this.
    Any help would be appreciated.
    Thanks,
    Ashutosh

    Hi Ashutosh,
    please check below, explained by some experts.
    In the below link  editing two columns MOD_RANK and TECH_RANK.
    These two columns will be in edit mode once after selecting the required record
    Editing single cell in a row of ALV table
    And also look for more info
    http://scn.sap.com/thread/884976

Maybe you are looking for

  • How do I use a xml file in iDVD

    Hello All, Hopefully someone can help.  I'm new to Mac, Final Cut Pro (Trial), and iDVD 09.  I a making a project with several chapters in FCPX and would like to use iDVD for the menus.  The only export option I have in FCPX I have is Export XML.  I

  • Exception Error Loading Adobe X

    When Adobe Reader loads, whether directly from Start Menu or indirectly through Internet Explorer link or Outlook file attachment link, the following exception error occurs AcroRd32.exe - Application Error X The exception unknown software exception (

  • The portal url appears in external links in XML Forms

    Hi, I have created an XML Forms application that should contain a link to an external webpage. In the Edit view I have created 2 text fields. 1 for the url and 1 urlname for the name of the link. In the Show view I have created a link (Lable)  with:

  • Formatting spry output

    Hi! So far with the great help of altruistic gramps, I managed to create a nice master/detail spry page connecting to a mysql database using linecraft's spry_utility. However, I still have a problem decoding the data coming from the database server.

  • Order to follow : books

    hi everyone , I am having these books with me for performance tuning 1. Carry Milsap's, 'Oracle Performance' 2. K. Gopal's 'Oracle Wait Inferfaces'. 3. Jonathan's, 'CBO Fundamentals'. 4-Oracle Database 10g Performance Tuning Tips & Techniques by Rich