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 Au
Hello,
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
Similar Messages
-
Hi,
I need to create a counter kf which should populate 1 and 0 to this counter field. Please let me know is there any difference between data type
NUMBER (DEC) and INTEGER (INT4).
Please suggest.
Thanks & Regards,
Pavan kumarHi Pavan,
The basic difference between Number(DEC) and INT4 is its internal storage in system.
For Number (DEC) - Value internally stored as packed number with 3 decimal places whereas INT 4 as 4 byte integer without decimal places.
For counter KF, you can go for INT 4.
Hope this helps.
Thanks -
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 -
How can take a Custom Data Type in TestStand and create a LabVIEW DataType?
I am using LV 8.2 and TS 3.5.
I have an existing Custom Data Type in TestStand and I want to make a LabView Type Def. The TS DataType contains 11 elements: a Visa Resource Container of 2 elements (String, DeviceName and Number, Session), 9 Numerics and 1 String Array. For Backwards compatability, I cannot modify the TestStand DataType.
Thanks,
JeanHi Goldee,
You should be able to do that. It's a two step procedure.
1) Creates in LV a custom datatype that maps 1:1 yours TS datatype.
2) Go in the TypePalette in the properties of yours TS Datatype and check into LV Cluster Passing Menu'. Here you can Connect a specific Field of the TS datatype to a Specific Label of the corresponding LV datatype. Once you've done it the TS datatype will result modified, I mean "starred" but the change you applied should not impact the datatype structure itself only the way you pass it to LV.
Have a good day
FiloP
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
Richard P. Feynman -
Can someone please help, I have a dvd disk containing lecture videos, on a Windows pc it works fine, and the disk opens to the dvd menu. However on my macbook pro running Mountain Lion, it opens as a data disk, with video and audio in two seprate files??
You may need a 3rd party application to view the DVD in a wWindows format such as
http://flip4mac-3.en.softonic.com/mac
https://www.macupdate.com/app/iphone/5758/vlc-media-player -
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. -
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 -
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 -
Wat should be data type for negative and decimal values (eg: -1.2222)
What should be data type for negative and decimal values (eg: -1.2222)
Hi
U can use the data type DEC while creating the DOMAIN and in the domain u have sign check box at the left corner of the screen, click that check box , u can assign negative values for the field which refers this domain.
REWARD IF HELPFULL
Anees. -
Copy of attachement in Post with reference and recurring documents
Hi Gurus,
While using Post with reference and recurring documents, can we also copy the attachment from the source document?
Please revert asap
Thank YouHi,
How you been able to create attachments for a recurring document at all?
I could not create any attachment.
Miroslav -
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 -
Call Oracle procedure with custom data type within Java and Hibernate
I have a custom date TYPE in Oracle
like
CREATE TYPE DATEARRAY AS TABLE OF DATE;
and I have a Oracle function also
like
CREATE OR REPLACE FUNCTION doesContain (list DATEARRAY, val VARCHAR2) RETURN NUMBER
IS
END doesContain;
In my Java class,
I have a collection which contain a list of java.util.Date objects
When I call Oracle function "doesContain", how to pass my java collection to this Oracle function ...
anyone can provide solutions?
Please !!!
Thanks,
PulikkottilVu,
First of all you need to define your types as database types, for example:
create or replace type T_ID as table of number(5)Then you need to use the "oracle.sql.ARRAY" class. You can search this forum's archives for the term "ARRAY" in order to find more details and you can also find some samples via the JDBC Web page at the OTN Web site.
Good Luck,
Avi. -
Problem with reference and class
I would like to transit a Data object in member function of another class with Labview 9.0 reference with "In place element structure". I use the reference for optimize allocation memory.
When i use a dispatch static : Vi is executable -> "TestRefAppExt Statique.vi"
With Dispatch dynamic : Vi is not executable (because Read/Write a reference's data value : class's Object in a reference can't be replaced by another) -> "TestRefAppExt DynamiqueWithoutParent.vi"/"TestRefAppExt DynamiqueWityParent.vi"
When i use Preserve Run-Time Class function the Vi becomes executable
but it creates some allocations. Labview creates copy of data object
when i'm running the vi. (increase size of data you'll see)
The problem is that i can't recuparate the same object without copy in dispatch dynamic. Because LabView can't change the data object transited in a dispatch dynamic function of another class (child class).
I compared in project labview Execution's performance with and without Reference in dynamic and static and for compare, with Message Box and a Reference of Data object's cluster.
Without reference, i made three Vi : "TestAppExt Statique.vi", "TestAppExt DynamiqueWithParent.vi" and "TestAppExt DynamiqueWithoutParent.vi"
The static's function works well, but when Labview calls dispacth Dynamic functions, it works more slowly.
With reference, i made three vi too : "TestRefAppExt Statique.vi", "TestRefAppExt DynamiqueWithParent.vi" and "TestRefAppExt DynamiqueWithoutParent.vi" with cast Preserve Run-Time Class.
All This functions are more slowly than without reference.
I tried for fun to test with the same class with Message Box : "TestRefAppExt Fifo.vi" and Cluster "TestRefAppExt DynamiqueCluster.vi" with the dynamic function. The result is better than with reference in dynamic.
"TestRefAppExt StatiqueRef.vi" and "TestRefAppExt DynamiqueRef.vi" are a solution of this problem but it's better to work with In place element structure. And it doesn't resolve reference performance in execution.
Why it's not possible to recuperate data object after a dispatch dynamic?
Why the performance is not good with LabView reference 2009?
I attached the project.
Could you help me please
thank you so much.
Pascal
Attachments:
RefTest.zip 476 KBYes, it helps but there is one thing that isn't being replicated which is the possibility to remove the link from the generated editor.
My EMF looks like:
@gmf.node(label="uri", figure="ellipse", label.edit.pattern="{0}", label.view.pattern="<<Class>> {0}", label.icon="false")
class Class extends Resource {
@gmf.link(target="subClassOf", target.decoration="arrow", label.text="subClassOf", label.readOnly="true")
ref Class[*] subClassOf;
And when I do the fix with self.subClassOf.remove(self) the link isn't removed (although now the model now passes the validation). Is there any easy way to do that?
Regards -
Order with reference to callibration maintenance
Hii Experts
Generally callibration maintenance is called with reference to task list. is there any way by which we can directly call a maintenance order for callibration process ?
plz guide
Best Regards
BilalHi
In PM & CS -Maintenance and Service Processing-Maintenance and Service Orders-Functions and Settings for Order Types-Assign Inspection Types to Maintenance/Service Order Types,
In that assign 14 for caliberation order, u wl get caliberation order
Regards
SMC -
Table type with reference type - how to sort?
I have an internal table lt_refs of the type ZXX_TT_REFS.
The table type ZXX_TT_REFS is a table of references ("ref. type") to the class ZCL_C.
The class C has an attribute attr1.
Now I would like to sort that table. Is there an easy (built-in) way to do this?
DATA lt_refs TYPE ZXX_TT_REFS.
DATA lr_ref TYPE REF TO ZCL_C.
LOOP AT lt_refs INTO lr_ref.
"Sort based on lr_ref->attr1. ?
ENDLOOP.
"or can I
SORT lt_refs BY attr1.
"directly?Danial, please see the following. In the case where you want to sort your reference by an attribute within the object, you can do something like this.
report zrich_0001.
* CLASS lcl_tab DEFINITION
class lcl_app definition.
public section.
data: attri type i.
methods: constructor importing im_attri type i.
endclass.
* CLASS lcl_tab IMPLEMENTATION
class lcl_app implementation.
method constructor.
attri = im_attri.
endmethod.
endclass.
data: a_app type ref to lcl_app.
data: a_app_list type table of ref to lcl_app.
start-of-selection.
create object a_app exporting im_attri = 3 .
append a_app to a_app_list.
create object a_app exporting im_attri = 2 .
append a_app to a_app_list.
create object a_app exporting im_attri = 1 .
append a_app to a_app_list.
sort a_app_list by <b>table_line->attri</b> ascending .
check sy-subrc = 0.
Here is the documentation.
<i>
<b>
Access to Attributes with References in Internal Tables</b>
If the line type of internal tables includes reference variables as components comp, the attributes attr of the object to which the reference in a line points can be used as key values for reading, sorting and changing table rows. This is possible in the following statements:
,,LOOP AT itab ... WHERE comp->attr ...
,,READ TABLE itab ... WITH [TABLE] KEY comp->attr = ...
<b>,,SORT itab BY comp->attr ...</b>
,,DELETE itab WHERE comp->attr ...
,,MODIFY itab ... TRANSPORTING ... WHERE comp->attr ...
<b>If a table contains unstructured lines with the type of a reference variable, the attributes of the object to which a line points can be addressed using TABLE_LINE->attr.</b>
</i>
Regards,
RIch Heilman
Maybe you are looking for
-
I used to get a dialogue box when quitting safari, which was useful if accidentally hitting 'command q', but has now disappeared leading to lost work etc. Any idea why, or how I can get this useful option back please?
-
When the user press the button Calculate Tax and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually. All setup looks fine. Please let me know what can be done on this?
-
Unable to use decimal data in the datasources in the IOP RELEASE 11.1.2.1
Hi, I have created a datasource of type Database and given an sql query which is fetching some of the decimal data. But when I am checking preview for the sql query, it is showing integer data (rouding off the decimal value) even though the field typ
-
Can i load transactional Data from ge DS without having load M Data before
Hello, I want to load transactional data from a generic data source. I just want to know whether it would be successful, after the master data of 0material i load in the PSA couldn't be loaded in the infoObject (000000XXXXXXX -> material number error
-
Where is the "Edge Reflow Project" on the Generate menu?
I download trial version and updated new v14.1 just for the test this feature but there isnt "Edge Reflow Project on the Generate menu? Where is it?