Finding the newest pricelist date
Hi,
I have a custom table for pricelists. I have been looking for a FM in order to be able to get the record with the latest pricelist. The valid-from field has to be the newest (closest to) today.
How can I get the newest date ?
Hi
U should sort the table by valid-from field while selecting:
If you sort in DESCENDING way y need to get the first record:
SELECT * UP TO 1 ROWS FROM Z<TABLE>
WHERE VALID-FROM <= SY-DATUM
ORDER BY VALID-FROM DESCENDING.
ENDSELECT.
If you sort in ASCENDING way y need to get the last record:
SELECT * FROM Z<TABLE>
WHERE VALID-FROM <= SY-DATUM
ORDER BY VALID-FROM.
ENDSELECT.
Max
Similar Messages
-
HOW TO FIND THE REQUIRED DELIVERY DATE IN VA02
hi
HOW TO FIND THE REQUIRED DELIVERY DATE IN VA02.
i want to display this field in my report. what is the fieldname and in which table it is ?Hi Jyothsna,
There are 2 dates when you say Requested Delivery Date
1. Header level in VBAK-VDATU is the field
2. At item level it is in the schedule line. VBEP-EDATU.
The relationship between item (VBAP ) and schedule line ( VBEP )is 1 to many. But there will be mutiple schedule lines only if you are using the scheduling functionality. Also note to check for confirmed quantity (VBEP-BMENG) to be greater than 0 and use that schedule lines EDATU date as Requested delivery date.
regards,
Advait Gode. -
I have hundreds of songs, most of them purchased from the ITunes Store. I am only able to find the newest of purchases. I have a new laptop (my old one died) and have de-authorized the old PC and authorized the new one.
I thought I might have two separate id's, for some reason, but am unable to find any info re the possible second one. i.e., cannot log in, apple does not recognize it as a user id.
Everything I have/had is on my IPod but I am unable to migrate the music from the IPod to my PC. I have downloaded all the updates for the PC and the IPod. I am at a loss as to how to recover my music and cannot find a way to contact anyone at Apple without having to pay a fee.
Any help will be greatly appreciated.
Thanks,
Judi DupreeNicoleDianneAgnes wrote:
... I haven't yet gotten rid of the old computer, ...
That is good News...
From your OLD computer...
Copy your ENTIRE iTunes FOLDER to an External Drive... and then from the External Drive to your New Computer..
Full Details Here > http://support.apple.com/kb/HT1751
Also... Have a look at these 2 Videos...
http://macmost.com/moving-your-itunes-library.html
http://macmost.com/moving-your-itunes-media-to-an-external-drive.html -
How to find the newest datafile for a TS
Hi
I need to find the newest (in time) datafile added to a given tablespace XX.
In Oracle 8, this can be done by
select a.name from v$datafile a, v$tablespace b
where a.ts# = b.ts#
and b.name = 'XX'
order by a.creation_time desc;
But how to do it in 7.3.4 ?
Use of X$ tables is fine if needed.
Thanks
Steen RI would like to do it pure SQL.
It is for an automatic system, runing on large 1TB+ databases 24x7.
Thanks
Steen -
Query to find the second maximum date in a table
please give me the query to find the second maximum date in a table
You can try with this
SELECT empno
,hiredate
FROM emp a
WHERE 2 = (SELECT COUNT(DISTINCT hiredate)
FROM emp b
WHERE b.hiredate >= a.hiredate
OR
SELECT empno
,hiredate
FROM (SELECT ROWNUM row_num
,empno
,hiredate
FROM emp a
ORDER BY hiredate ASC
WHERE row_num = 2;Regards
Arun -
How to find the Contract Start date
Hi Friends,
with the help of the Transaction type, Item Category,reference Interest rate, how to find the Contract Start date/Billing Strat date and the Contract number.
Regards,
Raju.Hi
naj you can find the contract start date and billing date in crmd_order Financial details data tab, start of contract and Billing and the contract no u will find after Approval of Eligibility Norms, then save go to actions create certificate of acceptance the you will get contract number
Reward with Points
Venkat -
How to find the Last modified date and time of a package
Hi,
We need a clarification on how to find the Last modified date and time of a package in Oracle. We used the example below to explain our scenario,
Lets consider the following example
Let A, B be two packages.
Package A calls the package B. So A is dependent on B.
When A is compiled the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS gets updated.
Now there a modification in package B so it is compiled. There is no modification in package A.
Now when the package A is executed the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS gets updated but we did not make any change in Package A. Now we need to find last modified date and time of the package A . So we can not rely on the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS . Can u please tell us any other solution to get last modified date and time of the package A .
Regards,
Vijayanand.CHere is an example:
SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
2 WHERE OBJECT_NAME = ANY('A','B');
OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
A 20-MAY-2004 10:57:32 20-MAY-2004 10:57:32 2004-05-20:10:57:32 VALID
B 20-MAY-2004 10:58:22 20-MAY-2004 10:59:04 2004-05-20:10:59:04 VALID
SQL> CREATE OR REPLACE PROCEDURE A AS
2 BEGIN
3 NULL;
4 NULL;
5 END;
6 /
Procedure created.
SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
2 WHERE OBJECT_NAME = ANY('A','B');
OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
A 20-MAY-2004 10:57:32 20-MAY-2004 11:01:28 2004-05-20:11:01:28 VALID
B 20-MAY-2004 10:58:22 20-MAY-2004 10:59:04 2004-05-20:10:59:04 INVALID
SQL> EXEC B
PL/SQL procedure successfully completed.
SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
2 WHERE OBJECT_NAME = ANY('A','B');
OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
A 20-MAY-2004 10:57:32 20-MAY-2004 11:01:28 2004-05-20:11:01:28 VALID
B 20-MAY-2004 10:58:22 20-MAY-2004 11:01:53 2004-05-20:11:01:53 VALID
Note that the date under the column 'created' only changes when you really create or replace the procedure.
Hence you can use the column 'created' of 'user_objects'. -
How to find the last update date time and user of record field peoplecode
how to find the last update date time record field peoplecode?
Thank you.One can check the last update date time using the following query
SELECT LASTUPDDTTM FROM PSPCMPROG WHERE OBJECTVALUE1 LIKE 'RECNAME' AND OBJECTVALUE2 LIKE 'FIELDNAME' -
How to find the last modified date of a workflow.
How to find the last modified date of a workflow.
thanks.Hi,
There is nothing as standard that does this - you could write some code to determine the latest begin_date from each of the workflow tables and assume that this was the last time that the definition changed.
What you need is something like this:
select max(wfa.begin_date)
from wf_process_activities wpa
, wf_activities wfa
, wf_item_types_tl wit
where wpa.activity_item_type = wfa.item_type
and wpa.activity_name = wfa.name
and wfa.version = (select max(version) from wf_activities wfa1 where wpa.activity_item_type = wfa1.item_type and wpa.activity_name = wfa1.name )
and wpa.process_item_type = 'your item type'
and wpa.process_item_type = wit.namewhich I think gives what you want.
HTH,
Matt
Alpha review chapters from my book "Developing With Oracle Workflow" are available on my website:
http://www.workflowfaq.com
http://forum.workflowfaq.com
NEW! - WorkflowFAQ Blog at http://thoughts.workflowfaq.com -
Hi,
I'm just attempting to setup an iSCSI target on a freshly installed Windows 2012r2 box, but I get the following error when attempting to Create and iSCSI virtual disk via the wizard after a successful
installation of the iSCSI target role.
The full error is:
Cannot find the Windows PowerShell data file 'ImportExportIscsiTargetConfiguration.psd1' in directory 'C:\Windows\System32\WindowsPowerShell\v1.0\Modules\IscsiTarget\en-GB\', or in any parent culture.
I tried to uninstall, then reinstall the role but no go.
The Server Locale and UI was all updated to en-GB but this folder does not appear to exist in this location. Rather, the folder I can see is:
'C:\Windows\System32\WindowsPowerShell\v1.0\Modules\IscsiTarget\en-US\'
I'm going to attempt to copy the 'en-US' folder to 'en-GB' to see what happens, but I would like to know why this has occurred in the first place? Other roles have installed (such as AD DS AD CS and
IIS) on other machines with no issue.
Many thanks
Chris
ChrisHi Chris,
The error "Cannot find the Windows PowerShell data file 'ImportExportIscsiTargetConfiguration.psd1'" occured, because the file 'ImportExportIscsiTargetConfiguration.psd1' can't be loaded under the folder en-GB with current culture.
I recommend you can copy this .psd1 file under 'C:\Windows\System32\WindowsPowerShell\v1.0\Modules\IscsiTarget'. Essentially if PowerShell can’t find the specified data file for the current culture it will “fallback” to the top-level data
file in this case.
For more detailed information, please refer to this article:
Windows PowerShell 2.0 String Localization
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
How to find the structure fields data in database tables?
how to find the structure fields data in database tables?
Your question doesn't appear to be Web Dynpro ABAP related. Please only post questions in this forum if they are directly Web Dynpro ABAP related. There are several other more general ABAP related forums.
-
Were do i find the latest up dates for the 3g phone
were do i find the latest up dates for the 3g phone
On iTunes when you connect your iPhone. The latest version for the 3g is 4.2.1. What version do you have on your iPhone?
-
Help find the Last run date from previous month
Hi all
I am stuck trying to find the Last Run Date from the previous month.
select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
"03/30/11-06:19
"03/25/11-03:01
"03/24/11-03:00
"03/23/11-03:00
"03/22/11-03:00
"03/21/11-03:00
"03/18/11-03:00
"03/17/11-00:00
"03/16/11-06:31
"02/15/11-07:42
"02/15/11-06:00
"02/14/11-08:19
Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMP
I tried
select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
from daily_tests_a
where date_ran like '%/11-%'
order by date_ran desc
which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
Regards
SMKWelcome to the forum!
user2931503 wrote:
Hi all
I am stuck trying to find the Last Run Date from the previous month.
select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
"03/30/11-06:19
"03/25/11-03:01
"03/24/11-03:00
"03/23/11-03:00
"03/22/11-03:00
"03/21/11-03:00
"03/18/11-03:00
"03/17/11-00:00
"03/16/11-06:31
"02/15/11-07:42
"02/15/11-06:00
"02/14/11-08:19
Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMPThat's a very bad idea. Points in time should always be stored in DATE (or maybe TIMESTAMP) columns. If not, you're going to waste resources converting them to DATEs whenever you need them to behave like DATEs, and risk run-time errors because of bad data.
Normally, the "previous" month means the month before the current month. In April, the previous month is March.
By "previous" month, do you mean the 2nd latest month in the table? That is, this data contains data from February and March, 2011; March 2011 is the latest of those months, February 2011 is the next-to-last, and so is that why you want a date from February?
I tried
select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
from daily_tests_a
where date_ran like '%/11-%'
order by date_ran desc
which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
Regards
SMKTry this:
WITH got_real_date AS
SELECT TO_DATE ( SUBSTR (date_ran, 1, 14)
, 'MM/DD/RR-HH24:MI'
) AS real_date
FROM table_x
-- WHERE ... -- If you need any filtering, put it here
SELECT TO_CHAR ( MAX (real_date)
, 'MM/DD/RR-HH24:MI'
) AS last_date
FROM got_month_num
WHERE real_date < (
SELECT TRUNC (MAX (real_date), 'MONTH')
FROM got_real_date
;Edited by: Frank Kulash on Apr 5, 2011 3:59 PM -
How to find the last executed date of any program?
<<Frequently asked questions. So search>>
How to find the last executed date of any program?
is there any system variable or function module?
Edited by: Matt on Oct 5, 2010 12:48 PMcheck the transaction STAD.
Prabhudas -
How to find the what version ( Data center or Standard ) of SCOM installed
How to find the what version ( Data center or Standard ) of SCOM installed
Raghavendra BhatRaghavendra, you are true. There are two version of System center
Microsoft considers the Standard version for those who are “lightly” virtualized, i.e., those that do not need an excessive number of VMs running in the organization. The license for Standard includes 2 processors and 2 VMs (or two
OS instances). You can stack licenses if you need to add additional processors or additional VMs in your environment, but there is a breakpoint where it makes more sense, financially, to opt for the Datacenter package. That breakpoint will generally
be around 5 VMs. Pricing is $1,323 for System Center 2012 Standard.
Microsoft considers the Datacenter version for those organizations who are highly virtualized. System Center 2012 Datacenter licenses include an unlimited number of Operating System Environments (OSEs) in an on premises environment
or eight OSEs in a public cloud environment. Large Enterprises and Cloud providers will benefit most from this model. Pricing is $3,615 for System Center 2012 Datacenter.
For more information about licensing and difference between system center Datacenter and standard, you can refer below link
http://myitforum.com/myitforumwp/2012/01/17/new-system-center-2012-suite-versioning-and-licensing-model-simplifies-and-excites/
Please remember, if you see a post that helped you please click (Vote As Helpful) and if it answered your question, please click (Mark As Answer).
Maybe you are looking for
-
Single Sign-On and Forcing logins
Hi I'm new to single sign-on firstly. Is it possible for a company using SSO, to force a user to login again when trying to access a certain web application, in this instance a J2EE application within the company's domain (I know it defeats the purpo
-
Hi, I have a quicktime self contained movie I've exported from FCP. It's just over 6 hours long (it's a seminar). The file size is 34 gigs. It's 854x480 Apple Intermediate Codec, Linear PCM bitrate 14,176 Does anyone have a workflow suggestion for me
-
Connecting to Wireless AP with non-english SSID name
Hi everyone I have a wireless AP with a non-english name ( The name is "IsolÈ coffee"), when I do scan for wireless network in Mac OS X it will not show this network and even if I use iStumbler it will show it but it will not able to connect to it if
-
HT1329 Can I connect my old iPad to my iPod to play music from my iPod
Can I use my old iPad to play music from my iPod.
-
When I change the time zone of the clock, the "Date created" time information for my documents and image files in the Finder window (and in Get Info) is changed. Can I make the time info in "Date created" remain fixed regardless of the clock's timezo