Need output as below

WITH T1
     AS (SELECT 7532 pkey,2 events,TO_DATE ('12/11/2012', 'mm/dd/yyyy') dt,'Dept' code FROM DUAL
         UNION ALL
         SELECT 8101,3,TO_DATE ('12/9/2013', 'mm/dd/yyyy'),'Emp' FROM DUAL
         UNION ALL
         SELECT 8102,4,TO_DATE ('12/16/2013', 'mm/dd/yyyy'),'Dept' FROM DUAL)
SELECT pkey, events, dt, code
  FROM t1;
Output:
pkey  events  dt            code
7532    2    12/11/2012     Dept
8101    3    12/9/2013      Emp
8102    4    12/16/2013     Dept
value column should be derived as below:_
Starting_letter_of_code+year_of_dt+week_of_year_in_dt+loop_sequence_of_event
for pkey 7532 value is derived as below
Starting letter of code is D
year of dt is 12
week of dt in year is 50
no of events are 2
so I should get two records for pkey 7532
i.e., D125001 and D125002
Expected output:
pkey    events    dt        code    value
7532       2    12/11/2012  Dept     D125001
7532       2    12/11/2012  Dept     D125002
8101       3    12/9/2013   Emp      E134901
8101       3    12/9/2013   Emp      E134902
8101       3    12/9/2013   Emp      E134903
8102       4    12/16/2013  Dept     D135001
8102       4    12/16/2013  Dept     D135002
8102       4    12/16/2013  Dept     D135003
8102       4    12/16/2013  Dept     D135004
am currently getting output as
present output:                           
pkey  events  dt            code     value
7532    2    12/11/2012     Dept     D1250
8101    3    12/9/2013      Emp      E1349
8102    4    12/16/2013     Dept     D1350
Query Used:
WITH T1
     AS (SELECT 7532 pkey,2 events,TO_DATE ('12/11/2012', 'mm/dd/yyyy') dt,'Dept' code FROM DUAL
         UNION ALL
         SELECT 8101,3,TO_DATE ('12/9/2013', 'mm/dd/yyyy'),'Emp' FROM DUAL
         UNION ALL
         SELECT 8102,4,TO_DATE ('12/16/2013', 'mm/dd/yyyy'),'Dept' FROM DUAL)
