Changes in the Datatype
Hi,
Scenario : Webservice -> XI -> JDBC or any scenaio
I have to pass a mandatory integer datatype input as per the <b>latest</b> changes, but my old Sender client(To send the request value to XI) has the old code so it can pass only String or other than integer datatypes.. What all errors we have to face for this case?
Note: The old sender client is not updated with the latest changes. In future also we don't want to update it.
Regards
Sara
Hi
I dont think you will face any errors without the update
regards
krishna
Similar Messages
-
How to change the datatype in the oracle table?
Hi,
I need to change the datatype of the column in Oracle table. That column contains some data. I do not want to loose those data.
For altering a table/column condition are:
1. either table should not contain any data.
2. either that column should not contain any data.
Please suggest how i can handle this situation.
Thanks.Hello,
Suppose you have currently datatype of column as VARCHAR and you want to convert it in NUMBER. Do following
1-Add another column with NUMBER datatype in your table.
ALTER table tablename
ADD testcolumn NUMBER;2-Update your actual column data to this test column.
UPDATE tablename
SET testcolumn = actualcolumn;
COMMIT;3-Update your actual column data to null;
UPDATE tablename
SET actualcolumn = NULL;
COMMIT;4-Change Datatype of actual column.
ALTER table tablename
MODIFY actualcolumn NUMBER;5-Update actualcolumn to testcolumn
UPDATE tablename
SET actualcolumn = testcolumn;
COMMIT;
please mark if it help you or correct
Regards,
Danish -
Why does my IN operator change the datatype
Hi
This doesn't make any sense, but i'm hoping there's an obvious answer which you guys have seen a million times before.
I have this criteria in my WHERE clause
AND rpg_id = (SELECT rpg_id
FROM integration.rep_elig_groups
WHERE pel_id IN(34))because of this clause no results are return in my query. However if i use a to_number function like this:
AND rpg_id = to_number(SELECT rpg_id
FROM integration.rep_elig_groups
WHERE pel_id IN(34))OR
AND to_char(rpg_id) = (SELECT rpg_id
FROM integration.rep_elig_groups
WHERE pel_id IN(34))i get the expected results returned.
The sub query:-
SELECT rpg_id
FROM integration.rep_elig_groups
WHERE pel_id IN(34)returns the value 226. rpg_id in this table is a NUMBER datatype. As is rpg_id in the original outer query.
I looked at synonyms, views, and other objects it might be using for the rep_elig_groups table, but there are none.
Then i tried changing the IN operator for an EQUALS operator and would you believe it, it worked.
AND rpg_id = (SELECT rpg_id
FROM integration.rep_elig_groups
WHERE pel_id IN(34))can someone please explain what ORACLE is thinking here!!!
Many thanks
Edited by: tri_harder on Dec 9, 2008 4:48 PM missed the closing bracket in the final piece of code!
Edited by: tri_harder on Dec 10, 2008 8:44 AMI ran the expain plans in TOAD for both queries, with the only difference changing the operator from IN to =. I'm very surprised there is such a difference between the two!!
SELECT tim_id,
rpg_id,
ROUND(SUM(retail_value), 2) retail_value,
ROUND(SUM(salesidx), 2) salesidx,
ROUND(SUM(VALUE), 2) VALUE,
ROUND(SUM(bva_salesidx), 2) bva_salesidx,
ROUND(SUM(bva_value), 2) bva_value,
ROUND(SUM(bva_retail_value), 2) bva_retail_value
FROM ms_stats_ol_ms
WHERE 1 = 1
AND fmt_id IN(SELECT ID
FROM formats
WHERE car_id = 0 OR 0 = 0)
AND fmt_id NOT IN(
SELECT fmt.ID
FROM formats fmt,
class_formats clf
WHERE fmt.ID = clf.fmt_id
AND clf.cla_id IN(3, 6)
AND fmt.car_id = 2)
AND cla_id = 3
AND rpg_id = (SELECT rpg_id
FROM rep_elig_groups
WHERE pel_id IN(34))
AND tim_id BETWEEN 4985 AND 5418
GROUP BY tim_id, rpg_idSo this is my original query that returned no results and produced the following Explain Plan:-
Plan
SELECT STATEMENT ALL_ROWSCost: 10,842 Bytes: 1,505 Cardinality: 35
17 HASH GROUP BY Cost: 10,842 Bytes: 1,505 Cardinality: 35
16 HASH JOIN Cost: 10,836 Bytes: 1,587,345 Cardinality: 36,915
1 TABLE ACCESS FULL TABLE INTEGRATION.FORMATS Cost: 2 Bytes: 90 Cardinality: 15
15 HASH JOIN RIGHT ANTI Cost: 10,833 Bytes: 1,456,912 Cardinality: 39,376
6 VIEW VIEW SYS.VW_NSO_1 Cost: 4 Bytes: 6 Cardinality: 2
5 HASH JOIN Cost: 4 Bytes: 24 Cardinality: 2
2 TABLE ACCESS FULL TABLE INTEGRATION.FORMATS Cost: 2 Bytes: 12 Cardinality: 2
4 INLIST ITERATOR
3 INDEX RANGE SCAN INDEX (UNIQUE) INTEGRATION.CLF_PK Cost: 1 Bytes: 60 Cardinality: 10
14 TABLE ACCESS BY INDEX ROWID TABLE CHARTDEV.MS_STATS_OL_MS Cost: 10,829 Bytes: 1,530,034 Cardinality: 45,001
13 BITMAP CONVERSION TO ROWIDS
12 BITMAP AND
8 BITMAP INDEX SINGLE VALUE INDEX (BITMAP) CHARTDEV.MSST_OL_MS_RPG_ID_I
7 INDEX FAST FULL SCAN INDEX (UNIQUE) INTEGRATION.REG_PK Cost: 2 Bytes: 6 Cardinality: 1
10 BITMAP MERGE
9 BITMAP INDEX RANGE SCAN INDEX (BITMAP) CHARTDEV.MSST_OL_MS_TIM_ID_I
11 BITMAP INDEX SINGLE VALUE INDEX (BITMAP) CHARTDEV.MSST_OL_MS_CLA_ID_I The following script has the very small change of the operator changed from IN to =
SELECT tim_id,
rpg_id,
ROUND(SUM(retail_value), 2) retail_value,
ROUND(SUM(salesidx), 2) salesidx,
ROUND(SUM(VALUE), 2) VALUE,
ROUND(SUM(bva_salesidx), 2) bva_salesidx,
ROUND(SUM(bva_value), 2) bva_value,
ROUND(SUM(bva_retail_value), 2) bva_retail_value
FROM ms_stats_ol_ms
WHERE 1 = 1
AND fmt_id IN(SELECT ID
FROM formats
WHERE car_id = 0 OR 0 = 0)
AND fmt_id NOT IN(
SELECT fmt.ID
FROM formats fmt,
class_formats clf
WHERE fmt.ID = clf.fmt_id
AND clf.cla_id IN(3, 6)
AND fmt.car_id = 2)
AND cla_id = 3
AND rpg_id IN (SELECT rpg_id
FROM rep_elig_groups
WHERE pel_id IN(34))
AND tim_id BETWEEN 4985 AND 5418
GROUP BY tim_id, rpg_idAnd this returned the expected results and produced the following Explain plan:-
Plan
SELECT STATEMENT ALL_ROWSCost: 10,996 Bytes: 1,610 Cardinality: 35
30 TEMP TABLE TRANSFORMATION
10 LOAD AS SELECT SYS.SYS_TEMP_0FD9D6614_166B4444
9 MERGE JOIN CARTESIAN Cost: 6 Bytes: 570 Cardinality: 30
5 VIEW VIEW SYS.VW_NSO_1 Cost: 4 Bytes: 26 Cardinality: 2
4 HASH JOIN Cost: 4 Bytes: 24 Cardinality: 2
1 TABLE ACCESS FULL TABLE INTEGRATION.FORMATS Cost: 2 Bytes: 12 Cardinality: 2
3 INLIST ITERATOR
2 INDEX RANGE SCAN INDEX (UNIQUE) INTEGRATION.CLF_PK Cost: 1 Bytes: 60 Cardinality: 10
8 BUFFER SORT Cost: 6 Bytes: 90 Cardinality: 15
7 TABLE ACCESS BY INDEX ROWID TABLE INTEGRATION.FORMATS Cost: 1 Bytes: 90 Cardinality: 15
6 INDEX UNIQUE SCAN INDEX (UNIQUE) INTEGRATION.FMT_PK Cost: 0 Cardinality: 1
29 HASH GROUP BY Cost: 10,990 Bytes: 1,610 Cardinality: 35
28 HASH JOIN Cost: 10,989 Bytes: 4,600 Cardinality: 100
11 TABLE ACCESS FULL TABLE (TEMP) SYS.SYS_TEMP_0FD9D6614_166B4444 Cost: 2 Bytes: 180 Cardinality: 30
27 HASH JOIN RIGHT SEMI Cost: 10,987 Bytes: 34,280 Cardinality: 857
12 INDEX FAST FULL SCAN INDEX (UNIQUE) INTEGRATION.REG_PK Cost: 2 Bytes: 6 Cardinality: 1
26 TABLE ACCESS BY INDEX ROWID TABLE CHARTDEV.MS_STATS_OL_MS Cost: 10,984 Bytes: 1,310,574 Cardinality: 38,546
25 BITMAP CONVERSION TO ROWIDS
24 BITMAP AND
16 BITMAP MERGE
15 BITMAP KEY ITERATION
13 INDEX FAST FULL SCAN INDEX (UNIQUE) INTEGRATION.REG_PK Cost: 2 Bytes: 6 Cardinality: 1
14 BITMAP INDEX RANGE SCAN INDEX (BITMAP) CHARTDEV.MSST_OL_MS_RPG_ID_I
18 BITMAP MERGE
17 BITMAP INDEX RANGE SCAN INDEX (BITMAP) CHARTDEV.MSST_OL_MS_TIM_ID_I
22 BITMAP MERGE
21 BITMAP KEY ITERATION
19 TABLE ACCESS FULL TABLE (TEMP) SYS.SYS_TEMP_0FD9D6614_166B4444 Cost: 2 Bytes: 13 Cardinality: 1
20 BITMAP INDEX RANGE SCAN INDEX (BITMAP) CHARTDEV.MSST_OL_MS_FMT_ID_I
23 BITMAP INDEX SINGLE VALUE INDEX (BITMAP) CHARTDEV.MSST_OL_MS_CLA_ID_I Can anybody suggest what's going on?? Why do i get results with one and not the other!!
Edited by: tri_harder on Dec 10, 2008 10:00 AM
altered the first query to change the IN operator to = -
Change the datatype of the Keyfigure
Dear all
I have a Keyfigure which was earlier defined as Decimal with 3 decimals places.But now with the change in the Customer's requirement , I need to make it with 8 decimal place. the way out is to either increase the decimal places supported ( but this is not working , i tried ) or to change the datatype to FLTP , but again this option is non-editable , so i am not able to change it either.
I also tried to create a new InfoObject , but then i would have to change evrything from infosource to update rules.
BI-Guru's , Is there any way out here ?
Thanks
RameshHi,
you won't be able to change your KeyFig without reloading your target with your new key figure setting. Indeed changing to floating point will change your figures...
You have to create a new KeyFig, map your URules... an reload your data in your target; you could use a copy of your cube in order to do so.
hope this helps...
Olivier. -
Change the datatype of all the columns
Oracle version 10g.
I have a table with 150 columns.
I'd like to change the datatype of all the columns in my table to varchar.
Do we have a query for this task?
Thanks.Not knowing yet what you'll answer to John:
If your table is empty, you can use the datadictionary to generate a statement and execute it using dynamic SQL or spool the query to a file that does the DDL and run that...
Example:
MHO%xe> create table bla (col1 number, col2 number);
Tabel is aangemaakt.
MHO%xe> select column_name, data_type from user_tab_columns where table_name = 'BLA';
COLUMN_NAME DATA_TYPE
COL1 NUMBER
COL2 NUMBER
MHO%xe> declare
2 l_sql varchar2(4000);
3 l_sep varchar2(1);
4 begin
5 l_sql := 'alter table BLA modify ('||chr(10);
6 for rec in ( select column_name from user_tab_columns where table_name = 'BLA')
7 loop
8 l_sql := l_sql||l_sep||' '||rec.column_name||' varchar2(50)'||chr(10);
9 l_sep := ',';
10 end loop;
11 --
12 dbms_output.put_line(l_sql||' )');
13 --
14 execute immediate l_sql||' )';
15 --
16 end;
17 /
alter table BLA modify (
COL1 varchar2(50)
, COL2 varchar2(50)
PL/SQL-procedure is geslaagd.
MHO%xe> select column_name, data_type from user_tab_columns where table_name = 'BLA';
COLUMN_NAME DATA_TYPE
COL1 VARCHAR2
COL2 VARCHAR2 -
i am using the following description to create a web service reference:
web reference :REST
Name :Yahoo Map
URL :http://local.yahooapis.com/MapsService/V1/mapImage
HTTP Method: GET
Basic Authentication: No
Add Parameter:
Name Type
appid String
location String
Output Format: XML
XPath to Output Parameters : /Result
Output Parameter:
Name Path Type
Url /text() String
Then i tried to create form and report on webservice:
Web Service Reference Type: Yahoo Map
Operation: doREST
All the fields i keep as default
I tick the checkbox (url)in report Parameter
After clicking next whereever required i click create button
I get the following error
ORA-20001: Unable to create form on table. ORA-02263: need to specify the datatype for this column.
Please someone help to solve this as i need to fix it urgently.i exported the application from apex.oracle.com and imported it to our environment
import went fine, but when I ran the IR page I got
ORA-20001: get_dbms_sql_cursor error ORA-00904: : invalid identifier
evidently the problem is a lack of public execute on DBMS_LOB, which is used in the generated IR source.
while waiting for the DBA to grant privs on DBMS_LOB, changing the dbms_lob.getlength call to length() fixes the IR.
however, i am not getting the download link on the associated form page... changed templates, that's not the issue -- we'll see if that's a dbms_lob issue as well -
Must not modify the datatype of a mapped attribute
Hi!
I have an inputfield in my WD with extended value help (countryKey and CountryName, coming from R/3). The selected country should be passed to a bapi import parameter mapped in a model, but the problem is that an exception occurs stating that I cannot change the data type of the context attribute because it is mapped to a model.
How is this usually done?
Thanks,
faB
ContextException: AttributeInfo(SearchView.Iv_Land1): must not modify the datatype of a mapped attributeHi,
1. Create sub-node under your model node with cardinality 1..1 (non-singleton used in sample below)
2. In this sub-node create calculated attribute with the same primitive type as desired attribute has (say, string).
3. In setter / getter write code that will modify original attribute:
/* getter */
return element.node().parentElement().getAttributeValue("OriginalModelAttr");
/* setter */
element.node().parentElement().setAttributeValue("OriginalModelAttr", value);
4. Rebind your input field to newly created attribute, and apply any value set modifications to it.
VS -
Variablize the datatypes in the select of data from XML to Oracle
Hi All,
I'm new to XML to Oracle data integration. I do have clob column that has the XML data and trying to bring it into the Oracle relational tables, as a part of it we are developing PL/SQL procedure that calls this CLOB column, I want to know if we can variablize the data types ( Just like tablename.columnname%type) in the select of the XML data:
select v.instrid, v.endtoendid, v.txid, v.cd, v.ccy,
replace(v.intrbksttlmamt,'.',',') as intrbksttlmamt, v.chrgbr, v.bic1, v.nm1, v.adrline11, v.adrline12, v.ctry1, v.iban1,
v.bic2, v.bic3, v.nm2, v.adrline21, v.adrline22, v.ctry2, v.iban2, v.cdtrref, v.addtlrmtinf
from the_data w,
xmltable(xmlnamespaces(default 'urn:iso:std:iso:20022:tech:xsd:pacs.008.001.01'),
'/Document/pacs.008.001.01/CdtTrfTxInf'
passing xmltype(w.the_column)
columns instrid varchar2(300) path 'PmtId/InstrId',
endtoendid varchar2(150) path 'PmtId/EndToEndId',
txid varchar2(200) path 'PmtId/TxId',
cd varchar2(50) path 'PmtTpInf/SvcLvl/Cd',
) v
As you see above in the bold I do define the data types after every column name , the problem is incase there is change in datatype I do need to manually edit the procedure to change the datatype is there a way I can variablize them something like tablename.columname%type.
Any answers are greatly appreciated.Two questions:
1. Does your database have a version number?
SELECT * FROM v$version;2. Why are you storing XML in a CLOB column rather than one of XMLType? -
MappedAttributeInfo(APPView.Node): must not modify the datatyp
Hi,
I used DropDownByKey element (DDLPROJE) and mapped it a contex element(PROJE).
I tryed to fill PROJE with code below.No problem on compile, but when i run, it gets error below on line bold in code.
How can i solve this problem?
Thanks.
error
com.sap.tc.webdynpro.progmodel.context.ContextException: MappedAttributeInfo(FAALIYETappYeniView.PROJE): must not modify the datatype of a mapped attribute
code
IWDAttributeInfo attInf =
wdContext.getNodeInfo().getAttribute(
wdContext.currentContextElement().PROJE);
ISimpleTypeModifiable stm = attInf.getModifiableSimpleType();
IModifiableSimpleValueSet svs = stm.getSVServices().getModifiableSimpleValueSet();
try {
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/SAPEPTDB");
Connection con = ds.getConnection();
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select PROJE from ZHF_PROJE");
svs.put("", "");
while (rs.next()) {
svs.put(rs.getString("PROJE"), rs.getString("PROJE"));
con.close();
} catch (Exception e) {
wdContext.currentContextElement().setMESAJ(e.toString());Hi,
I guess you did as below.
You have created the context attribute PROJE in View Context as well as in Controller Context.
And then you have changed the type of PROJE attribute in View Context by binding it to some Simple type.
After that you have mapped this attribute to the PROJE attribute in Controller context.
That is why it is giving that error.
If my guess is correct:
Then delete the context mapping - by right click on the PROJE attribute in the View Controller.
Now in Comp Controller change the type of PROJE attribtue by binding the simple type.
And now do the mapping between the attribtues.
Regards,
Charan -
How Can I Sync Multiple Changes at the same time?
Is there a way to configure iTunes so that I can make changes in multiple sections, and only sync or apply them when I've made all of them?
For example: I want to changes setting in Music, Apps, and Books. Today, it seems like I have to go to change settings,hit apply, and wait for the iTunes to sync for each one. What I want to do it make changes in all of them, then hit apply/sync and wait for the iTunes to sync all my changes in one swoop.
The seems very intuitive and saves the user a lot of time. Can iTunes be configured to due this?The OP's question asked - in iTunes for Windows, if it was possible to "configure iTunes" (not the iPod) and then "Sync those changes to the iPod in one step"
Is there a way to configure iTunes so that I can make changes in multiple sections, and only sync or apply them when I've made all of them?
For the media, one can;
untick songs in the Library in order for them to be removed at the next Sync (and obviously the reverse to put them back on),
the same procedure for books,
create and modify Playlists,
remove or add photos to the chosen Photos folder (in Windows of course, not in iTunes) which then get removed or added at the next Sync,
and then connect the iPod. One can prevent an iPod from Syncing at initial connection time, so that further changes to things such as which Apps to Sync (which does need to iPod to be connected), choices of Selected Playlists only, etc. (ditto) can be made by choosing the appropriate pane. As yet, whenever I've done this, I have never had to Sync one change before switching to a different pane. The first change causes the Apply and Revert buttons to appear. I ignore them and continue to make further changes on the other panes. Then I select Apply. The Apply/Revert buttons are removed and replaced by a Sync button. So, although there is the Apply, then Sync to be done, it can hardly be described as a burden.
Are you saying Chris, that you have to apply one change at a time, followed by a sync before making any other change? -
In Numbers, how can i change only the year in a date formatted column of data?
I'm using Numbers 3.5.2 on an iMac running Yosemite 10.10.2.
This column is a listing of dates tied to info that needs to happen on a particular date each year. Rather than re-key all the dates so the year advances to 2015, it would be great if I could change just the year for the entire column, leaving the day and month intact.
Thanks in advance for your help.If you already have a column of dates, and just want change the year in the entire column, rather than reenter the dates, then you could use a formula something like this:
The formula in B2, copied down the column:
=DATE(YEAR(A2)+1,MONTH(A2),DAY(A2))
Then select the new column, command-c to copy, and Edit > Paste Formula Results. The original column can then be deleted.
SG -
When I share a pages document as a PDF (via e-mail) all the pictures change from the original document, most are missing with just a few of them repeated in the spots where others had been. How do I do this without the document changing?
I need to be able to send it to a PC in order to print it.Hard to say what is happening without examining the file.
If you like click on my blue name and email me both the .pages file and the the .pdf you have made from it.
Peter
ps It would help to say what version of Pages you are using and on what you are running it. iOS or Mac and what version. -
How to find out the list of DCs changed in the MSS 600 Support PackageXX
Hi
We are trying to instal patches from "MSS 600 support package 07" to "MSS 600 support package 17" at the same time we have 4 custom DCs in place.
Our custom DCs have dependencies in MSS standard DCs.
Question is how do we know the list ot DC changed/modified in suport package XX ?
Is there a description of DCs changed in the support package? Or is there a description on SC level so we could trace it
GRANT POINTS!!!
Thanks
DenisPapaden- Please use metadata comparision tool to find the changes in webdynpro DCs.
http://help.sap.com/saphelp_nw70/helpdata/en/6e/0e184188b4f16fe10000000a1550b0/frameset.htm
Thanks,
Raj -
Can not see the option Execution with Data Change in the infoprovider?
Hi team,
i am using query designer 3.x, when i go into my bex brodcaster settings and schedule my report
i can not see the option "Execution with Data Change in the infoprovider",
i can only see 2 options
Direct scheduling in background process
create new scheduling
periodic,
is there any setting which i would be able to see the option "Execution with Data Change in the infoprovider"?
kindly assistHi Blusky ,
check the below given link.
http://help.sap.com/saphelp_nw04/Helpdata/EN/ec/0d0e405c538f5ce10000000a155106/frameset.htm
Regards,
Rohit Garg -
When on a page if I click on a web link I get a new window that is blank and asks me enter a web address. This started happening with the new 3.6 version. It seems to have something to do with what I choose for the location in my privacy settings as the window changes with each setting but I still cannot get to the new site. Any ideas? I have no problem with this in IE and I have to keep opening IE when I encounter the problem on Firefox which is annoying.
Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
* Don't make any changes on the Safe mode start window.
See:
* [[Troubleshooting extensions and themes]]
If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
* Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
* Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
Maybe you are looking for
-
Unable to activate Client Profile within Client-Based Groupware Integration
Experts - Please help us! We are trying to activate a new Client Profile wiithin Client Based Groupware Integration. We are receiving an error message that "Multiple profiles not allowed for same role, country, language combination." We believe we a
-
Help me in instll NSU 1.4 Proooobleeeeeeem
help me in instll NSU 1.4 Proooobleeeeeeem hello users when install NSU 1.4 shuld install 1- Nokia Cable 2- Visual C++ 2005 Nokia Cable in Sucsess install but Visual c++ 2005 show me messege (( Command line option syntax error . type command /? for h
-
Replacement for Upload FM.
hi, Kindly tell me what is the replacement for the UPLOAD Func. Module. If it is GUI_UPLOAD. Then what is the replacement code for this CALL FUNCTION 'UPLOAD' EXPORTING filename = p_xtract filetype
-
Asap q&a db for sd implementation for ECC 6.00
Hi SD Gurus, We are currently implementing EMS(electronic Manu sys) company,Can anyone kinldy help to send me the Q&A DB for the SD or from where can i get this information? Points will be rewarded...Thanks.
-
Business Objects Merge Dimension
Dear All, I have three data providers in Webi as per mentioned below Query1- emp no,emp name,city Query2- emp no,dept no,dept name Query3- dept no,loc As per user requirement I need to show the data in webi report mentioned below empno emp name