Where is stored the Keydate of a query ?

Hi experts,
I need to get the keydate from a BW query to input it in an ABAP program (Virtual characteristic by BADI).
Does someone know where or how I can get it ?
Thanks in advance,
Julien DELSOL

Key date if not mentioned using a formula variable, is taken as the system date during query execution.
So the master data time dependency I am assuming is the key date.

Similar Messages

  • Where are stored the data settings of Project Pro for Office 365?

    Hi,
    I'm using Project Pro for Office 365 connected to Project Online. Where are stored the settings we saved in
    File / Options (Project Pro). I'm thinking of roaming users.
    Thanks

    I believe it is stored in the registry setting:
    HKey_Current_User\Software\Microsoft\Office\15.0\MS Project\Options
    Julie

  • Where are stored the informations of the ADF structures?

    I'm working with ADF tecnology and JSP.
    I'm in a browse page in update phase on the View Object A and I need open (with an html anchor <a href... ) another browser page in which are displayed data of another View Object B.
    coming back on the first browse page, when I try to submit the modify data in the View Object A, I've observed that I lose the DataControls that I had previously for this context, in particular the result of ctx.getBindingContext().findDataControl("AppModuleDataControl") is null.
    How can I reobtain the value of the DataControls of the first browse page on update phase?
    How can I reobtain all the context? where are stored the informations of the ADF structures(session, request...)?
    thanks
    Francesca Brucciani

    I believe it is stored in the registry setting:
    HKey_Current_User\Software\Microsoft\Office\15.0\MS Project\Options
    Julie

  • Where are stored the separated variables data?

    Guys,
    Does anyone here know where are stored the data for separated variables?
    I'm doing some research in my enviroment to know the capacity needed for process demand and I need to count the separated variables usage of my database.
    Any helps are appreciated.
    Regards,
    Luiz

    Hi Luiz,
    Separated instance variables are stored in the Engine's "PDETACHEDFIELD" table.
    Dan

  • Where is stored the folder "My templates" in Logic X?

    Where is stored the folder "My templates" in Logic X?

    Hi
    <User>:Music:Audio Music Apps:Project Templates?
    CCT

  • Where is Stored the document uploaded in the KM?

    Dear Experts.
    I have the following doubt:
    Where is Stored the document uploaded in the KM?
    Thanks in advance
    Regards
    Carmen

    Hi Carmen,
    Documents will be stored in the KM repository under the folder whre you have uploaded the document. By default /root folder will be there and under that you will have different repositories like documents etc..
    Login to Portal,
    You will see Content Administrator tab > Go to KM Content > root folder and your uploaded document will be present here.
    Thanks.
    Sushil

  • Where is stored the Folder label registry location?

    When I put a red label on a File that has xmp metadata, I can retrieve these values later and this will be stored in the file or in a side-car xmp file.
    But Folder can't have xmp.
    In this case, where is stored this info about the color label of a Folder? Only in cache? Is there a hidden file ( like, for example ".Bridgesort" hidden file for manually sorted items)
    I noticed that I I label a folder in a common accessed network from computer A, I can retrieve that value from another computer B by rebuilding the cache parent folder of the labeled folder.
    It can't be the file C:\Users\[username]\AppData\Roaming\Adobe\Bridge CS6\Cache\data\store because it is inacessible from other computers on network.
    So is must be some hidden file on the same directory of the labeled folder.

    Found it.
    Its an hidden xml File created from Bridge when I use labels or ratings on children folders.
    It is called ".BridgeLabelsAndRatings"
    to get it from bridge, just try to use this
    Folder([myPath]).getFiles("*.BridgeLabelsAndRatings"); // the name works like a long extension file (the dot in the beginning is important)
    and this is an example.
    <?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
    <bridgedata version='1'>
      <labels version='1'>
      <item key='_d_10772009' label='Select'/>
      </labels>
      <ratings version='1'>
      <item key='_d_10772012' rating='1'/>
      </ratings>
    </bridgedata>
    This is updated from others computer over the same local folder network only when cache folder is recreated.

  • Where are stored the xsl sheet for XMLprovider ?

    Do you know where to store the xsl sheet to works with an XMLchannel based on XMLProvider ?

    The portal will look for the XSL stylesheet in a directory with the same name as the channel that you created. This uses the file lookup sequence that is documented here:.
    http://docs.sun.com/app/docs/doc/819-2580/6n4s1lm90?a=view
    http://docs.sun.com/app/docs/doc/819-2580/6n4s1lmet?a=view
    - Jim

  • Where-clause with the in-keyword. Query optimising.

    Hi I have following question.
    I have a query, e. g.
    select x, y from tableA where y in (a_1, a_2, ..., a_n)
    I have test it with n=1...5
    1. 5-6 ms
    2. 5-6 ms
    3. 150 - 200 ms
    4. 150 - 200 ms
    5. 180 - 250 ms
    There is a gap between n = 2 and n = 3. According to the execution plan the Oracle make a full table access if n >= 3. If n < 3 a an index is used. Is it possible to ensure that the index is always used?
    Additionally I have test the equivalent query:
    select x, y from tableA where y = a_1 or y = a_2 ... < = a_n
    It showsthe same behaviour.

    Hi,
    I wouldn't say that the optimizer is wrong here. I would look on some more imputs.
    How many values of y do you have in the table?
    please post the result of:
    select count(*),y
    from tablea
    group by y;
    to see how many values of each y-value exists in the table.
    For example, if there are only values 1..5 for y in the table a full table scan is the fastet answer for your query, because all values have to read!
    Regards
    Udo

  • Presentationdirector - Where are stored the Schemes?

    Can everyone tell me where the schemetemplates are stored?
    i create some templates and than i would share these over the network. Is that posibble?
    Solved!
    Go to Solution.

    i fix it. schemes stored in teh registry under HKCU\Software\Lenovo\NPDirect\Data\Common\Presentation Schemes\
    OR
    HKCU\Software\IBM\NPDirect\Data\Common\Presentation Schemes\  (older version)

  • I need return the result of a query on a stored procedure

    I need return the result of a query on a stored procedure, I mean when I execute a stored procedure it returns a result set as a select query.
    Best regards...

    If you want some pl/sql code that can be used in a query as it were a table you may be interested in table functions:
    SQL> create or replace type
      2  t_emp is object (
      3  name            varchar2(30),
      4  hire_date date,
      5  salary       number);
      6  /
    Tipo creato.
    SQL> create or replace type
      2  t_emptab is table of t_emp;
      3  /
    Tipo creato.
    SQL> create or replace function tab_fun(p_dept in number)
      2  return t_emptab is
      3  e t_emptab;
      4  begin
      5    select t_emp(ename,hiredate,sal)
      6      bulk collect into e
      7      from emp
      8     where deptno=p_dept;
      9
    10    return dip;
    11  end;
    12  /
    Funzione creata.
    SQL> select *
      2  from table(tab_fun(20));
    NAME                           HIRE_DATE  SALARY
    SMITH                          17-DIC-80        800
    JONES                          02-APR-81       2975
    SCOTT                          09-DIC-82       3000
    ADAMS                          12-GEN-83       1100
    FORD                           03-DIC-81       3000A procedure cannot be used in a select statement.
    Max
    http://oracleitalia.wordpress.com

  • How Can I Change the  Where Condition In the First SQL Query?

    SELECT IND_SSN, BEG_SVC_DT, END_SVC_DT,
    TRUNC(MONTHS_BETWEEN((TO_DATE('19'||END_SVC_DT,'YYYYMMDD')),BEG_SVC_DT)/12),
    mod(trunc(months_between((to_date('19'||end_svc_dt,'YYYYMMDD')),BEG_SVC_DT)),12),
    DECODE((SUBSTR(END_SVC_DT,5,2) - SUBSTR(BEG_SVC_DT,1,2)+1),-1,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -2,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -3,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -4,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -5,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -6,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -7,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -8,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -9,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -10,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -11,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -12,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -13,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -14,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -15,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -16,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -17,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -18,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -19,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -20,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -21,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -22,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -23,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -24,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -25,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -26,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -27,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -28,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -29,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -30,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    -31,((SUBSTR(END_SVC_DT,5,2)+ 31) - SUBSTR(BEG_SVC_DT,1,2)),
    30,0,
    (SUBSTR(END_SVC_DT,5,2) - SUBSTR(BEG_SVC_DT,1,2)+1))
    FROM SVC_OCCURRENCES
    WHERE end_svc_dt not in ('PRESENT')
    AND SUBSTR(END_SVC_DT,1,1) IN '9'
    AND SUBSTR(END_SVC_DT,5,2) NOT IN ('31')
    and (SUBSTR(END_SVC_DT,5,2) - SUBSTR(BEG_SVC_DT,1,2)+1) not in ('30')
    UNION
    SELECT IND_SSN, BEG_SVC_DT, END_SVC_DT, NULL, NULL, NULL
    FROM SVC_OCCURRENCES
    WHERE SUBSTR(END_SVC_DT,1,1) IN 'P'
    The above code works fine and I get the correct numeric values from the SQL
    query when the varchar2 end_svc_dt field is numeric however if I have encoded
    the word 'PRESENT' in the varchar2 end_svc dt field the SQL query aborts at
    the last statement in the WHERE condition. The beg_svc_dt field is a Date field.
    and (SUBSTR(END_SVC_DT,5,2) - SUBSTR(BEG_SVC_DT,1,2)+1) not in ('30')
    I get the following error message
    ERROR ORA-0722 INVALID NUMBER
    I encode the word 'PRESENT' in a varchar2 end_svc_dt field on an Oracle form. This is the only word that can be encoded.
    Is there some way that I can bypass the last statement in the where condition and
    compute the values from the SQL query without having the SQL query abort?
    Eventually I want to do this in a report. I know that this sounds strange but can it be done?

    The above code works fine and I get the correct
    numeric values from the SQL
    query when the varchar2 end_svc_dt field is numeric
    however if I have encoded
    the word 'PRESENT' in the varchar2 end_svc dt field
    the SQL query aborts at
    the last statement in the WHERE condition.Ouch!
    Storting dates in VARCHAR2 columns is bad practice, poor design and makes for horrible code.
    The beg_svc_dt field is a Date field.
    and (SUBSTR(END_SVC_DT,5,2) -
    SUBSTR(BEG_SVC_DT,1,2)+1) not in ('30')If it's a date field then why on earth are you trying to SUBSTR it. SUBSTR = sub-string i.e. take a sub section of a string not sub-date.
    I get the following error message
    ERROR ORA-0722 INVALID NUMBERAnd you're surprised by this?
    Is there some way that I can bypass the last
    statement in the where condition and
    compute the values from the SQL query without having
    the SQL query abort?Store your dates properly, use additional flag columns for non-date information and code your SQL properly.
    Eventually I want to do this in a report. I know
    that this sounds strange but can it be done?Yes, most things are possible.

  • Creating a where clause in the LOV query box

    Hi guys is any able to help me with this one
    i have a page in my app where there is a LOV drop down now the values for this drop down comes from a table that looks like this
    users_for _form_TBL
    E_MAIL
    Vendor
    [email protected]
    oracle
    [email protected]
    sap
    [email protected]
    IBM
    [email protected]
    Oracle
    [email protected]
    intergraph
    So my syntax for the LOV i mentioned looks like this
    select VENDOR as display_value, VENDOR as return_value
      from form_user_tab where E_MAIL = :APP_USER
    order by 1 ;
    so if [email protected] logs onto the app and has to make a selection on the LOV it would only display the vendors relative to his E_MAIL like oracle ,sap, IBM then he hits the submit button on the page then the vendor that he selected is inserted into another table .What i did on the insert table was create a trigger that after a vendor is inserted the trigger inserts a 1 into a column called assessed .
    What i did after this was add a select in the where clause of the LOV so that it would check in the insert table if that vendor had been chosen before and not display it again to be selected  my syntax the second time around in the SQL query box was
    select VENDOR as display_value, VENDOR as return_value
      from users_for _form_TBL where E_MAIL = :APP_USER
    and (select 'vendor' , 'ASSESSD' from inserted _tbl_imp is null);
    order by 1 ;
    But im getting an error any ideas guys .Thank you

    Hay man thanks for that info on the Tom Kyte Blog 
    --(the code you gave me )
    select 
        u.vendor display_value 
      , u.vendor return_value
    from 
        users_for_form_tbl u 
    where 
        u.e_mail = :app_user 
    and not exists (select null from inserted_tbl_imp i where u.vendor = i.vendor) 
    order by 
        u.vendor 
    --(After the error i tried )Then when i got the error i try'd using 'or exists'  like this
    --(code)
    where 
        u.e_mail = :app_user 
    and not exists (select null from inserted_tbl_imp i where u.vendor = i.vendor) 
                          or exists (select null from inserted_tbl_imp i where u.vendor = i.vendor)
    order by 
        u.vendor 
    But the all the vendors that where in the  same in the insert table came up in the drop down list  example is oracle was assessed before then only oracle would appear in the drop down list  and if it was assessed 3 times it would come up 3 times
    --Then i tried to select where 'Assessed' is null   ('Assessed' is a column in the insert table  which i created a trigger on to insert 1 in the 'ASSESSED' column  when a vendor is begin assessed  )  
    --(code)
    where 
        u.e_mail = :app_user 
    and not exists (select 'ASSESSED' from inserted_tbl_imp i where 'ASSESSED' is null ) 
    order by 
        u.vendor 
    This try didnt return any vendors at all
    --Then i tried distinct
    --(code)
    where 
        u.e_mail = :app_user 
    and not exists (select distinct 'VENDOR',  from inserted_tbl_imp i where u.vendor = i.vendor) 
    order by 
        u.vendor 
    This gave me a LOV ERROR
    This is what i have tried so far there where others syntax's i tried last night as well  but most of them came back as errors . Thanks again for you time and help  fac586  

  • The issue with using the multiple columns sub-query in WHERE clause

    Hi All,
    my database version is 10.2.
    the problem i am trying to deal with is that when I use multiple column sub-query in the WHERE clause of the SELECT statement, the actual row number returned from the sub-query is different from the whole statement.
    And what I found is that, whenever there is NULL in any of those columns returned from the SUB-QUERY, the outer query will just return NULL for that whole row.
    Here is an example:
    select empno, ename, job, mgr, hiredate, sal, deptno from EMP
    intersect
    select empno, ename, job,  mgr, hiredate, sal, deptno from t;
    7782     CLARK     MANAGER     7839     09-JUN-81     2450     10
    7839     KING     PRESIDENT  NULL  17-NOV-81     5000     10
    7934     MILLER     CLERK     7782     23-JAN-82     1300     10
    select * from EMP where (EMPNO, ENAME, job, MGR, HIREDATE, SAL, DEPTNO) in (
    select empno, ename, job, mgr, hiredate, sal, deptno from EMP
    intersect
    select empno, ename, job,  mgr, hiredate, sal, deptno from t);
    7782     CLARK     MANAGER     7839     09-JUN-81     2450          10     
    7934     MILLER     CLERK     7782     23-JAN-82     1300          10     If I specifically deal with the NULL situations for the columns which might return NULL, I can get the result right.
    select * from EMP where (EMPNO, ENAME, job, NVL(MGR,-1), HIREDATE, SAL, DEPTNO) in (
    select empno, ename, job, nvl(mgr,-1), hiredate, sal, deptno from EMP
    intersect
    select empno, ename, job,  nvl(mgr,-1), hiredate, sal, deptno from t);
    7782     CLARK     MANAGER     7839     09-JUN-81     2450          10     
    7839     KING     PRESIDENT  null   17-NOV-81     5000          10     
    7934     MILLER     CLERK     7782     23-JAN-82     1300          10     the problem is that, I feel this is a very lame way of handling it.
    So, I wonder or am asking if there is any better or standard way to do it?
    any help would be highly appreciated.
    Thanks

    Hi,
    As you discovered, INTERSECT treats NULL as a value, but IN does not.
    What you did with NVL is one way to handle the situation. If there was a chance that any of the columns could be NULL, then you might prefer something like this:
    select      *
    from      EMP
    where      ( EMPNO      || '~' ||
           ENAME      || '~' ||
           job           || '~' ||
           MGR           || '~' ||
           TO_CHAR (HIREDATE, 'DD-MON-YYYY HH24:MI:SS')
                    || '~' ||
           SAL           || '~' ||
           DEPTNO
         ) in (
              select  EMPNO      || '~' ||
                     ENAME      || '~' ||
                   job     || '~' ||
                   MGR     || '~' ||
                   TO_CHAR (HIREDATE, 'DD-MON-YYYY HH24:MI:SS')               
                        || '~' ||
                   SAL      || '~' ||
                   DEPTNO
              from     emp
             intersect
              select  EMPNO      || '~' ||
                     ENAME      || '~' ||
                   job     || '~' ||
                   MGR     || '~' ||
                   TO_CHAR (HIREDATE, 'DD-MON-YYYY HH24:MI:SS')               
                        || '~' ||
                   SAL      || '~' ||
                   DEPTNO
              from      t
             );This assumes that you can identify some string (I used '~') that never occurs in the strings in these tables.
    This is implicitly converting the NUMBERs. That's usually not a good thing to do. but explicitly converting them would make this even more tedious.
    You should explicitly convert any DATEs to strings, however. Depending on your default format, and your data, you might get away with implicit conversions even for DATEs, but don't bet on it.
    If you had to do this often, you might consider writing a user-defined function:
    delimited_string (empno, ename, job, mgr, hiredate, sal, deptno) would return a string like
    '7839~KING~PRESIDENT~~17-NOV-1981~5000~10'
    This will make the coding easier, but beware: it will make the execution slower.

  • DECODE in the WHERE part of the query ?

    Hello guys ,I am on 10gR2, and as always , the following mystery for me will be funny for you : ), so please share your knowledge.
    I have one select on v$session , and i would to use something like DECODE function in the WHERE part of the query,
    but , for the values i enter through the variables.
    Currently i have something like :
    WHERE status =upper('&session_status') AND username IS NOT NULL order by last_call_et desc;and that works fine, i enter either 'active' or 'inactive' and i get results.
    But i would like to enter for example '1' for active and '2' for inactive, so i could write as little as i can as i am lazy. : )
    Do you have some idea ?

    hi there
    select * from v$session  where status = decode('&session_status',1,'ACTIVE','INACTIVE')  AND username IS NOT NULL order by last_call_et descregards
    hitesh

Maybe you are looking for

  • Not able to start Gnome via GDM

    I have just installed Archlinux on an old laptop (HP ZV5000), which I want to bring back to life as there is always a long queue to us the other PC in the family Everything went smooth, except the last step: when I try to login via GDM, the screen be

  • MIR4 attachment list pdf file

    Hello Gurus, my user has attached a pdf file in paked invoice using the attachment list button  . I can correctly see the pdf file using the FB03 transaction , but I can't see the pdf file  using the MIR4 . Is it normal ? Shouldn't I see the file als

  • JSP db connect doesnt work when deployed

    I have a VERY simple JSP selects from a table, displays the rows. Works fine when running in the local OC4J, but when i deploy it to the application server get the following. Any ideas?? I can post the JSP and web.xml and data-sources.xml if it would

  • Days in the Calendar ADF

    Hi, I´ve some date attributes in tables (type DATE), and when I put them in a page from the data control, appear the fields like object calendar. But when I push in it to insert a date in the field, the calendar begins on Sunday. I´m spanish and I´d

  • Why does the "Computer Name" sometimes change?

                    Not a big deal, just curious, why does the "computer name" sometimes change?                  The name will be the same, but it will add a number....2,3,4...I always change it back so it doesn't have a numeric value next to it, but ju