Data type with large size in a table and updating it
Hi guys,
i am working on a requirement in which i need to create 4 tables. Here, 2 tables will be updated by the user and a program will update this content to the other 2 table.
2 days before i posted a query on this, Previously i stucked on a part where, table need to entries with size char 400 and char 9000. As from the reply, i changed it to STRING with which table was sucessfully created and i was able to update data through a report program.
Now we ned to provide an sm30 option to users, so they can insert new contents and update the status of old contents. But when i tried this table maintanance generator, i got an error that table contains string, so maintanance generator cannot be done ! i changed the data type to rawstring also. Now maintanance generator got saved, but when i open the table in sm30, i am getting dump saying tht table is using string/char etc.
can anyone tell me what data type to use in this scenario with which we can enter data through sm30 ?
Hi Kithu,
you can use STRING (or XSTRING) fields. Then there is no limit on the field size. As long as it is not (fully) filled with data, no space is wasted.
The disadvantage is that STRING type data are treated as 'deep' structures. That leads to some trouble in the definition of interfaces. Give it a try!
Regards,
Clemens
Similar Messages
-
Stat500 files are created with large size
Hi,
in prd system (hp-ux,oracle 9.1, sap 4.7) .
/usr/sap/<SID>/DVEBMGS00/data file system getting full.
system is creating stat500, stat501, stat502, stat503 etc.....
with large size......please let me know what is this file use.
why it is generating . how to control it.
Regards,
swathi.Hi Swathi,
Note 6833 will address your issue.
regards,
VInodh. -
Which Data Type with 255 cars +
Hi,
I have a flat structure table with 15-20 fields, and I need for one of the field a data type with more than 255 cars
I cant put a STRING without having the flat structure error ...
Which one should I use ? How should I proceed ?
Thanks !
Kr,
BAHi Benjamin,
use SE80, click repository info system, click dictionary - data elemets. Chose length > 1024. F8 to execute.
Check where-used-list of what you like to use to make sure it is so frequently used that SAP will not change it.
Or better create your own Z data element with required length
Regards
Clemens -
How to retrieve the data type of a column of a table?
Hi,
I want to retrieve the data type of a column of a table. At the moment I am querying "OCI_ATTR_DATA_TYPE" attribute but it is returning SQLT_CHR for both varchar2 and nvarchar2 data type columns. I need to distinguish between these two data types columns separately. Is there any API through which I could get the exact data type of a column i.e. "nvarchar2"?
Thanks in advance.
HashimHi,
This is the Oracle C++ Call Interface (OCCI) forum - I'm not sure if you are using OCCI or OCI (Oracle Call Interface - the C interface) since you reference "OCI_ATTR_DATA_TYPE" which is more of an OCI focus than OCCI.
In any case, you might take a look at "OCI_ATTR_CHARSET_FORM" which takes the following values:
#define SQLCS_IMPLICIT 1 /* for CHAR, VARCHAR2, CLOB w/o a specified set */
#define SQLCS_NCHAR 2 /* for NCHAR, NCHAR VARYING, NCLOB */So, if you have a datatype of SQLT_CHR and OCI_ATTR_CHARSET_FORM is SQLCS_IMPLICIT then you have a varchar2 if it is SQLCS_NCHAR then you have an nvarchar2.
If you are using OCCI and not OCI then take a look at MetaData::ATTR_DATA_TYPE and MetaData::ATTR_CHARSET_FORM which expose OCI_ATTR_DATA_TYPE and OCI_ATTR_CHARSET_FORM respectively.
Perhaps that will get you what you want.
Regards,
Mark -
Activation error while changing the data type of a field of a table
hi friends,
i am facing one problem while changing a data type of a field of a table.
i just created one table(Yqm32) .i have assigned charcter data type to one field(ztotal_count) .now i want to change this charcter data type to numeric data type.
while changing to NUMC data type activation error is comming as below.
Table is not yet classified
Field ZTOTAL_COUNT: Type change
ALTER TABLE is not possible
Structure change at field level (convert table YQM32)
Check on table YQM32 resulted in errors
Table YQM32 could not be activated
(E- Structure change at field level (convert table YQM32)
plz suggest.i need to change the data type from char to numc.
Thanks & RegardsHi Pabitra......
From the SE11 change the table as u wanted and then from menubar select
UTILITIES--> DATABASE UTILITY
It will open database utility
there u select the Activate and adjust database button.
then the database table will get adjusted.
just try it once.........
Suresh...... -
Howto call custom Oracel Data Type with TopLink?
Hello,
in our DB we have a custom Oracle type and a PL/SQL method which uses it.
I would like to call the Oracle data type with TopLink. How can I do this?
I could not find any documentation on this.
I know JPublisher can do this but I don't want to use it!
Please see code below
cheers,
Pete
**************Datatype********************************
CREATE TYPE My_Sub_Object AS OBJECT (Sub_Object_ID Number,
Sub_Object_Txt VARCHAR2(200));
CREATE TYPE My_Sub_Objects AS VARRAY (20) OF My_Sub_Object;
CREATE TYPE My_object AS OBJECT (Object_id Number,
Object_txt VARCHAR2(200),
Sub_Objects My_Sub_Objects);
************PL/SQL-Method*****************************
CREATE OR REPLACE PROCEDURE My_object_pro
(Item_Object out My_Object) is
Item_Sub_Object My_Sub_Object;
Item_Sub_Objects My_Sub_Objects;
Begin
Item_Sub_Object := My_Sub_Object(10, 'Sub Object 10');
Item_Sub_Objects := My_Sub_Objects(Item_Sub_Object);
Item_Sub_Objects.Extend;
Item_Sub_Object := My_Sub_Object(11, 'Sub Object 11');
Item_Sub_Objects(2) := Item_Sub_Object;
Item_Object := My_Object(1, 'Object', Item_Sub_Objects);
End;
/Object types and Varrays can be used from TopLink stored procedure calls. There was some support for this in 10.1.3, but the support in 11g (preview) is much better. You can also access the JDBC connection from TopLink or your DataSource and use JDBC directly.
In TopLink 11g you can use an ObjectRelationalDescriptor to map the Object type to a Java class, and use this class as the argument type in your StoredProcedureCall.
PL/SQL types are more difficult as they are not supported by JDBC, but your example only includes object types. If you had PL/SQL types you would need to wrap the types in object types, or use a PL/SQL block to convert them. TopLink 11g (preview 3) should have support for these as well. -
Jdev11g: How to use a Ord.image data type with ADF Faces 11g
Where to find an example about Ord.image data type with ADF Faces 11g preview3
Hi,
such a sample doesn't yet exist.
Frank
Btw.: The Jdeveloper 11 forum is JDeveloper and OC4J 11g Technology Preview -
Problem with central build of Simple Date Type with Enumeration
Dear gurus,
I hope I'm posting this in the correct forum. Please advise if I'm in the wrong forum.
I have a Web Dynpro DC in which I've created a simple data type with enumeration. It is used for binding to a radio box. The data type is called DownloadType; the enumeration contains two vales: current and archive. To allow me to access the enumeration values, I turn on the "Generate a class representation of the enumeration" in the data type builder.
I then reference the enumeration values with code like:
if (downloadType.equals (DownloadType._CURRENT))
yada yada yada
This works fine when building locally and deploying directly. But when the DC is built by CBS (or doing a "Development Component->Build..." in NW Dev Studio), the build fails, stating that the DownloadType._CURRENT symbol cannot be resolved.
For example:
C:yadayadayada.java:227: cannot resolve symbol
symbol : variable _CURRENT
location: class yadayadayada.DownloadType
equals(DownloadType._CURRENT)) {
Apparently the central builder is not smart enough to handle the "Generate a class representation" flag.
Is this a known problem? Are there any workarounds?
Thanks in advance for any help you can provide.
-Kelly
P.S. Environment: 2004sHi Kelly,
works for me using SP10, what SP are you on?
There's a line in the DC log that says:
[ddgen] [Info] Generating datatypes/com/x/x/x/MyEnum.java
and the java compiler includes the matching path for compilation:
[echo] source paths:
[echo] ...\_comp\src\packages
[echo] ..\t\ABF37B5AFB3B2E8A76FFD29E7862EA48\gen_ddic\datatypes
Regards,
Marc -
I was playing aaroound with the size of my window and now I can't get it back to standard size. Any suggestions?
If you're using Lion, you can resize by dragging from any corner, in Leopard and lower it can only be resized from the bottom right hand corner.
-
Insert one table and update another???
Hello,
I was wondering if it is possible to insert a record in one table and update another another record in a different table.
I have a form on my company's intranet that allows employees to add comments (ADDT Insert transaction) about new products we are going to bring to the market. At the same time, I would like to count the numbers of comments on a particular product and update that number for each product to see which product is getting the most reviews.
Right now the products are on the homepage with the title and inserted date. From there, the employees click on the product get the info and make comments about it. The problem for me is that I would like to see the comment counts for each product on the home page, which means I would have to update the product table with the count.
Sorry, I am using PHP as the technology.
When I used to do it in ASP, I would insert the comment using the POST from the form, but add another hidden field with the count in it and I would use the "Command" Server behavior to retrieve the number and update the other table field.
I noticed that dreamweaver removed the "Command" server behavior when using PHP.
All help is greatly appreciated
Charles.Hi Charles,
you can generally execute queries on a different table using Custom Triggers, and in regards to your "update the product table with the count" scenario the ADDT help file has a helpful pointer in the chapter "Custom transactions and triggers : Save additional information on login" -- in here you´ll find a sample "incremental counter" query which should be easy to adapt.
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver -
Adding a new field in BCONT table and updating it
Hi All,
Is there any BAPI/BADI which will allow to add a new field in standard BCONT table and update its value?
Your solution will be really helpful.
Thanks,
NirupamHi Santosh,
This is required for UCES. We need to add a field in BCONT table (SE11/SE16), which will hold a flag value, i.e Y/N.
The value will be updated through a custom FM being used in UCES, and also based on the value there is a validation inside UCES.
This field need not be displayed inside any SAP screen.
thanks,
Nirupam
Edited by: Nirupam Deb on Jun 8, 2011 11:44 AM -
Data Type with reference and view maintenance
Dear all,
There are two questions that I want to ask.
1. Error when referencing a table with data type = u2018STRINGu2019.
I have a Z table with some fields = u2018stringu2019, when I use this as a reference, an error prompted.
"ZTBL_ABC" must be a flat structure. You cannot use internal
tables, strings, references, or structures as components.-
2. Error in generating the View maintenance for field length > 255.
Actually, I want to create fields with
1. data type = char(255),
2. data type = text
3. data type = char(3000)
It is okay if I create the field with the selected size, however, when I generate the View maintenance (which can be access through SM30); it does not allow me to do so. It still not working if I change it into string. How can I create such table and use the table maintenance, as well as using that as the reference type of an internal table for another program?
Regards,
Mandy AuHello,
1st of all a table which has a field of type string can be converted in to table maintenance because TM does not support string type as it becomes a very big field to be displayed on screen ... so u need to change that.
and then about the CHAR of length 3000 is too big ... to have a max limit of 255.
If you change this both u will be able to generate TM.
Incase after changing the field length it it gives error in activatin your table then go to SE14 put your table name EDIT and then Adjust n activate it....
hope this was helpful
--- Close the post once you get the solution -
Impact of changing data type of a field in Database table
Hi All,
I need to change the data type of a field(which is not a key field and it has no dependency with any other field) from NUMC to CHAR by maintaining the same length. Please let me know if there will be any impact in doing this. Hope the following things need to be taken care:
- Take backup of entire data in the table before doing the change
- After changing the data type, I need to set the option 'Save Data' and then 'Activate and Adjust Database' in 'Database Utility'.
- Use 'Where Used List' to check the related objects.
Please let me know if there is any impact or any thing else need to be taken care apart from the above things.
Thanks in advance.
Regards
Vidhya.Hi,
even if the length is same there would be no impact.
just v need to adjust the database in the database utility.
check the table maintenence generator also. if not reflected there u need to delete it and create it again.
reward if useful,
teja -
Convert/Cast string data type from file to DT_GUID into table
Hi to all
is there anyone who help me please?!?
I'm not able to resolve the following problem.
I have a .csv file with a string field A and its values are GUID.
I must export this .csv file into SQL Server Table which have a uniqueidentifier (GUID) field B.
I must map string field A to GUID field B of table.
But I get an error like this: "Error at Data Flow Task [Derived Column [xxx]]: Error code 0x800401F3 occurred attempting to convert from data type DT_WSTR to data type DT_GUID.".
I read other posts like this in this forum and i also tried the solution suggested in those posts.
The proposed solution had suggested of insert in the expression field of "Derived Column" Transformation this expression (DT_GUID) ("{" + [YourGuid] + "}") in place of (DT_GUID) [YourGuid].
But i get always the same error.
is there anyone who help me please to resolve this issue?!?The derived column expression should work if the yourGuid column contains a real guid.
Does the source looks something like: 25892e17-80f6-415f-9c65-7395632f0223
And are all rows filled with a correct value or are there also empty strings or null values?
Please mark the post as answered if it answers your question | My SSIS Blog:
http://microsoft-ssis.blogspot.com |
Twitter -
Decimal data type with negative sign
Hi Gurus,
I wanted to created a z table with a filed of type decimal with sign. What I did is I created a field in predifined type with dec type, but -ve sign is not taking at the time of entering the data in SM30. Its saying only +ve values are allowed. Please let me know how can I achieve this. My data will be like -4.1242.
Thanks,
David.Hi..
Try using another field as an indicator for negative fields so that you can consider those signs in your program.
Regards,
Karthik
Maybe you are looking for
-
I have a 3rd generation iPod Touch and just did the update to IOS 5. Now I can't connect to my Netgear wifi router. My iPhone connects fine along with all of my other laptops etc. I have the router set with WPA-PSK [TKIP] security and an access list.
-
Inbound delivery Idoc to create Batch with Characteristics
Hi Experts, Need your help... We have the scenario where the inbound delivery in ECC is created by an external Idoc (DESADV). However the batch field is blank. Requirement is to create a batch per line item (as per the number range in ECC) during inb
-
Best practice for opening/closing JDBC conection
I've written a program that accesses a database, and I'd like to know the best practice for opening and closing that connection. For example should I use a try{} finally {} block, try //load driver //create conection //create statement ob
-
Hi all, I am having some serious issues with Photoshop CC and have alread lost a few days of work to a random bug. I have spent the whole day working on Photoshop to try and catch up on the lost work. I was saving the PSD, closed the document and the
-
My son just received this laptop which was stored in a closet for an unknown length of time. We tried to turn it on and the lights come on for anywhere from .5 to 2 seconds. I was using a universal charger but I don't know if that is the issue. He s