Odi 10 g Get Last Session Date

Hi,
I want to get Last run time of Package.For example I will put a filter between last run time of package and sysdate.But how can I get Last session date of a package?
I will insert new datas to target table from last session time to current time
Thnx a lot

This is normal.
You have created a variable that retrieves the ACTUAL session begin date.
So, when you're launching your package at 11/12/2012 09:38:56, it will retrieve the begin date of this session, so 11/12/2012 09:38:56.
If you want the previous session, you cannot use a filter like SESS_NO = <%=odiRef.getSession("SESS_NO")%>
==> You must filter on the previous session of the same scenario. Or the previous session of the same session name.
Use WHERE clause to filter on finished / not running session
But don't use <%=odiRef.getSession("SESS_NO")%>
Other solution : use the SESS_END in order to retrieve the END date. Since your actuel scenario is not finish, you will get the last session.
If you really want the BEGIN date of the last session, you must adapt your SQL Statement in order to get the session previously executed.

Similar Messages

  • Hi all, can someone help me in getting last login date of a user in CQ5 please?

    Hi all, can someone help me in getting last login date of a user in CQ5 please?

    CQ is REST based and does not have the concept of session. So there is no feature to track login or logout details.  Most of our customers use some kind of central authentication Ex- SSO hence no need arises to have such functionality built in.  However if needed you have the ability to implement such at a project level solution. Ex:- custom login modules or auth-handler by taking project specific constraints and requirements into account

  • How to get last modified date and time of a file which is in apache server.

    Hi ,
    I need to get last modified date and time of a file in remote machine.
    This file is in remote machine which has apache server installed.
    I am trying to get this information by connecting to apache server from client by giving absolute URI of the file to file object.
    URI is got from apache server URL by using toURI method.
    when I use lastModified method , its throwing exception , because scheme of URI is not file.
    I can't give scheme as file because ftp server is not installed on that server
    Is there any other way to get this information .

    No, unless you can use an FTP client.

  • How to get last Build date of a dll in the real time target

    Info On My Project    
       I am working on LabWindows CVI 12.0 for development . This project is a real time application for hardware, which is having Phar Lap ETS as RTOS...  
    I am facing some problems while checking Build date of my Application file( .dll)
    I have tried to use GetFileDate API. But it is not supporting for realtime Target..
    So i have tried __DATE__ macro.. That also having some problems..
    How to get last Build date of a dll from the real time target  ??
    Please Help to solve this....
    Thanks
    Vaishakh A  K

    Please reply if any one have suggestion...

  • Need FM to get Last change date of Objects in package

    Hi All,
      Is there any Function module to get Last changed date of all Objects in a package .
      How to get the last change date of class,methods,function module.....
      I can get last change date of programs from TRDIR....UDAT....Similarly how can I get for Function Module and Class Methods. 
    With Thanks,
    Dina.
    Message was edited by: Dinamol Sasidharan

    Go/double click on the affected cubes you want to see the time stamp.
    click the Extras(tab on the upper of part of SAP) or simply 'Ctrl + F5'.
    Box will appear.
    Click on Logs for Save/Activate so you will see the linfo for the users who used this cube.
    Then put time restriction for From and To(always the current day and time).
    Then execute, all of the users who changed then saved/activated that cube will appear on that timeframe you view.
    Hope this help.

  • Get last changed date by Program ID/Object type/Object name of a task

    Hi to all.
    I'm looking for a way to get last changed date of an object by task number(CR). Any SAP function or utility someone has??
    For example if I have a task with the object list:
    R3TR PROG  ZSD_ORD_COND_P
    R3TR TABL    ZCNDSLCTN
    LIMU  REPS  ZSD_ORD_COND_CLS
    R3TR TRAN   ZZDIS
    R3TR VIEW   ZSD_VBAK_KONV
    I need to get last changed date for each object.
    Thanks,
    Yuval Kaduri, Cellcom, Israel.
    Edited by: yuval kaduri on Mar 2, 2008 2:59 PM

    Hi Venu, thanks for the input.
    In the table I don't have all changes made in objects that the CR is not released. I need to know all changed date of objects even if the CR is not released. There are  few tables containing the date and time object last changed for the deferent types but I'm looking for a function or some utility someone wrote that gets the CR line info as - PgmID/Obj/Object name - and gives back last changed date and time.
    Thanks,
    Yuval Kaduri, Cellcom, Israel.

  • Need formula in my subreport to get last month date - CR XIr2

    Post Author: olesco
    CA Forum: Formula
    I need to pass the value (#of units) from the subreport to the main report u2013 I know how to do that but my problem is I donu2019t know what formula should I put in my subreport  to get last month date.
    Both main report and subreport have a date parameter (Field link - {?DatePrompt}. What I need is when I fill in the current month date to the main report the subreport should process the last moth date.
    Main report u2013 Date Range (2007-10-1) (2007-10-31) - result  #of units = 22
    u201CRecord Selection Formula Editor
          DateRecd = {@DatePrompt} &#91;i.e. current month&#93;
    Subreport u2013 should have data from last month - result  #of units = 25
    u201CRecord Selection Formula Editor
          DateRecd < {@DatePrompt} &#91;last month&#93;   ??????
    There are   22 3 units this month and   25  units last month.
    Any help is greatly appreciated.

    Post Author: SKodidine
    CA Forum: Formula
    DateRecd in dateadd('m',-1,minimum({@DatePrompt})) to dateadd('m',-1,maximum({@DatePrompt}))

  • Getting the session data.

    Dear all,
              Is there any mechanism by which I can get the session data (processed data/Error data). I want to capture that data in a file and send it to the specific user in a mail.
             quick replies appreciated.
    Thanks in Advance,
    Suresh

    Hi Suresh,
    Look at Reading session log. These two threads will give all the details you need to know about the sessions.
    Srinivas

  • Get last modified date and time of sharepoint site through Search

    Hi All,
    I am trying to get the last updated date and time of a sharepoint site using KeywordQuery.
    For this I updated an existing list item, added a new item in a site and crawled the content. Then I used "ContentClass:STS_Site" as query in C# code to fetch the search results. I am able to get most of the properties I require for that
    site. However "LastModifiedTime" does not return the correct value. It returns an older value.
    How can I get the last updated date of a sharepoint site using search ?
    Regards,
    Vipul Kelkar

    No, unless you can use an FTP client.

  • How to get last session open tabs?

    My hard disk is damaged, but I can read/copy files when I install it in other computer as a secondary hard disk.
    The problem happend suddenly, and now I need to recover the last session open tabs. How can I get them? Only URLs of course.
    Thanks.

    I've had what I think is a related problem since the most recent software update.  I have Lion 10.7.4 and have updated to Safari 6.0.  The most noticeable difference is that where previously I had two boxes at the top of the Safari window (one to enter URL addresses, one for Google searches), there is now only one box for both functions.  I don't like that as well, but I can live with it.  However, since the most recent software update my "back button" only works about 5% of the time. Most of the time it is grayed out.  So I usually can't get back to previous pages using the back button.  Also, when I've clicked a link that opens a new window (for instance, going through the return process at Amazon, I clicked UPS locator and it opened a new window), where in the past I would have just clicked the red button after I had the information, the UPS locator window would have closed, and I would have been back at Amazon - now if I close the UPS locator window, all Safari windows close.  The Safari application doesn't close, but the Amazon window closes, I'm back to an empty screen, and I have to open a new Safari window and reenter everything.  I'm using a work-around of clicking on History and selecting the description of the window I want to get back too, but that only works part of the time. In the Amazon example, that's what I did once I had the UPS info, but even though I clicked the correct window description, it took me back to the beginning of the return process & I had to reenter all the info.  Of course, that info was easy to reenter, but if I'm in the middle of a complicated process, it's a big problem.  I've filed a bug report; I surely hope the Apple engineers are able to fix this.  I'm used to using the back button function a lot!

  • Getting last login dates and times for graphical/xwindows logins?

    Hi,
    How do I get the last login date and times for users who just use the GUI (and don't launch terminals)?
    So far such logins don't seem to show up when I do "last -f /var/adm/utmpx" or for wtmpx.
    What should I be using on solaris to get the last login dates and times for all users, whether they log in on the text console, graphical console, or remotely via ssh etc?
    Thanks,
    Link.

    Hi,
    How do I get the last login date and times for users who just use the GUI (and don't launch terminals)?
    So far such logins don't seem to show up when I do "last -f /var/adm/utmpx" or for wtmpx.
    What should I be using on solaris to get the last login dates and times for all users, whether they log in on the text console, graphical console, or remotely via ssh etc?
    Thanks,
    Link.

  • Using, about:sessionrestore does not bring up my valuable session. Will sessionstore.js or other file have my last session data?

    Dear FF Community,
    My last Mac ff session was loaded with tabs and other windows that i had open as part of the session. Clicking an outside link bringed ff up as its the default browser with it saying, "this is embarrasing, would you like to resore your last session..." I closed it taking no action on the restore prompt( or so do i think) having in mind that next ff load(app start) would bring up my session which did not. "about:sessionrestore" is empty which leads me to believe some file under profiles might give me the data on text.
    Could you please inform me on this as i had some data i would like to recover.
    Thanks a lot,
    Pedro

    If you do not have a file sessionstore.js with the tabs of your lost session (also check History > Recently Closed Tabs/Windows) then your tabs are lost.
    Session restore works more reliable if you choose Firefox > Preferences > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time" instead of relying on the Save & Quit dialog.

  • PowerShell Active Directory: Get last logon date of a deleted user

    So, my first post in this noble community. I've been lurking here and I've been getting some good information. Hopefully, you guys can help me in this concern which may be simple to some but I couldn't seem to get around it.
    Is it possible to get the last logon date of a DELETED user in Active Directory?
    I can get the available properties of deleted users using the following:
    Get-ADObject -Filter {samaccountname -eq <account_name> -and ObjectClass -eq "user"} -IncludeDeletedObjects -Properties *
    But the last logon date is not one of the properties available from Get-ADObject. Get-ADUser has the last logon property, but it does not have data on deleted users. Is there anyway this can be achieved? Perhaps convert an ADObject to an ADUser?
    Any information would be much appreciated. Thank you.

    Thanks everyone for your response. It looks like jrv is leading me to the right path, but I'm still having issues. I'm trying to get the lastlogon time by querying all the DCs in our domain, but every query returns a null lastlogon time for all the deleted
    users I tried:
    $DomainControllers = ((Get-ADForest).Domains | %{ Get-ADDomainController -Filter * -Server $_ }).Name
    foreach ($DC in $DomainControllers)
        $dn=(Get-ADObject -Filter {samaccountname -eq <user_account>} -includedeletedobjects -server $DC).DistinguishedName
        $user=[adsi]"LDAP://$dn"
        $user.LastLogon
    It always returns null. Morever, simply executing [adsi]"LDAP://$dn" from each DC gives the following error:
    format-default : The following exception occurred while retrieving member
    "distinguishedName": "There is no such object on the server.
        + CategoryInfo          : NotSpecified: (:) [format-default], ExtendedType
       SystemException
        + FullyQualifiedErrorId : CatchFromBaseGetMember,Microsoft.PowerShell.Comm
       ands.FormatDefaultCommand
    It's a bit surprising to me though, since $user=[adsi]"LDAP://$dn" does return a value for $user (instead of null whenever an error is encountered) of type System.DirectoryServices.DirectoryEntry but it has no members.
    Anyone know what I'm missing?

  • How to get last login date of the user

    Hi,
    I have an application where i need the last login date of the user and if the differance between the last login date and the system date is greater than a certain range the user account should be locked automatically.Please suggest me how resolve the problem as early as possible.
    Thanks and Regards
    Aniruddha

    Hi,
    We have faced the same issue earlier. Some attributes are available in SAP API, but they are depricated by sap due to some performance issue.
    Below solution will be helpful:
    So we have implmented custom code in our application. We have developed one webdynpro application which will retrieve update & retrieve logon time from portal database(custom table). And we have integrated this application in desktop inner page. So this application will be invisible to the user and will executed first time when user logs into the portal.
    Regards,
    Charan

  • Not getting Last year data in query

    Hi All
    i have created one query on cost element cube.i have two col in the query i.e amount(present year) and amount (past year).
    For getting the past year data I have set the offset -12 for the fiscalyear/ period variable in the query i also restricted the fiscal year variant v3 in the amount. but i am not getting the corect value  for the past year . if i run for 2011 and 2010 for the same period i am getting right value in Amount(present year) but if i run the query for 2011 for same period i am not geting right value in amount previous year data. Kindly help me how to  get right data.

    Hi Atul,
    There are certain restrictions when you are reporting over multiple time frames,
    1) You should not put the global restriction of the time period on which you want to display data e.g. 0CALMONTH or 0FISCPER etc.
    you can put the global restriction but it should be at high granularity. for e.g. when you are reporting on Present month and last month then you can put restriction on Year, here you should take care when you are giving input as first month then last month of previous year data will not be displayed untill year is restricted for current as well as previous year.
    Another thing is
    2) You should not put time characteristic in drill down otherwise data aggregation doesn't happen.
    If you want to take any time characteristic input then it should be included in the specific RKF only, though Input ready variables.
    Regards,
    Durgesh.

Maybe you are looking for

  • ORA-1850: hor must be between 0 and 23 error

    Hi All i have the following table for creating and inserting i included only two fileds as these are the fields that i'm getting errors on. WITH     sample_data     AS      SELECT     '50709' AS start_date, '2400' AS start_time  FROM dual     UNION A

  • My iMovie crashes everytime I try to open a project!

    My iMovie crashes everytime I try to open a project (which is quite big, about 24 minutes long). I've literally tried everything, from removing the imovie.plist file, searching for other files that could damage the project, doing a safe boot etc. Not

  • Recovering earlier installed Windows 7 after installing Arch Linux

    I'm trying to boot windows on my ASUS notebook. There was windows 7 from the very beginning (disks C:\ and D:\), then I divided disk D:\ on several partitions and installed Arch Linux. I overwrited Windows boot information by boot part of Linux. Now

  • How urgent:how can we know the size of a record from result set

    hi proffesionals i attend on problum with arrangment,for that what i am doing is i am fetching datas from database and printing in a row vertically.it is not looking good.i want to print it horizontaly like ae00023 as3333 a6556 a457864 a6576 ae00025

  • Behaviour of folders in library mode

    Hi folks, when I am in the library mode and close all my subfolder everything is fine. Now I rename a folder and several folders and subfolder pop open. Why? Does someone has the same behaviour? Greetings from Germany JK