How to use default Date ?
Hello all,
can I use java.util.Date instead of oracle.jbo.domain.Date ? Where do I have to set, which class I want to use?
Same question for the Number class ...
Greez,
Axel
2. As far as I know java.lang.Date and
oracle.jbo.Date are not exchangeable, they do not
have a common base class (except Object of course)Uuh. Bad news. So how do I solve the problem, that the time in my Date object isn't displayed correctly? I get the right values from the DB, but my JClient Application just shows 00:00 or 12:00 for the time. My formatString should be ok I think. I set it to 'dd-MM-yyyy HH:mm'. Any ideas?
Similar Messages
-
How to use open data set in SAP
Hi SAP Gurus,
Could anyone help, how to use open data set in SAP.
I need to upload a file from Application server (ZSAPUSAGEDATA) to internal table (IT_FINAL).
Thanks & Regards,
Krishnau2026Hi Krishna.
These are the steps you need to follow.
tables: specify the table.
data: begin of fs_...
end of fs_ " Structure Field string.
data: t_table like
standard table
of fs_...
data:
w_file TYPE string.
data:
fname(10) VALUE '.\xyz.TXT'.
select-options: if any.
PARAMETERS:
p_file LIKE rlgrap-filename.
w_file = p_file.
select .... statement
OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
*OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
LOOP AT t_... INTO fs_....
write:/ .....
TRANSFER fs_... TO fname.
or
TRANSFER t_... TO fname
ENDLOOP.
CLOSE DATASET fname.
Reward points wisely and if you are benefitted or ask for more detailed explanation if problem not solved.
Regards Harsh. -
How to set default date value to a field on screen
How to set default date value to a field on screen and allow users to modify it ....
Hello,
In the PAI module, you need to save the changes to the database using the command MODIFY.
Follow an example:
Create or change a message in database table T100. If there is no message with the number 100 in the MYMSGCLASS message class in English, it will be created. Otherwise only the text is changed.
DATA message_wa TYPE t100.
message_wa-sprsl = 'EN'.
message_wa-arbgb = 'MYMSGCLASS'.
message_wa-msgnr = '100'.
message_wa-text = 'Some new message ...'.
MODIFY t100 FROM message_wa.
Regards. -
How to use Jquery Data Grid in HTML
can anyone please tell me how to use JQuery Data grid in my HTML page with example.
I have one HTML page i want the standard JQuery Data Grid with search and pagination functionality.Guys I have got the solution
thanks a lot
please refer this link for JQGrid
http://www.codeproject.com/Articles/609442/Using-JqGrid-in-ASP-NET -
How to use TRIM DATA in CFFORM?
How to use TRIM DATA in CFFORM? when data is retrieving from
DATABASE. Wanna rtrim and ltrim while spaces.Better to trim those values after the form submission.
Once you put them into form,
user may also makes mistake by hitting space, right?
Also, by trimming all form fields after submission, you will
be sure that your DB is clean... no whitespaces on it.
Well unless someone insert data directly onto it :) -
How to use same Data Type and Length for two fields
How to use same data type and length for two fields when using 'FOR ALL ENTRIES IN' in a select statement? For instance the select queries are :
SELECT bukrs gjahr belnr lifnr budat bldat zlspr dmbtr waers shkzg
FROM bsik
INTO TABLE it_bsik
WHERE bukrs = p_bukrs
AND lifnr IN s_lifnr.
IF it_bsik IS NOT INITIAL.
SELECT belnr gjahr awkey awtyp
FROM bkpf
INTO TABLE it_bkpf
FOR ALL ENTRIES IN it_bsik
WHERE belnr = it_bsik-belnr
AND gjahr = it_bsik-gjahr.
IF it_bkpf IS NOT INITIAL.
SELECT belnr gjahr lifnr xblnr
FROM rbkp
INTO TABLE it_rbkp
FOR ALL ENTRIES IN it_bkpf
WHERE belnr = it_bkpf-awkey+0(10)
AND gjahr = it_bkpf-awkey+10(4).
ENDIF.
ENDIF.
Here it gives an error in the 3rd select query that 'When you use the addition "FOR ALL ENTRIES IN itab", the fields "GJAHR" and "IT_BKPF2-AWKEY+10(4)" must have the same type and the same length.'
Kindly clarify.Hi Saurabh,
Please see the example code that I have developed for you. It will help you solve the problem.
REPORT ZTEST_3 .
tables : BKPF.
data : begin of it_bkpf occurs 1,
belnr type RE_BELNR,
awkey type awkey,
awtyp type awtyp,
gjahr type GJAHR,
end of it_bkpf.
data : begin of it_bkpf1 occurs 1,
belnr type RE_BELNR,
awkey type gjahr, " change the data type
awtyp type awtyp,
gjahr type GJAHR,
end of it_bkpf1.
data : begin of it_rbkp occurs 1,
belnr type BELNR_D,
gjahr type gjahr,
lifnr type LIFRE,
xblnr type XBLNR,
end of it_rbkp.
select belnr
awkey
awtyp
gjahr
from bkpf
into table it_bkpf
where BUKRS = 'TELH'.
loop at it_bkpf.
it_bkpf1-belnr = it_bkpf-belnr.
it_bkpf1-awkey = it_bkpf-awkey+10(4). "Here only append the required length.
it_bkpf1-awtyp = it_bkpf-awtyp.
it_bkpf1-gjahr = it_bkpf-gjahr.
append it_bkpf1.
clear it_bkpf1.
endloop.
select belnr
gjahr
lifnr
xblnr
from RBKP
into table it_rbkp
for all entries in it_bkpf1
where belnr = it_bkpf1-belnr
This is just an example. Change the fields according to your requirement.
Regards
Abhii
Edited by: Abhii on Mar 9, 2011 9:08 AM -
How to use Sql data source from Essbase 9.3.1
Hi All,
How to use Sql data source from Essbase 9.3.1 for ASO cube.Are there any rules and limitations for that.
Do we need to create any data source connection for this purpose. If there please let me know the dteps to create that connection.
RegardsYes you need to create one DSN connection and you have to use DSN name and login details at the time of building/loading of the outline.
Create DSN
Goto Administrative tools -> DataSources (ODBC) and add the DSN name and specify the Server name of SQL and login details and database.
goto data prep editor and click on File Menu and Click on Open SQL option Next window opens.
There you have to enter the details of the DSN connection and SQL query to build/load.
Thanks,
Prathap -
How to use default values of variables when data get varied
Hi Expert,
I want to use default value of variables var1.
for eg. if variable length is 20 char and value is abc , then i want to fill var1 by default 20 ( after printing abc value remaining length i.e.17 should be taken by var1 means total length 20 should be occupy by var1.)
plz reply
Regards,
JyotsnaHello Jyotsna,
I dont really understand the example you have quoted. Can you elaborate your example?
Vikranth -
How to use Default value in a column in Tabular form in insertion or upda
Hello,
I am trying to use Default values so that user need not have to enter data, but when I select default type and put a default value, I see an error message, if I try to add a new row.
How can I use a default value in a Column in a Tabular Form?
Gouri
Edited by: user1046395 on Apr 3, 2009 9:58 AMGouri,
You can just simply edit to each column's report attribute. For example,
To set default date,
Default Type: PL/SQL Expression of Function
Default: sysdate
To set default text,
Default Type: PL/SQL Expression of Function
Default: *'CLERK'*
If you still have an error, what is the error message?
Ittichai -
Hello,
How do I use default parameters from ODP.NET. I have a proc in Oracle that shows Default? = Y when I do Describe in PL/SQL Developer. Therefore, I don't want to pass this parameter at all via ODP.NET/C# call. If I omit this parameter, I get the dreaded "Invalid number or types of parameters" error.
Thanks for your help,
EvgueniHi,
You'll just want to set OracleCommand::BindByName=true. Here's an example, hope it helps.
Greg
create or replace function showparams(p1 varchar2, p2 varchar2 default 'foo',
p3 varchar2, p4 varchar2 default 'bar') return varchar2
is
retval varchar2(4000);
begin
retval := 'p1 = '|| p1;
retval := retval || ',p2 = ' || p2;
retval := retval || ',p3 = ' || p3;
retval := retval || ',p4 = ' || p4;
return retval;
end;
using System;
using System.Data;
using Oracle.DataAccess.Client;
class testdefault
static void Main(string[] args)
using (OracleConnection con = new OracleConnection("data source=orcl;user id=scott;password=tiger"))
con.Open();
using (OracleCommand cmd = new OracleCommand("showparams", con))
cmd.CommandType = CommandType.StoredProcedure;
cmd.BindByName = true;
cmd.Parameters.Add( new OracleParameter("retval", OracleDbType.Varchar2,4000));
cmd.Parameters["retval"].Direction = ParameterDirection.ReturnValue;
cmd.Parameters.Add("p1", "firstval");
cmd.Parameters.Add("p3", "secondval");
cmd.ExecuteNonQuery();
Console.WriteLine(cmd.Parameters["retval"].Value.ToString());
}OUTPUT
=========
p1 = firstval,p2 = foo,p3 = secondval,p4 = bar
Press any key to continue . . . -
How to change default Date format in BO 6.5 SP4
A problem with date display has been reported to me by one of our users - in BO 6.5 - since installing SP4.
The default date format is now MM/DD/YYYY
I have tried to recreate this on my PC and have been able to confirm that this is the case.
Most of our PC's will have two versions of Business Objects on them - for 5.1.6 and for 6.5 - that is the case for my PC.
If I create a new BO document based on a spreadsheet with three entries in the spreadsheet as follows:-
20/01/2009 20-Jan-2009 20th January 2009
This displays in BO 6.5 as
1/20/2009 1/20/2009 20th January 2009
My PC regional setting is UK and the time displays DD/MM/YYYY
Can you advise how to correct this problem please.Hi Sebastien
Thank you for your response.
I haven't checked Dimension in universe because this is happening even when datasource is an Excel spreadheet - as per details in previous post.
I have looked for *.sbo files and found one for ODBC.sbo in the Version 5 folders on PC - with date format details in it which I've changed - that doesn't make any difference.
Any other ideas?
Regards
Linda -
How to use cursor data in more than one location in form?
hi all.
is it possible to make cursor as global or public in the form so i can use its data in more than location for testing like in buttons triggers.
for example:
if i declare the following cursor in "WHEN-NEW-FORM-INSTANCE" trigger
CURSOR cur
IS
SELECT ID, NAME
FROM PERSON;how can i use this cursor in other triggers in other buttons in the form?
thankskareem wrote:
now i have the old data- from cursor and the new- from tableNo, you have not. When you open the cursor you get the state of the database at the current SCN.
If you
- open your cursor, fetch the data and close the cursor
- update some data
- open your cursor, fetch the data and close the cursor
you will get the updated data from your cursor the second time (unless your update isn't a uncommited autonomous transaction but I wouldn't go down that route).
You will have to save your data somewhere or you might take a look at flashback: http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/consist.htm#i20759
cheers -
How to use cursor data in more than one location in the form?
hi all.
is it possible to make cursor as global or public in the form so i can use its data in more than location for testing like in buttons triggers.
for example:
if i declare the following cursor in "WHEN-NEW-FORM-INSTANCE" trigger
CURSOR cur
IS
SELECT ID, NAME
FROM PERSON;how can i use this cursor in other triggers in other buttons in the form?
thankskareem wrote:
now i have the old data- from cursor and the new- from tableNo, you have not. When you open the cursor you get the state of the database at the current SCN.
If you
- open your cursor, fetch the data and close the cursor
- update some data
- open your cursor, fetch the data and close the cursor
you will get the updated data from your cursor the second time (unless your update isn't a uncommited autonomous transaction but I wouldn't go down that route).
You will have to save your data somewhere or you might take a look at flashback: http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/consist.htm#i20759
cheers -
How to use due date in credit management
hi,
i want to calculate my credits according to net due date
how can i use due date in credit management?
thank youNot sure what do you mean by "use due date in credit management".
If you want to calculate due date per billing document, for example, for such as customer statement, you may use "BSID-ZFBDT + BSID-ZBD1T" (Baseline date + Cash disc day 1). -
Imagine an invoice was created for a customer on the 1st of January 2008 for £1000
On the 1st of Feb, he paid $300, owing $700
On the 1st of Mar, he paid $450, owing $250
On the 1st of Apr, he paid $250.
If I run an AR report today the 10th of Aug, I would see he owes nothing. What I want to do is to run the report today based on the 2nd of March and see a debt of £250. I dont want to use the posting date in the selection criteria henceI think this is the case when you use a key date but Im not sure how to use this in the query properties of BI7. What Characteristic do I need to specify as time dependant? Is there anything else I should consider?hi,
Key Date setting is for the 'time dependent' master data.
Lets say u have a Characteristic MATERIAL with a time dependent attribute MATERIAL GROUP as follows.
MATERIAL FROM TO MATERIAL GROUP
ABD 01/01/1995 12/31/2003 X
ABD 01/01/2004 12/31/9999 Y
Depending on what you have for the Keydate, the Material group is selected.
If your key date is, ex, 06/12/2001 there material group is X. Or if key date is 02/15/2005, material group is Y.
If you do not enter any value for keydate, system automatically assumes today' date.
hope it helps..
Maybe you are looking for
-
I have an iPad Air given to me by my high school. I just created an AppleID account for school usage, but every time I try to install apps a little pop-up comes up. The pop-up tells me to log into my AppleID account and then takes me to iTunes. Since
-
I was wondering if it is possible to sort albums on the iPod by year of release. I know how to make iTunes do this but when I transfer my library over to the iPod it is sorted by Artist in alphabetical order (which is perfect), then under each artist
-
Mini/BMW iPod Interface doesn't show all playlists
The iPod interface that BMW created for the Mini Cooper is pretty dandy. It does have a few limitations, one of which is that it will not show more than 255 items in a list. Meaning, If I have 500 artists on my 160GB Classic, only the first 255 will
-
I don't see the Airplay button
I just update to 4.2 and I don't see the Airplay button, is it only visible when you have a airplay device compatible visible from the Ipad? Thanks Message was edited by: Bidulle Message was edited by: Bidulle
-
T- code for viewing cost of raw material
Hi Experts, There are so many elements in arriving at cost of raw material such as moisture loss, transit loss, handling loss etc. Is there any report in SAP which shows all these elements, if yes, what is the T- code? Please advise.