DATE or TIME variables

I want to be able to create a registry entry that contains the current date. Is there an environment variable that I can use? I see that I can get the individual Month, Day and Year entries, but there must be one for the current date. And while we're at it, how about the current time? I've tried %date% and %time%, to no avail. This was easy to do in SMS.
Thank you,
Mike

Why don't you concatonate the values? Not very hard.
You can also call a VBS/WSH script just like in SMS if you so choose as
well.
Craig Wilson - MCNE, MCSE, CCNA
Novell Support Forums Volunteer Sysop
Novell does not officially monitor these forums.
Suggestions/Opinions/Statements made by me are solely my own.
These thoughts may not be shared by either Novell or any rational human.
"mgrammas" <[email protected]> wrote in message
news:[email protected]..
>
> I want to be able to create a registry entry that contains the current
> date. Is there an environment variable that I can use? I see that I can
> get the individual Month, Day and Year entries, but there must be one
> for the current date. And while we're at it, how about the current
> time? I've tried %date% and %time%, to no avail. This was easy to do
> in SMS.
>
>
> Thank you,
>
> Mike
>
>
> --
> mgrammas
> ------------------------------------------------------------------------
> mgrammas's Profile: http://forums.novell.com/member.php?userid=421
> View this thread: http://forums.novell.com/showthread.php?t=312837
>

