How can I get the Thursday of current week as a date?
Is it possible to get Thursday of the current week as a date, using a select statement?
For example, no matter what day of the week it is when I run the query, I'll get the Thursday of the current week in date form.
It should be really simple, but I'm still scratching my head on this. Thanks!
SELECT DATEADD(wk, DATEDIFF(wk,0,GETDATE()), 3) ThursdayOfCurrentWeek
Hope this helps
Thanks,
Nihar
SELECT DATEADD(wk, DATEDIFF(wk,0,GETDATE()), 3) ThursdayOfCurrentWeek
Similar Messages
-
How can I get the information of current BW system id?
How can I get the information of current BW system id '0TCTSYSID' or 'LOGSYS'?
thank your attention!Transaction SCC4 will give you the current logical system you are connected to (double click on the current client).
Regards,
Fred -
How can i get the time to appear on my stored data in notepad
Hi all,
I was wondering how can i get the time to appear on my stored data in notepad? I saw an example before but i forgotten which example was it.. Any ideas??
holla
Attachments:
TextFile1.txt 3 KBHi
Im using Labview 8.2. Currently it just shows the data without the time. Im not sure what to do. It works perfectly though. I just want the time to appear on my notepad along with my data
holla
Attachments:
Testing1.txt 1 KB
Untitled 231_LV80.vi 23 KB -
How Can i Get the reference of currently opened System form
Hi Experts,
I have a scenario in which i need the reference of currently opened SAP form The code is like
SAPbobsCOM.ProductionOrders op = null;
op = (SAPbobsCOM.ProductionOrders)SBO_Company.GetBusinessObject(BoObjectTypes.oProductionOrders);
now i want some logic like
op=currently opened production order in sap
so that i can edit the fields of that order
Thanks AmitHi Amit
You can access the currently opened form using this
for getting the active form
Dim oForm As SAPbouiCOM.Form= Sbo_Applicaion.Forms.ActiveForm
for getting the form using form type and count
Dim oForm As SAPbouiCOM.Form= Sbo_Applicaionl.Forms.GetFormByTypeAndCount("133", 0)
Hope this helps
Regards
Arun -
How can i get the current number of word in paragraph?
I have cursor set on some word in Para. And i'd like to make italic all words before it. How can i get the number of current word in collection Words in mInd.Selection.Item(1)?
Hi Dmitry1776,
Try something like this:
Set myInsertionPoint = myInDesign.Selection.Item(1)
Set myStory = myInsertionPoint.ParentStory
Set myStartCharacter = myStory.Characters.Item(myInsertionPoint.Paragraphs.Item(1).Index)
Set myCharacter = myStory.Characters.Item(myInsertionPoint.Index)
Set myEndCharacter = myStory.Characters.Item(myCharacter.Words.Item(1).Index - 1)
Set myText = myInsertionPoint.ParentStory.Texts.ItemByRange(myStartCharacter, myEndCharacter).Item(1)
...at this point, myText is a range of text from the start of the paragraph to just before the text containing the insertion point.
Thanks,
Ole -
How can I get the current user an resource context in a portal JSPDynPag
How can I get the current user (com.sapportals.portal.security.usermanagement.IUser?)an the resource context in a portal component (JSPDynPage)?
Thanks.Hi Jon,
Here is the code to get the current user and resource context in your JSPDynPage:
IPortalComponentRequest currentRequest = (IPortalComponentRequest)pageContext.getAttribute(javax.servlet.jsp.PageContext.REQUEST);
com.sapportals.portal.security.usermanagement.IUser contextUser = (com.sapportals.portal.security.usermanagement.IUser) currentRequest.getUser().getUser();
ResourceContext resourceContext = new ResourceContext(contextUser);
Greetings,
Praveen Gudapati
p.s. points are always welcome for helpful answers -
How can I get the DPI of the current workstation?
Hi can anyone help me?
I want to know the dpi witch is set on a Windows system.
How can i get it? Because i will reformat and fit the dpi of displaying images to the dpi of a current window system, e.g image= 200x200dpi and monitor=84dpi so the dpi of the images should be set to 84.
But How can i get the current dpi of the Workstation?
please help,
florianyes but it sucks because windows-workstations
manipulates the dpi to a standard value of 96 dpi...
its equal if there is a 15" or a 17" monitor ...
thanks floI agree, getScreenResolution() just doesn't work. Try changing your screen resolution setting (say from 1024x768 to 800x600) and this method will continue to return the same value!
Can one adjust the scale so that you can draw a 1 inch square, for instance? The default affine transform property of the graphics object passed to paint methods is supposed to have 72 units = 1 inch, but that's not true. Again, adjust your screen settings and the same 72x72 square will come out in very different sizes.
Is there any way to correct this, short of going to native code to get the screen resolution? I know that the screen display may be a bit miscallibrated, but anything would be better that the way it is now! -
I forgot the answers to my security questions and the e-mail where the replies are being answered is no longer valid or active, how can I get the answers to be sent to my current active e-mail? Thank you
You need to contact Apple, either through the link in that article or by phoning them and asking for the Account Security team.
(80384) -
How can i get the data from the weblink
Hi All,
Good Afternoon,
i create a page with picklist,
that picklist contains so many currencies like(USD,AED,BSD----------)
when ever i am selecting the currency from that picklist,
that time i want to get the current exchage rate from this link
http://www.oanda.com/convert/classic
how can i get the current exchage rate from that link.
pls give me the gudaincee.
i hope u will help me.Hi Gaurav,
Below given link gives a nice demo of integrating web service with OAF. (For using captcha user verification service).
[http://oracle.anilpassi.com/integrate-oa-framework-with-web-service-2.html]
However, using web services will cost little extra effort of learning SOAP and wsdl.
Please let me know if you find any difficulties related to web services.
Abdul Wahid -
How can I get the photos from my old icloud backup on to my computer?
I got a replacement phone and now there are 2 iphone backups. There's the old phone with the pictures on it I would like to put on to my windows 8 pc. I can't figure out how to get them. I can't restore them to my iphone because I already have another file in icloud for that. How can I get the old file with my pictures on to my computer??
You can only access them by restoring the backup to your phone. You can backup your phone (such as by backing it up to your computer using iTunes), restore the old backup, transfer the recovered photo to your computer (iOS: Import personal photos and videos from iOS devices to your computer), then restore the backup you made earlier to return your phone to its current state.
-
How can I get the underlying object from the ObjectReference
Dear friends,
I think this question has been asked a couple of times. But, I am still wondering if anybody has found an answer to it. Maybe this is some common need ...
I would like to get the underlying object for which the ObjectReference is
a mirror For example, I have a class Customer in my application, and I can get an ObjectReference through JDI during runtime. But how can I get the target VM's object which is a real instance of Customer, by which I can invoke methods defined in Customer?
Thank you so much for any input!
SunnyDayI'll preface this response by admitting this far from an elegant solution, but I did write a function addressing this question, mostly as an exercise.
If passed an object with an InTextFrame property (Pgf, AFrame, Cell, Fn) that resides in an open document, the function will return the Doc object. Otherwise, it returns undefined.
function getParentDoc(testObj) {
//Get object for current page
try { var curPage = testObj.InTextFrame.FrameParent.PageFramePage; }
catch(er) {return;}
//Step backwards to first page in document
var prevPage = curPage.PagePrev;
while (prevPage.ObjectValid())
curPage = prevPage;
prevPage = prevPage.PagePrev;
//Compare with first pages of open documents
var testDoc = app.FirstOpenDoc;
while (testDoc.ObjectValid())
if (curPage.id==testDoc.FirstBodyPageInDoc.id) return testDoc;
testDoc = testDoc.NextOpenDocInSession;
return;
To your PPS: Rather than seeing the native framework grow bloated to address additional features, I would love to see Adobe and other developers publish libraries of useful functions and class extensions. -
How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?
How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size? I would like them to open at the size they were previously resized like they used to in previous operating systems. They currently open at a very small size and the first colum is only a few letters wide necessitating a resize practically every time one wants to use it. Any help would be appreciated.
hi Prasanth,
select werks matnr from ZVSCHDRUN into table it_plant.
sort it_plant by matnr werks.
select
vbeln
posnr
matnr
werks
erdat
kbmeng
vrkme
from vbap
into table it_vbap
for all entries in it_plant
where matnr = it_plant-matnr and
werks = it_plant-werks.
and again i have to write one more select query for vbup.
am i right? -
Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address. My other devices all have the correct address. How can I get the correct address for my iPhone? The only Apple ID that works for logging in is my new one.
To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone (if you're using iOS 7), then sign back in with the ID you wish to use. If you don't know the password for your old ID, or if it isn't accepted, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID. Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change. Then edit the name of the account to change it back to your old email address. You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud). Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was. Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.
-
How can I get the MAC address of my Apple TV?
How can I get the MAC address of my Apple TV? I currently do not have an HDMI device to connect it to, and the MAC is not listed on the box or the Apple TV itself.
(to answer the obvious, I am trying to pair it with an iPad, and I need to register the Apple TV for the network so the two can see each other)As long as I know java doesn't have support to work on link-layer, only internet and transport layers. You may write simple native code. On windows, IP Helper functions, like SendARP allow you to pass an IP address and get the hardware address. You store the hardware address on your database/file and later, when that machine is off, you send a frame to the address you stored previous.
[http://msdn.microsoft.com/en-us/library/aa366071(VS.85).aspx]
I haven't seen it on Linux, but if you need help let me know I'll check the Linux API's too. -
How can we get the location from location area code?
Hi All,
i have an application which successfully runs on Motorola L6 and it gives me the cell-id, Location area code, and Mobile Network Code, and Mobile Country Code. Now I want to know how can I get the location ( I mean the name of the location) through location area code. And one more thing can we get current MNC and current MCC through j2me because I have written a code for getting this information for sony ericsson cells but dont have a handset to try out. Anyway if anyone has the information then please let me know
Thanks in advance
SunilI donot think you have a direct blog..
check this blog for java proxies ..
/people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
AND CONFIGURE A RFC..
Maybe you are looking for
-
Steps to load data from R/3 to BW
Hi all, 1. I am loading data fromDS : 2LIS_12_VCITM to cube. Can somebody explain what steps we need to follow in R/3 and then in BW. 2. Also i have a Z - Extract Structure for 2lis_13_vditm,which has additional fields, how or where should i link 2
-
In iMovie on my new MacBook Pro. I'm editing a video of mine (As i make videos for YouTube), i put in the clips, then i put in background music. But when the music is there, the clips go really quiet. I'm trying to change that but it isn't working, i
-
Hi all, Store department issued the material to user department two years back. Now the, material needs to be repaired and send out of the factory with returnable Gate Pass. What is the process in SAP please. Thanks.
-
Hi, We are in the process of upgrading the database from 10.2.0.2 to 11.2.0.3 database. Currently Client is using pro*c(from 10.2.0.1 client) on different machine connecting to 10.2.0.2(Will be upgraded to 11.2.0.3) database. I gone through certifica
-
Maintain the account deprection area 01
hai.. when i am doing purchase of asset F-90 i got a error for this pages CONTACT YOUR SYSTEM ADMINSTRATOR ( TABLE ERROR) BUT HELP MEG maintain the accounts for deprection area 01. please give me bucket as soon as possible. regards Thomas