SELECT pkey, events, dt, code,
       NVL (REGEXP_SUBSTR (code,'(D)(ept)',1,1,'i',1),
            REGEXP_SUBSTR (code,'(E)(mp)',1,1,'i',1)
       || TO_CHAR (dt, 'YY')
       || TO_CHAR (dt, 'WW')
          val
  FROM t1;Edited by: NSK2KSN on Dec 21, 2012 12:05 PM

Used Analytic Function 'ROW_NUMBER()' to get the consecutive row numbers inside a group.
please check this...
WITH T1
     AS (SELECT 7532 pkey,2 events,TO_DATE ('12/11/2012', 'mm/dd/yyyy') dt,'Dept' code FROM DUAL
         UNION ALL
         SELECT 8101,3,TO_DATE ('12/9/2013', 'mm/dd/yyyy'),'Emp' FROM DUAL
         UNION ALL
         SELECT 8102,4,TO_DATE ('12/16/2013', 'mm/dd/yyyy'),'Dept' FROM DUAL
         UNION ALL
         SELECT 8101,3,TO_DATE ('12/9/2013', 'mm/dd/yyyy'),'Emp' FROM DUAL
         UNION ALL
         SELECT 8101,3,TO_DATE ('12/9/2013', 'mm/dd/yyyy'),'Emp' FROM DUAL
         UNION ALL
         SELECT 8102,4,TO_DATE ('12/16/2013', 'mm/dd/yyyy'),'Dept' FROM DUAL
         UNION ALL
         SELECT 8102,4,TO_DATE ('12/16/2013', 'mm/dd/yyyy'),'Dept' FROM DUAL
         UNION ALL
         SELECT 8102,4,TO_DATE ('12/16/2013', 'mm/dd/yyyy'),'Dept' FROM DUAL
         UNION ALL
         SELECT 8102,4,TO_DATE ('12/16/2013', 'mm/dd/yyyy'),'Dept' FROM DUAL)
SELECT pkey, events, dt, code,
              substr(code,1,1)||
              to_char(dt,'yy')||
              to_char(dt,'ww')||
              lpad(row_number() over (partition by pkey order by pkey),2,'0')
  FROM t1;gives7532     2     12-11-2012     Dept     D125001
8101     3     12-9-2013     Emp     E134901
8101     3     12-9-2013     Emp     E134902
8101     3     12-9-2013     Emp     E134903
8102     4     12-16-2013     Dept     D135001
8102     4     12-16-2013     Dept     D135002
8102     4     12-16-2013     Dept     D135003
8102     4     12-16-2013     Dept     D135004
8102     4     12-16-2013     Dept     D135005

Similar Messages

  • Need output of below query

    WITH rcv_transactions
         AS (SELECT 1001      TRANSACTIONS_ID,
                    -1        PARENT_TRANSACTION_ID,
                    'RECEIVE' TRANSACTION_TYPE,
                    NULL      LPN_ID,
                    'LPN01'   TRANSFER_LPN_ID
             FROM   dual
             UNION ALL
             SELECT 1002,
                    1001,
                    'DELIVER',
                    'LPN01',
                    'LPN01'
             FROM   dual
             UNION ALL
             SELECT 1003,
                    -1,
                    'RECEIVE',
                    NULL,
                    'LPN01'
             FROM   dual)
    SELECT *
    FROM   rcv_transactions;
    My output for the above query is
    transactions_id   parent_transaction_id   transaction_type     lpn_id     transfer_lpn_id
    1001                        -1                          receive                                 lpn01
    1002                    1001                           deliver                  lpn01      lpn01
    1003                         -1                         receive                                lpn01
    I want the output as below:
    TRANSACTIONS_ID,   PARENT_TRANSACTION_ID,  TRANSACTION_TYPE,     LPN_ID,     TRANSFER_LPN_ID,
    1003                                    -1                                   RECEIVE                                   LPN01
    i.e., I want the transactions id which are only 'receive' and not 'deliver' for the particular transfer_lpn_id
    in the above scenario 1001 is received and delivered in 1002.
    But 1003 is only received. so  I need the output of 1003

    WITH rcv_transactions AS (SELECT 1001 TRANSACTIONS_ID,
                                     -1 PARENT_TRANSACTION_ID,
                                     'RECEIVE' TRANSACTION_TYPE,
                                     NULL LPN_ID,
                                     'LPN01' TRANSFER_LPN_ID
                                FROM DUAL
                              UNION ALL
                              SELECT 1002,
                                     1001,
                                     'DELIVER',
                                     'LPN01',
                                     'LPN01'
                                FROM DUAL
                              UNION ALL
                              SELECT 1003,
                                     -1,
                                     'RECEIVE',
                                     NULL,
                                     'LPN01'
                                FROM DUAL)
    SELECT *
      FROM rcv_transactions rcv_out
    WHERE rcv_out.transaction_type = 'RECEIVE'
           AND NOT EXISTS
                  (SELECT 1
                     FROM rcv_transactions
                    WHERE parent_transaction_id = rcv_out.TRANSACTIONS_ID)

  • Need output like below mentioned format

    Hi,
    By using below query , iam getting output in the below formate as metioned
    select
    m.year "Year",
    --decode(m.year,like '200%','a') "DG",
    --decode(instr(m.year,'200'),0,Null,'Shallow Water <1000 Feet') "DG",
    --decode(substr('Shallow Water <1000 Feet',1,1),'S','Shallow Water <1000 Feet') "DG1",
    'Shallow Water <1000 Feet' as "Depth Group",
    'Deep Water 1000-5000 Feet' as "Depth Group",
    'Ultra Deep Water > 5000 Feet' as "Depth Group",
    sum(decode(M.FLUID,'O',nvl(M.YEAR_TO_DATE,0)))  "Ytd Oil" ,
    from pden_monthly_prod m,pi_pden_well w,pden p
    ---           Make sure all necessary Table joins are done
    where P.ENTITY=M.ENTITY
    and p.entity = w.entity
    ----        define limitations by column values
    and m.year between 2000 and 2012
    and ((p.entity_type in ('LEASE','WELL') and p.province_state not in ('17','42') and p.pi_situation_cd <> 'F')
    or (p.entity_type = 'ALLOCATED'      and p.province_state in ('17','42')     and p.pi_situation_cd <> 'F')
    or (p.entity_type = 'WELL'              and p.province_state = '42'             and p.pi_situation_cd <> 'F')
    or(p.pi_situation_cd = 'F'))
    and m.fluid in ('O','CN','G','CG','OW','GW','LW','FW') 
    and  nvl(w.water_depth,'0') <1000
    --or w.water_depth between 1000 and 5000
    --or w.water_depth >5000
    --for Federal state only (FOS)
    and P.PI_SITUATION_CD IN ('F','S')
    and p.province_state in ('17','42','60','01')
    group by m.year
                ,'Shallow Water <1000 Feet'
              ,'Deep Water 1000-5000 Feet'
               ,'Ultra Deep Water > 5000 Feet'
    order by m.year
    i am getting output is
    Year    Depth Group       Depth Group      Depth Group Ytd Oil
    2000           a                          b                           c               200
    2001           a                          b                           c               150
    2002           a                          b                           c               110
    2003           a                          b                           c               100
    but i need output like the below format
    Year          Depth Group       Ytd Oil
    2000              a                      200
    2000              b                      200
    2000              c                       200
    2000Total                              600
    2001             a                      150
    2001             b                      150
    2001             c                       150
    2001Total                               450
    2002             a                      110
    2002             b                      110
    2002             c                      110
    2002Total                           330
    2003             a                      100
    2003             b                      100
    2003             c                       100
    2003Total                             300
    could you please help on this ?

    UNPIVOT is equal to:
    with t1 as (select 'a' f1, 1 f2, 2 f3, 3 f4 from dual union all
                select 'b', 4, 5, 6 from dual union all
                select 'c', 7, 8, 9 from dual union all
                select 'd', 10, 11, 12 from dual)
    select a.f1, b.f,
           case b.f
             when 'F2' then a.f2
             when 'F3' then a.f3
             when 'F4' then a.f4
           end res
    from t1 a, (select 'F2' f from dual union all
                select 'F3' f from dual union all
                select 'F4' f from dual) b
    order by 1, 2

  • Need output format for trigger  program

    Hello everyone ;
    https://forums.oracle.com/message/11078921#11078921
    Above link is reference . It's also my own thread related to   this discussion.
    SQL> desc user_login
    Name                                                              Null?    Type
    USERNAME                                                                VARCHAR2(30)
    ISDBA                                                                          VARCHAR2(20)
    LOGIN_DATE                                                              DATE
    LOGIN_TIME                                                               VARCHAR2(15)
    LOGOUT_TIME                                                          VARCHAR2(15)
    EXTERNAL_NAME                                                     VARCHAR2(30)
    AUTHENTICATION_TYPE                                          VARCHAR2(30)
    HOST                                                                          VARCHAR2(20)
    Program for tracing user logon/logoff  details
    SQL> create or replace  trigger  tri_logon
    AFTER LOGON ON DATABASE
    BEGIN
    INSERT  INTO  user_login (username, isdba, external_name,
    authentication_type, HOST,  login_date , login_time)
    SELECT SYS_CONTEXT ('USERENV', 'SESSION_USER'),
    SYS_CONTEXT ('USERENV', 'ISDBA'),
      SYS_CONTEXT ('USERENV', 'EXTERNAL_NAME'),
      SYS_CONTEXT ('USERENV', 'AUTHENTICATION_TYPE'),
      SYS_CONTEXT ('USERENV', 'host'),
      SYSDATE, TO_CHAR (SYSDATE, 'HH24:MI:SS') FROM DUAL;
       END;
    Trigger  created.
    SQL> create or replace trigger tri_audit1
    2 BEFORE LOGOFf on database
    3   BEGIN
    4 insert into user_login (username, logout_time)
    5 (select user, TO_CHAR(SYSDATE, 'HH24:MM:SS') from dual);
    6 end;
    6 /
    Trigger  created.
    I got following output . Here i cannot insert logout_time on logout_time column.
    logout_time is dispalyed seperately please see last two output values  (CST01 ,  02:06:16)   and  user_name also displayed twice.  (don't  need )
    USERNAME   ISDBA   LOGIN_DAT   LOGIN_TIME   LOGOUT_TIME   EXTERNAL_NAME AUTHENTICATION_TYPE  HOST
    CST01           FALSE     21-JUN-13          02:06:11                                            oracle                            DATABASE                            linuxserver     CST01    02:06:16
    I want output following  below  format
    Expecting output  logout time  on  LOGOUT_TIME column  and   user_name  should be displayed once.
    USERNAME ISDBA LOGIN_DAT LOGIN_TIME   LOGOUT_TIME   EXTERNAL_NAME  AUTHENTICATION_TYPE HOST
    CST01      FALSE       20-JUN-13       13:06:34                                            oracle                       DATABASE                   LINUXSERVER
    thanks in advance ..

    8f953842-815b-4d8c-833d-f2a3dd51e602 wrote:
    Hello everyone ;
    https://forums.oracle.com/message/11078921#11078921
    Above link is reference . It's also my own thread related to   this discussion.
    SQL> desc user_login
    Name                                                              Null?    Type
    USERNAME                                                                VARCHAR2(30)
    ISDBA                                                                          VARCHAR2(20)
    LOGIN_DATE                                                              DATE
    LOGIN_TIME                                                               VARCHAR2(15)
    LOGOUT_TIME                                                          VARCHAR2(15)
    EXTERNAL_NAME                                                     VARCHAR2(30)
    AUTHENTICATION_TYPE                                          VARCHAR2(30)
    HOST                                                                          VARCHAR2(20)
    In addition to the myriad of other issues pointed out in this and your other -- essentially duplicate -- thread, why do you have separate columns for login_date and login_time?  A DATE datatype (which you have correctly defined for LOGIN_DATE carries both date and time elements.  You only need one column -- LOGIN_TIME -- populated with SYSDATE when the user logs in.  And LOGOUT_TIME should also be a DATE, populated with SYSDATE.  This alone points to several design flaws.
    1) DATE and TIME are not seperate elements.  In this application, the concept of 'time' has no meaning apart from the date, and a DATE data type, by definition, stores both date and time.
    2) keeping either date OR time in a varchar is asking for trouble.  Comparisons and math simply do not work as you expect.
    3) You don't have a date for LOGOUT, but suppose the user logs on at 2330 on Tuesday, and logs out at 0030 on Wednesday..
    Properly, you should only have two columns for this .. LOGON_TIME, defined as a DATE, and LOGOUT_TIME, defined as a date.
    Or possibly separate rows, one for LOGON and one for LOGOUT, both with a sessid to join them.
    Or better, and as I mentioned earlier, don't reinvent what AUDIT already does.  How much time have you spent on this (how much of your employers MONEY has been spent) when you could have solved the whole thing in 5 minutes with AUDIT?
    Program for tracing user logon/logoff  details
    SQL> create or replace  trigger  tri_logon
    AFTER LOGON ON DATABASE
    BEGIN
    INSERT  INTO  user_login (username, isdba, external_name,
    authentication_type, HOST,  login_date , login_time)
    SELECT SYS_CONTEXT ('USERENV', 'SESSION_USER'),
    SYS_CONTEXT ('USERENV', 'ISDBA'),
      SYS_CONTEXT ('USERENV', 'EXTERNAL_NAME'),
      SYS_CONTEXT ('USERENV', 'AUTHENTICATION_TYPE'),
      SYS_CONTEXT ('USERENV', 'host'),
      SYSDATE, TO_CHAR (SYSDATE, 'HH24:MI:SS') FROM DUAL;
       END;
    Trigger  created.
    SQL> create or replace trigger tri_audit1
    2 BEFORE LOGOFf on database
    3   BEGIN
    4 insert into user_login (username, logout_time)
    5 (select user, TO_CHAR(SYSDATE, 'HH24:MM:SS') from dual);
    6 end;
    6 /
    Trigger  created.
    I got following output . Here i cannot insert logout_time on logout_time column.
    logout_time is dispalyed seperately please see last two output values  (CST01 ,  02:06:16)   and  user_name also displayed twice.  (don't  need )
    USERNAME   ISDBA   LOGIN_DAT   LOGIN_TIME   LOGOUT_TIME   EXTERNAL_NAME AUTHENTICATION_TYPE  HOST
    CST01           FALSE     21-JUN-13          02:06:11                                            oracle                            DATABASE                            linuxserver     CST01    02:06:16
    I want output following  below  format
    Expecting output  logout time  on  LOGOUT_TIME column  and   user_name  should be displayed once.
    USERNAME ISDBA LOGIN_DAT LOGIN_TIME   LOGOUT_TIME   EXTERNAL_NAME  AUTHENTICATION_TYPE HOST
    CST01      FALSE       20-JUN-13       13:06:34                                            oracle                       DATABASE                   LINUXSERVER
    thanks in advance ..

  • Spot Healing Brush needs 'Current and Below' and 'Ignore Adjustment Layers'

    Spot Healing Brush needs 'Current and Below' and 'Ignore Adjustment Layers'

    Spot Healing Brush needs 'Current and Below' and 'Ignore Adjustment Layers'

  • I need output type NEU automaticaly for create purchase order document type

    Dear Experts,
    I need output type NEU automaticaly for create purchase order document type NB
    when transaction code MN04, I am doing the following:
    (1) I selected the third option Purchasing Output determination: Document type
    (2) I selected the output type NEU.
    (3) In condition records in document type , i have chosen NB.
    (4) In name its automatically coming as Purchase requisition
    Please suggest how Purchase Order NB will come

    Hi,
    Check & press F4, NB Purchase Order (for catagory F) will be there after entering PO output type NEU & then maintaion the condition record in MN04.
    Output type NEU automaticaly defaulted during purchase order creation with document type ,then just fine tune the output (message) type in following path:
    SPRO--->MM->Purchasing>Message>Output control->Message types> Define message type for Purchase Order----->Fine-Tuned Control: Purchase Order
    Now here select the check box corresponding to your output(message) type NEU to have print output automatically displayed & save.
    Now try to creating Purchase Order & you will have default message type NEU.
    Regards,
    Biju K

  • Need Help on below Query.

    Hi All,
    Need Help on below Query.
    Consider,
    "test9" Table Data in COLUMN "Name" AS
    Name
    =====
    'a'
    'b'
    'c'
    'd'
    'e'
    I am writing a query as :
    SELECT * FROM test9 WHERE Name IN ('a','b','c','d','e','f','g')
    I want result set as , It should show data as -
    'f'
    'g'
    i.e. data which does not exists in the table and which is give in in clause
    Is it possible in a single query.

    You can put the data that is to be checked for into a table instead or an inline view, for example:
    with t as
    (select 'a' as c1 from dual
    union all
    select 'b' from dual
    union all
    select 'c' from dual
    union all
    select 'd' from dual
    union all
    select 'e' from dual)
    select c1 from (select 'a' as c1 from dual
    union all
    select 'b' from dual
    union all
    select 'c' from dual
    union all
    select 'd' from dual
    union all
    select 'e' from dual
    union all
    select 'f' from dual
    union all
    select 'g' from dual)
    minus
    select c1 from t
    C
    f
    g
    2 rows selected.

  • I need copy fields below using sales flow (VA, VL, VF, J1B3N to printer DAN

    Help me!!
    I need copy fields below using sales flow (VA, VL, VF, J1B3N to DANFE form)
    How to copy the field VBAP-VOLUM to the field J_1BDYDOC-SHPMRK and
    How to copy the field VBAP-VOLEH to the field J_1BDYDOC-SHPNUM, to DANFE form)
    Best regards,
    Wilson

    Hi,
    J_1BDYDOC this is structure table here you didn't get the values of required field's.
    Try with J_1BNFDOC table instead of J_1BDYDOC.
    Regards
    Ram

  • Which Image should we need for the below model router 2951 to support 4 Byte ASN number ?

    Hi All,
    Which Image should we need for the below model router 2951 to support 4 Byte ASN number ?
    CISCO2951/K9
    Cisco 2951 w/3 GE 4 EHWIC 3 DSP 2 SM 256MB CF 512MB DRAM IPB
    PWR-2921-51-AC
    Cisco 2921/2951 AC Power Supply
    CAB-ACSA
    AC Power Cord (South Africa) C13 BS 546 1.8m
    HWIC-BLANK
    Blank faceplate for HWIC slot on Cisco ISR
    ISR-CCP-EXP
    Cisco Config Pro Express on Router Flash
    MEM-2951-512MB-DEF
    512MB DRAM (1 512MB DIMM) for Cisco 2951 ISR (Default)
    MEM-CF-256MB
    256MB Compact Flash for Cisco 1900 2900 3900 ISR
    SM-S-BLANK
    Removable faceplate for SM slot on Cisco 290039004400 ISR
    SL-29-IPB-K9
    IP Base License  for Cisco 2901-2951
    S2951UK9-15501T
    Cisco 2951 IOS UNIVERSAL
    EHWIC-1GE-SFP-CU
    EHWIC 1 port dual mode SFP(100M/1G) or GE(10M/100M/1G)

    > Can someone suggest ?
    a forum is no realtime-communication ... ;-)
    For the ISR G1, it was supported from 12.4(24)T, so I would assume that your ISR G2 has this feature if you are running 15.x.
    EDIT: The Feature-navigator says that it's supported starting with 15.1(2)T.

  • Need SQL for below scenerio .

    Hi Experts,
    Consider an Order Table with the following table structure with some Sample Data:
    ORDER_DAY
    ORDER_ID
    PRODUCT_ID
    QUANTITY
    PRICE
    01-JUL-11
    O1
    P1
    5
    5
    01-JUL-11
    O2
    P2
    2
    10
    01-JUL-11
    O3
    P3
    10
    25
    01-JUL-11
    O4
    P1
    20
    5
    02-JUL-11
    O5
    P3
    5
    25
    02-JUL-11
    O6
    P4
    6
    20
    02-JUL-11
    O7
    P1
    2
    5
    02-JUL-11
    O8
    P5
    1
    50
    02-JUL-11
    O9
    P6
    2
    50
    02-JUL-11
    O10
    P2
    4
    10
    Need  SQL to get all products that got sold both the days and the number of times the product is sold.
    Desired output :
    PRODUCT_ID
    COUNT
    P1
    3
    P2
    2
    P3
    2
    Thanks and Regards,
    Sumanth Kulkarni

    Hi,
    SumanthKulkarni wrote:
    Hi
    I tried below approach , but i didnt get desired output for P1
    select count(s) a,product_id  from
    (select count(product_id) s,order_day ,product_id from orders group by order_day,product_id
    order by product_id asc) t
    group by product_id
    having count(s) >1
    Thanks and Regards
    Sumanth Kulkarni
    Run the sub-query by itself, and look at the results.  You should see something like this:
             S ORDER_DAY   PRODUCT_ID
             2 01-JUN-2011 P1
             1 02-JUN-2011 P1
             1 01-JUN-2011 P2
    When you're computing the column a for the final output, do you want to count how many rows of this result set have product_id='P1'?  That's what COUNT does, but I don't think that's what you want.
    Do you want to add up the numbers in the S column?  Then use SUM (s), not COUNT (s).
    You could also do the whole job without a sub-query, like this:
    SELECT    COUNT (*)    AS a
    ,         product_id
    FROM      orders
    GROUP BY  product_id
    HAVING    COUNT (DISTINCT order_day)  > 1

  • Urgent help needed in achieving below ADF 11g flow

    Hi, I am using JDEV 11.1.1.2.0 with ADF 11g.
    I have a below requirement.
    Say in below eg. I am getting col1, col2, col3 from a single tbl in screen 1. On clicking col1's row I should go to screen 2
    Screen1
    Col1     Col2     Col3
    Nm1     Code1     10
    Nm1     Code1     30
    Nm2     Code1     30
    Nm1     Code2     20
    Here in screen 2 I will have a calculated field as shown below. Besides this In the same screen I will have a list showing distinct of col2 for the value cliked in col1. So here in this eg. it will be for Nm1 I will have 2 values in the list Code1 and Code2.      
    Screen 2          
    Col1     Nm1     
    Col2     Code1     
    Tot     *40*     
    Col2     Select     
    Code1     X     
    Code2          
    Now here if user selects the radio of 'Code2' Then my above data should change as below
    Col1     Nm1     
    Col2     Code2     
    Tot     *20*
    Col2     Select     
    Code1          
    Code2     X
    I do this by passing the col1 value as a param to a query VO.
    I have tried this using different VOs like a VO with query, VO with user defined column... nothing helps.
    I am just unable to reach to screen 2. I am either getting invalid column OR missing in out parameters.
    Can any one help on how and what should be done? This is not even master-details stuff. master-details seems easier than this.
    Urgent help is needed.
    Thanks in advance

    I have resolved your problem and build a sample application.
    You have to create 2 views and use master detail.
    First view will be a simple view for the page 1 and second view will be readonly using group by. Then create a view link between them.
    Let me know your email id. I will email you the sample application.
    SID
    Edited by: manieshsailoz on Apr 26, 2010 5:12 PM

  • Run BW query from R/3, need output file saved on application server

    Hello all,
    We are currently working on BI 7.0. Is there a way where we can run a BW query from R/3 by some program or tcode? We need to run the BW query and use the output of that query as an input to some other custom program in R/3.
    If we can save the output file on application server than the R/3 program will pick up that file from there.
    Is there any standard delivered functionality that will allow us to do that or how can we achieve this.
    Can some help help with some suggestions or links?
    Thanks in advance.

    Hi,
       Refer the following threads:
    [Calling BW Query from R/3;
    [Saving Bex Report / query in BW App server;
    Regards.

  • Need Output in Urdu Style in Oracle Customize Application

    Dear Guys
    I have developed Oracle customize Payroll application in 6i with standard Language Style is English.In this application one of the employee form,which is contain employee information name,address ,location email & fax etc.But my client need that employee information output should be display in urdu style in particular report,is there any possibility to show output in urdu style or any other solution.
    Thanks in advance
    -regard
    Furqan

    Let support, we input data format like this
    1     7369     SMITH     CLERK     7902     12/17/1980     800.00          20
    2     7499     ALLEN     SALESMAN     7698     2/20/1981     1600.00     300.00     30
    3     7521     WARD     SALESMAN     7698     2/22/1981     1250.00     500.00     30
    4     7566     JONES     MANAGER     7839     4/2/1981     2975.00          20
    Now need is that i want to develop a report which should show output in Urdu style only those column,
    which are contain A TO Z data.
    Thanks

  • Need solution for below requiernment

    Hi,
    Please tell me flow logic for below requiernment:
    1.     Read actual payroll period from T569V for ABKRS set in infotype 0001
    2.     Read actual payroll result from cluster RD using german standard functions
    3.     Loop through table RT and check for wagetype 9000
    4.     create a batch-input to infotype 0015 wagetype 9000
    ANZHL = 1
    ZEINH = piece
    BEGDA = actual month - 1 (e.g. actual month 06/2008 enter 01.05.2008)
    5.     allow option for direct or delayed start of batchinput
    My confusion is: 1) Why do we need to Read actual payroll period from T569V for ABKRS set in infotype 0001.
    2) To update IT 0015 , do we need to write a BDC or we can use FM HR_INFOTYPE_OPERATIONS.
    regards

    hi,
    1.this requirement may be cause of mid year go live in the past.
    2. BDC for IT 15 makes sense as it is easier to maintain a BDC  program.
    Regards
    Sameer.

  • Problem with concatenation, need output in a desired format

    Hi all,
    I have a weird problem with concatenation.
    I should get an output in such a way that the result would be
    Put C:\TEMP\test20090210.xml /FOLDER1/test20090210.xml
    For this first to get C:\TEMP\test20090210.xml format I said
    CONCATENATE  'C:\TEMP\test' sy-datum '.XML' INTO filepath.
    For this secondly to get /FOLDER1/test20090210.xml format I said
    CONCATENATE  '/FOLDER1/test' sy-datum '.XML' INTO filepath1.
    Now I need to get the format
    Put C:\TEMP\test20090210.xml  /FOLDER1/test20090210.xml
    And to get this I said
    CONCATENATE  'put' filepath INTO  filepath SEPARATED BY space.
    And the output for filepath was Put C:\TEMP\test20090210.xml.
    But I want u2026u2026u2026.Put C:\TEMP\test20090210.xml /FOLDER1/test20090210.xml.
    How can I achieve this?
    If I say
    CONCATENATE  filepath INTO  filepath1 SEPARATED BY space. It throws a syntax error saying
    u201CUnable to interpret filepathu201D
    Please help me..i am dying to figure out how to concatenate and get the required output.
    My filepath contains u2026 Put C:\TEMP\test20090210.xml
    My filepath1 contains u2026/FOLDER1/test20090210.xml
    I need final output asu2026u2026u2026u2026.
    Put C:\TEMP\test20090210.xml /FOLDER1/test20090210.xml
    How to attain this..please helpu2026where I am going wrong..i declared filepath and filepath1 as STRING

    Hi all,
    Thanks for immediate reply...now it works..
    but i also need to put a counter like thing to distinguish my files.
    for my filepath....
    i want it as C:\TEMP\test20090210110146 so i said....
    CONCATENATE '    C:\TEMP\test'    sy-datum s   y-uzeit  '.XML'.
    Actually i am generating XML files and naming them as testsystemdatesystemtime.
    But i am concerend that my filed might be overwrriten if a file gets generated in a fraction of a millisecond..so to avoid that now i want to put a counter.
    i.e my filepath should now be as follows each time loop executes...
    C:\TEMP\test20090210110146_1
    C:\TEMP\test20090210110147 _2
    C:\TEMP\test20090210110148 _3.........and son on how can i do it
    i.e testsystemdatesystemtime+ a counter(which tells how many times loop executed)
    Once again thanks to all for immediate help...

Maybe you are looking for

  • Moving a group of photos-leaves the last one

    Not always, but most of time, if I select a group of photos in a folder, then drag and drop them into another folder, it will move all but the last one. Window pops up saying "There was an error copying files to the destination you selected. The foll

  • How to make changes effect in log4j.xml without restarting weblogic server

    Hi , I have successfully configured log4j in my weblogic server 8.1. Everytime i made a change in log4j.xml i need to restart the server is there any configuration or parameter to set without restarting server?? Thanks in advance, CK

  • Making more than 2 hr. DVDs?

    This may be a dumb question, but is there a way to make DVDs longer than 2 hours with iDVD 5? With the onset of dual-layered burners and media, it would be nice to be able to expand projects beyond 2hours. I love working with iDVD (better than Toast,

  • How To Un Zip RAR File

    Hi, I down loaded NW2004s java Trail vesrsion i got a file saying SAPNW2004sjavasp9_Trail.Part1.rar any body please tell me how to un zip this RAR file Thanks in advance. kiran

  • Why does my library keep disappearing??

    Ok, this is happening on a regular basis - I save all my music to an external HDD through iTunes, but sometimes when I start up iTunes the whole library has disappeared and in the Advanced tab, my file save location has reverted back to the C drive,