SQL query to get the current session info

I've a query in my application to view the all the sessions within database
select
substr(a.spid,1,9) pid,
substr(b.sid,1,5) sid,
substr(b.serial#,1,5) ser#,
substr(b.machine,1,6) box,
substr(b.username,1,10) username,
-- b.server,
substr(b.osuser,1,8) os_user,
substr(b.program,1,30) program
from
v$session b,
v$process a
where
b.paddr = a.addr
and type='USER'
order by spid;
Can someone help me with a query to view the info of the session where I'm in currently?
Thanks,
Gabriel Stephen.

here's one way to do it.
select
   substr(a.spid,1,9) pid,
   substr(b.sid,1,5) sid,
   substr(b.serial#,1,5) ser#,
   substr(b.machine,1,6) box,
   substr(b.username,1,10) username,
   -- b.server,
   substr(b.osuser,1,8) os_user,
   substr(b.program,1,30) program
from
   v$session b,
   v$process a
where
   b.paddr = a.addr
   and type='USER'
   and b.sid=(select sid from v$mystat where rownum=1)
order by spid-------------
Anwar

Similar Messages

  • SQL query to get the Datetime 06 hours prior to the table Datetime value

    Hi Experts,
                    I'm just trying to create a SQL query to get the Datetime which should be 06 hours prior to my Table column value(Executiontime),
    Eg: my Executiontime(column) value is 07:00AM means, this query should fetch the detail of first VMName from table at 01:00AM, 
    SQL Table Name: TestTable
    Columns: VMName(varchar),status(varchar) Executiontime(Datetime)
    SQL Query : Select Top 1 VMName from
    TestTable where convert(date,Exeutiontime)=convert(date,getdate()) and
    status='0' and ExecutionTime > dateadd(hour,6,getdate())
    Request someone to alter this Query to my requirement or give me the new one.
    Regards,
    Sundar
    Sundar

    Hi All,
            Thanks for your Prompt response. I tried the below queries, but still I don't have any luck. Actually the queries are returning the value before the condition met (say when the time difference is more than 06 hours). I want the
    query to return exactly @ 06 hour difference or less than 06 hours,
    Query 01: Select Top 1 VMName from TestTable where
    convert(date,Exeutiontime)=convert(date,getdate())
    and status='0'
    and ExecutionTime >
    dateadd(hour,-6,getdate())
    Query 02: Select
    Top 1 VMName from TestTable where
    status='0'
    and ExecutionTime >
    dateadd(hour,-6,getdate())
    Query 03: Select
    Top 1 VMName from TestTable where status='0'
    and ExecutionTime >
    dateadd(hour,-6,ExecutionTime)
              Can someone point out the mistake please.
    Regards,
    Sundar
    Sundar

  • SQL query to get the list of approvals

    Hi,
    Could someone let me know the SQL query to get the list of all the pending approvals for a user in OIM 11g R2.
    Thanks

    There are a few ways to do this:
    -  The easiest would be to use a Relationship Query from the CMC. To do this, go to the Universes section on the CMC, right click on the relevant universe, select tools >> Check Relationships.
    - Use Query Builder. You will need more than one query to pull the information you need. You could try something like the below (for Webi)
    SELECT SI_NAME, SI_WEBI, SI_DATACONNECTION FROM CI_APPOBJECTS
    WHERE SI_KIND = 'universe' and SI_NAME = 'Universe Name'
    This will give you a list of Webi Reports by SI_ID.
    You'll need another query to list Webi report names:
    SELECT SI_NAME FROM CI_INFOOBJECTS WHERE SI_ID IN (SI_ID from query above)
    - This is trivial via Auditing / the Activity universe. This of course will only return reports that have already run.
    Best.
    Srinivas

  • Get the current session in a Session Bean?

    Hi,
    I know how to get the current session from a Servlet, you use request.getSession().
    However I need access to the current session from a Session Bean. As far as I know, only Servlets have a request object, so I can't use request.getSession()
    Any ideas on how to access the session from a Session Bean?
    Thanks!

    Hi,
    I managed to get around the problem by using a JSP to
    pass a session object to a method in my session bean.
    ThanksJust be aware that the serialized Session object can be a huge stream to remotely pass to your bean...
    Kexkey

  • Can't get the current bitrate info use SMPTE-TT Plugin

    Using OSMF2.0 to stream a smil title.
    Add the MediaPlayerCapabilityChangeEvent.IS_DYNAMIC_STREAM_CHANGE event listener, after the event dispatch then add the DynamicStreamEvent.SWITCHING_CHANGE event listener.
    The bitrate info can be report, normal. But after I add the SMPTE-TT plugin and load it like this:
    var pluginResource:MediaResourceBase = new PluginInfoResource(new SMPTETTPluginInfo);mediaFactory.loadPlugin(pluginResource);
    The title can be stream correct and the quality of the video can be set by the bandwidth, but only the DynamicStreamEvent.SWITCHING_CHANGE event can not be dispatch, so I can't get the current bitrate info.
    I debug it in the OSMF source code and find the issue in the org.osmf.elements.compositeClasses.ParallelDynamicStreamTrait class line 323
    FYI:
    onSwitchingChange function that the numChildrenSwitching property always 0, so it can not call the setSwitching function and can not dispatch DynamicStreamEvent.SWITCHING_CHANGE event.
    So, I add some changes from line 333 to line 336 and it has be fix:
    Environment:Flex SDK 4.6 + flash player 11.8.
    I don't know it is a bug in the OSMF framework and I want to get more info about it.
    Thanks.

    can you turn off the message pane (F8) between restarts? I am guessing it will turn on again as well.

  • SQL Query to get the # of files in folders in a library

    Anyone has the SQL query to list the number of files in each folders in a SharePoint library?

    Technically it's a grey area of support as MS don't mind you doing it but won't help you if you encounter problems, the script is much better though.
    Scratch that, the script isn't that good. It's using .items which won't work on large lists and is slow. The version below is untested but should be significantly faster and work on large lists.
    $starttime = Get-Date
    #Creating new site object
    $siteurl = Read-Host "Enter the name of your site and press enter"
    $site = New-Object Microsoft.SharePoint.SPSite($siteurl)
    #Assigning all webs (sites) to $webs
    $webs = $site.Allwebs
    #System Libraries defined so they won't be touched##
    $systemlibs =@("Converted Forms", "Customized Reports", "Documents", "Form Templates",
    "Images", "List Template Gallery", "Master Page Gallery", "Pages",
    "Reporting Templates", "Site Assets", "Site Collection Documents",
    "Site Collection Images", "Site Pages", "Solution Gallery",
    "Style Library", "Theme Gallery", "Web Part Gallery", "wfpub")
    Write-Host "Total number of webs that will be traversed: " $webs.count
    $DocLibsCount = 0
    $DocLibwItems = 0
    $totalitems = 0
    $subfolderitems = 0
    foreach($web in $webs)
    $listcoll = $web.lists
    foreach($list in $listcoll)
    if($list -eq $null)
    Write-Host
    else
    $base = $list.GetType()
    if($base.name -eq "SPDocumentLibrary")
    if ($systemlibs -contains $list)
    { continue}
    else
    $DocLibsCount += 1
    $totalitems += $List.itemcount
    $name = $list.Title
    $folders = $web.GetFolder($name).SubFolders
    for($etr = 0;$etr -lt $folders.count; $etr++)
    if($folders[$etr].Name -ne "Forms")
    Write-Host "Processing SubFolder ItemCount" -ForegroundColor Red
    $tempcount = $folders[$etr].ItemCount
    $subfolderitems += $tempcount
    Write-Host
    Write-Host
    Write-Host "Total # of Document Libraries: " $DocLibsCount -ForegroundColor Green
    Write-Host "Total # of Document Libraries that contain items: " $DocLibwItems -ForegroundColor Green
    Write-Host "Total # of items: " $totalitems -ForegroundColor Green
    Write-Host "Total # of items in DocLib\Subfolders: " $subfolderitems -ForegroundColor Green
    $finishtime = Get-Date
    Write-Host
    Write-Host “Script Duration” –ForegroundColor Yellow
    Write-Host “Started: “ $starttime –ForegroundColor Yellow
    Write-Host “Finished: “ $finishtime –ForegroundColor Yellow
    Stop-SPAssignment -Global

  • OIM sql Query for getting the status of the task which got failed

    Hi Everyone,
    We have a requirement like we need to get the status of a particular task(say Create User in OID resource - Completed\Rejected status) for the particular user.We are able to get the status of the resource provisioed to the user but not the status of the particular task getting trigerred for the user.can someone put some light on this.We need to get the SQL query for this.
    Thanks in Advance.
    Regards,
    MKN

    Hi
    Use this sample query to get the task status, also check the cooments
    SELECT USR.USR_LOGIN, OSI.SCH_KEY,SCH.SCH_STATUS,STA.STA_BUCKET FROM
    OSI,SCH,STA,MIL,TOS,PKG,OIU,USR,OBJ,OST
    WHERE OSI.MIL_KEY=MIL.MIL_KEY
    AND SCH.SCH_KEY=OSI.SCH_KEY
    AND STA.STA_STATUS=SCH.SCH_STATUS
    AND TOS.PKG_KEY=PKG.PKG_KEY
    AND MIL.TOS_KEY=TOS.TOS_KEY
    AND OIU.USR_KEY=USR.USR_KEY
    AND OIU.OST_KEY=OST.OST_KEY
    AND OST.OBJ_KEY=OBJ.OBJ_KEY
    AND OSI.ORC_KEY=OIU.ORC_KEY
    AND OBJ.OBJ_NAME='AD User'
    AND OST.OST_STATUS = 'Provisioning' -- filter accordinglly
    AND STA.STA_BUCKET = 'Pending' -- filter accordinglly
    AND PKG.PKG_NAME='AD User' -- filter accordinglly
    AND MIL.MIL_NAME='System Validation' ---- filter accordinglly
    Thanks,
    Kuldeep

  • Query to get the current DB date, not server date

    Hi,
    We have few DB in one server, but each DB have different timezone.
    How can I get the query to generate the current date in each DB?
    Thanks

    Hi,
    Try this query:
    SELECT DB_NAME() AS DataBaseName,getdate()
    Thanks & Regards,
    Nagarajan

  • SQL Query to get the desired result

    Can someone give the SQL to get this output.
    input is like this in table.
    cola     colb     fromdate     todate
    1     100     1/5/2010     1/9/2010
    1     101     1/10/2010     1/25/2010
    1     102     1/26/2010     12/31/2900
    2     201     3/1/2011     3/10/2011
    2     202     3/11/2011     12/31/2900
    3     301     1/5/2010     1/9/2010
    3     302     1/10/2010     1/25/2010
    3     303     1/26/2010     1/28/2010
    3     304     1/29/2010     12/31/2900
    I want to get the output like this.
    cola     colb     fromdate     todate
    1     100     1/5/2010     1/9/2010
    2     201     3/1/2011     3/10/2011
    3     301     1/5/2010     1/9/2010
    More info:
    I want to get the rows where fromdate is the min(fromdate) from each cola's unique values i.e. 1,2,3
    Please let me know the SQL.
    Thanks.
    [email protected]

    This way!!!
    with data(cola, colb, st_dt, ed_dt) as
    select 1,     100,     to_date('01/05/2010', 'MM/DD/YYYY'),     to_date('01/09/2010', 'MM/DD/YYYY') from dual union all
    select 1,     101,  to_date('01/10/2010', 'MM/DD/YYYY'),     to_date('01/25/2010', 'MM/DD/YYYY') from dual union all
    select 1,     102,     to_date('01/26/2010', 'MM/DD/YYYY'),     to_date('12/31/2900', 'MM/DD/YYYY') from dual union all
    select 2,     201,     to_date('03/01/2011', 'MM/DD/YYYY'),     to_date('03/10/2011', 'MM/DD/YYYY') from dual union all
    select 2,     202,     to_date('03/11/2011', 'MM/DD/YYYY'),     to_date('12/31/2900', 'MM/DD/YYYY') from dual union all
    select 3,     301,     to_date('01/05/2010', 'MM/DD/YYYY'),     to_date('01/09/2010', 'MM/DD/YYYY') from dual union all
    select 3,     302,     to_date('01/10/2010', 'MM/DD/YYYY'),     to_date('01/25/2010', 'MM/DD/YYYY') from dual union all
    select 3,     303,     to_date('01/26/2010', 'MM/DD/YYYY'),     to_date('01/28/2010', 'MM/DD/YYYY') from dual union all
    select 3,     304,     to_date('01/29/2010', 'MM/DD/YYYY'),     to_date('12/31/2900', 'MM/DD/YYYY') from dual
    select cola, colb, st_dt, ed_dt
      from (
            select cola, colb, st_dt, ed_dt,
                   row_number() over (partition by cola order by st_dt) rn
              from data
           ) a
    where a.rn = 1;
    COLA COLB ST_DT     ED_DT  
       1  100 05-JAN-10 09-JAN-10
       2  201 01-MAR-11 10-MAR-11
       3  301 05-JAN-10 09-JAN-10

  • SQL query to get the without SCCM agent for a Server

    Hello every one,
    Can I get the SQL query for a server without a SCCM agent . 

    Here you go!!
    Add the version for windows 2012 server if you have them as well in your environment
       v_R_System.Netbios_Name0
      ,v_R_System.Full_Domain_Name0
      ,v_R_System.User_Name0
      ,case
    When v_R_System.Operating_System_Name_and0 LIKE N'%Server 6.1'THEN 'Windows Server 2008 R2'
    When v_R_System.Operating_System_Name_and0 LIKE N'%Server 6.0'THEN 'Windows Server 2008'
    When v_R_System.Operating_System_Name_and0 LIKE N'%Server 5.2'THEN 'Windows Server 2003 R2'
     ELSE 'Unknown Version' END AS 'OS version'
    FROM
      v_R_System
    WHERE
      v_R_System.Operating_System_Name_and0 LIKE N'%server%' and v_R_System.Client0 is null
    Kindly mark as answer/Vote as helpful if a reply from anybody helped you in this forum. Delphin

  • SQL query to get the monitor target on a monitor

    Hi!
    I have a list of some custom created Monitors. I need a list of which computers that are using the monitors, the "Monitor target". Please help me with this. It need to be a SQL Query because my powershell have stopped working.

    Yes that is what i have explained you with the screenshot right it is the one in your screen shot also which is mentioned as (This). If this is a default group then you will not get agents for that refer the below link on how to pull agent list of the Target
    group
    http://msdn.microsoft.com/en-us/library/bb960484.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1
    Or look at this. You can see what groups the agents are associated manually one by one by using the default SCOM Task.
    Go to Administration==> Agent managed==> Select the agent ==> Right click it and click View ==> Select state view.
    Once you select this you will have another window opened for that particular agent.
    Then click on the name of the agent and on the right hand side bottom you will have a default made task to check to what group's or Targets this agent is associated to. Run that task and you will get the output.
    Look at the ones highlighted in RED
    Below is the screenshot for your reference. Hope this helps
    Gautam.75801

  • How to get the current session details in windows phone 8 when using Facebook ,Google and Microsoft login

    I want to get the session details like access token , provider etc on a page (ExamplePage.xaml.cs) , i used the following example from nokia developers community (link)
     and implemented the login part but how can i get session details  so that i can send it to my API
    The SessionService class manages the session on facebook,google,microsoft login:
    /// <summary>
    /// The service session.
    /// </summary>
    public class SessionService : ISessionService
    private readonly IApplicationSettingsService _applicationSettings;
    private readonly IFacebookService _facebookService;
    private readonly IMicrosoftService _microsoftService;
    private readonly IGoogleService _googleService;
    private readonly ILogManager _logManager;
    /// <summary>
    /// Initializes a new instance of the <see cref="SessionService" /> class.
    /// </summary>
    /// <param name="applicationSettings">The application settings.</param>
    /// <param name="facebookService">The facebook service.</param>
    /// <param name="microsoftService">The microsoft service.</param>
    /// <param name="googleService">The google service.</param>
    /// <param name="logManager">The log manager.</param>
    public SessionService(IApplicationSettingsService applicationSettings,
    IFacebookService facebookService,
    IMicrosoftService microsoftService,
    IGoogleService googleService, ILogManager logManager)
    _applicationSettings = applicationSettings;
    _facebookService = facebookService;
    _microsoftService = microsoftService;
    _googleService = googleService;
    _logManager = logManager;
    /// <summary>
    /// Gets the session.
    /// </summary>
    /// <returns>The session object.</returns>
    public Session GetSession()
    var expiryValue = DateTime.MinValue;
    string expiryTicks = LoadEncryptedSettingValue("session_expiredate");
    if (!string.IsNullOrWhiteSpace(expiryTicks))
    long expiryTicksValue;
    if (long.TryParse(expiryTicks, out expiryTicksValue))
    expiryValue = new DateTime(expiryTicksValue);
    var session = new Session
    AccessToken = LoadEncryptedSettingValue("session_token"),
    Id = LoadEncryptedSettingValue("session_id"),
    ExpireDate = expiryValue,
    Provider = LoadEncryptedSettingValue("session_provider")
    _applicationSettings.Set(Constants.LoginToken, true);
    _applicationSettings.Save();
    return session;
    /// <summary>
    /// The save session.
    /// </summary>
    /// <param name="session">
    /// The session.
    /// </param>
    private void Save(Session session)
    SaveEncryptedSettingValue("session_token", session.AccessToken);
    SaveEncryptedSettingValue("session_id", session.Id);
    SaveEncryptedSettingValue("session_expiredate", session.ExpireDate.Ticks.ToString(CultureInfo.InvariantCulture));
    SaveEncryptedSettingValue("session_provider", session.Provider);
    _applicationSettings.Set(Constants.LoginToken, true);
    _applicationSettings.Save();
    /// <summary>
    /// The clean session.
    /// </summary>
    private void CleanSession()
    _applicationSettings.Reset("session_token");
    _applicationSettings.Reset("session_id");
    _applicationSettings.Reset("session_expiredate");
    _applicationSettings.Reset("session_provider");
    _applicationSettings.Reset(Constants.LoginToken);
    _applicationSettings.Save();
    /// <summary>
    /// The login async.
    /// </summary>
    /// <param name="provider">
    /// The provider.
    /// </param>
    /// <returns>
    /// The <see cref="Task"/> object.
    /// </returns>
    public async Task<bool> LoginAsync(string provider)
    Exception exception = null;
    try
    Session session = null;
    switch (provider)
    case Constants.FacebookProvider:
    session = await _facebookService.LoginAsync();
    break;
    case Constants.MicrosoftProvider:
    session = await _microsoftService.LoginAsync();
    break;
    case Constants.GoogleProvider:
    session = await _googleService.LoginAsync();
    break;
    if (session != null)
    Save(session);
    return true;
    catch (InvalidOperationException e)
    throw;
    catch (Exception ex)
    exception = ex;
    await _logManager.LogAsync(exception);
    return false;
    /// <summary>
    /// The logout.
    /// </summary>
    public async void Logout()
    Exception exception = null;
    try
    var session = GetSession();
    switch (session.Provider)
    case Constants.FacebookProvider:
    _facebookService.Logout();
    break;
    case Constants.MicrosoftProvider:
    _microsoftService.Logout();
    break;
    case Constants.GoogleProvider:
    _googleService.Logout();
    break;
    CleanSession();
    catch (Exception ex)
    exception = ex;
    if (exception != null)
    await _logManager.LogAsync(exception);
    /// <summary>
    /// Loads an encrypted setting value for a given key.
    /// </summary>
    /// <param name="key">
    /// The key to load.
    /// </param>
    /// <returns>
    /// The value of the key.
    /// </returns>
    private string LoadEncryptedSettingValue(string key)
    string value = null;
    var protectedBytes = _applicationSettings.Get<byte[]>(key);
    if (protectedBytes != null)
    byte[] valueBytes = ProtectedData.Unprotect(protectedBytes, null);
    value = Encoding.UTF8.GetString(valueBytes, 0, valueBytes.Length);
    return value;
    /// <summary>
    /// Saves a setting value against a given key, encrypted.
    /// </summary>
    /// <param name="key">
    /// The key to save against.
    /// </param>
    /// <param name="value">
    /// The value to save against.
    /// </param>
    /// <exception cref="System.ArgumentOutOfRangeException">
    /// The key or value provided is unexpected.
    /// </exception>
    private void SaveEncryptedSettingValue(string key, string value)
    if (!string.IsNullOrWhiteSpace(key) && !string.IsNullOrWhiteSpace(value))
    byte[] valueBytes = Encoding.UTF8.GetBytes(value);
    // Encrypt the value by using the Protect() method.
    byte[] protectedBytes = ProtectedData.Protect(valueBytes, null);
    _applicationSettings.Set(key, protectedBytes);
    _applicationSettings.Save();

    I need to get the session details in the following page AllEvents.xaml.cs  :
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Net;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Navigation;
    using Microsoft.Phone.Controls;
    using Microsoft.Phone.Shell;
    using AuthenticationSample.WP80.ViewModel;
    using AuthenticationSample.WP80.Services.Model;
    using AuthenticationSample.WP80.Services;
    using AuthenticationSample.WP80.Resources;
    using System.Threading.Tasks;
    namespace AuthenticationSample.WP80.Views
    public partial class AllEvents : PhoneApplicationPage
    public AllEvents()
    InitializeComponent();
    MainViewModels FakeData = new MainViewModels();
    FakeData.LoadData();
    DataContext = FakeData;

  • SQL query to get the responsibility name

    Hi,
    I require an SQL query which would give the responsibilty name to which the concurrent programs are assigned.
    Thanks& Regards,

    SELECT          fcpv.user_concurrent_program_name
    FROM            fnd_request_groups frg,
                    fnd_request_group_units frgu,
                    fnd_concurrent_programs_vl fcpv,
                    fnd_responsibility_vl frv
    WHERE           frgu.request_group_id = frg.request_group_id
    AND             frgu.request_unit_id = fcpv.concurrent_program_id
    AND             frv.request_group_id = frg.request_group_id
    AND           frgu.request_unit_type = 'P'
    AND             frv.responsibility_name =<Responsibility Name>Regards
    Prashant Pathak

  • Need SQL query to get the result.

    Region
    Month
    Trx Type
    Resolution Summary
    AMERICAS
    May-13
    Adjustments
    Correct
    EMEA
    May-13
    Adjustments
    Incorrect
    AMERICAS
    May-13
    Credit Memo
    Incorrect
    EMEA
    May-13
    Invoice
    Correct
    AMERICAS
    May-13
    Credit Memo
    Correct
    OFD
    May-13
    Adjustments
    Correct
    AMERICAS
    May-13
    Invoice
    Incorrect
    LAD
    May-13
    Adjustments
    Correct
    LAD
    May-13
    Adjustments
    Correct
    OFD
    May-13
    Adjustments
    Correct
    Above is my Table and find below the required result.Similarly for other regions as well. Can anyone help me with the SQL Query?
    Region
    Resolution Summary
    Adjustment
    Credit Memo
    Invoice
    Grand Total
    AMERICAS
    Correct
    1
    1
    2
    Incorrect
    0
    1
    1
    2

    Like this?
    SQL> select * from transaction_audit;
    REGION   MTH    TRX_TYPE    RESOLUTIO
    AMERICAS may-13 ADJUSTMENTS CORRECT
    EMEA     may-13 ADJUSTMENTS INCORRECT
    AMERICAS may-13 CREDIT MEMO INCORRECT
    EMEA     may-13 INVOICE     CORRECT
    AMERICAS may-13 CREDIT MEMO CORRECT
    OFD      may-13 ADJUSTMENTS CORRECT
    AMERICAS may-13 INVOICE     INCORRECT
    LAD      may-13 ADJUSTMENTS CORRECT
    LAD      may-13 ADJUSTMENTS CORRECT
    OFD      may-13 ADJUSTMENTS CORRECT
    10 rows selected.
    SQL> select region
      2       , resolution_summary
      3       , count(decode(trx_type, 'ADJUSTMENTS', trx_type)) adjustments
      4       , count(decode(trx_type, 'CREDIT MEMO', trx_type)) credit_memo
      5       , count(decode(trx_type, 'INVOICE'    , trx_type)) invoice
      6    from transaction_audit
      7   group
      8      by region
      9       , resolution_summary
    10   order
    11      by region
    12       , resolution_summary
    13  /
    REGION   RESOLUTIO ADJUSTMENTS CREDIT_MEMO    INVOICE
    AMERICAS CORRECT             1           1          0
    AMERICAS INCORRECT           0           1          1
    EMEA     CORRECT             0           0          1
    EMEA     INCORRECT           1           0          0
    LAD      CORRECT             2           0          0
    OFD      CORRECT             2           0          0
    6 rows selected.
    SQL>

  • Is there any predefined functions to get the current month info?

    Hi,
    I have a business rule which is used to calculate the budget of current month. Right now, I set the current month as a variable, which will need to be changed every month, I know it's stupid, I am new to this area, so I am thinking is there any better way to do this?
    Any inputs is appreciated.
    Thanks
    Tony

    Using substitution variables for current month is perfectly acceptable and widely used.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • Initial execution of a workbook/query runs without ending

    Hi, Experts, I encountered a very strange behavior of Bex tool. Sometimes, Initial execution of a workbook/query runs without ending at u2018Waiting for reply from BW Serveru2019 state, then I cancel the report and run it again and it would return re

  • Sending large amounts of text to a stored procedure

    All, I have created an email application using stored procedures that sends email from the database. I then created a portal form on top of the stored procedure so that I may do my data entry. My form takes 2 parameters: "subject" and "message". The

  • Running a 3rd Party Program

    All, I want to be able to launch and run a 3rd party program via LabView. Launching the program via "System Exe.vi" is simple enough. But now I want to programatically make all the button pushes. So instead of the user having to navigate the 3rd Part

  • Floating Dialog bug with multiple image selection?

    The selectionChangeObserver fuction of the LrDialogs.presentFloatingDialog command is not being triggered in all cases. It does not trigger when you have mulitple images selected and switch the main focus from one of the selected image to another sel

  • Help data entry problems

    Hi I'm new to Java and I need to develop a program that 1) accepts up to 40 grades in format 0 to 100 2) adds them all up and shows the total 3) shows the average of the grades, but only the amount entered, including 0's 4) prints a copy out 5) sends