LISTCUBE is giving different values
Hi ,
I am having an 'X' and 'Y' cubes which carries the same data both cube structure and restrictions are same.
When i look into list cube one cube is giving is giving correct result and one is not giving correct.
I found in LISTCUBE few kay figures are giving wrong result.
Thanks,
Guna
hello,
please check the definitions of the Keyfigures.check the aggreation option defined in them.they may vary.
Also, when u r running listcube for both ICs,see if the check boxes ticked in both the screens are the same.
Also see if you are displaying the same set of chs and KFs in both the screens.
Reagrds,
Dhanya
Similar Messages
-
String value is giving different values
Hi,
When I run the string equals it just works fine but if I give date by converting it to a char and give it in < or < it gives random answers.Hi,
When I run the string equals it just works fine but if I give date by converting it to a char and give it in < or < it gives random answers.
Are you storing date as string (char field)? If yes, SQL would do string comparison rather than your expectation of date-based comparison when you use > or <
Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
This posting is provided "AS IS" with no warranties, and confers no rights.
My Blog |
Team Blog | @Twitter
Author: SQL Server 2012 AlwaysOn -
Paperback, Kindle -
Dbms_lob.getlength() returns different values
Hi !
I am not a developer.. So, possibly cannot answer developer specific question.
We have two instances running on 10.2.0.4 but both giving different value for
declare
xml varchar2(32676) :=
'SELECT XT_STRATEGY, ACCT_DESCRIPTION,sum(MON_PL) PL_MON ,sum(TUE_PL) PL_TUE,sum(WED_PL) PL_WED ,sum(THU_PL) PL_THU, sum(FRI_PL) PL_FRI, sum(WTD_PL) PL_WTDPL,sum(WTD_PREMIUM_PL) PL_WTDPRMPL, sum(MTD_PL) PL_MARKPL,sum(MTD_PREMIUM_PL) PL_MTDPRMPL,sum(YTD_PL) PL_YTDPL,sum(YTD_PREMIUM_PL) PL_YTDPRMPL,
DLC_REGION,DLC_ENTITY FROM (SELECT xt_strategy, acct_description ,case when blankout_date < to_char( to_date( fv[EOD] )+ (1 -to_char(to_date(to_date( fv[EOD] )),''D''))) then 0 else MON_PL end as MON_PL, case when blankout_date < to_char( to_date( fv[EOD] )+ (1 -to_char(to_date(to_date( fv[EOD] )),''D''))) then 0 else tue_pl end as tue_pl,
case when blankout_date < to_char( to_date( fv[EOD] )+ (1 -to_char(to_date(to_date( fv[EOD] )),''D''))) then 0 else WED_PL end as WED_PL, case when blankout_date < to_char( to_date( fv[EOD] )+ (1 -to_char(to_date(to_date( fv[EOD] )),''D''))) then 0 else THU_PL end as THU_PL,
case when blankout_date < to_char( to_date( fv[EOD] )+ (1 -to_char(to_date(to_date( fv[EOD] )),''D''))) then 0 else FRI_PL end as FRI_PL, case when blankout_date < to_char( to_date( fv[EOD] )+ (1 -to_char(to_date(to_date( fv[EOD] )),''D''))) then 0 else WTD_PL end as WTD_PL,
case when blankout_date < to_char( to_date( fv[EOD] )+ (1 -to_char(to_date(to_date( fv[EOD] )),''D''))) then 0 else WTD_PREMIUM_PL end as WTD_PREMIUM_PL,
case when blankout_date < (select actual_date from tbl_date where date_type = ''PLMonthStart'' and to_char(actual_date, ''MMYYYY'') = to_char(to_date( fv[EOD] ),''MMYYYY'')) then 0 else mtd_pl end as mtd_pl,
case when blankout_date < (select actual_date from tbl_date where date_type = ''PLMonthStart'' and to_char(actual_date, ''MMYYYY'') = to_char(to_date( fv[EOD] ),''MMYYYY'')) then 0 else MTD_PREMIUM_PL end as MTD_PREMIUM_PL,
case when blankout_date < (select to_date(''01-JAN-''|| to_char(to_date((fv[EOD]),''DD-MON-YYYY''),''YYYY''),''DD-MON-YYYY'') from tbl_business_date) then 0 else ytd_PL end as ytd_PL,
case when blankout_date < (select to_date(''01-JAN-''|| to_char(to_date((fv[EOD]),''DD-MON-YYYY''),''YYYY''),''DD-MON-YYYY'') from tbl_business_date) then 0 else ytd_premium_PL end as ytd_premium_PL,
IN_STRIKECURR, IN_QUOTEDCUR, case dlc_region when ''LON'' then ''LN'' when ''NYC'' then ''NY'' when ''TOK'' then ''TK'' else dlc_region
end as DLC_REGION, DLC_ENTITY,DTL_REFERENCE,TRADE_STATE,blankout_date
FROM (select a.bo_book_id as xt_strategy, a.bo_book_id as acct_description , b.mon_pl, b.tue_pl, b.wed_pl,b.thu_pl,b.fri_pl,b.wtd_pl, b.wtd_premium_pl , b.mtd_pl , b.mtd_premium_pl, b.ytd_pl, b.ytd_premium_pl,
a.BASE_CCY as IN_STRIKECURR, A.QUOTED_CCY AS IN_QUOTEDCUR, a.region_code as dlc_region, a.entity_acronym as dlc_entity, TP.EBI_TRADE_ID AS DTL_REFERENCE, a.trade_state,
case when a.trade_state in (7,8,13) then a.amendment_date when a.maturity_date > nvl(a.premium_settlement_date, to_date(''01-JAN-1900'')) then
Case when a.trade_state in (4,5 ) then trunc(a.updated_date) else a.maturity_date end else a.premium_settlement_date end as blankout_date FROM TBL_TRADE_HIST A
join vw_feed_downstream_trade_id tp on a.trade_id = tp.trade_id and tp.mapping_source_name = ''ramfx''
join tbl_pl b on a.trade_id = b.trade_id and a.version = b.trade_version and b.pl_date = (select max(pl_date) from tbl_pl d where a.trade_id = d.trade_id and pl_date <= fv[EOD] )
join tbl_bo_book bk on a.bo_book_id = bk.bo_book_id and bk.business_Area = ''OPTIONS''
where b.pl_date < fv[EOD]
AND NOT EXISTS (SELECT 1 FROM TBL_EOD_TRADES D WHERE A.TRADE_ID = D.TRADE_ID AND D.BUSINESS_DATE = fv[EOD] )
UNION
SELECT A.XT_STRATEGY, A.ACCT_DESCRIPTION, C.MON_PL,C.TUE_PL, C.WED_PL,C.THU_PL, C.FRI_PL,C.WTD_PL,C.WTD_PREMIUM_PL,C.MTD_PL,C.MTD_PREMIUM_PL,C.YTD_PL,C.YTD_PREMIUM_PL,
A.IN_STRIKECURR, A.IN_QUOTEDCUR, A.DLC_REGION,A.DLC_ENTITY, A.DTL_REFERENCE , a.trade_state , case when a.trade_state in (7,8,13) then a.DLC_BUSDATEUPD when a.IN_EXPIRATION > nvl(a.XT_SETTLEDATE, to_date(''01-JAN-1900'')) then a.IN_EXPIRATION else a.XT_SETTLEDATE end as blankout_date
FROM VW_EBI_FEED A , TBL_EOD_TRADES B , TBL_PL C
WHERE A.TRADE_ID = B.TRADE_ID AND A.VERSION = B.TRADE_VERSION AND A.TRADE_ID = C.TRADE_ID
AND A.ACCT_RISKFEED = ''D'' AND A.DLC_DEALSTATE in (''LIVE'',''PENDING'',''CANCELLED'',''REVERSED'') AND A.VERSION = C.TRADE_VERSION
AND B.BUSINESS_DATE = to_date( fv[EOD] ,''DD-MON-YYYY'') AND C.PL_DATE = to_date( fv[EOD] ,''DD-MON-YYYY'')
UNION
SELECT A.BO_BOOK_ID AS XT_STRATEGY , A.BO_BOOK_ID AS ACCT_DESCRIPTION, a.MON_PL , a.TUE_PL , a.WED_PL, a.THU_PL , a.FRI_PL, a.WTD_PL ,a.WTD_PREMIUM_PL , a.mtd_pl, a.MTD_PREMIUM_PL,a.ytd_PL , a.ytd_premium_PL,A.BASE_CCY AS IN_STRIKECURR,A.QUOTED_CCY AS IN_QUOTEDCUR,
A.REGION_CODE as dlc_region ,A.ENTITY_ACRONYM AS DLC_ENTITY, A.MAPPING_SOURCE_ID AS DTL_REFERENCE, 12 as trade_state , a.PL_DATE as blankout_date
FROM TBL_PL_ARCH A , tbl_bo_book b where a.bo_book_id = b.bo_book_id and b.business_area = ''OPTIONS''
union
select d.bo_book_id as xt_strategy, d.bo_book_id as acct_description, case when to_char(b.pl_date,''D'') = 6 then (b.inception_pl + b.inception_premium_pl ) else (b.mon_pl * -1) end as mon_pl ,
case when to_char(b.pl_date,''D'') = 2 then (b.inception_pl + b.inception_premium_pl ) when to_char(b.pl_date,''D'') > 2 then (b.tue_PL * -1) else 0 end as tue_pl, case when to_char(b.pl_date,''D'') = 3 then (b.inception_pl + b.inception_premium_pl ) when to_char(b.pl_date,''D'') > 3 then (b.wed_pl * -1) else 0 end as wed_pl ,
case when to_char(b.pl_date,''D'') = 4 then (b.inception_pl + b.inception_premium_pl) when to_char(b.pl_date,''D'') > 4 then (b.thu_pl * -1) else 0 end as thu_pl ,case when to_char(b.pl_date,''D'') = 5 then (b.inception_pl + b.inception_premium_pl) when to_char(b.pl_date,''D'') > 5 then (b.fri_pl * -1) else 0 end as fri_pl ,
(b.mon_pl + b.tue_pl + b.wed_pl + b.thu_pl + b.fri_pl) * -1 + (b.inception_pl + b.inception_premium_pl) as wtd_pl, case when b.wtd_premium_pl <> 0 then b.wtd_premium_pl *-1 + (b.inception_premium_pl) else b.wtd_premium_pl end as wtd_premium_pl , case when b.mtd_pl <> 0 then b.mtd_pl * -1 + (b.inception_pl) else b.mtd_pl end as mtd_pl ,
case when b.mtd_premium_pl <> 0 then b.mtd_premium_pl * -1 + (b.inception_premium_pl ) else b.mtd_premium_pl end as mtd_premium_pl, case when b.ytd_pl <> 0 then b.ytd_pl * -1 + (b.inception_pl) else b.ytd_pl end as ytd_pl,
case when b.ytd_premium_pl <> 0 then b.ytd_premium_pl * -1 + (b.inception_premium_pl) else b.ytd_premium_pl end as ytd_premium_pl ,
c.base_ccy as IN_STRIKECURR,c.quoted_ccy as IN_QUOTEDCUR,c.region_code as dlc_region,c.entity_acronym as dlc_entity, to_char(c.trade_id) as dtl_reference,
8 as trade_state, case when to_char(b.pl_date,''D'') = 6 then b.pl_date + 2 else b.pl_date end as blankout_date
from tbl_trade_hist a
join tbl_pl b on a.trade_id = b.trade_id and a.version = b.trade_version
join tbl_trade_hist c on a.tradE_id = c.trade_id
join tbl_pl d on c.trade_id = d.trade_id and c.version = d.trade_version and d.pl_date = (select max(e.pl_date) from tbl_pl e where c.trade_id = e.trade_id and e.pl_date <= c.amendment_date)
join tbl_bo_book f on a.bo_book_id = f.bo_book_id and f.business_area = ''OPTIONS''
where (b.bo_book_id <> d.bo_book_id or a.region_code <> c.region_code or a.entity_acronym <> c.entity_acronym or a.base_ccy <> c.base_ccy or a.quoted_ccy <> c.quoted_ccy)
and d.pl_date - b.pl_date = case when to_char(d.pl_date,''DAY'') = ''MON'' then 3 else 1 end
and d.pl_date <= to_date( fv[EOD] ,''DD-MON-YYYY'')
union all
select b.bo_book_id as xt_strategy, b.bo_book_id as acct_description,case when to_char(b.pl_date,''D'') = 6 then (b.inception_pl * -1 + b.inception_premium_pl * -1) else (b.mon_pl ) end as mon_pl ,
case when to_char(b.pl_date,''D'') = 2 then (b.inception_pl * -1 + b.inception_premium_pl * -1) when to_char(b.pl_date,''D'') > 2 then (b.tue_PL) else 0 end as tue_pl, case when to_char(b.pl_date,''D'') = 3 then (b.inception_pl * -1 + b.inception_premium_pl * -1 ) when to_char(b.pl_date,''D'') > 3 then (b.wed_pl) else 0 end as wed_pl ,
case when to_char(b.pl_date,''D'') = 4 then (b.inception_pl * -1 + b.inception_premium_pl * -1 ) when to_char(b.pl_date,''D'') > 4 then (b.thu_pl ) else 0 end as thu_pl , case when to_char(b.pl_date,''D'') = 5 then (b.inception_pl *-1 + b.inception_premium_pl * -1) when to_char(b.pl_date,''D'') > 5 then (b.fri_pl) else 0 end as fri_pl ,
(b.mon_pl + b.tue_pl + b.wed_pl + b.thu_pl + b.fri_pl) + (b.inception_pl* -1 + b.inception_premium_pl * -1) as wtd_pl, case when b.wtd_premium_pl <> 0 then b.wtd_premium_pl + (b.inception_premium_pl * -1) else b.wtd_premium_pl end as wtd_premium_pl , case when b.mtd_pl <> 0 then b.mtd_pl + (b.inception_pl * -1) else b.mtd_pl end as mtd_pl ,
case when b.mtd_premium_pl <> 0 then b.mtd_premium_pl + (b.inception_premium_pl * -1) else b.mtd_premium_pl end as mtd_premium_pl, case when b.ytd_pl <> 0 then b.ytd_pl + (b.inception_pl * -1) else b.ytd_pl end as ytd_pl,
case when b.ytd_premium_pl <> 0 then b.ytd_premium_pl + (b.inception_premium_pl * -1) else b.ytd_premium_pl end as ytd_premium_pl ,
a.base_ccy as IN_STRIKECURR, a.quoted_ccy as IN_QUOTEDCUR, a.region_code as dlc_region,a.entity_acronym as dlc_entity, to_char(a.trade_id) as dtl_reference, 8 as trade_state,
case when to_char(b.pl_date,''D'') = 6 then b.pl_date + 2 else b.pl_date end as blankout_date
from tbl_trade_hist a
join tbl_pl b on a.trade_id = b.trade_id and a.version = b.trade_version
join tbl_trade_hist c on a.tradE_id = c.trade_id join tbl_pl d on c.trade_id = d.trade_id and c.version = d.trade_version and d.pl_date = (select max(e.pl_date) from tbl_pl e where c.trade_id = e.trade_id and e.pl_date <= c.amendment_date)
join tbl_bo_book f on a.bo_book_id = f.bo_book_id and f.business_area = ''OPTIONS''
where (b.bo_book_id <> d.bo_book_id or a.region_code <> c.region_code or a.entity_acronym <> c.entity_acronym or a.base_ccy <> c.base_ccy or a.quoted_ccy <> c.quoted_ccy)
and d.pl_date - b.pl_date = case when to_char(d.pl_date,''DAY'') = ''MON'' then 3 else 1 end and d.pl_date <= to_date( fv[EOD] ,''DD-MON-YYYY'') ))
group by xt_strategy,ACCT_DESCRIPTION,DLC_REGION,DLC_ENTITY';
c clob;
s varchar2(25000);
i numeric := 424;
begin
c := xml;
dbms_output.put_line('length of clob: ' || dbms_lob.getlength(c));
dbms_output.put_line('split clob at: ' || i);
dbms_output.put_line('desired substring length: ' || to_char(dbms_lob.getlength(c) - i));
s := dbms_lob.substr(c, dbms_lob.getlength(c) - i, i + 1);
dbms_output.put_line('length of substring: ' || length(s));
end;I checked for the database characterset and they are same - AL32UTF8
The result we get is
Output from MD1 database
length of clob: 10616
split clob at: 424
desired substring length: 10192
length of substring: 10192
Output from MD2 database
length of clob: 10616
split clob at: 424
desired substring length: 10192
length of substring: 8191Any idea why there is this discrepancy ?
Edited by: USER101 on Feb 19, 2010 4:24 PMThe EOF and the LF versus CR/LF could influence the count difference, yes.
Another explain could possibly be character set conversions. The BFILE I believe counts bytes, a CLOB would count "characters" - so if the source happens to contain a few multibyte characters (UTF), then the byte count would be larger than the character count.
To help you find the cause for your exact file, then I can suggest a couple of things you might do to explore the issue:
<li>Load the file into a BLOB instead of a CLOB and see what getlength() returns for the BLOB. BLOBs would also do byte counts and not try to treat the source as text.
<li>Save the CLOB back into the filesystem and compare the original file with the exported CLOB and check the differences with some filecompare tool. -
Creating a Material with different values for fields in Transaction MM01
Hello All,
While creating a material i will be giving a Profit Center in Sales:general/plant view, which i can see in Costing1 View. If i change this in this View it automatically changes in the other View. Is there any way to give different values in the two views or then what is the significance in showing the same field again in two different views.
Thanks,
Shashidhar.Hi,
Its just a way of showing the data in different views for user. It doesn't have any significance.
Regards,
Sudheer. -
[ora_hash] different value for the same input
hi all,
i'm using 2 different machine running the same version of oracle (11g).
on those 2 db i have the same tables with the same datas.
for the comparisson of the data i'm using the ora_hash function (both on numeric and string fields) and for some records i get different results.
how is that possible?
(by the way looking at the records that has different hashes the values calculated by the hash function are the same)
thxYou have posted in the wrong forum. As the forum title says this forum is for SQL Developer and not for SQL or PL/SQL questions.
After reading the information provided at the end of this reply you should
1. create a new thread in the SQL and PL/SQL forum
PL/SQL
2. Edit this current question to add a link to the new question and tell people to follow up in the other forum.
3. Mark this current question ANSWERED so followup will be in the other forum.
Thanks.
When you post in the other forum provide information related to the following
>
for the comparisson of the data i'm using the ora_hash function (both on numeric and string fields) and for some records i get different results.
>
Please post your 4 digit Oracle versions - both versions (result of SELECT * FROM V$VERSION) and examples (i.e. actual code) of values that are giving different results.
>
(by the way looking at the records that has different hashes the values calculated by the hash function are the same)
>
What? there can't be 'different hashes' if the 'values calculated by the hash function' are the same. What are you saying here?
Again - provide examples that show the differences. Should be something like
SELECT ORA_HASH(12345) FROM DUAL;Since you say there are differences on the two machines provide the execution plan from each machine that shows what Oracle is actually doing. One machine may be applying a function to the data. -
Different values for key figure in fm.
Hi All,
The following function modules giving different results in q and production.
Pls tell me why different values?
FOLLOWING ARE THE INPUTS I GAVE,
I_DATE_FROM = 31.01.2011
I_TIME_FROM = 08:32:00
I_DATE_TO = 31.01.2011
I_TIME_TO = 12:24:13
In Production iam getting 0
But in Q iam getting A VALUE.
PLS HELP ME HERE..
*" IMPORTING
*" VALUE(I_DATE_FROM) TYPE D
*" VALUE(I_TIME_FROM) TYPE T DEFAULT 0
*" VALUE(I_DATE_TO) TYPE D
*" VALUE(I_TIME_TO) TYPE T DEFAULT 0
*" VALUE(I_WERK) LIKE /BI0/SPLANT-PLANT OPTIONAL
*" VALUE(I_FABKL) LIKE /BI0/SFACTCAL_ID-FACTCAL_ID OPTIONAL
*" EXPORTING
*" REFERENCE(E_DURATION_INT) TYPE F
*" REFERENCE(E_DURATION_EXT) TYPE F
*" REFERENCE(E_UNIT_DAY) LIKE /BI0/SUNIT-UNIT
DATA:
l_start LIKE scal-facdate,
l_end LIKE scal-facdate,
L_DURATION_S LIKE MCQAVE-DLZEIT,
l_duration_s TYPE f,
l_flg_error(000001) TYPE c,
l_delta_s TYPE i,
l_t001w LIKE /bi0/pplant,
l_dimension LIKE t006-dimid,
l_factcal_id LIKE /bi0/pplant-factcal_id,
l_delta_d TYPE f,
l_wd_end TYPE scal-indicator,
l_wd_from TYPE scal-indicator.
STATICS
s_unit_day LIKE /bi0/sunit-unit.
*== Compute duration
e_duration_ext
= i_date_to - i_date_from + ( i_time_to - i_time_from ) / 86400.
IF NOT ( i_werk IS INITIAL ) OR
NOT ( i_fabkl IS INITIAL ).
*== Compute duration according to fabrics calender
Read Calender ID
CALL FUNCTION 'ZEW05_PLANT_READ'
EXPORTING
WERKS = I_WERK
IMPORTING
STRUCT = L_T001W
EXCEPTIONS
OTHERS = 01.
IF i_fabkl IS INITIAL.
*== Selektion der Fabrikkalender-ID abhängig vom Werk.
SELECT factcal_id FROM /bi0/pplant INTO l_factcal_id WHERE
plant = i_werk AND
objvers = 'A'.
ENDSELECT.
ELSE.
l_factcal_id = i_fabkl.
ENDIF.
IF NOT ( l_factcal_id IS INITIAL ).
CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
EXPORTING
date = i_date_from
factory_calendar_id = l_factcal_id
IMPORTING
factorydate = l_start
workingday_indicator = l_wd_from
EXCEPTIONS
OTHERS = 01.
ENDIF.
IF sy-subrc = 0.
CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
EXPORTING
date = i_date_to
factory_calendar_id = l_factcal_id
IMPORTING
factorydate = l_end
workingday_indicator = l_wd_end
EXCEPTIONS
OTHERS = 01.
ENDIF.
IF sy-subrc = 0.
*-- Compute duration
IF NOT l_wd_end IS INITIAL.
i_time_to = '000000'.
ENDIF.
IF NOT l_wd_from IS INITIAL.
i_time_from = '000000'.
ENDIF.
e_duration_int
= l_end - l_start + ( i_time_to - i_time_from ) / 86400.
ELSE.
e_duration_int = '0.0'.
ENDIF.
IF e_duration_int < '0.0'. "#EC PORTABLE
e_duration_int = '0.0'.
ENDIF.
ENDIF.
IF s_unit_day IS INITIAL.
CALL FUNCTION 'DIMENSION_GET'
EXPORTING
time = 1
IMPORTING
dimid = l_dimension
EXCEPTIONS
dimension_not_found = 01.
IF sy-subrc = 0.
CALL FUNCTION 'UNIT_GET'
EXPORTING
denominator = 1
dimension = l_dimension
numerator = 86400
IMPORTING
unit = s_unit_day
EXCEPTIONS
unit_not_found = 01.
ENDIF.
ENDIF.
e_unit_day = s_unit_day.
ENDFUNCTION.check the table /bi0/pplant in your production system. and see if the attribute factcal_id contains value.
Make sure that you have Plant master data loaded in your production system.
--- Thanks... -
What are the different values available for type attribute
Hi,
I am working with IDOC to Stored Procedure. For each field we need to give the values for 'isInput' and 'type' attributes. I need to pass values for 'datetime' and 'numeric' fields. What are the list of values availabIe for 'type' attribute. I know only about 'CHAR' attribute.
Can anybody please tell me what all the values availabe for attribute 'type'. I am facing this problem while giving the value for type attribute.
Thanks in Advance,
Murthy.Does this help
tring
Data that contains a combination of letters, numbers, and special characters. String data types are listed below:
CHARACTER: Fixed-length character strings. The common short name for this data type is CHAR.
VARCHAR: Varying-length character strings.
CLOB: Varying-length character large object strings, typically used when a character string might exceed the limits of the VARCHAR data type.
GRAPHIC: Fixed-length graphic strings that contain double-byte characters.
VARGRAPHIC: Varying-length graphic strings that contain double-byte characters.
DBCLOB: Varying-length strings of double-byte characters in a large object.
|BINARY: A sequence of bytes that is not associated with a |code page.
|VARBINARY: Varying-length binary strings.
BLOB: Varying-length binary strings in a large object.
|XML: Varying-length string that is an internal representation |of XML.
Numeric
Data that contains digits. Numeric data types are listed below:
SMALLINT: for small integers.
|INTEGER: for large integers.
|BIGINT: for bigger values.
DECIMAL(p,s) or NUMERIC(p,s), where p is precision and s is scale: for packed decimal numbers with precision p and scale s. Precision is the total number of digits, and scale is the number of digits to the right of the decimal point.
|DECFLOAT: for decimal floating-point numbers.
REAL: for single-precision floating-point numbers.
DOUBLE: for double-precision floating-point numbers.
Datetime
Data values that represent dates, times, or timestamps. Datetime data types are listed below:
DATE: Dates with a three-part value that represents a year, month, and day.
TIME: Times with a three-part value that represents a time of day in hours, minutes, and seconds.
TIMESTAMP: Timestamps with a seven-part value that represents a date and time by year, month, day, hour, minute, second, and microsecond.
Regards
Ravi -
How to get different values in drop down in table rows
Hi
I have an application, which has a drop down in the table. Each row is to have different values in its drop down based on the "characteristic" parameter. For eg. first row has characteristic as color, and the corresponding drop down will contain the color names. Second row has charateristic as weight, and the drop down will carry corresponding weight values.
I am getting the data from the backend as a flat table i.e. charaterisitc - value pair.
I think i will have to use the Drop Down by Index control, but i dont know how exactly to go about it.
Can any one please help in this regard.
Thanks & regards,
AnupreetHi Maksim
I am sorry, but i am not able to get you.
This is the piece of code that i wrote for populating the drop down:
IPrivateMaintainDocAttribView.IDropElement dropEle = null;
for(int i = 0;i<size;i++)
dropEle = wdContext.nodeDrop().createDropElement();
dropEle.setDropval(wdContext.nodeCtxNode_DocAttribs().getCtxNode_DocAttribsElementAt(i).getCmpCtx_Value());
wdContext.nodeDrop().addElement(dropEle);
Here, Dropis the sub node to which i am putting the data and thisis linked to the table.
CtxNode_DocAttribs is the model node from where i am picking the data and setting in the subnode.
Thanks & regards,
Anupreet -
Passing different values to the same servlet
Hi,
Is there a way to pass different values to the same servlet?
Background:
I have a database that I query to acquire a list of customers, then I show each customer as a link, that when clicked will show details of that customer. (The customer table is dynamic so I can't create a new page for each customer)
When using JSP what I do is
//Do query database
while (rst.next())
String cust = rst.getString ("cust");
out.write("<a href = \"cust2.jsp?cust=" + cust + " \" >" + cust + "</a> ");
}Then on the cust2.jsp. I will use
String str = request.getParameter ("cust");to acquire the customer to get details of.
Is there a way to do the same using servlets?
I could swap to JSP when creating this particular part of the project but it won't look good and it would help me learn a few things when there is another way.I want to know if there is a way to pass a variable from a webpage link like in my JSP example using servlets.
Here is what I wanted to do:
I have a webpage that contains customer names and each name has a link to the same servlet (let's say the link is famia/servb). I want servb to show detailed information about the customer my visitor clicked in the webpage.
The logic I was thinking is to pass a variable to this servlet, then I can use that variable to know which customer should I query in my database. So that I can show the details to my users.
Here lies my problem, I don't know how I can pass this variable, or even know which customer my visitor clicked. I can't use a new servlet for each client since the customer is in a database and if my customer base grows then I would need to create a lot more web page that does the same thing.
The JSP example I gave is how I will be coding it if I am using JSP, but now I am using servlets. So I was wodnering if there is a way to do this using servlet. Or should I stay with using JSP for this particular logic and just call servb after the JSP page acquired the variable.
I'm trying not to use "<original URL> + ? + <variable> = <value>" (eg: http://www.famia.net/customer?cust=famia) as the means for passing the variable. (or in the example as a means of passing variable cust with value famia) -
PDF for multiple users with different values
Is there a way to create a PDF to be sent to multiple users but have different values in the PDF? For expample employee A's offer letter is for $50/hour while employee B's offer letter is for $55/hour. But they have the same offer letter just with different values.
I have Enterprise EchoSign and FormsCentral.
Thank you!Hi,
Thanks for asking, but FormsCentral currently does not support this.
Perry -
LinkedHashMap problem (Same key but different value)
Dear Friends,
There is problem in LinkedHashMap for same key but different values.
I want both values of same key as Output.
Plz help me from an example code & it's output
LinkedHashMap<Object, LinkedList<Object>> linkhash = new LinkedHashMap<Object, LinkedList<Object>>();
LinkedList<Object> ll6 = new LinkedList<Object>();
LinkedList<Object> ll7 = new LinkedList<Object>();
LinkedList<Object> ll9 = new LinkedList<Object>();
objectName="Listitem";
ll6.add("id\tlisti");
ll6.add("tag\tlistcell");
ll6.add("tag\tlistcell");
linkhash.put(objectName, ll6);
System.out.println("List is "+linkhash);
objectName="Listcell";
ll7.add("id\tlistc");
ll7.add("label\tCEO");
linkhash.put(objectName, ll7);
System.out.println("List is "+linkhash);
objectName="Listcell";
ll9.add("id\tlistc1");
ll9.add("label\tNKC");
linkhash.put(objectName, ll9);
System.out.println("List is "+linkhash);
output is
List is {Listitem=[id listi, tag listcell, tag listcell]}
List is {Listitem=[id listi, tag listcell, tag listcell], Listcell=[id listc, label CEO]}
List is {Listitem=[id listi, tag listcell, tag listcell], Listcell=[id listc1, label NKC]}
I want output as
List is {Listitem=[id listi, tag listcell, tag listcell],Listcell=[id listc, label CEO], Listcell=[id listc1, label NKC]}
Plz help me
Thanks Friend
Edited by: kkcnkc on Apr 1, 2009 6:47 AMDouble post. Locking.
-
Mass changes of Material Master field with different values
Hi,
How to change a field in Material Master for more than thousand materials. I think MM17 can only be used for mass changes of materials with same values. I need to upload different values for different materials. Is there any other way to do this.
Thanks,
K R Vishnu KumarHi Kumar.
I think you have to use LSMW for mass updation for Material Master fields with different values.
Regards,
Rahul. -
How to populate SNDPRN with different values in Development and Production?
Hello experts,
I have to fill the field SNDPRN in the message mapping with a different value in Development and in Production. As I am new to PI, I used a simple solution - but it is rather ugly: I set a constant value in the mapping in development and a different one in Production. However, I would like to know if there is any solution to have a condition in the mapping like:
IF system is Development, set SNDPRN as Constant1.
IF system is Production, set SNDPRN as Constant2.
(And eventually IF system is Test, set SNDPRN as Constant3)
Thanks in advance for your help,
LuisHi Luis,
You can go with the parameterized mapping , where you can provide different values for SNDPRN in interface determination for development and production.
At point of time if you want to change the values it requires only a change in the configuration.
Please refer the below links for reference;
Parameterized Mapping Programs - Enterprise Services Repository - SAP Library
http://scn.sap.com/people/jin.shin/blog/2008/02/14/sap-pi-71-mapping-enhancements-series-parameterized-message-mappings
We are following the same approach for some of our interfaces.
- Muru -
PO query not giving correct values
Hi
I am running the following query in PL?SQL Developer
SELECT hou.name Operating_unit,
pha.segment1 po_number,
pha.revision_num,
ap.vendor_name,
hla1.location_code,
papf.full_name Buyer,
to_char(pha.creation_date, 'DD-MON-RRRR HH24:MI:SS') creation_date,
pdta.type_name,
assa.vendor_site_code,
hla2.location_code,
initcap(pha.authorization_status) po_status,
pha.currency_code,
pla.line_num,
pltt.line_type,
msib.segment1 item,
(mcb.segment1 || '.' || mcb.segment1) category,
msib.description,
msib.primary_unit_of_measure UOM,
pla.quantity,
pla.unit_price,
(pla.quantity * pla.unit_price) amount,
(gcc.segment1 || '-' || gcc.segment2 || '-' || gcc.segment3 || '-' ||
gcc.segment4 || '-' || gcc.segment5) charge_account,
pla.list_price_per_unit,
at.name,
pha.freight_terms_lookup_code,
pha.fob_lookup_code,
initcap(pha.pay_on_code) pay_on_code,
pha.acceptance_required_flag,
ood.organization_code,
ood.organization_name,
msib.primary_unit_of_measure UOM,
pla.quantity,
plla.country_of_origin_code,
(gcc.segment1 || '-' || gcc.segment2 || '-' || gcc.segment3 || '-' ||
gcc.segment4 || '-' || gcc.segment5) charge_account,
(pla.quantity * pla.unit_price) amount,
plla.receive_close_tolerance,
plla.invoice_close_tolerance,
plla.quantity,
plla.quantity_received,
plla.quantity_cancelled,
plla.quantity_billed,
plla.match_option,
plla.accrue_on_receipt_flag,
plla.enforce_ship_to_location_code,
plla.days_early_receipt_allowed,
plla.days_late_receipt_allowed,
plla.receipt_days_exception_code,
plla.qty_rcv_tolerance,
initcap(plla.qty_rcv_exception_code),
plla.allow_substitute_receipts_flag,
plla.receiving_routing_id,
plla.enforce_ship_to_location_code,
initcap(pda.destination_type_code),
papf.full_name requestor,
hla3.location_code,
--pda.quantity_ordered, -- commented because giving wrong value
(select quantity_ordered
from po_distributions_all
where po_header_id IN (select po_header_id
from po_headers_all
where segment1 = pha.segment1)) quantity_ordered, -- Added
(gcc.segment1 || '-' || gcc.segment2 || '-' || gcc.segment3 || '-' ||
gcc.segment4 || '-' || gcc.segment5) po_charge_account,
haou.name,
prha.segment1,
prla.line_num,
to_char(prla.rate_date, 'DD-MON-RRRR') rate_date,
(gcc.segment1 || '-' || gcc.segment2 || '-' || gcc.segment3 || '-' ||
gcc.segment4 || '-' || gcc.segment5) po_charge_account,
(SELECT acc.segment1 || '-' || acc.segment2 || '-' || acc.segment3 || '-' ||
acc.segment4 || '-' || acc.segment5
FROM gl_code_combinations acc
WHERE acc.code_combination_id = pda.accrual_account_id) accrual_account,
(SELECT acc.segment1 || '-' || acc.segment2 || '-' || acc.segment3 || '-' ||
acc.segment4 || '-' || acc.segment5
FROM gl_code_combinations acc
WHERE acc.code_combination_id = pda.variance_account_id) variance_account,
pla.line_num,
plla.shipment_num,
ood.organization_code,
ood.organization_name,
msib.segment1,
msib.description,
pla.quantity
FROM hr_operating_units hou,
po_headers_all pha,
ap_suppliers ap,
hr_locations_all hla1,
per_all_people_f papf,
po_document_types_all pdta,
po_document_types_all_b pdtab,
ap_supplier_sites_all assa,
hr_locations_all hla2,
po_lines_all pla,
po_line_types_b pltb,
po_line_types_tl pltt,
mtl_system_items_b msib,
po_line_locations_all plla,
mtl_categories_b mcb,
po_distributions_all pda,
gl_code_combinations gcc,
ap_terms at,
org_organization_definitions ood,
hr_locations_all hla3,
po_requisition_headers_all prha,
po_req_distributions_all prda,
po_requisition_lines_all prla,
hr_all_organization_units_tl haou
WHERE 1 = 1
AND pha.segment1 = '6395' --&po_number
AND hou.organization_id = 204 --&operating_unit
AND hou.organization_id = pha.org_id
AND pha.vendor_id = ap.vendor_id
AND hla1.location_id = pha.ship_to_location_id
AND papf.person_id = pha.agent_id
AND SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
AND ((pdtab.document_type_code IN ('PO', 'PA') AND
pdtab.document_subtype = pha.type_lookup_code))
AND pdta.document_subtype = pdtab.document_subtype
AND pdta.document_type_code = pdtab.document_type_code
AND pdta.org_id = Pdtab.org_id
AND pha.org_id = pdta.org_id
AND ap.vendor_id = assa.vendor_id
AND pha.org_id = assa.org_id
AND pha.vendor_id = assa.vendor_id
AND pha.vendor_site_id = assa.vendor_site_id
AND pha.bill_to_location_id = hla2.ship_to_location_id
AND pla.po_header_id = pha.po_header_id
AND pltb.line_type_id = pla.line_type_id
AND pla.line_type_id = pltt.line_type_id
AND pltt.language = USERENV('LANG')
AND msib.inventory_item_id = pla.item_id
AND plla.po_line_id = pla.po_line_id
AND msib.organization_id = plla.ship_to_organization_id
AND mcb.category_id = pla.category_id
AND pda.po_line_id = pla.po_line_id
AND pda.po_header_id = pha.po_header_id
AND pda.code_combination_id = gcc.code_combination_id
AND at.term_id = pha.terms_id
AND ood.organization_id = plla.ship_to_organization_id
AND pda.deliver_to_person_id = papf.person_id
AND hla3.location_id = pda.deliver_to_location_id
AND haou.organization_id = prha.org_id
AND haou.language = USERENV('LANG')
AND prha.org_id = pha.org_id
AND prha.requisition_header_id = prla.requisition_header_id
AND pda.req_distribution_id = prda.distribution_id
AND prda.requisition_line_id = prla.requisition_line_id
AND haou.organization_id = hou.organization_id
AND prla.org_id = pha.org_id
AND prda.code_combination_id = gcc.code_combination_id --added
AND hla3.inventory_organization_id = msib.organization_id --added
AND pda.line_location_id = prla.line_location_id --added
AND plla.po_header_id = pha.po_header_id --added
I tested it for 10 POs. for 2 the query is giving right value. but for others it is giving wrong value.
Mainly the PO Charge Account, accrual and variance account values are not matching. What changes I can make to get the correct data?
I am using r12 version
ThanksHi Srini,
Thanks for replying. I check and the application context is set.
I think we might be missing certain conditions. Can you help me with that. -
How to give different value to a static variable???
Hi all:
Is there any solution to set different values to a static variable???I had try two ways but all have errors!
1.Way_1
protected String tmp=null;
protected void initSituation(int sayorpress)
if (sayorpress==0)
tmp = "string1";
else if (sayorpress==1)
tmp = "string2";
protected static String RESOURCE_STRING = tmp; <---error
Error:non-static variable tmp cannot be referenced from a static context
2.Way_2
protected void initSituation(int sayorpress)
if (sayorpress==0)
protected static String RESOURCE_STRING = "string1"; <---error
else if (sayorpress==1)
protected static String RESOURCE_STRING = "string2"; <---error
Error:illegal start of expression at
not an expression statement at
Thank you very mich!!!Try this:
protected static String RESOURCE_STRING = null;
protected void initSituation(int sayorpress)
if (sayorpress==0)
yourClass.RESOURCE_STRING = "string1";
else if (sayorpress==1)
yourClass.RESOURCE_STRING = "string2";
You cannot declare a static variable inside a method. But you can access a static variable thorugh your class.
Maybe you are looking for
-
Simultaneous audio output from Ipad and bluetooth ?
Is it possible to have simultaneous audio output from IPAD and a bluetooth speaker? At present I can only get audio from the Bluetooth Speaker and nothing from the IPAD's audio out! My purpose is that my Mom will hold the IPAD to listen to her Audiob
-
Does anyone have an idea for me?
-
I pre order Snow Leopard through Amazon. A parent receive it and send to Chile, my country. When I try install, the this fail. I went to Apple reseller, which confirmed that the disk is bad, but they don't change the disc because Apple haven't intern
-
Hello all. I am a noobie at this stuff (just to let y'all kno) and I'm having a hard time drawing/painting an ImageIcon on a JPanel. I'm not really sure, but I think it has something to do with the fact that the Graphics class is abstract (so obvious
-
Indesign jpeg and photoshop jpeg...which is crisper?
I realize it depends on how the jjpeg was saved but with regard to say fonts and logo art and small sizes, like 60px x 60 px . is there a difference between jpegs?