Similar Messages

  • Date and Time Variable

    Hello BI gurus,
    This may be confusing so I will try my best to explain...
    I am working on a report in which I need to allow the user to choose a specific Date and Time period.  Now I have both Date and Time avaliable in my infoprovider.  If I create a variable for both date and time seperately it will not be able to associate the date with the time (right?).
    Ex.  User enters date range 2/01/2008 to 2/08/2008 and
                            Time range 10:00pm         to 3:00pm
    (and i understand that time may be kept using a 24 hr clock but this still doesnt fix my issue)
    this will output an error because the first time is greater than the later.
    and if I choose a time that is from 3:00 to 10:00 I can't be sure that the date range and the time are both being applied correctly (since this error above).   
    Is there a way that we can tie the date with the time so the report will know that I am asking for 2/01/2008 at 10:00pm to 2/08/2008 at 3:00pm?
    or can i make the variables dependant on each other..enter begining date, time to end Date and Time
    Thanks and sorry for the long thread I wanted to be as clear as possible,
    Matt

    Dear Matt;
    I've the same problem!!!
    Any solutions?

  • Date and Time Variable error Plz guide

    Gurus
    When I write the query for time and date I keep getting error message mentioned below, plz guide
    DECLARE @ArrivalTme Time;
    SET @ArrivalTme = N'18:22';
    SELECT @ArrivalTme;
    GO
    Msg 2715, Level 16, State 3, Line 3
    Column, parameter, or variable #1: Cannot find data type TIME.
    Parameter or variable '@ArrivalTme' has an invalid data type.
    DECLARE @OneDay DATE;
    SET @OneDay = N'10360610';
    SELECT @OneDay AS [Day to Prevail];
    GO
    Msg 2715, Level 16, State 3, Line 3
    Column, parameter, or variable #1: Cannot find data type DATE.
    Parameter or variable '@OneDay' has an invalid data type.
    Faisal Baloch

    Hi Faisal,
    which SQL version do you use? In 2005 there is no variable "date" or "time", instead of this you have to use "datetime".
    http://msdn.microsoft.com/en-us/library/ms187752%28v=SQL.90%29.aspx
    Regards Steffen

  • CONCATENATE date and time into a text variable

    Hi ABAP Gurus,
      I would like to retrieve current system date and time and concatenate into a variable. I would really appreciate if someone could help me. I have the following code and i seem to get some kind of error.
    I would like my output to be like:
         "22.JUN.2006  Some Text  12:30:22"
    Code:
    data:  emtext     like TEMSG-EMTEXT.
    data:  date_output(50)  TYPE C.
        CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
           EXPORTING
               INPUT          =  SY-DATUM
           IMPORTING
                OUTPUT        =  date_output.
    SHIFT date_output RIGHT DELETING TRAILING SPACE.
      CONCATENATE date_output ': Some Custom Message '
       INTO emtext.
      Also, is there a function to convert time to text or conversion is not necessary?
    Thanks.
    Regards,
    bw_newbie

    Here is something a little closer to your requirement.
    report zrich_0001 .
    data: date(20) type c,
          time(10) type c,
          str type string.
    data: xT247 type T247.
    select Single * into xt247 from t247
              where MNR = sy-datum+4(2).
    concatenate  sy-datum+6(2) xt247-ktx sy-datum(4)
              INTO date separated by '.'.
    write sy-uzeit to time.
    concatenate date 'SomeText' time into str separated by space.
    write:/ str.
    Regards,
    Rich Heilman

  • Date Time Variable

    I am trying to create a new variable using the dateformat
    function. Everything works and shows like I want it to except for
    the minute. Any clues?
    <CFSET NewFileName =
    #DateFormat(Now(),"yyyymmddhhns")#>
    <cfoutput>#NewFileName#</cfoutput> Results of
    output 2006090803n37
    I do not want any spaces in the output
    anthony

    The dateformat formats dates not times, timeformat is for
    time. You
    probably want something like this:
    #dateformat(now(),"dd/mm/yyyy")#
    #timeformat(now(),"hh:mm:ss")#
    Note that both use 'mm', but for different values for their
    formating.

  • Date and Time in Sender File Adapter Target Directory

    Hi there,
    is there a way of using Date and Time from XI to the Target Directory naming? To use variable substitution some fields of the message had to contain that date and time information, which is not our case.
    For filename you can use "add time stamp" option, but and for target directory?
    Thanks and regards,
    Henrique.

    > <i>Do you have further information on how to perform
    > this with shell commands?</i>
    > >> You need to write a shell script. This script will
    > add the date/time stamp into the folder in the target
    > system. This shell script is executed from the File
    > adapter. So once the file is written into the target
    > directory, then it will rename the directory.
    Hi there, Moorthy
    We've tried to write that shell script that you mentioned, but now we have a few doubts on how to make it create the proper directory.
    In the file adapter, my target directory is "/%var1%/%var2%/", where %var1% and %var2% are variable substitutions, referencing data which comes from the payload. Now, I need the shell script to append "/<Year>/<Month>/" in the target directory. But where to archive the script? If it stays in the root directory, than how to make it create "/<Year>/<Month>/" folders inside a directory which is variable (/%var1%/%var2%/)?
    Is there a way of passing %var1% and %var2% as parameters for the shell script?
    Thanks a lot,
    Henrique.

  • Need help in using SQL in a jsp file to compare date and time

    hi every one,
    Actually I am doing a project using JSP. I need to compare a date field in the database (MS Acess) to the current system date and time. I have to do this in a select statement.
    I have alredy defined a variable of type Date in the JSP file and I am comparing this variable to the date in the database through a select statemant.
    Here is what I am doing
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-mm-dd hh:mm:ss");
              java.util.Date today = new java.util.Date();
              String myDate=sdf.format(today);
    query = "SELECT Car_ID, Model_ID, Year, Ext_Color, Price from Cars where EDate <= "+myDate+" ;";
    EDate is the feild in the database and it's format is (5/12/2008 5:29:47 PM) it is of type Date/Time in MS Acess.
    when I execute the query it gives the following error
    SQL error:java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'EDate <= 2008-10-16 08:10:07'.
    I hope any one can help me with that error and answer my question, I've tried too many things but nothing helps
    Thanks in advance :-)

    Hi,
    When the comparision is needed to be done with the current date , we don't need to send in Java
    Date then format it and compare with MS Acess Date.
    In MS Access we have Date() function which will give you the current date.
    So you can try rewriting your query as following :
    query = "SELECT Car_ID, Model_ID, Year, Ext_Color, Price from Cars where EDate <= Date() ;"; ---------------------
    Hope this helps.
    Thanks

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • Not able to use date with time in sql query

    Hi,
    select a.contract_number,b.start_date,b.end_date,b.price_negotiated,b.attribute_category,b.attribute1,a.sts_code,a.contract_number_modifier,b.cle_id,b.creation_date
    from OKC_K_HEADERS_ALL_B a,OKC_K_LINES_B b
    where a.id = b.dnz_chr_id
    and b.cle_id is not null
    and a.contract_number_modifier is not null
    and a.sts_code in ('ACTIVE','SIGNED','60 DAY HOLD','HOLD')
    and b.creation_date between to_date('21-10-2013 9:19:48','DD-MM-YYYY HH24:MI:SS')  and  sysdate;
    If I execute this query in toad it is giving me proper results.This query populates the results between the two date with time.
    But I am facing issue when I am using this query in the procedure. The procedure is as below.
    If I use the same query in the procedure I am getting wrong output.
    CREATE OR REPLACE procedure xx_prog_upd_annualized_amt(errbuf out varchar2, retcode out varchar2)
    as
    cursor c1 (l_date in varchar2)is
    select a.contract_number,b.start_date,b.end_date,b.price_negotiated,b.attribute_category,b.attribute1,a.sts_code,a.contract_number_modifier,b.cle_id
    from OKC_K_HEADERS_ALL_B a,OKC_K_LINES_B b
    where a.id = b.dnz_chr_id
    and b.cle_id is not null
    and a.contract_number_modifier is not null
    and a.sts_code in ('ACTIVE','SIGNED','60 DAY HOLD','HOLD')
    and b.creation_date between  to_date(l_date,'DD-MM-YYYY HH24:MI:SS')  and  sysdate;
    v_date varchar2(100);
    v_total_days number;
    v_annualized_amount number;
    begin
    begin
    select max(fcr.actual_start_date) into v_date
    from fnd_concurrent_programs_vl fcp
    ,fnd_concurrent_requests fcr
    where fcp.concurrent_program_id = fcr.concurrent_program_id
    and fcp.user_concurrent_program_name like 'Renewed Annualized Amount Updation';
    exception
    when others then
    fnd_file.put_line(fnd_file.log,'Invalid date');
    end;
    fnd_file.put_line(fnd_file.output,v_date);
    fnd_file.put_line(fnd_file.output,sysdate);
    fnd_file.put_line(fnd_file.output,'***************Start of Program***************');
    fnd_file.put_line(fnd_file.output,'***************Hi***************');
    For i in c1(v_date) loop
    SELECT
             1
           + 30 * TRUNC (MONTHS_BETWEEN ( TO_DATE (i.end_date, 'DD-MON-YYYY'),  TO_DATE (i.start_date, 'DD-MON-YYYY')))
           + LEAST (EXTRACT (DAY FROM TO_DATE (i.end_date, 'DD-MON-YYYY')), 30)
           - LEAST (EXTRACT (DAY FROM TO_DATE (i.start_date, 'DD-MON-YYYY')), 30)
           + CASE
                WHEN EXTRACT (DAY FROM TO_DATE (i.end_date, 'DD-MON-YYYY')) < EXTRACT (DAY FROM TO_DATE (i.start_date, 'DD-MON-YYYY')) THEN 30
                ELSE 0
             END
              daysbetween into v_total_days
      FROM dual;
      fnd_file.put_line(fnd_file.output,i.contract_number);
      fnd_file.put_line(fnd_file.output,v_total_days);
      If v_total_days < 360 then
      v_annualized_amount := (360*i.price_negotiated)/v_total_days;
      update OKC_K_LINES_B
      set attribute_category = 'Annualized Amount',attribute1 = v_annualized_amount
      where cle_id = i.cle_id;
       fnd_file.put_line(fnd_file.output,v_annualized_amount);
        fnd_file.put_line(fnd_file.output,i.cle_id);
        elsif v_total_days >= 360 then
      update OKC_K_LINES_B
      set attribute_category = 'Annualized Amount',attribute1 = i.price_negotiated
      where cle_id = i.cle_id;
      end if;
    end loop;
    commit;
    fnd_file.put_line(fnd_file.output,'***************End of Program***************');
    null;
    end;

    SureshM wrote:
    Hi Purvesh,
    Apologize for not giving the sufficient information.
    max(fcr.actual_start_date) = here I am getting date with time (for eg :9/4/2012 6:47:49 PM)
    Datatype for this column is date.
    This actual start date I am storing in varchar2 variable and then converting this value to date with time.
    My requirement is to pick the rows between the two timestamps which I am unable to do in the procedure.
    Regards
    Suresh
    YOu are losing the Time information while fetching the data into a VARCHAR2 variable. change the datatype of v_date to DATE and get rid of the TO_DATE logic in cursor and simply use v_date variable.
    Message was edited by: PurveshK misread.

  • How to get the date n time for log in ODI

    Hi,
    I wanna ask, what is the syntax for getting the date n time when i specify the location of log for Interface. Thanks.

    I quite do not get what you are trying to achieve here.
    - In a mapping, use the DBMS engine sysdate command.
    - In a variable, you can refresh the variable value using a "select sysdate from dual" type of query.
    - You can also use the appropriate odiref substitution method to get a date. For example:
    Current year is: :<%=odiRef.getSysDate("y")%>
    Hope this helps.
    -FX

  • Time variables with if and else statements for class script

    Hello, for an in class assignment to create a script using random generated answers im trying to get the script set up for different answers depending on the time of day here is what i have so far, in bold is my second time that i would like to have if the
    time is 6pm, the one that works right now is the one that is anything greater then 12pm and the one that is everything before 12pm the 6pm will not work:
    #Clear the Windows command console screen
    Clear-Host
    #Define the variables used in this script to collect player inputs
    $question = ""   #This variables will store the player's question
    $status = "Play"  #This variable will be used to control game termination
    $answer = 0  #This variable stores a randomly genrated number
    $time = (Get-Date).Hour  #This variable stores the current hour of the day
    #Display the game's opening screen
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host "               W E L C O M E   T O   T H E   W I N D O W S"
    Write-Host
    Write-Host
    Write-Host
    Write-Host "            P O W E R S H E L L   F O R T U N E   T E L L E R"
    Write-Host
    Write-Host
    Write-Host   
    Write-Host "                          By Zelandra"
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host " Press Enter to continue."
    #Pause script execution and wait for the player to press the Enter key
    Read-Host
    #Clear the Windows command console screen
    Clear-Host  
    #Provide the player with instructions
    Write-Host
    Write-Host " The fortune teller is a very busy and impatient mystic. Make"
    Write-Host 
    Write-Host " your questions brief and simple and only expect to receive"
    Write-Host
    Write-host " Yes / No styled answers."   
    Write-Host 
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host " Press Enter to continue."
    #Pause script execution and wait for the player to press the Enter key
    Read-Host
    #Continue game play until the player decides to stop
    while ($status -ne "Stop") {
      #Ask the player the first question
      while ($question -eq ""){
        Clear-Host  #Clear the Windows command console screen
        Write-Host
        $question = read-host " What is your question? "
      $question = ""  #Reset variable to a empty string
      #Retrieve a random number between 1 and 7
      $answer = Get-Random -minimum 1 -maximum 8
      #If it is the night the fortune teller will be a little more cranky 
      if ($time -gt 18) {
        Write-Host
        if ($answer -eq 1) { " Grrrr. The answer is NO, now let me get back to sleep!" }
        if ($answer -eq 2) { " Grrrr. The answer is !!!NEVER!!!" }
        if ($answer -eq 3) { " Grrrr. The answer is unclear, did you really think i would know?" }
        if ($answer -eq 4) { " Grrrr. The answer is sure whatever!" }
        if ($answer -eq 5) { " Grrrr. Even if i wanted to tell your fortune i wouldnt!" }
        if ($answer -eq 6) { " Grrrr. Look at the time, im busy SLEEPING!" }
        if ($answer -eq 7) { " Grrrr. Take whatever answer you want and leave me alone!" }
      #Select an answer based on the time and the random number
      #If it is the afternoon the fortune teller will be a little cranky
      if ($time -gt 12) {
        Write-Host
        if ($answer -eq 1) { " Grrrr. The answer is no!" }
        if ($answer -eq 2) { " Grrrr. The answer is never" }
        if ($answer -eq 3) { " Grrrr. The answer is unclear!" }
        if ($answer -eq 4) { " Grrrr. The answer is yes!" }
        if ($answer -eq 5) { " Grrrr. The answer is absolutely not!" }
        if ($answer -eq 6) { " Grrrr. The answer is unforseeable!" }
        if ($answer -eq 7) { " Grrrr. Im sorry could you repeat that?" }
      #If it is morning the fortune teller will be in a good mood
      else {
        Write-Host
        if ($answer -eq 1) { " Ah. The answer is yes!" }
        if ($answer -eq 2) { " Ah. The answer is Always" }
        if ($answer -eq 3) { " Ah. The answer is uncertain!" }
        if ($answer -eq 4) { " Ah. The answer is no!" }
        if ($answer -eq 5) { " Ah. The answer is there is a fair cha... OH LOOK A SQUIRREL!" }
        if ($answer -eq 6) { " Ah. I think you meant to ask something else!" }
        if ($answer -eq 7) { " Ah. Well it looks like your wish will be ready tonight!" }
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host
      Write-Host " Press Enter to continue."
      #Pause script execution and wait for the player to press the Enter key
      Read-Host
      #Clear the Windows command console screen
      Clear-host
      Write-Host
      #Prompt the player to continue or quit
      $reply = read-host " Press Enter to ask another question or type Q to quit."
      if ($reply -eq "q") { $status = "Stop" }
    #Clear the Windows command console screen
    Clear-Host
    #Provide the player with instructions
    Write-Host 
    Write-Host " Very well then. Please return again to get all your questions"
    Write-Host " answered." 
    Write-Host
    Write-Host 
    Write-Host
    Write-Host
    Write-Host
    Write-Host 
    Write-Host
    Write-Host
    Write-Host  
    Write-Host 
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host 
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host
    Write-Host " Press Enter to continue."
    #Pause script execution and wait for the player to press the Enter key
    Read-Host
    #Clear the Windows command console screen
    Clear-Host  
    Thanks again if anyone can provide help.

    Hi,
    Use -and in your afternoon if test.
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • Current date and time in narrative. html?

    Hello,
    I would like to include current time and date in the narrative of a report. The purpose of this is that when end-users export the report a time and date of export is inlcuded in the export so that I know when specific reports where exported.
    I now have a workaround with added hidden date and time columns and showing only first rows of these hidden columns. This is quite a lot of work since I have to update about 75 reports with this date and time values.
    Does any of you know how to include currentdat and time in the narrative with a html code?
    Or are there other ways to achieve what I am looking for?
    Thanks a lot

    Hi,
    We had similar kind of requirement.
    We have created a repository variable "CurrentDateTime" and added this in each and every report in the narrative view as below.
    Steps:
    1.Leave the existing Table view or chart view as it is.
    2.Add one narrative to the existing report.
    3.Modify the narrative view and paste the below logic in that.
    Current Date: @{biServer.variables.CurrentDateTime}
    Hopes this helps.
    Thanks,
    Pramod

  • SAP XI : Date and Time Service

    Hi All,
    Is there any runtime variable or service  in SAP XI through which I can
    map the current DATE and TIME of the system. Currently I am using XSLT mapping and
    in that XSL I am calling java code for Date and Time.
    So is there any other way through which I can Map the date in the output field
    without calling Java code in XSLT.
    Thanks
    Farooq

    hi,
    you can do it from java - if you use XSLT on java stack
    you can do it from ABAP - if you use XSLT on ABAP stack
    there are also java functions for date
    in message mapping
    so you can put two mappings (in your <b>interface mapping</b> object):
    one XSLT
    and one message mapping which will only fill the date
    to see how many mappings work have a look at my weblog:
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How to get the date and Time?

    Hi,
    I am using Jdev 11.1.2.0.
    I had one database table. In that table one variable as bgnDtm and the datatype as oracle.jbo.domain.Timestamp. In my Impl class I declare one variable as beginDate(DateType as oracle.jbo.domain.Date).
    Now I am using the conversion as beginDate=(Date) SampleVO.getAttribute("bgnDtm ");.If I using this scenario I got the Type cast error. so how can I separate Date and Time value.
    So how to do. Please provide some suggestions.
    Regards,
    Ragu.

    you can get the time value either from oracle.jbo.domain.Timestamp or from oracle.jbo.domain.Date
    oracle.jbo.domain.Timestamp timeStampDate = (oracle.jbo.domain.Timestamp) SampleVO.getAttribute("bgnDtm");
    Time time;
            try {
                time = timeStampDate.timeValue();
                System.out.println(time);
            } catch (SQLException e) {
                e.printStackTrace();
            java.sql.Date sqlDate=timeStampDate.dateValue();
                oracle.jbo.domain.Date jboDate=new oracle.jbo.domain.Date(sqlDate);
            Time timeValue = jboDate.timeValue();
            System.out.println(timeValue);Edited by: M.Jabr on Dec 23, 2011 1:55 PM

  • Date and time diffrence calculations

    Dear Experts,
    I have a doubt regarding the date and time diffrence calculation please help me out.
    This is regarding the report called u201CVehicle tracking systemu201D. The purpose of this report is to give the user information like how many vehicles have come in and how much time each vehicle has parked in the filling in the refinery and also the average time taken for a customer.
    For this we have created 4 info objects called
    1)     Park In Time
    2)     Park In Date
    3)     Gate Out Time
    4)     Gate Out Date
    We have created a routine which calculate the difference in Vehicle Park In Date & Time to Gate Out Time and Date
    The Time difference is number format.
    Example: For Vehicle1
    Park in Date and Park in Time are         27.11.2008 and 17:43:35
    Gate out Date and Gate out Time are     29.11.2008 and 09:36:16            
    Here routine will calculate the difference in the above date and time and the output is like this     1,155.138,000 (i.e. 1day, 15 hours 51 mins and 38 seconds) that means the vehicle has parked for 1 day and 15 hours etc.
    But we require the output like    1 day, 15:51:38
    Please give us the solution how to go about it.
    Thanks in advance,
    venkat

    Hi,
    I think in regard to your problem, the solution will be to make the variables in the query runtime by the replacement path variable.
    Please find the below link, its very much self explanatory and in regard to your problem.
    Hope it helps!
    [http://sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html]
    Regards,
    Neha.

Maybe you are looking for

  • Resolution problems with Swing, MigLayout, and Substance.

    I've got some testers trying out my application on various systems. One computer is a Dell Mini and it is giving me some trouble with resolution. I am using MigLayout as the layout manager for every JPanel and for everything. I am also using Substanc

  • Upgration from 6.5 to XI 3.1 doesn't show up data in report

    Hi Expert, I have a report which was in BO 6.5 version  and this is upgraded to XI 3.1. When i refresh the report after upgration, the report going into structure mode instead result mode. When i try to convert that into result mode, the system is ha

  • Problem in Web service - document style

    Hi, I want to create document style webservices using axis tool. so i need any sample codes and procedure for creating document style web services using axis tool . If any one help me in regarding this i will be thankfull to u. regards tuty.richard

  • COPA Derivation based with target field as non-copa field

    Hello experts, There is a requirement to derive the Characteristic maintained in Classification view(AUSP table) in Material master based on material number.The target field into which the characteristic value needs to be populated is not in COPA(it

  • Formatting WD MyBook 1 Terabyte External Hard Drives

    I recently purchased two WD MyBook Personal Edition 1 TB hard drives. These come formatted as MS-DOS FAT32, which is pretty useless for a Mac-only system. They are connected to my Mac Pro via a FW400 daisy chain. When I went to format these drives wi