JDE Date Last Paid and Last Paid Amount
When these two fields, Date Last Paid (A5DLP) and Last Paid Amount (A5ALP) in the Customer File F0301 will be cleared? Which programs that clearing these?
Can you not use last_standard_process_date and final_process_date from per_periods_of_service table? That table has person_id and instead of using pay_all_payrolls_f, it is easy to get the information from these tables as long as you know what elements in your system have last standard process and final process date set up.
Please let me know if this helps
-Jay
Similar Messages
-
Finding Last friday and Last monday of current date
Hi
Please help me to get the Last friday and Last monday of current date using an sql query.
If I am running query on 7th July 2008 ,it should give me Last friday as 07/04/2008 and Last monday as 07/07/2008
I need to compare it with another date filed
eg: Select * from employee where ReportedDate between [Last Friday] and [Last Monday]It works many times but fails for this scenario- If today is Friday and I run following query today, it throws today's date, which is incorrect. I need previous Friday's date to be returned everytime.
select next_day (sysdate-7,'FRIDAY') Last_Friday from dual
Edited by: user6402026 on May 22, 2013 1:43 PM
Edited by: user6402026 on May 22, 2013 1:43 PM -
Averaging over the last hour and last eight hours.
This is fairly simple but I'm not sure what a "good" approach is. Basically I need to track how many times a user has performed an action over the last hour and last eight hours. I'll receive a notification of some sort when they perform this action and could get the current time, but I'm not sure what a fast way of determining how many times this has occurred in a given time period is.
I was thinking perhaps an array with the time of each in milliseconds and just find the first index that was < 8 hours or < 1 hour ago and then subtract the index from the current size. I think that would be problematic though. To keep the array from continuously growing I'd have to shift everything over to the left which means an expensive arraycopy. Perhaps if I only did the resizing when there were > 20 or elements I no longer care about or something would help, but then I'd have to iterate over 20 elements I don't care about everytime it's calculated, which is once a second.
Any algorithms that will solve this?Here is a method with a granularity of a minute (i.e.
it only updates the average value every minute - you
can change it to give whatever granularity you want)
Keep an array with 60 elements in it. The array
counts the number of times that the user performed
the action each minute.
The array in indexed modulo real time, and you make
entries based on actual time of day. So when a user
performs an action at 8:38:45 you increment slot 38.
Each slot counts the number of actions that took
place in that particular minute. When the next minute
rolls around, you move to the next slot, set the
value to zero (thus throwing out the events that
happened over an hour ago, and prepare to count the
new events)
The sum of the entire array is of course the total
number of events that have taken place in the last
hour.
You do not need to actually run through the array and
total the events every time you want to calculate the
average. You can use the fact that you increase the
total by one every time you get a new event and you
decrease the total by X everytime you zero out a slot
that had X for its event count.
So you can just keep a single value, Total, along
with your array that goes up by one on every event
and then drops back a little every minute, when you
throw out the hour old events.That is probably a good solution to the question I posed, but I realize now I was not thorough or accurate enough in describing the context and requirements. I don't think that will work without a lot of unnecessary memory, but maybe I'm wrong.
The user action is actually the successful completion of entering a form, a bill to be more precise. I expect this to happen 100-300 times an hour to give an idea of the frequency. Given a period of time, if they've been at it for that period of time or longer I need to find the number of bills completed in that most recent period of time. Otherwise, I need to use what is available to predict what they will reach in that period of time. In other words, if the time period is an hour I need to figure out how many bills were completed in the last hour, but if they've been going for only five minutes I need to predict what they will have completed in an hour including those last five minutes. Then I need to do the same thing for seven hours, using the last seven hours or less of data.
I guess I'd just have to use a granularity of a minute or less and calculate how many bills over how many minutes and make a prediction on that? I suppose I was hoping for something more precise, but now that I think about it that will probably suffice.
How would you implement it though? Create a "minute" array of size 60 initially, then when reaching the end of that array adding the total for that array to an "hourly" array (keeps track of bills in that hour) and then start over? I guess then you'd just have to add each from the hourly array to the current total and calculate based upon that. At any given time I'd have the number of bills processed in the last x hours and y minutes, which is enough to calculate how much can be completed at that rate in a given hour or seven hour day.
I'll try this tomorrow when I get to work, thank you very much I was needlessly complicating it with timestamps. In fact, this inadvertently (or perhaps purposefully?) solves an issue with not calculating time when a user is at lunch or on break. At least I think it does. -
Get Last Sync and Last Full/Fast Optimization time of a Text Index
Hi,
How to get when a text index was last Sync and Last Full/Fast Optimization in oracle 10g and 11g
- Nimish GargHi,
to my knowledge Oracle will not keep this kind of data (I can not find any view in CTXSYS schema which gives this information. Depending on the method of synching there are some options:
- If you used 'SYNC (ON COMMIT"), then the index is always synched and there is no date to be found
- If you used 'Every "interval"', there is a job created (select idx_sync_jobname from ctx_user_indexes). You can find the last runtime of this job to get the last sync date
- If you used 'MANUAL', then the Sync is up to you. You can query CTX_USER_PENDING for the index. In this table the records are recorded which need to be synced. So the lowest PND_TIMESTAMP will give you an idea, of the possible last sync date, it is before this timestamp.
If you do it manual, you can of course keep your own table which records the date.
Herald ten Dam
http://htendam.wordpress.com -
hi,
on 10g R2 is there any query to see last SCN and last squence number ?
thank you.You can find many interesting things in v$database. Just check...
SQL> desc v$database
Nazwa WartoťŠ NULL? Typ
DBID NUMBER
NAME VARCHAR2(9)
CREATED DATE
RESETLOGS_CHANGE# NUMBER
RESETLOGS_TIME DATE
PRIOR_RESETLOGS_CHANGE# NUMBER
PRIOR_RESETLOGS_TIME DATE
LOG_MODE VARCHAR2(12)
CHECKPOINT_CHANGE# NUMBER
ARCHIVE_CHANGE# NUMBER
CONTROLFILE_TYPE VARCHAR2(7)
CONTROLFILE_CREATED DATE
CONTROLFILE_SEQUENCE# NUMBER
CONTROLFILE_CHANGE# NUMBER
CONTROLFILE_TIME DATE
OPEN_RESETLOGS VARCHAR2(11)
VERSION_TIME DATE
OPEN_MODE VARCHAR2(10)
PROTECTION_MODE VARCHAR2(20)
PROTECTION_LEVEL VARCHAR2(20)
REMOTE_ARCHIVE VARCHAR2(8)
ACTIVATION# NUMBER
SWITCHOVER# NUMBER
DATABASE_ROLE VARCHAR2(16)
ARCHIVELOG_CHANGE# NUMBER
ARCHIVELOG_COMPRESSION VARCHAR2(8)
SWITCHOVER_STATUS VARCHAR2(20)
DATAGUARD_BROKER VARCHAR2(8)
GUARD_STATUS VARCHAR2(7)
SUPPLEMENTAL_LOG_DATA_MIN VARCHAR2(8)
SUPPLEMENTAL_LOG_DATA_PK VARCHAR2(3)
SUPPLEMENTAL_LOG_DATA_UI VARCHAR2(3)
FORCE_LOGGING VARCHAR2(3)
PLATFORM_ID NUMBER
PLATFORM_NAME VARCHAR2(101)
RECOVERY_TARGET_INCARNATION# NUMBER
LAST_OPEN_INCARNATION# NUMBER
CURRENT_SCN NUMBER
FLASHBACK_ON VARCHAR2(18)
SUPPLEMENTAL_LOG_DATA_FK VARCHAR2(3)
SUPPLEMENTAL_LOG_DATA_ALL VARCHAR2(3)
DB_UNIQUE_NAME VARCHAR2(30)
STANDBY_BECAME_PRIMARY_SCN NUMBER
FS_FAILOVER_STATUS VARCHAR2(21)
FS_FAILOVER_CURRENT_TARGET VARCHAR2(30)
FS_FAILOVER_THRESHOLD NUMBER
FS_FAILOVER_OBSERVER_PRESENT VARCHAR2(7)
FS_FAILOVER_OBSERVER_HOST VARCHAR2(512)
SQL> -
What's the difference between last seen and last a...
What's the difference between last seen and last activity by a contact's name? Please be very specific Many thanks.
BUMP -> I'd also like to know the answer to this question. Thanks, Lance
-
I paid my order right after the confirmation came in, but i don't get a confirmation that i paid, and i paid it about one and a half week ago, what can i do?
Download from Download CS5 products
Install then enter your serial number. -
Dates with scrolling and Last Import
There are two features that I liked in iPhoto that I'm not seeing in Aperture 3. One is that when scrolling through my photos, in iPhoto the date of the pictures currently visible would show up, which was very nice for figuring out where you were in the photo stream. The other is that one of the "smart albums" in iPhoto was "last import"; is there a way to create a "last import" album in A3? I thought that "sessions" would be the answer, but it looks like that creates an album for a specific date.
Thanks.Dan VanDeRiet wrote:
There are two features that I liked in iPhoto that I'm not seeing in Aperture 3. One is that when scrolling through my photos, in iPhoto the date of the pictures currently visible would show up, which was very nice for figuring out where you were in the photo stream.
The date HUD-while-scrolling is a nice feature in iPhoto. Aperture doesn't have it. You can group Projects while browsing the Project view by year (click the grouping icon on the tool strip). I missed this too when I moved my Library from iPhoto, but not having it hasn't slowed me at all.
The other is that one of the "smart albums" in iPhoto was "last import"; is there a way to create a "last import" album in A3? I thought that "sessions" would be the answer, but it looks like that creates an album for a specific date.
Yep. Also not in Aperture. Two work-arounds. Select the one which gets you closest to what you want.
- Make a Smart Album which filters by "In the last 1/2/4 day/week/month". Do this by adding the Rule "Date→Is in the last→1→Week". You can specify a different number and duration unit. Note that this goes by the date of the photo, not the date of the import.
- Add "Import Session" to your List view metadata. Once it is added, you can click the column to sort by "Import Session" or select "Import Session" from the drop-down list. Once added, you can return to Browser view. That's been useful for me, and is the closest I've been able to get to "Last Import". -
How to display Last modifed and Last modifed user in Apex?
Hi All,
Every time i need to display the "Latest Modifed" and "Last Modifed" data fetching from database and display the resultant in the right corner, similarly how we will display user name when we log into Apex application.
Hints:
1. I have created a two level tab and under Body i have am using like this
<td valign="top">{div id="userId" class="t16NavigationBar"><span id="spanUserId" class="t16NavigationBar"> (&APP_USER.)</span>|{a href="&LINK." class="t16NavigationBar">&TEXT.</a>|&F105_ENV_NAME. #REGION_POSITION_08#</td>
2. From the above syntax we are using the three attributes to display the data.
&APP_USER.
&TEXT.
&F105_EVN_NAME.
3. The Query which i am using to display the &F105_ENV_NAME. is
SELECT DECODE(INSTR(global_name,'.'),0,
global_name,
SUBSTR(global_name,1,INSTR(global_name,'.')-1)) into :F105_ENV_NAME
FROM global_name
4. Similar instead of displaying the Enviornmen name i have to dsiplay these coulums from X table.
Latest Modifed By
Last Updated By
How i can display such kind of these data, since every time it will differ. Can any one hep me on this.
Thanks,
Anoo..Hi,
e
This is some what equal instaed of displaying separted, in your screen you have three tabs, for a example you have ar showing for tabs rite..They only i want to dsiplay the person name.
For example if you consider your screen you have shown "update anony policy"
Now i want to display the name directly like this "update anony policy:Anoo" insated of dsiplaying in a separte screen.
Hope you have got my point.
Thanks,
Anoo.. -
How can I retrieve last month and last mont -1?
Hi guys, I am finishing to build a complex SSIS package, the last task is pretty simple but I'd like you to suggest the better solution in terms of performance (table with millions rows). The task is to create two table, one with the last update (archived)
and one with the last update -1 (the update is done monthly) taking the data from an huge table (create by the package).
The DDL (sample):
create table forum (runner varchar(20), race varchar(20), nmonth varchar (6), archived datetime2)
insert into forum values ('Zabres','Poland Red Bull','201411','2015-01-26 11:37:02.6870000'),
('Reynolds','Poland Red Bull','201411','2015-01-26 11:36:02.6870000'),
('Greefer','Poland Red Bull','201411','2015-01-26 11:38:04.6870000'),
('Zabres','France Red Bull','201411','2015-01-26 11:38:10.6870000'),
('Reynolds','France Red Bull','201411','2015-01-26 11:36:02.6870000'),
('Greefer','France Red Bull','201411','2015-01-26 11:36:02.6870000'),
('Zabres','Poland Red Bull','201411','2014-12-31 16:22:02.6870000'),
('Reynolds','Poland Red Bull','201411','2014-12-31 16:26:02.6870000'),
('Greefer','Poland Red Bull','201411','2014-12-31 16:26:14.6870000'),
('Zabres','France Red Bull','201411','2014-12-31 16:22:02.6870000'),
('Reynolds','France Red Bull','201411','2014-12-31 16:22:02.6870000'),
('Greefer','France Red Bull','201411','2014-12-31 16:22:02.6870000'),
('Zabres','Poland Red Bull','201411','2014-12-11 10:30:14.5870000'),
('Reynolds','Poland Red Bull','201411','2014-12-11 10:31:10.5550000'),
('Greefer','Poland Red Bull','201411','2014-12-11 10:31:14.3560000'),
('Zabres','Poland Red Bull','201411','2014-12-11 9:11:14.4420000'),
('Reynolds','Poland Red Bull','201411','2014-12-11 9:11:54.7760000'),
('Greefer','Poland Red Bull','201411','2014-12-11 9:11:55.7860000')
The tough thing is the format of archived. How can I take the last month and, especially, the last month -1 without caring about the seconds and milliseconds ?
The expected is LAST MONTH
LAST MONTH -1
Many thanks in advanceYes! Your solution looks better, even in terms of performance (242 sec mine, 202 sec yours). Now I'm wondering the same, shall I upload the elements only once per month? What if I got more upload in one month?
You can also upload it once per week
In which case query would be like
SELECT *
FROM forum
WHERE archived >= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0)
AND archived < DATEADD(wk,DATEDIFF(wk,0,GETDATE())+1,0)
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
I am new to scripting (literally started reading/learning scripting a few hours ago), and I am stuck in trying to get my current script/command to filter a specific date range.
* Note: I am working with Server 2003 and 2008; because of the environment I am in, a lot of scripts (such as Powershell and VBScript) don't work; trying to stick with command line, as it appears to be the only thing that functions correctly in my environment
I am trying to search the System log in event viewer, for the most recent server reboot. Here is the command that I am currently running:
===========================================================
C:\Windows\System32\cscript C:\Windows\System32\eventquery.vbs /L System /FI "id eq 1074"
===========================================================
When run, the output looks like this:
===========================================================
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved
Listing the events in 'system' log of host 'xxxxxxxxxxxxxxx'
Type Event
Date Time Source
Information 1074
12/18/2013 2:48:06 AM USER32
Information 1074
11/20/2013 3:25:04 AM USER32
Information 1074
10/23/2013 2:06:09 AM USER32
===========================================================
What I would like it to do is only show events that have happened in the last seven days, as well as show the event details if it does find an event that matches the criteria.
Any help would be greatly appreciated. Thanks!
NickI would prefer using Powershell , you can use below code
function Get-EventViewer
param(
[string[]]$ComputerName = $ENV:COMPUTERNAME,[string]$LogName,[int]$eventid
$Object =@()
foreach ($Computer in $ComputerName)
$ApplicationEvents = get-eventlog -logname $LogName -cn $computer -after (Get-Date).AddDays(-7) | ?{$_.eventid -eq "$eventid" }
foreach ($event in $ApplicationEvents) {
$Object += New-Object -Type PSObject -Property @{
ComputerName = $Computer.ToUpper();
TimeGenerated = $event.TimeGenerated;
EntryType = $event.EntryType;
Source = $event.Source;
Message = $event.Message;
$column1 = @{expression="ComputerName"; width=12; label="ComputerName"; alignment="left"}
$column2 = @{expression="TimeGenerated"; width=22; label="TimeGenerated"; alignment="left"}
$column3 = @{expression="EntryType"; width=10; label="EntryType"; alignment="left"}
$column4 = @{expression="Source"; width=15; label="Source"; alignment="left"}
$column5 = @{expression="Message"; width=100; label="Message"; alignment="left"}
$Object|format-table $column1, $column2, $column3 ,$column4 ,$column5
$Object.GetEnumerator() | Out-GridView -Title "Event Viewer"
You can do a function call like
Get-EventViewer -LogName system -ComputerName "computername" -eventid "2017" -
I thought that by using the Tools function - Page Info, that this would give the information. It does not. What do I need to do?
I thought that by using the Tools function - Page Info, that this would give the information. It does not. What do I need to do?
-
Last Access and Last Update Times for objects in Cache
Hi,
We are looking to implement Tangosol cache for our one of our critical J2EE systems and I am pretty new to it. One of the requirements is to know the following timings
-Time when an object was put in a cache X (Last update of the object)
-Time when an object was last accessed in the cache X (Last access time of an object)
Is it possible to get these values through the Tangosol J2EE API?
Thanks,
raviHi Ravi,
You can use InvocationService to access this information - an example is attached.
Regards,
Dimitri<br><br> <b> Attachment: </b><br>DumpCache.java <br> (*To use this attachment you will need to rename 529.bin to DumpCache.java after the download is complete.) -
How can we see Last Date and last quantities in Bex Analyzer ?
Hı BW Gurus,
I have a query that shows consumption quantities for a material regarding to a date interval. On initial screen i specify a material and a date interval ( 01.04.2007 - 15.04.2007 for example). Then query brings total consumptions(261 and 601 movement types) for materials. I set up the query according to stock cube.
But my client wants the last consumptions (last 601 and last 261) quantities and dates in a different columns. When we include calendar day it can be seen easily all the lines day by day. But we dont want to include calendar day. Thus for one material only one row will be exist. Report template will be like that:
On initial screen we defined april 2007 , Output:
Material Total consump. quantity Last Consump. Quant. Last.Cons.Date
XYZ 457 76 18.04.2007
PS: 76 is included in 457.
How can we achieve this result?
Thank you all indeed
Evren Temiz
Message was edited by:
Evren TemizHi Evren,
What do you mean?
Regards. -
Select statement for last day of the last quarter and first quarter
Anybody provide me the single select statement which should result the last day of the last quarter and last day of current quarter?
Ex: Select last date of the last quarter,last day of current quarter from XYZ(DUAL...)
Thanks in AdvanceHi,
Here's one way:
SELECT TRUNC (SYSDATE, 'Q') - 1 AS prev_qtr_end
, ADD_MONTHS ( TRUNC (SYSDATE, 'Q') - 1
, 3
) AS this_qtr_end
FROM dual;TRUNC (dt, 'Q') returns the first day of the quarter containing dt.
Subtract one day from that, and you have the last day of the previous quarter.
Add 3 months to that, and you have the last day of the current quarter. ADD_MONTHS (dt, n) will always return the last day of a month if its first argument, dt, is the last day of a month.
Maybe you are looking for
-
Class not found error in addNotificationListener
I am trying to create a Notification Listener for a Remote Application for logging,when i add a notification listner and a filter by saying myServer.addNotificationListener( logBCOname, myListener, myFilter, null); It compliles file but at runtime i
-
Can't sync music to my iPhone any more
It's been a while since I was able to sync music to my iPhone. After buying my subscription for iTunes Match I was able to load music from the cloud without problems. But then, without changing anything, the Music app crashed and every other app, lik
-
Itunes music downloaded to iPad 2 but doesn't show up under "music" app
We have a lot of music in iTunes on the Mac, most of which is from CDs we own. We synced to new iPad 2 and it shows they all went in, but can't get any of the music to show. the "music" button says nothing is there. the "Itunes" button only takes us
-
Hi, I was thinking of getting a refurbished 13 inch MacBook Pro but they are the previous generation (April 2010). I know the new one has Thunderbolt and uses Intel's built in graphics. I don't see using Thunderbolt anytime soon and graphics speed
-
Problems with .avi videos on my iMac G5
I recently purchased QT Pro while on vacation while on my G4 iBook laptop. Everything worked fine with it and I was able to use it's editing and conversion features to make exported DivX .avi videos as well as .mov files which all play without any pr