How to get the date fromat from the database?
I am using Oracle9i database and i want to get the format of the date that is stored in the database.
How do i do that?
Thanks,
Shrimon
concatenate sy-datum0(2) '01' sy-datum4(4) into v_firstdate.
or yo ucan use the fm:
HR_JP_MONTH_BEGIN_END_DATE
usage:
call function 'HR_JP_MONTH_BEGIN_END_DATE'
exporting
iv_date = sy-datum
importing
ev_month_begin_date = gv_begda
ev_month_end_date = gv_endda.
Regards,
Ravi
Message was edited by:
Ravi Kanth Talagana
Similar Messages
-
How to get the Database type from weblogic Db connection
I want to use database version control in my application . that means different database type use different Sql Statement. Such as in weblogic7.0 if I create SqlServer JDBC pool then I will use some special Sqlserver sql Statement . such as some join statement. If I create Oralce JDBC pool then I have to use different Sql statement . because these two database support different Sql statement.
What my question is how to get the database type from the connection.For a normal jdbc driver you can use
Connection.getMetaData()
To get the meta data, in particular the getDatabase...() methods.
That might or might not work.
However, at the very least in the server you have access to the weblogic properties so you can parse the pool property to figure it out. -
How to get RMAN catalog information from Target database?
Hi,
How to get RMAN catalog information from Target database because i don't know about catalog database? is it possible?
ThanksIf you run RMAN backups of a target database using a Catalog schema in another database, the target is not aware of the catalog.
The RMAN backup script would have the connection identifier for the Catalog.
Hemant K Chitale -
How to get the database owner name in T-SQL script
Hello, All!
I want to get the database ower name (in format DOMAIN\user) by through T-SQL script. But SELECT * FROM sys.databases returns only owner_sid.
Please show me a way - how to get the owner name, if you have only owner_sid. Or, may be, somebody know another way ?
Andy MishechkinSELECT suser_sname( owner_sid ), * FROM sys.databases
http://www.t-sql.ru -
How to get the database table field names from program
Hi,
Can any one tell me,whether any function module is there which can get the table field name and its details ,when we pass database table name to it.
Thanks in Advance
<REMOVED BY MODERATOR>
Regards
Shibin
Edited by: Alvaro Tejada Galindo on Feb 14, 2008 12:41 PMHi,
DD02L Table contains the SAP Tables.
DD02T Table contains the SAP Table Texts.
DD01L Table contains the Domains
DD01T Table contains the Domain Texts.
DD03L Table contains the Table Fields.
DD03T Table contains the Table Field Texts. (Language Dependent)
DD04L Table contains the Data Elements.
DD04T Table contains the Data Element Texts.
DD05s Table contains the Foreign Key Fields
last words with L and T only. L->Database Fetch T-> Text
For ur question use table DD03L or DD03T.
Regards,
Chandru -
How to get shared date value from subreport to main report
Hi,
I need your help in passing the value of a running total that is located in the subreport to the main report. The running total in the subreport is getting the maximum of the Effective Date (which it is type in the database is date) for each group and it is value will change on the change of the sequence no. group. I am printing the value at the group footer which displayed correctly. Now my issue is that how to pass the value from the subreport to the main report as a date. I have created a formula that it is having the code:
shared datevar ddd := date(0,0,0);
ddd:={RTotl0}
The above formula is not compiled and it is first giving me an error at line 1 that date(0,0,0) is not accepted. Then when I removed it, it gave me an error that ddd:= can't have a running total to a datevar.
So can you please help in getting the value from the subreport and then to pass it to the main report as a formula as I need to include it in other formulas which it compares the dates.
ThanksHi Mohammed,
Are you displaying the shared variable on the Main Report's group footer as well?
Try changing the code to:
shared datevar ddd := cdate(0,0,0);
ddd:= date({RTotl0});
-Abhilash -
How to get the database value without submitting the jsp page
Hi,
I have a form that has many fields (textbox/listbox). when user enter/change a value in the first textbox, I need to pass this value to the database to check whether it exist and get the other values to be displayed to other fields in that form (i cannot get the javascript value to be pass to jsp without reload/refresh/submit. But, I need to get the user entered value, so I thought of hidden popup, iframe, etc but not sure how I could apply and which best suit this case). If I submit the page then I can easily get the value thru 'request.getParameter("fieldname") but cannot use this because I cannot submit the page.
Pls help and possible provide me with the sample coding
ThanksThe best way for you is surely AJAX. But there is another way to stay compatible with older browsers:
Since the default method a browser supposed to get data is refresh, there is nothing unnatural in it. Browsers are optimized to refreshes, like cached images, etc..
So for these step-by-step things, you need to roll forward your data from page to page, and make the page to respond according the data it actually have. This can be easily achived with type="hidden" input fields in a form: the user will send you back all the data. Optionally you may show him the data you already have as visible text too.
A more generalised way to "pull" the data: you make a whole page you include every time you need an additional data. This page will receive 2 parameters from where you've included it. This 2 parameters are each indexed arrays with the datas you have to pull in (here the default value), and you need to push forward. Optionally there is a 3rd parameter, the url it have to return (as the form's action property).
And for them who now say that it would me more culture way to store this data in the session: Beware! Common mistake: Sessions are to store data about the user itself, not the datas for the next page! You never know what will be the next page! The user click some backward button and refresh button, and depending on your script, it may go stupid! Ok, not all the codes, but I've seen some. It's ok to store a sent file (fx. image) on the server, but always think the evil refresh and back buttons! -
How to get the Database Driver list
Hi... I want to know that particular database driver is registered or not in windows.. how can i get this info.
And I want to get the list of all the database drivers registered in windows..
Can anybody help me..dcminter wrote:
Well, seeing as how none of them are registered, until your program registers them, simply keep a list.That's not actually true. If the JAR is in the classpath then a JDBC4 driver will use the service provider hooks to register itself.
When first loaded. Which is unlikely to happen until you explicitly load it.
Being on the classpath doesn't mean the JVM will actually do anything with a class. Either an application will have to initiate some action or it will have to be initiated by the manifest of the jar (and I'm not sure that will actually do anything until a class from that jar is actually required to be loaded). -
How to get the Database table behind condition records
Hello All
In transaction VK13, after giving condition type, I can select sales document.
For a given Sales Document number, there are several conditions.
How can i extract all the conditions for a given sales document?
I am coding a report for this. In which database table can i get the condition between sales document number & different conditions attached to it?
On the screen, i can see that the fields are from the structure KOMG. What is the corresponding table?
Thanks
Chandra SekharHi,
corersponding tables will be konp , a771,a511,a564
here i am providing you sample query related to it
{ -Get the Territory list price YPR0
SELECT vkorgau
zzland1_ag
zzmatgrade
a511~kfrst
datbi
datab
kbetr
INTO TABLE it_list1
FROM a511
JOIN konp
ON a511knumh = konpknumh
WHERE a511~kappl = 'V'
AND a511~kschl = 'YPR0'
AND vkorgau = '5000'
AND zzland1_ag = v_land1
AND loevm_ko <> 'X'.}
Thanks & Regards,
Sateesh.
Edited by: sateesh kumar on Nov 12, 2009 12:59 PM -
URGENT: how to get the database error message into application?
Hi, pls give some idea:
For example, the database is MS Access. When insertion failed, the getMessage() method of SQLException will print "General error", while the log file created by ODBC will be "[MICROSOFT][ODBC DRIVER]column ID no found in student table"(...just a example).
So, how to get this message in our application?instead of using the getMessage method, have you tried something like this:
try {
} catch (Throwable t1) {
System.out.println(t1.toString());
}If that still doesn't work, you can always redirect the log entries into a textarea but then everything that appears in the log file will be redirected!
;o)
V.V. -
How to get the Database Type quan in my internal table?
Hi, I have the following problem, I have a Database Table with a column foo (QUAN with length 15 and 3 dec). Now I want to read this field into a Internal Table and the corrospoding field is:
foo(19) TYPE C,
But this is not working I'm getting the dump:
DBIF_RSQL_INVALID_RSQL
CX_SY_OPEN_SQL_DB
What is the correct abap type in my structure to put this QUAN in my internal table?Hi Michael,
when you know your data base field name then u can define your variable f00 of your db field type like
foo type <dbtabname>-<fieldname) -----ex -- j_1iexcdtl-menge
or define foo as packed no
data : foo(19) type p decimals 3.
Regards -
How to get the Database size?
Hai Friends,
I have created a Z Table with 100 fields. i want to check the database size after uploading the data. How can i do this?. That is, after uploading the first entry i want to know the size and again i want to upload 5 more entries and to check the growth.
Where can i see this?. i have checked in DB02 but even after data upload i didnt see the size. kindly explain me the process.
Thanks..................Hi,
In the Go to Menu then Check the Number of entries to track your current set of entries.
For DB Size check Technical Settings . Tab Logical Settings parameters the Data class and Size category can give you how much data the table can hold.
Thanks,
Anita -
How to get the database size of several system
Hi
We've got a lot of database system on our landscape. I want to make a simple report to get the size the all our database on a weekly base.
I try to get a RZ20 value on it without succes.
Do you know a sql request that i could launch on all my database to get this information ? i did'nt find any V$^view with this information.
thanks for your help
florent"The database size" can be
- the total size
- the filled size
- the filled size without undo/temp
You can use DBACOCKPIT to centrally manage multiple instance and check the sizes.
Markus -
How to get Deleted File details from Content DataBase?
Hi,
I have uploaded one pdf document in to SharePoint Document Library. After some days i have removed it.
File has removed from Site.
Does record available in Content Data Base for the deleted file? Which table should i refer?
Thanks & Regards
Poomani SankaranHi,
According to your description, my understanding is that you want to get the deleted file record in sql database table.
If you have backed up the Content Data Base, then you can find the deleted file information in AllDocs andAllDocStreams table. You need to use "inner join" to get the whole information.
More information:
How to recover SharePoint document once deleted from recycle bin
Thanks
Best Regards,
Jerry Guo
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to get Hierarchical XML File from a Database Join Query !
Hi,
How can i get a Hierarchical XML File from a Database Join Query ?
Any join query returns repeated values as below:
BD17:SQL>select d.dname, e.ename, e.sal
2 from dept d
3 natural join
4 emp e
5 /
DNAME ENAME SAL
ACCOUNTING CLARK 2450
ACCOUNTING KING 5000
ACCOUNTING MILLER 1300
RESEARCH SMITH 800
RESEARCH ADAMS 1100
RESEARCH FORD 3000
RESEARCH SCOTT 3000
RESEARCH JONES 2975
SALES ALLEN 1600
SALES BLAKE 2850
SALES MARTIN 1250
SALES JAMES 950
SALES TURNER 1500
SALES WARD 1250
14 rows selected.
We tried use DBMS_XMLQUERY to generate a xml file, but it was unable to get xml in Hierarchical format.
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <ROWSET>
- <ROW num="1">
<DNAME>ACCOUNTING</DNAME>
<ENAME>CLARK</ENAME>
<SAL>2450</SAL>
</ROW>
- <ROW num="2">
<DNAME>ACCOUNTING</DNAME>
<ENAME>KING</ENAME>
<SAL>5000</SAL>
</ROW>
- <ROW num="3">
<DNAME>ACCOUNTING</DNAME>
<ENAME>MILLER</ENAME>
<SAL>1300</SAL>
</ROW>
- <ROW num="4">
<DNAME>RESEARCH</DNAME>
<ENAME>SMITH</ENAME>
<SAL>800</SAL>
</ROW>
- <ROW num="5">
<DNAME>RESEARCH</DNAME>
<ENAME>ADAMS</ENAME>
<SAL>1100</SAL>
</ROW>
- <ROW num="6">
<DNAME>RESEARCH</DNAME>
<ENAME>FORD</ENAME>
<SAL>3000</SAL>
</ROW>
- <ROW num="7">
<DNAME>RESEARCH</DNAME>
<ENAME>SCOTT</ENAME>
<SAL>3000</SAL>
</ROW>
- <ROW num="8">
<DNAME>RESEARCH</DNAME>
<ENAME>JONES</ENAME>
<SAL>2975</SAL>
</ROW>
- <ROW num="9">
<DNAME>SALES</DNAME>
<ENAME>ALLEN</ENAME>
<SAL>1600</SAL>
</ROW>
- <ROW num="10">
<DNAME>SALES</DNAME>
<ENAME>BLAKE</ENAME>
<SAL>2850</SAL>
</ROW>
- <ROW num="11">
<DNAME>SALES</DNAME>
<ENAME>MARTIN</ENAME>
<SAL>1250</SAL>
</ROW>
- <ROW num="12">
<DNAME>SALES</DNAME>
<ENAME>JAMES</ENAME>
<SAL>950</SAL>
</ROW>
- <ROW num="13">
<DNAME>SALES</DNAME>
<ENAME>TURNER</ENAME>
<SAL>1500</SAL>
</ROW>
- <ROW num="14">
<DNAME>SALES</DNAME>
<ENAME>WARD</ENAME>
<SAL>1250</SAL>
</ROW>
</ROWSET>
Thank you for some help.
Nelson AlbertiHi,
I wrote a general ABAP program which can be configured to grab contrent from an URL and post that content as a new PI message into the integration adapter .... from that point on normal PI configuration can be used to route it to anywhere ...
It can be easily scheduled as a background job to grab content on a daily basis etc ...
Regards,
Steven -
How to get my data back from TM after new hdd/re install
my main drive broke, so I have replaced it and reinstalled 10.6. I was on 10.6.2 and let TM do its thing, so I do have all my documents/downloads/etc backed up in TM, but i am a relatively new user to OSX.
After the reinstall, when prompted, I set the original TM drive to be the new TM drive and then I shut down (had to come to work lol).
So, before I carry on and do something wrong, how do I get my documents, mail, downloads and applications back from the TM? Will I have to do the UID thing to match the TM drive/user as my OS drive is a new physical drive?
sorry for the noob question.
MichaelMichaelToye wrote:
my main drive broke, so I have replaced it and reinstalled 10.6. I was on 10.6.2 and let TM do its thing, so I do have all my documents/downloads/etc backed up in TM, but i am a relatively new user to OSX.
After the reinstall, when prompted, I set the original TM drive to be the new TM drive and then I shut down (had to come to work lol).
You did not have to reinstall OSX. The best, most reliable way to recover your entire system from backups is to use the procedure Apple provides for that, as detailed in #14 of the Frequently Asked Questions *User Tip* at the top of this forum.
Your best bet is to start over with that procedure.
Maybe you are looking for
-
Search Bar doesn't work in normal itunes but works in safe mode
I am not sure if anyone else is having this problem but with Itunes 11.0.4 The Search bar doesn't work no matter what you type any result you get you click on it nothing happens. I recently went into Itunes Safe mode and the Search bar works fine. I
-
Macbook Pro Late 2008 model - crashing constantly (video card related?)
So not even two months ago, I had a logic board issue with this computer. I took it to the apple store and got the $200 repair package. It's a late 2k8 model MBP, here are the specs: Processor 2.4 GHz Intel Core 2 Duo Memory 8 GB 1067 MHz DDR3 Grap
-
Emailing Photos not at Full and Original Size? Why...
Am trying to send photos to friends and family but the photo quality and size gets reduced by soooo much. An iphone gives an option if I want to send the photo at compressed size or original size. Why does the Windows 8 Nokia 920 compress photos and
-
How to automatically create a table on the next page?
I was working on my Resume using tables on Pages 13. When the first page is nearing to be filled in, I continue to put more details as I expected the table to be created automatically in the next page, like that of Microsoft Word but it did not happ
-
FM - Switch Status error....
In Cisco MDS FMS running on Windows 2003 Server, I see errors like "UknownUSer Name(Server), "Invalid Auth Password or Wrong Digest (Server)" under Status column against each switches and they are yellowed out and errors are occuring randomly. Switch