Menu for finding last date of Execution of Transaction or any program
Dear All,
I want to know is there ant Report , Table or Function Module by which i can find out Last Execution Date of any Transaction or program.
Pl let me know.
regards,
Sanjay
Hi Sanjay,
For transaction you ca ntry AUT10
update us to help you more, reward points to help you better!
Regards,
Shyamal
Similar Messages
-
How ti find the last date of execution of a bookmark on the portal BW?
Hello,
We need to know the last date of execution of a bookmark on the portal BW?
Thanks for your help.
Best regardsHi,
Please check the below URL for Managing bookmark:
http://help.sap.com/saphelp_nw04/helpdata/en/2d/ce623c1bb4646ce10000000a11402f/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/3a/d609e5803111d5992f00508b6b8b11/frameset.htm
Thanks,
Venkat -
How to find last date of month
Dear All,
Can anybody tell me how to find last date of month I need it to check some validations
helpful answer will definatly rewarded
Regards
ShashikantHi,
RP_LAST_DAY_OF_MONTHS Determine last day of month
HR-D: Payroll Germany code
RP_LAST_DAY_OF_MONTHS
HR-D: Determine last day of month
DATE_CONVERT_TO_FACTORYDATE
Returns factory calendar date for a date Calculates and returns factory calendar date for a date (if CorrectOption = '+');
Checks if the date is work day (if CorrectOption = '-').
HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the date is a holiday by checking the parameter HOLIDAY_FOUND. -
Min,Max for a time Range and Sum of Records for the last date/time
Hi All,
I have a table with the following structure/data:
create table Events (
[EventID]
int NOT NULL,
[Title]
nvarchar(200) NOT NULL,
[SourceName] nvarchar(20) NOT NULL,
[Type]
int NOT NULL,
[eDate]
datetime
insert into Events values(100, 'Event 1', 'S01', 3,'2014-01-01 00:00:00.000')
insert into Events values(100, 'Event 1', 'S07', 3,'2014-01-01 00:00:00.000')
insert into Events values(100, 'Event 1', 'S08', 3,'2014-01-01 00:00:00.000')
insert into Events values(100, 'Event 1', 'S09', 3,'2014-01-01 00:00:00.000')
insert into Events values(101, 'Event 2', 'S010', 3,'2014-01-01 00:00:00.000')
insert into Events values(102, 'Event 3', 'S03', 3,'2014-01-01 00:00:00.000')
insert into Events values(100, 'Event 1', 'S04', 3,'2014-01-01 00:00:00.000')
insert into Events values(101, 'Event 2', 'S05', 3,'2014-01-01 00:00:00.000')
insert into Events values(102, 'Event 3', 'S06', 3,'2014-01-01 00:00:00.000')
insert into Events values(100, 'Event 1', 'S01', 3,'2014-02-01 00:00:00.000')
insert into Events values(101, 'Event 2', 'S02', 3,'2014-02-01 00:00:00.000')
insert into Events values(102, 'Event 3', 'S03', 3,'2014-02-01 00:00:00.000')
insert into Events values(100, 'Event 1', 'S04', 3,'2014-02-01 00:00:00.000')
insert into Events values(101, 'Event 2', 'S05', 3,'2014-02-01 00:00:00.000')
insert into Events values(102, 'Event 3', 'S06', 3,'2014-02-01 00:00:00.000')
insert into Events values(100, 'Event 1', 'S01', 3,'2014-03-01 00:00:00.000')
insert into Events values(101, 'Event 2', 'S02', 3,'2014-03-01 00:00:00.000')
insert into Events values(102, 'Event 3', 'S03', 3,'2014-03-01 00:00:00.000')
insert into Events values(100, 'Event 1', 'S04', 3,'2014-03-01 00:00:00.000')
insert into Events values(101, 'Event 2', 'S05', 3,'2014-03-01 00:00:00.000')
insert into Events values(102, 'Event 3', 'S06', 3,'2014-03-01 00:00:00.000')
And I wrote the following query:
select EventID as [Event ID],
Title,
count(distinct(SourceName)) as [Instances],
Type,
min(eDate) as [First Detected],
max(eDate) as [Last Detected],
datediff(d,min(eDate),max(eDate)) as [Delta (days)]
from Events
where type = 3
group by EventID, Title, Type
having max(eDate) <> min(eDate)
and max(eDate) =(select top 1 eDate from Events order by eDate desc)
and I get the following results (see the instance number)
Event ID Title Instances Type First Detected Last Detected
Delta (days)
=============================================================================================================================
100 Event 1 5 3 2014-01-01 00:00:00.000 2014-03-01 00:00:00.000
59
101 Event 2
3 3 2014-01-01 00:00:00.000 2014-03-01 00:00:00.000 59
102 Event 3
2 3 2014-01-01 00:00:00.000 2014-03-01 00:00:00.000 59
This is normal for this query however what I need to do is a little different.
In other words, while I need to show when we recorded a specific event first and last time,
I need to display the results for the last date/time when it was recorded.
For example what I need to provide should look like this:
Event ID Title Instances Type First Detected
Last Detected Delta (days)
=============================================================================================================================
100 Event 1 2 3
2014-01-01 00:00:00.000 2014-03-01 00:00:00.000 59
101 Event 2 2 3
2014-01-01 00:00:00.000 2014-03-01 00:00:00.000 59
102 Event 3
2 3 2014-01-01 00:00:00.000 2014-03-01 00:00:00.000
59
Could you please help me to fix this query?
TIA,
John;With cte As
(Select EventID as [Event ID],
Title,
SourceName,
Type,
min(eDate) Over(Partition By EventID, Title, Type) as [First Detected],
max(eDate) Over(Partition By EventID, Title, Type) as [Last Detected],
eDate,
datediff(d,min(eDate) Over(Partition By EventID, Title, Type),max(eDate) Over(Partition By EventID, Title, Type)) as [Delta (days)],
max(eDate) Over() As MaxEDate
from Events
where type = 3)
Select [Event ID],
Title,
COUNT(Distinct SourceName) As Instances,
Type,
[First Detected],
[Last Detected],
[Delta (days)]
From cte
Where eDate = MaxEDate And [First Detected] <> [Last Detected]
Group By [Event ID],
Title,
Type,
[First Detected],
[Last Detected],
[Delta (days)];
Tom
P.S. Thanks for providing the DDL and data. That is always very helpful. -
Since installing Lion, no Finder window will open on the desktop. I can see them through "Quick Look" and "View all Windows" in the contextual menu for Finder in the dock.
Help please!
-
Can V find Master data datasource by having Transaction data datasource?
Hello All
I have a datasource in r/3 side by this can v find Master data datasource?
The Transaction datasource is 2lis_02_scl?
how to find Master datasource for this?
Many Thanks
balajiAHP hello
Thanks for info given
Can v view same for customized datasources also?
is it possible?
so for datasource 2lis_11_vaitm,if v click on "Infosource Overview" v can view all the Infosource name,by this v can find our Master Datasource.?
so for ex.,I can c infosource 0CUST_GRP1,so this is the datasource for Master data from r/3 side?
Is it correct?
Many Thanks
balaji -
Can I use two different devices with different apple ID for backing up data on one machine without losing any data that was backed up with one device earlier?
The link is to a discussion started on 12/18 in the FiOS Internet forum. Here's the link I get now, however it is different than the link I pulled a few hours ago. If this system changes the link again, it may not work.
http://forums.verizon.com/t5/FiOS-Internet/Frustration-and-just-confused-with-internet-help-please/t...
You can also look for the topic, "frustration and just confused" in the FiOS Internet forum.
Here's a link that is in the thread that gives more detail.
https://secure.dslreports.com/faq/15984
Good Luck!
P.S. "Copper Contributor" is my "rank." gs0b is my user name.
If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem. -
I'm paying for the creative cloud package but Can't download any program!
I'm paying for the creative cloud package but Can't download any program! Adobe is not recognizing my payment! What can I do? I can't wait anymore! Anyone here have seen it before?
Hello Sheena, thank you for your reply.
Actually I have already contacted the support. My case number is 0215124375.
I decided to write here at the community because I'm sincerely worry about it, and I would like to know if someone else have already seen it before.
Adobe is verifying my case, but I'm in need of an urgent response. I don't know if I make another account and another credit card debit, just to have access for the programs, or if I wait working on another old PC computer for 25 trial days. If I make another account I can be charged for 2 payments, That's what I don't want.
If you have any other case like mine, please let me know,
SIncerely,
Wellerson -
I have paid up for a Teachers account and am unable to install any program. I keep getting directed to your 'Trial has expired'.
Hi Pamela,
You can follow the article: Activation & deactivation help which might be helpful for your activation issue.
Please let us know if it works or if you still face any issue.
Thanks,
Ratandeep Arora -
FM for the last date of the previos month
Hi folks
my requirement is if we enter the calendar month say YYYYMM in the selection
screen. it has to get the previous month last date in the format DDMMYYYY
For eg., selection screen input 200704
required output : 31/03/2007
Is there any standard function module.
please urgent
Thanks in Advance
RaoHi,
Please try this.
data: wa_idate like sy-datum,
wa_odate like sy-datum.
wa_idate(6) = p_date.
wa_idate+6(2) = '01'.
wa_odate = w_idate - 1.
OR
call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = wa_idate
days = 0
months = 1
signum = '-'
years = 0
importing
calc_date = wa_odate.
write: / 'Last date of the previous month: ', wa_odate.
Regards,
Ferry Lianto -
How to find last date of the current year
Hi
Please tell me is there any function module to find out the last date of the current year.Hi,
You can do that very simply like so.
code
report zrich_0001.
data: first type sy-datum.
data: last type sy-datum.
first = sy-datum.
first+4(4) = '0101'.
last = sy-datum.
last+4(4) = '1231'.
write:/ first, last.
[/code]
OR use function modules
1.use this function module HR_GB_TAX_YEAR_DATES
Pass these values
P08_TXYEAR = Year
P08_PAYROLL_AREA = '01'
2.use FM......... FIRST_AND_LAST_DAY_IN_YEAR_GET
DATA: first LIKE sy-datum,
last LIKE sy-datum.
CALL FUNCTION 'FIRST_AND_LAST_DAY_IN_YEAR_GET'
EXPORTING
i_gjahr = '2007'
i_periv = '24'
IMPORTING
e_first_day = first
e_last_day = last.
WRITE: / 'First Date', first, ' Last Date', last.
Regards,
Raj. -
Table for finding delivery date
hello all,
i m making a report for which will display the delay in delivery per vendor wise, can anyone tell me that how can i determine the time/days delayed by vendor? i m trying to take diffrence betbeen delvery date in PO and date on which Delivery Completeed check box ticked, but i m not getting the table which stores the delivery date?
plz help. is there any standard tcode?
regards saurabh.Hi,
see vbak table and below tables
/BEV1/RBVBAK Sales Document: Header Data
/BEV1/REWART Rental Items: Delivery Schedule Items -
Help! I can send email but I have not received any emails for the last 2 days. What can I do?
Hello Liz,
It sounds like you are not able to receive emails on your iPad. I recommend the following resources for an issue like this:
Setting up and troubleshooting Mail
https://www.apple.com/support/ipad/assistant/mail/
iOS: Unable to send or receive email
http://support.apple.com/kb/ts3899
Thank you for using Apple Support Communities.
Best,
Sheila M. -
Formula for finding specific date in a Current Year
Hello ,
Can get a formula which i can use in variable to find date having first Thursday in a current Year.
So in case of Current Year i.e 2014 , Formula should return date as "01/02/2014"(mm/dd/yyyy)
Thanks & Regards
Gourav JoshiHi Gourav Joshi,
Create a variable as per below. it will give you "First Thursday" of the year.
First_Thursday=
If(DayNumberOfWeek(RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-1)))=1) Then RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-4)) Else
If (DayNumberOfWeek(RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-1)))=2) Then RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-3)) Else
If (DayNumberOfWeek(RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-1)))=3) Then RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-2)) Else
If (DayNumberOfWeek(RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-1)))=5) Then RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())+6)) Else
If (DayNumberOfWeek(RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-1)))=6) Then RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())+5)) Else
If (DayNumberOfWeek(RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-1)))=7) Then RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())+4)) Else
RelativeDate(CurrentDate();-(DayNumberOfYear(CurrentDate())-1))
It will help you.
Regards,
Anish -
Query for Finding the Date History
Hi Geeks,
My Table looks like this
Employee Assignment Position Job Grade Start_date End_date
101 132 2055 Clerk C01 10-Mar-00 11-Feb-01
101 132 2055 Clerk C02 12-Feb-01 15-Dec-01
101 132 2056 Clerk C02 16-Dec-01 22-Jul-03
101 132 2055 Clerk C03 23-Jul-03 31-Dec-4000 --(unassigned)
Now I need output like
Employee Assignment Position Start_date End_date
101 132 2055 10-Mar-2000 15-Dec-2001
101 132 2056 16-Dec-2001 22-Jul-2003
101 132 2055 23-Jul-2003 31-Dec-4000 --(unassigned)
The following important things are to be considered
1. Rows to be grouped by position
2. Each row much have the start date and end date of the employee position. If the employee is the same postion and different grade or job that doesnt matter. But if the employee jumps from his position (2055) to 2056 and after sometime he comes to the same position (i.e. 2055) the date history should be separate.
I am unable to derive the logic also. I think we need to create a function for this.
Kindly help me out.
Thanks in Advance
Punithavel
Message was edited by:
Punithavel
Message was edited by:
PunithavelToo difficult to read. I have no database access to test (usually I use a step by step approach, proceeding with the next step when the current one is OK).
I can describe a general idea (may post something afterwards with no promise it will work)
step 1: mark the position changes
step 2: retain only mark 1 and mark max(mark) of each group
step 3: make a single row from the two rows of each group
Regards
Etbin
with
marking as
(select employee,assignment,position,start_date,end_date,
row_number() over (partition by employee,assignment,position order by start_date) the_mark
from the_table
collecting as
(select employee,assignment,position,start_date,end_date,the_mark
from marking m
where the_mark = 1
or the_mark = (select max(the_mark)
from marking
where employee = m.employee
and assignment = m.assignment
and position = m.position
group by employee,assignment,position
having count(*) > 1
combining as
(select employee,assignment,position,
case when the_mark = 1 then start_date end start_date,
case when the_mark = 1
then case when lead(position,1) over (partition by employee,assignment,position order by start_date) = position
then lead(end_date,1) over (partition by employee,assignment,position order by start_date)
else end_date
end
end end_date
from collecting
select employee,assignment,position,start_date,end_date
from combining
where start_date is not null
order by employee,assignment,position,start_date*** not tested ***
Message was edited by: Etbin
user596003
on a lazy afternoon I took a look at your friend's solution too and I like it.
It's more concise than mine (defining starts and ends).
Not being able to test it the only problem in his solution might be the absence of order by clauses to assign correct rownums
WITH lag_and_lead AS
(SELECT employee,assignment,position,start_date,end_date,
LAG (position) OVER (PARTITION BY employee,assignment ORDER BY start_date) AS lag_position,
LEAD (position) OVER (PARTITION BY employee,assignment ORDER BY start_date) AS lead_position
FROM your_table
ORDER BY employee,assignment,start_date
starts AS
(SELECT employee,assignment,position,start_date,ROWNUM rn
FROM lag_and_lead
WHERE position <> lag_position
OR lag_position IS NULL
order by employee,assignment,start_date
ends AS
(SELECT employee,assignment,position,end_date,ROWNUM rn
FROM lag_and_lead
WHERE position <> lead_position
OR lead_position IS NULL
order by employee,assignment,start_date
SELECT starts.employee,starts.assignment,starts.position,starts.start_date,ends.end_date
FROM starts,ends
WHERE starts.employee = ends.employee
AND starts.assignment = ends.assignment
AND starts.position = ends.position
AND starts.rn = ends.rn
EMPLOYEE ASSIGNMENT POSITION JOB GRADE START_DATE END_DATE
101 132 2055 Clerk C01 10-Mar-2000 11-Feb-2001
101 132 2055 Clerk C02 12-Feb-2001 15-Dec-2001
101 132 2056 Clerk C02 16-Dec-2001 22-Jul-2003
101 132 2055 Clerk C03 23-Jul-2003 31-Dec-4000
lag_and_lead
EMPLOYEE ASSIGNMENT POSITION START_DATE END_DATE lag_position lead_position
101 132 2055 10-Mar-2000 11-Feb-2001 null 2055
101 132 2055 12-Feb-2001 15-Dec-2001 2055 2056
101 132 2056 16-Dec-2001 22-Jul-2003 2055 2055
101 132 2055 23-Jul-2003 31-Dec-4000 2056 null
starts
EMPLOYEE ASSIGNMENT POSITION START_DATE rn
101 132 2055 10-Mar-2000 1
101 132 2056 16-Dec-2001 2
101 132 2055 23-Jul-2003 3
ends
EMPLOYEE ASSIGNMENT POSITION END_DATE rn
101 132 2055 15-Dec-2001 1
101 132 2056 22-Jul-2003 2
101 132 2055 31-Dec-4000 3
EMPLOYEE ASSIGNMENT POSITION START_DATE END_DATE
101 132 2055 10-Mar-2000 15-Dec-2001
101 132 2056 16-Dec-2001 22-Jul-2003
101 132 2055 23-Jul-2003 31-Dec-4000Regards
Etbin
Message was edited by: Etbin
user596003
Maybe you are looking for
-
Premiere projects stored on external hard drive & re-editing
Hi guys, I seem to be one of the few Mac users editing on Premiere Pro 5.5 with AVCHD (from Panasonic HDC-SD700) files. Luckily I can use even the 1080p/50 files, but I have this problem: After I move the project folder (all Premiere files inc. the f
-
Adding Time and Local Weather Data in a page
Can anybody tell me or point me to a tutorial that shows how to add the current time and weather report into a page? Thank you sal
-
using javafx 1.2 testing javafx.scene.charts Looks like there is a memory leak Here is a small bar chart app. The bars are animated. They shrink and grow when clicked on. Keep clicking and the app eventually crashes with the following error Unexpecte
-
I went back to snow leopard after getting tired of the beach ball in lion, I am now ready to go back to lion but cannot find the download for it and I paid for this at the apple site, what do I do now?
-
HI, Environment Details- OIM 11g R2 with BP03 and Oracle Database as trusted source I have successfully implemented GTC (trusted source recon) in one environment (Env-1) now i want to import it in another environment (Env-2).I installed Database Appl