Checks the complete date (mm/dd/yyyy) against another compelete date (mm/dd/yyyy)
Hi,
Is there a cold fusion function that checks the complete date (mm/dd/yyyy) against another compelete date (mm/dd/yyyy)?
I have used the DateCompare but it only checks the month, day or year depending on the precision being used.
Thanks,
Mike
I think you might need to read the docs a bit more closely. From the docs for dateCompare():
datePart
Optional. String. Precision of the comparison.
s Precise to the second (default)
n Precise to the minute
h Precise to the hour
d Precise to the day
m Precise to the month
yyyy Precise to the year
Indeed, even by default its behaviour is not what you suggest it is.
Adam
Similar Messages
-
How to check the number of rows in a table with input data?`
Dear all,
I am having a table ( with declaration of 5 rows during the init ) there's a next button which will add another 5 rows by pressing. Let say the user ony key in 7 rows of data.. how should i track it? coz these data act as input to my bapi function. One of the input field of my bapi is to state how many rows of data that a user had key in. Thank you.I think ur problem is empty records, u dont want to process empty table rows.
m I right?
if yes then just before processing the data / records, check for empty records and remove unwanted rows from the node.
for (int i = 0; i < TableNode.size(); i++)
if all cells of row(i) are empty
remove row(i) from Table Node.
OR if you dont want to remove empty rows from display (screen), then at the time of processing, transfer useful rows to a separate node and process that node.
Best Regards
Deepak -
[JS CS3] Check the pattern of a random number given a specific data ?
Hi all,
I succeed getting a random number of this look : d.dd (8.73 for ex)
I use Math.random()*(max-min)+min;
I want to check that this number respect a specific given increment.
To be clear :
If I set min to 0 and max to 10 for example.
The script returns a number like 8.56
Now, I have a increment like 0.2
I want the script to give me a number that can be d,d.2,d.4,d.6,d.8
BUT NOT d.78 or d.1
I guess I may use a while command but have no idea of the checking operation.
Any idea ?
Thanks in advance.
LoicMath to the rescue. You want a random integer div 5.
Math.floor(5*(Math.random()*(max-min)+min))/5 should do it. -
Wanted to see the complete URL in Invoke activity dynamically
Hi
In BPEL instance that exists in em , Is there any possibility to see the complete URL for an Invoke activity which url it is hitting dynamically ?
I have a cluster environment (001, 002) for an webservice , i am giving the load balancing URL, every thing works fine , but not able to see/ensure which exact server's URL being hit dynamically from invoke activity of BPEL.
Is there a possibility to see the URL in BPEL instance like audit, flow,.. enabling any of the logging etc etc...
Regards,
Rajiv SHi,
I might be wrong but I don't think that the BPEL is aware of the URL of the endpoint choosen by the load-balancer (That is the purpose of the load-balancer).
So I would advise you to check the load-balancer monitoring to know (or add a data in the response that let you identify the endpoint reached ?).
regards,
mathieu -
I need a function to check the validation of a psp element
Hi guys,
i have the challenge to check psp-elements in a foreign system but i don´t found any function to do this. Has anyone an idea?
explaining: I have a dialog with a char field to enter the psp element. In PAI i want to check the psp element via RFC function in another system.
kr
ThorstenHi,
Yes, you misundertood.
The BAPI name says PROJECT, but it also validates WBS. Use the code as below:
PARAMETERS p_wbs TYPE char24.
DATA e_return TYPE bapireturn1.
DATA i_wbs_element_table TYPE STANDARD TABLE OF bapi_wbs_elements.
APPEND p_wbs TO i_wbs_element_table.
CALL FUNCTION 'BAPI_PROJECT_GETINFO' "add your RFC destination
IMPORTING
return = e_return
TABLES
i_wbs_element_table = i_wbs_element_table.
IF e_return IS NOT INITIAL.
MESSAGE ID e_return-id
TYPE e_return-type
NUMBER e_return-number
WITH e_return-message_v1 e_return-message_v2 e_return-message_v3 e_return-message_v4.
ENDIF.
Cheers,
Custodio -
How to transfer data from one system to another by datamart please give de
how to transfer data from one system to another by datamart please give details
Hi Deba,
Find the below SAP help doc which may help u...
http://help.sap.com/saphelp_nw70/helpdata/en/12/43074208ae2a38e10000000a1550b0/frameset.htm
Also find the below threads...
Loading data from one cube to another cube.
data copy from infocube to infocube in two different BW systems
Delta when loading from ODS to ODS
reg datamart
Data mart flag
Regards,
KK. -
How can i run VisualScript of one URL against another URL
hi folks,
could anybody tell me how can we run the visual script of one url against another url ?
eg: visual script recorded for http://www.abcd.com/index.html must be run against http://www.abcd.com/index1.html
thanks in advance,
pasumarthipasumarthi,
You can right click the address node select properties on page one and change the url there. Since the tool is DOM based all following urls will automatically update when you play the script back. You can also use the script updater utility (in the etest icon group) if you have 8.20.
Hope this helps. -
After completing MSS PCR, how to check the updated data in R3
Hi,
After completing and submitting the MSS PCR, How do I check the updated data in R3?
Thanks
RevaI got the answer.
-
I have tried:
ALTER TABLE dbo.tablename
ADD CONSTRAINT DF_Date_format
check (SDate LIKE '%[1-2][0-9][0-9][0-9]/[0-1][0-9]/[0-3][0-9]%')
******But this does not work for VARCHAR data type ********
and
I also tried creating a function as shown below but I got an error when trying to add a constraint with this function.
(error is:
'The ALTER TABLE statement conflicted with the CHECK constraint "DF_Date_format". The conflict occurred in database " databasename ", table "dbo.tablename", column 'Date'.)
Create FUNCTION [dbo].[CheckDateFormat]
(@Date varchar(10))
Returns BIT
AS
BEGIN
Declare @RETURN BIT
SELECT @Return =
Case when (substring (@Date, 5, 1) + substring (@Date, 8, 1)) = '//'
then 0
else 1
end
Return @Return
END
ALTER TABLE dbo.tablename
ADD CONSTRAINT DF_Date_format
check
( dbo.CheckDateFormat(SDate) = 0 )As noted above, be mindful of the performance implications of UDF CHECK constraints:
http://www.sqlusa.com/bestpractices/udf-check-constraint/
The following logic works:
Create FUNCTION [dbo].[CheckDateFormat]
(@Date varchar(10))
Returns BIT
AS
BEGIN
Declare @RETURN BIT
SELECT @Return =
Case when (substring (@Date, 5, 1) + substring (@Date, 8, 1)) = '//'
then 0
else 1
end
Return @Return
END
GO
CREATE TABLE Orders (ID INT IDENTITY(1,1),
OrderDate varchar(10),
Amount money
GO
ALTER TABLE Orders
ADD CONSTRAINT DF_Date_format
check
( dbo.CheckDateFormat(OrderDate) = 0 )
GO
As noted above, DATE is a better choice for column data type.
Kalman Toth Database & OLAP Architect
SELECT Video Tutorials 4 Hours
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
I am using a PCI-7344 card with LabView to control a 3-axis servo motor motion system in conjunction with a data acquisition system. The intent is to collect data at each grid point of an X-Y grid.
Using the X-Y Grid Inspection (Template).vi as a starting point, I programmed my data acquisition vi to start when the Check Blend Complete Status.vi returned a value of TRUE. I expected the while loop to complete once the data acquisition was complete, but the system starts moving at the same time the data acquisition starts.
Is there a way to force the motion system to wait for the data acquisition to complete prior to moving to the next waypoint?If you enter a positive value into the blend factor control (period in ms), the board will wait this amount of time until it starts the next move.
The Check for Blend Complete.flx function returns TRUE when this wait period is finished. Thus you will see the bahvior you have described.
There are three options I can think of:
1. Check the move complete status in order to start your measurement after the move has come to a stop.
This method might be not the ideal solution as you need to be sure that your measurement doesn't take longer than the wait period you have entered as blend factor. Of course you can make this period very long but then your overall test time will increase.
2. To avoid the disadvantage of 1. don't use blending at all. Instead start a
move to the desired position, wait for move complete, do your measurement and start the next move. This method makes sure that you don't waste time.
3. This might be the smartest and fastest method but there are a few additional requirements:
- The time for your measurement is fixed
- You can use an external trigger or scanclock to start your measurement.
If these requirements are met you could combine the x-y grid example with a breakpoint example.
You could program your board to generate a breakpoint (trigger) at each target position. The Breakpoint output of your 7344 is connected to the trigger or scanclock or whatever input of your measurement device. Now each time your axes reach the next target position the 7344 fires a trigger and your measurement device acquires data.
Best regards,
Jochen Klier
National Instruments Germany -
How to check the sales order that has been PGI from a range of dates.
Hi SAP Gurus,
I have a query on how can I check the sales order that has been PGI from a range of dates in SAP?
Thanks,
MadelynDear Madelyn
Go to VA05, give the date range and execute. List of sale orders will be generated. There you can see a tab "Status" in which, the status would be like
- Not delivered
- Partially delivered
So based on this, you can decide whether the order is still open or completed.
thanks
G. Lakshmipathi -
Hi,
Can anybody tell me how to check the date format in BDC while updating.
The system date format is like mm/dd/yyyy. Check the dates format, in case of error return the following message The date format should be YYYYMMDD.
Thanks......Dear Anil,
This is a common problem, when carrying out BDC.
For example, while recording you met with the field --> MKPF-BUDAT.
Go to SE11 --> MKPF --> Search for BUDAT --> Double click on the Data Element i.e. BUDAT --> Double Click on the domain DATUM --> You can see under the block Output Characteristics : Output Length = 10.
While declaring the TYPES Structure, make it CHAR(10).
Consider this technique as the Rule-of-Thumb while doing BDC.
Regards,
Abir
Don't forget to award points * -
To check the License Expiry Date on EP??
Hello All,
I have completed installing Permanent Licenses through VA in SAP EP.How to check the license expiry date in a stand alone server like EP??Moreover can u pls tell me what authentication is required for applying licenses through slicense??I did some with sap* & the others with ddic??How to check the license expiry date in a stand alone server like EP??
You can see the license and all the details of it in the licensing adaptor using Visual Admin.
Moreover can u pls tell me what authentication is required for applying licenses through slicense??I did some with sap* & the others with ddic??
Any user with SAP_ALL will do.... doesn't matter if you install some with SAP* and some with DDIC
Regards
Juan -
How to check the date is initial in the calculated keyfigure
Hi,
While calculating the difference between the two dates , i need to check the date is having the values or not in the calucluated key figures .how to achieve this .
number of days = delviered date - creation date
All the dates are key figures
Regards,
RajHi there,
It depends on what you want to retrieve.
If you have this:
day 1 - day 2
If day 1 is initial, you'll have day 2 as the result of the difference which is correct. If in the other hand day1 is initial you'll have - day 2 as the result. So you just need the ABS() formula to give the absolute value of the difference.
What exaclty do you want to achieve? only do the formula when both day 1 and day 2 have values? Retrieve always a positive value of the formula no matter if day 1 is initial or day 2 or both?
Can you give a complete example with values of what's happening and what do you pretend to achieve?
Diogo. -
I have checked the box "display date and time on the Menu Bar" and it does not work. Using OS X Yosemite 10.10.2 Anybody have a fix?
Please read this whole message before doing anything.
This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
Step 1
The purpose of this step is to determine whether the problem is localized to your user account.
Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
Test while logged in as Guest. Same problem?
After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
*Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
Step 2
The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
Please take this step regardless of the results of Step 1.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
Test while in safe mode. Same problem?
After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.
Maybe you are looking for
-
I'm trying to change the number associated with our ipad's facetime and messages to my number, not my husbands. When I look under settings, it shows his number, but I don't see the opportunity to change or edit the number.
-
Places Data doesn't show up in Photos App on iPhone
Hi everyone, I recently just imported a bunch of newer pictures from my Aperture library onto my iPhone. The photos show up fine in the Photos app under Photo Library and Albums, but they do not show up in the 'Places" tab. I have all the location
-
Has anyone had the same problem of photo duplication in iPhoto with the new Mavericks OS? All my stuff is updated and now, with Mavericks, I cannot duplicate my photos in iPhoto.
-
Hi In case of file-xi-proxy scenario during the processing of file I have a business rek like.................. A trailer and header record should be located in every file, in the event that a trailer or header record is not detected the file should
-
A movie causes flash player to run slowly
I have the newest version of flash installed in chrome