11G Pivot Query with parameters

Hello all,
I would like to find some way, any way to pass parameters to a pivot query. The following pivot query works, but I would like segment2 to be a variable as well as the period names so....
select * from
select segment2, accounted_dr, period_name
from gl_je_lines a, gl_code_combinations b
where b.code_combination_id = a.code_combination_id
and segment2 >='007611' and segment2 <='007751' AND period_name in ('SEP-08','OCT-08','NOV-08'))
pivot
sum(accounted_dr)
for period_name in ('SEP-08','OCT-08','NOV-08') )
....would be something like....
select * from
select segment2, accounted_dr, period_name
from gl_je_lines a, gl_code_combinations b
where b.code_combination_id = a.code_combination_id
and segment2 >= :P4_OBJECT_FROM AND and segment2 <=:P4_OBJECT_TO AND period_name in &P4_EPSB_PERIOD_HOLD.)
pivot
sum(accounted_dr)
for period_name in (&P4_EPSB_PERIOD_HOLD.) )
It is our understanding that we have to hardcode period names and objects, but we would like to get around that. Does anyone have any ideas or tricks?
Thanks

lilhelp wrote:
Hello all,
We are trying to use the 11G pivot query function with data from Oracle E-Business Suite. We have an 11G database installed with our Oracle APEX. We cannot seem to get the pivot function to work. At a glance, would anyone be able to see any glaring errors in our syntax. I am not certain it is possible to provide test data Why not?
>
We are trying to have column headings with the Period Names SEP-08 OCT-08 NOV-08, with rows of segment2 007751 and accounted_dr as the dataset.
When we run the sql we get an error ORA-00904: "PERIOD_NAME": invalid identifier.
Any help or insight would be greatly appreciated.
select * from (
select segment2, accounted_dr, period_name
from gl_je_lines a, gl_code_combinations b
where b.code_combination_id = a.code_combination_id
and segment2 = '007751')
pivot
sum(accounted_dr)
for period_name in ('SEP-08','OCT-08','NOV-08')
group by segment2, period_nameDon't use GROUP BY. When you use PIVOT, the grouping is implied by what is in the PIVOT clause and what is not.
Try this:
select    *
from        (
       select  segment2
       ,       accounted_dr
       ,       period_name
       from       gl_je_lines          a
       ,       gl_code_combinations     b
       where       b.code_combination_id = a.code_combination_id
       and       segment2 = '007751'
pivot       (
       sum (accounted_dr)
       for period_name in ('SEP-08','OCT-08','NOV-08')
;which is just your posted query without the GROUP BY clause.

Similar Messages

  • 11G Pivot Query with Oracle EBS

    Hello all,
    We are trying to use the 11G pivot query function with data from Oracle E-Business Suite. We have an 11G database installed with our Oracle APEX. We cannot seem to get the pivot function to work. At a glance, would anyone be able to see any glaring errors in our syntax. I am not certain it is possible to provide test data so...
    We are trying to have column headings with the Period Names SEP-08 OCT-08 NOV-08, with rows of segment2 007751 and accounted_dr as the dataset.
    When we run the sql we get an error ORA-00904: "PERIOD_NAME": invalid identifier.
    Any help or insight would be greatly appreciated.
    select * from (
    select segment2, accounted_dr, period_name
    from gl_je_lines a, gl_code_combinations b
    where b.code_combination_id = a.code_combination_id
    and segment2 = '007751')
    pivot
    sum(accounted_dr)
    for period_name in ('SEP-08','OCT-08','NOV-08')
    group by segment2, period_name

    lilhelp wrote:
    Hello all,
    We are trying to use the 11G pivot query function with data from Oracle E-Business Suite. We have an 11G database installed with our Oracle APEX. We cannot seem to get the pivot function to work. At a glance, would anyone be able to see any glaring errors in our syntax. I am not certain it is possible to provide test data Why not?
    >
    We are trying to have column headings with the Period Names SEP-08 OCT-08 NOV-08, with rows of segment2 007751 and accounted_dr as the dataset.
    When we run the sql we get an error ORA-00904: "PERIOD_NAME": invalid identifier.
    Any help or insight would be greatly appreciated.
    select * from (
    select segment2, accounted_dr, period_name
    from gl_je_lines a, gl_code_combinations b
    where b.code_combination_id = a.code_combination_id
    and segment2 = '007751')
    pivot
    sum(accounted_dr)
    for period_name in ('SEP-08','OCT-08','NOV-08')
    group by segment2, period_nameDon't use GROUP BY. When you use PIVOT, the grouping is implied by what is in the PIVOT clause and what is not.
    Try this:
    select    *
    from        (
           select  segment2
           ,       accounted_dr
           ,       period_name
           from       gl_je_lines          a
           ,       gl_code_combinations     b
           where       b.code_combination_id = a.code_combination_id
           and       segment2 = '007751'
    pivot       (
           sum (accounted_dr)
           for period_name in ('SEP-08','OCT-08','NOV-08')
    ;which is just your posted query without the GROUP BY clause.

  • ADF how can i execute a query with parameters when the page renders

    hi
    i am using ADF web 11g
    i need to execute a query with parameters when the page renders
    thanks

    hello,
    I'm a fan of Java code, I really am.
    But when you use ADF, you decided to move to a more declarative environment.
    So why not do it declarative, the adf way?
    In your pagedef insert a action binding.
    This can be anything, a call to the application module, a call on the iterator(Like executeWithparams, etc.)
    Create an invokeAction in your pagedef and set the condition.
    This example refreshes(Action 2 is execute query) the data.
    First the method binding:
        <action IterBinding="PersoonIterator" id="Execute" InstanceName="LSAppModuleDataControl.Persoon"
                DataControl="LSAppModuleDataControl" RequiresUpdateModel="true" Action="2"/>And the invoke action
        <invokeAction Binds="Execute" id="refreshData"/>This always refreshes the data on page entry, but anything is possible, you can set condictions for the invokeAction.
    -Anton
    PS Yes I know that pagedefs become backing beans in the end and yes that is Java code, but if you wanna play the ADF way, the goal is the reduction of Java code and the increased performance of declarative programming.

  • Using multiple 'for' statements in an 11g pivot query

    oracle: 11.2.0.3
    Basically I need to pivot around 2 different columns (I think I need to 'for' clauses').
    See below.
    Below is pseudo code from non-11g pivot statement.
    I am trying to figure out how to do with pivot.
    -- note field names are pseudo code and not real values
    -- note that the field after 'then' in the case statement is different for the 2 pivots
    select            my_id,
                        max( (case when myfield = 'MYVALUE1' then mydate_date else null end)) as MYVALUE1,
                        to_number(max( (case when myfield = 'MYVALUE'   then myfieldvalue else null end))) as MYVALUE2,
                        min (insert_date ) insert_date
      from mytable
    group by myidso if I'm doing this in 11g pivot syntax I am stuck at:
    -- if I add max(fieldvalue), I think I will pivot too many times. I just want 2 extra columns. Can I add a second 'for' statement?
    select *
    from mytable
    pivot (
               max(mydate)
               for myfield in ('MYVALUE1' as MYVALUE1)
    )

    My concern about trying that is that SQL will do extra pivots that I won't use. Which means more work. I saw a blog entry by someone in the oak table (I can't remember who or the link) that showed an example that the pivot clause has about the same logical IOs as using the old max(case statement) but the response time was much better. This was a very rare case where performance is significantly improved without affecting LIOs. So there isn't a good measure. I wish I had the link and generally people in the oak table are very good. So I trust posts by them.
    so basically I am not sure how to measure whether doing the extra pivots are using extra resources. This is going to be a fairly performance intensive query due to the volume of data it has to feed through.
    I'll give it a try, but my inability to measure it is a bit concerning.

  • Is it possible to provide an BEx Web Query with parameters based on iView?

    Hi SAP Portal experts,
    My knowledge of SAP Portal is limited and I ran into the following problem:
    I have got about 60 BEx Web Queries which should be put into some sort of navigation. Furthermore I would like to intodruce one start page where the user can preselect common bex query variables (e.g. company code) by clicking on a map.
    My approach was to put all query links into a BEx Web Application Template. The template includes a JavaScript storing the userdefined values in a cookie. As soon as the user clicks on a link the cookie values are read from that cookie and a query parameter string is set up like "&BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING=2100&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=0P_COCD" and concatenated with the URL for the BEx Query.
    My colleague wants me to put all this into SAP Portal and to create an iView for each BEx Query. How can I achieve that? I have already had a look at the iView property "parameters passed on to BEx Web Application". If I put my parameter string there, it works fine. However, I would like to replace VARIABLE_INPUT_STRING=2100 and VARIABLE=0P_COCD with the values selected by the user by clicking on the map. So how can I set up a parameter or variable in one iView and read it in another iView with a BEx Web Query???
    Thank you very much in advance
    Martin

    I have thought about this. There are some problems here....
    I cannot use the same proxy to invoke the java callout and then based on the code or handler disable it, since
    1) i would have no way to enable back the proxy again.
    2) Also there is some amount of message loss.
    So i will have to use another proxy to do the same, but in this case
    1) what would be the trigger to this proxy?
    2) And how often do i invoke the java callout to see if the URI is up or not? (wouldnt that affect the performance?)
    I am just wondering why did they give an offline URI option in the business service and no similar option in the proxy service, Any Idea?
    Thanks

  • Query with parameters syntax

    Hi,
    Could somebody please help with the C# syntax for Oracle Lite. I can execute select statement without parameters, but parameterized query doesn’t work. What is wrong in my code?
    LiteConnection liteConn=new LiteConnection("10270_pwcoffline");
    LiteCommand lcmd=new LiteCommand() ;
    lcmd.Connection=liteConn;
    lcmd.CommandText="Select * from ol_off_dept where office = :off";
    lcmd.CommandType=CommandType.Text ;
    int off = 10;
    LiteParameter p1 = new LiteParameter("off", DbType.VarNumeric, "office");
    p1.Value = off;
    lcmd.Parameters.Add(p1);
    LiteDataAdapter lad=new LiteDataAdapter(lcmd);
    DataSet ds=new DataSet();
    lad.Fill(ds,"TDM");
    this.dataGrid1.DataSource = ds;
    The error is:
    System.Data.DataException: 37000[POL-5228] syntax error at Oracle.Lite.Data.LiteCommand.Prepare()…
    Thanks

    Jenny,
    Please let us know if you still need this post resolved.
    Thank you.

  • 11g pivot query syntax question

    I searched the forums and I have seen questions similiar to the one I am asking, but its not the exact same issue.
    I need 3 fields in my 'for' clause. I get 'column ambiguously defined. I think I get this error for a different reason that other people asking the question.
    The others seem to be doing more than 1 function in the pivot clause and those need an alias. I give an alias with my 1 function and still get an error.
    ORA-00918: column ambiguously defined
    I used aliases like the recommendation in other posts and I still get the same error. I think I need 3 columns in the for clause.
    --note that this is just a test table. These are not real names going into production
    create table pivot_tab (
    pk1 number,
    pk2 number,
    myElement varchar2(30),
    myElementDate date);
    pk1,pk2 are the unique key.
    I need this to return as: the vlaues after pk2, can be any alias. This is just an example.
    pk1  pk2  MY1_DATE, MY2_DATE, MY3_DATE
    select *
         from pivot_tab
        PIVOT ( max(myElementDate) for myElement
                in (''MY1','MY2','MY3'))
    I saw a couple of references to this syntax, but I get syntax errors.
    ora--00906: missing parentheses. So I dont think this syntax works.
    select *
         from pivot_tab
        PIVOT ( max(myElementDate) for (pk1,pk2,myElement)
                in (''MY1','MY2','MY3'))Edited by: Guess2 on May 6, 2013 6:50 AM

    don't have any sample data or expected results to test this with maybe
    SELECT *
      FROM (SELECT pk1,
                   pk2,
                   myelement,
                   myelementdate
              FROM pivot_tab) PIVOT (MAX (myElementDate)
                              FOR myElement
                              IN ('MY1' AS MY1, 'MY2' AS MY2, 'MY3' AS MY3));or maybe you are trying to pivot by the first part of the pk?
    with pivot_tab as (select 1 pk1, 2 pk2, 'MY1' myelement, sysdate myelementdate from dual union all
                       select  1 pk1, 3 pk2, 'MY2' myelement, add_months(sysdate,2) myelementdate from dual union all
                       select  1 pk1, 4 pk2, 'MY3' myelement, add_months(sysdate,3) myelementdate from dual union all
                       select 2 pk1, 5 pk2, 'MY1' myelement, sysdate myelementdate from dual union all
                       select  2 pk1, 6 pk2, 'MY2' myelement, add_months(sysdate,6) myelementdate from dual union all
                       select  2 pk1, 7 pk2, 'MY3' myelement, add_months(sysdate,7) myelementdate from dual )
    SELECT *
      FROM (SELECT pk1,
                   myelement,
                   myelementdate
              FROM pivot_tab) PIVOT (MAX (myElementDate)
                              FOR myElement
                              IN ('MY1' AS MY1, 'MY2' AS MY2, 'MY3' AS MY3));
    PK1     MY1     MY2     MY3
    1     5/6/2013 10:07:40 AM     7/6/2013 10:07:40 AM     8/6/2013 10:07:40 AM
    2     5/6/2013 10:07:40 AM     11/6/2013 10:07:40 AM     12/6/2013 10:07:40 AMEdited by: pollywog on May 6, 2013 10:08 AM

  • Pivot Query with Top N

    Oracle 10g
    I have formed the following query;
    select cell
         , plot_number
         , max(decode(drnk, '1', tree_height*100)) ht_1
         , max(decode(drnk, '2', tree_height*100)) ht_2
         , max(decode(drnk, '3', tree_height*100)) ht_3
      from (select cell
                 , plot_number
                 , tree_height
                 , drnk
              from (select cell
                         , plot_number
                         , tree_height
                         , dense_rank() over (partition by plot_number order by tree_height desc)drnk
                      from jip_recovery
             where drnk <= 3
               and tree_height is not null
             order by tree_height desc
    group by cell, plot_number
    order by cell, plot_numberThis query is supposed to take data like this and pivot it for the three tallest trees;
    select cell, plot_number, tree_height from jip_recovery where cell = 'C01' and plot_number = 10151;
    CELL PLOT_NUMBER            TREE_HEIGHT           
    C01  10151                  14.01                 
    C01  10151                  21.33                 
    C01  10151                  16.06                 
    C01  10151                  16.88                 
    C01  10151                  18.29                 
    C01  10151                  12.27                 
    6 rows selected When I include a filter for CELL and PLOT NUMBER like this;
    select cell
         , plot_number
         , max(decode(drnk, '1', tree_height*100)) ht_1
         , max(decode(drnk, '2', tree_height*100)) ht_2
         , max(decode(drnk, '3', tree_height*100)) ht_3
      from (select cell
                 , plot_number
                 , tree_height
                 , drnk
              from (select cell
                         , plot_number
                         , tree_height
                         , dense_rank() over (partition by plot_number order by tree_height desc)drnk
                      from jip_recovery
                     where cell in ('C01')
                       and plot_number in (10151)
             where drnk <= 3
               and tree_height is not null
             order by tree_height desc)
    group by cell, plot_number
    order by cell, plot_numberIt returns the correct values in the three columns
    CELL PLOT_NUMBER            HT_1                   HT_2                   HT_3                  
    C01  10151                  2133                   1829                   1688                   But when I remove the filter to run it on the complete dataset some 546000 records it returns nulls for some of the HT_% columns. Of special interest in this example is the record for plot number 10151 and 10153.;
    CELL PLOT_NUMBER            HT_1                   HT_2                   HT_3                  
    C01  8198                   2652                   2105                   2075                  
    C01  8199                   2338                   2107                   2012                  
    C01  10151                                         2133                                         
    C01  10153                                         1993                   1628                  
    C01  10154                  2151                   2135                   1976
    ...Can anyone see what I am doing wrong?
    Ben

    Yes, you missed cell from the partition.

  • Reports 9ids query with parameters

    I've created a basic report that pulls from one table. However, I need to have it read two different global variables from the form from which it is run from. I have not been able to make that happen. currently I'm running the report by utilizing WEB.show.document. I need it to pull in the report where two of the fields are equal to the two global variables. How do I do this?? Any help would be great. Part of the URL i've created a keycommand in the cgicmd.dat file.
    Thank you

    If I understand correctly, you want to base the output of your report on some global data in the form from which you're invoking the report. In that case, you can create user parameters in your report, and base your query on those user parameters (say, P_1 and P_2). Pass the values of these parameters in the report invocation URL.
    That's only as far as I understood your question. Also refer to the Building Reports Manual and the Publishing Reports Manual for more insights.
    -Manish

  • Jpa query with parameters in Greek

    Hello
    I use netbeans 6.9.1 and toplinlk essensials for jpa connected to a mysql database
    mysql database constants:
    character_set_database = utf8
    character_set_server = utf8
    character_set_system = utf8
    I have this code
    Query qItemom = emOpsw.createQuery("SELECT m FROM Itemom m WHERE "
    + " m.book = :book AND m.omfile = :omfile AND m.omaster = :omaster ");
    qItemom.setParameter("book", (short)1);
    qItemom.setParameter("omfile", (byte)2);
    qItemom.setParameter("omaster", "ΕΚΡ");
    The "omaster" parameter is a String. When i pass latin characters i get results, but when i pass
    a greek character string "ΕΚΡ" for example, i do not get any results at all.
    Can anyone help me?
    Than you in advance.

    Could be a MySQL or JDBC issue. Try the same query using raw JDBC and the bind parameter.
    You could also try disabling parameter binding, if the issue has to do with your JDBC driver's binding.
    James : htttp://www.eclipselink.org

  • Query with parameters

    SELECT
    A.DocEntry, A.DocNum, A.Series, A.PostDate, A.DueDate,
    A.ItemCode AS Parent,A.PlannedQty, A.CmpltQty, A.RjctQty,
    B.ItemCode AS CHLD, B.BaseQTY, B.PlannedQTY,B.IssuedQTY,
    A.CmpltQtyB.BaseQTY AS Compl_QTY, A.RjctQtyB.BaseQTY AS Rej_QTY,
    C.LastPurPrc as PurPrise, C.LstEvlPric as EvlPrice,
    D.LineTotal,
    B.IssuedQTY -((A.CmpltQtyB.BaseQTY) + (A.RjctQtyB.BaseQTY)) As WIP_QTY,
    (B.IssuedQTY -((A.CmpltQtyB.BaseQTY) + (A.RjctQtyB.BaseQTY)))* C.LstEvlPric As WIP_Valuation,
    A.Comments
    FROM
    OWOR A INNER JOIN WOR1 B ON A.DocEntry = B.DocEntry
           INNER JOIN OITM C ON B.ItemCode = C.ItemCode
           JOIN IGE1 D ON B.DocEntry=D.BaseRef AND D.BaseLine =B.LineNum
    WHERE A.Status='R'
    AND  A.PostDate BETWEEN
    (CASE WHEN '\[%0]' = ' ' THEN '1/1/2007' else '\[%0]' END)
    and
    (CASE WHEN '\[%1]' = '' THEN '1/12/2050' else '\[%1]' END)
    The above query does not accept parameter for the table OWOR A.It gives error for the parameter A.PostDate as,
    Query sentence was not completed.
    Parameters are being accepted for the other tables.
    Edited by: Dilip Kumbhar on Feb 12, 2008 12:07 PM

    If you run the query direct in sql management studio or query analyzer, gives it the same error?
    I think, that the problem is somewhere in SBO, because i found out, that sap is modifiing the queries inside.
    Try to rename one plannedqty in select statement as plan1 - maybe two same names in select are doing this problems. Or to prevent the sap modifiing, try it as select from select as
    select
    DocEntry, DocNum, Series, PostDate, DueDate,
    Parent,Plan1, CmpltQty, RjctQty,
    CHLD, BaseQTY, PlannedQTY,IssuedQTY,
    Compl_QTY,  Rej_QTY,
    PurPrise,  EvlPrice,
    LineTotal,
    WIP_QTY,
    WIP_Valuation,
    Comments
    from
    SELECT
    A.DocEntry, A.DocNum, A.Series, A.PostDate, A.DueDate,
    A.ItemCode AS Parent,A.PlannedQty as Plan1, A.CmpltQty, A.RjctQty,
    B.ItemCode AS CHLD, B.BaseQTY, B.PlannedQTY,B.IssuedQTY,
    A.CmpltQtyB.BaseQTY AS Compl_QTY, A.RjctQtyB.BaseQTY AS Rej_QTY,
    C.LastPurPrc as PurPrise, C.LstEvlPric as EvlPrice,
    D.LineTotal,
    B.IssuedQTY -((A.CmpltQtyB.BaseQTY) + (A.RjctQtyB.BaseQTY)) As WIP_QTY,
    (B.IssuedQTY -((A.CmpltQtyB.BaseQTY) + (A.RjctQtyB.BaseQTY)))* C.LstEvlPric As WIP_Valuation,
    A.Comments
    FROM
    OWOR A INNER JOIN WOR1 B ON A.DocEntry = B.DocEntry
    INNER JOIN OITM C ON B.ItemCode = C.ItemCode
    JOIN IGE1 D ON B.DocEntry=D.BaseRef AND D.BaseLine =B.LineNum
    WHERE A.Status='R'
    ) T
    hope it helps you

  • SQL query with "parameters"

    Hi,
    I want a sql query as follows (but it seems not be as simple as that...)
    select A1, A2,
    select sum(B3)
    from B1 = A2
    where
    from A
    where A1 = '1001'
    is it possible, in some way, to have A2 from outer select statement as a parameter to inner select statement?

    Hi,
    user8819407 wrote:
    Hi,
    I want a sql query as follows (but it seems not be as simple as that...)
    select A1, A2,
    select sum(B3)
    from B1 = A2
    where
    from A
    where A1 = '1001'
    is it possible, in some way, to have A2 from outer select statement as a parameter to inner select statement?Yes, you can reference columns from a parent query within its child query.
    For example:
    select  A1, A2,
             select  sum (b.B3)
             from   b
             where  b.B1 = a.A2
    from     A
    where     A1 = '1001'
    ;Within the sub-query, you don't have to qualify columns from b; that is, b3 is assumed to mean b.b3. If the column name is unique, you don't have to qualify columns from table a, either. That is, if b does not have a column called a2, then a2 in the sub-query could only mean a.a2, and Oracle doesn't make you spell out which table a2 comes from, but it makes the code a lot easier to understand and debug if you do qualify the columns.
    By the way, a sub-query that references its parent query like this is called a Correlated Sub-Query .
    "Parameter" doesn't really apply to this situation.

  • How to create an ABAP Query with OR logical expression in the select-where

    Hi,
    In trying to create an ABAP query with parameters. So it will select data where fields are equal to the parameters entered. The default logical expression is SELECT.. WHERE... AND.. However I want to have an OR logical expression instead of AND.. how can I attain this??
    Please help me on this.. Points will be rewarded.
    Thanks a lot.
    Regards,
    Question Man

    Hi Bhupal, Shanthi, and Saipriya,
    Thanks for your replies. But that didn't answer my question.
    Bhupal,
    You cannot just replace AND with OR in an ABAP QUERY. ABAP QUERY is a self generated SAP code. You'll just declare the tables, input parameters and output fields to be displayed and it will create a SAP standard code. If you'll try to change the code and replace the AND with OR in the SAP standard code, the system will require you to enter access key/object key for that particular query.
    Shanthi,
    Yes, that is exactly what need to have. I need to retireve DATA whenever one of the conditions was satisfied.
    Saipriya,
    Like what I have said, this is a standard SAP code so we can't do your suggestion.
    I have already tried to insert a code in the ABAP query (there's a part there wherein you can have extra code) but that didn't work. Can anybody help me on this.
    Thanks a lot.
    Points will be rewarded.
    Regards,
    Question Man

  • Power Pivot Bug: Can't Save Edits to Power Pivot Query without checking Teradata Connection's "Save my password" Option

    Can't edit and re-Save Power Pivot query with Teradata connection (using LDAP security mechanism) unless "Save my password" option was checked.  Without this option I receive this error upon attempt to Save changes made to the query ...
    The following exception occurred while the managed IDbConnection interface was being used: [TeraGSS Security Library] [115022] Exception occurred in TERAGSS layer.  See inner exception for details.;TdgssAuthenticationTokenExchange delegate threw an exception.
     See the inner exception for details.
    ErrorCode: -452984642 Severity: Error Facility: DotNet
    [Teradata Database] [8017] The UserId, Password or Account is invalid..
    A connection could not be made to the data source with the DataSourceID of '6a06124c-496f-4887-bf39-d2582173d499', Name of 'Teradata fsltdprd'.
    An error occurred while processing table 'Query'.
    The current operation was cancelled because another operation in the transaction failed.

    Sorry you're right, the Office category isn't currently accepting bug reports in which case Olaf's suggestion to use the smiley face is the way to go. In Excel please go to File > Options > Trust Centre > 'Trust Centre Settings...' and check
    that the Feeeback Tool is enabled.
    If the option is greyed out like this...
    ... then you should be able to enable it by changing the value of the 'Enabled' registry key from a 0 to a 1 which you will find under: HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Feedback. You will then need to close all Office applications
    and re-launch Excel 2013.
    Once the Feeback Tool has been enabled, you should see the smile face(s) in the top right hand corner of the Excel window and be able to send your feedback.
    Regards,
    Michael
    Please remember to mark a post that answers your question as an answer...If a post doesn't answer your question but you've found it helpful, please remember to vote it as helpful :)
    Website: nimblelearn.com, Blog:
    nimblelearn.com/blog, Twitter:
    @nimblelearn

  • BEx query with variant from ABAP

    Hello,
    I'm looking for possibility to start BEx query with variant (variant is created with tx RSRT) from ABAP. There are some funktion modules, which start queries (launch excel), for example RSAH_LAUNCH_EXCEL or RSSEM_QUERY_LAUNCH, but they are ending with short dump, when there are variables in the query. Is there any standard FM, which starts the query with variant or accepts parameters?
    regards,
    Krzysztof

    Hi,
    the short dump was my fault, I've passed query name instead of genuniid to the RSAH_LAUNCH_EXCEL.
    What I'm trying to do is to I'll start BEx query with parameters (I don't want to get selection-screen from the query, I need to fill it from ABAP).
    Here is my example, which is not working.
    DATA:
      lv_query(30) TYPE c,
      lv_genuniid  TYPE rsrrepdir-genuniid,
      ls_var       TYPE rrx_var,
      lt_var       TYPE TABLE OF rrx_var.
    lv_query = 'YB_MAKLER_DETAIL'.
    CALL FUNCTION 'CONVERSION_EXIT_GENID_INPUT'
      EXPORTING
        input  = lv_query
      IMPORTING
        output = lv_genuniid.
    IF lv_genuniid = ''.
      WRITE: / 'There is no Query', lv_query.
    ELSE.
      ls_var-vnam = 'YS_MKLE'.
      ls_var-sign = 'I'.
      ls_var-opt  = 'EQ'.
      ls_var-low  = '0000005100'.
      APPEND ls_var TO lt_var.
      ls_var-vnam = 'YS_VTGJ'.
      ls_var-sign = 'I'.
      ls_var-opt  = 'EQ'.
      ls_var-low  = '1999'.
      APPEND ls_var TO lt_var.
      CALL FUNCTION 'RSAH_LAUNCH_EXCEL'
        EXPORTING
          i_genuniid                       = lv_genuniid
          I_OBJVERS                        = 'A'
          i_hide_sapgui                    = 'X'
        TABLES
          I_T_VAR                          = lt_var.
    ENDIF.
    If parameter 'i_hide_sapgui' is empty, I'm getting empty selection-screen,
    If parameter 'i_hide_sapgui' equals 'X' I'm getting selection-screen filled with values, which were used last time manualy, not with values from the internal table 'lt_var'.
    Do you have any idea how to pass parameters to the query with this function module?
    Regards,
    Krzysztof

Maybe you are looking for

  • Retrieve data from a stored procedure using powerpivot

    Hi there. I'm new to SQL and would like to import the below stored procedure to PowerPivot. PowerPivot says the statement is valid, but fails to import the stored procedure and returns this error "OLE DB or ODBC error: Changed database context to 'Si

  • Cannot access Mac OS Partition from windows 8 running in boot camp

    So I installed Windows 8.1 Pro through Boot Camp but I can't access the Mac OS partition from windows even though boot camp partition shows up while I'm on Mac OS. I have installed all the drivers from apple but still it didn't work. Then I downloade

  • Best Practices for Batch Updates, Inserts and Complex Queries

    The approach we have taken for our ALDSP Architecture is to model or DASi as Business Data Objects, each DS joining several (some times many) tables and lookups. This works ok when needing to access individual records for read and update, but when we

  • Scanned documents from preview yield blank/black pdf

    I have just upgraded laptops and operating systems moving from Snow Leopard to Lion. I am attempting to scan text documents using Preview in Lion as I had done before using Snow Leopard. I am using the same printer/copier/scanner, HP Photosmart C5280

  • Abap proxy method execute synchronous

    hey guys, im new at XI and am posting this thread in the hope that someone would explain to me, what is required of the method "execute synchronous" in an abap proxy. thanks