Demantra - Create New Series - Mdp_matrix - Data Type String Issue
I created a new series (MDP_matrix) that has the data type as String. The display format is BLANK.
I was able to load the data into mdp_matrix table for the series i created.
However, when i look at the series in a worksheet, it does not display the string value. It display zero. for some reason, it considers the series as numeric and not string. Any idea why that would be happening?
This is on version 7.2 using SQL server/tomcat
Hi
1. Have you tried giving display format i.e ###?
2. Is your server expression something like max (mdp_matrix. column_name)?
Tks
MJ
Similar Messages
-
HI
There is a way to create date type string using the command
Create data type "string"...
I know that I can create data type C but string dont have any restrication so how I can hanlde it ?
Regards
JoyHi,
You can use the create data statement:
DATA: lo_data TYPE REF TO data.
FIELD-SYMBOLS: <str> TYPE ANY.
CREATE DATA lo_data TYPE string.
ASSIGN lo_data->* TO <str>.
Here <str> will be of type string.
Kr,
m. -
Performance issue while using data type 'STRING'.
Hello All,
I have created a table for storing values of different features coming under a particular country. Since the last field 'Value field' have to hold text upto 800characters for some features, i have used the data type 'String' with character length specified as 1000. I am able to store values upto 1000characters using this. Also, the table has to hold lots and lots of value, and it will increase in future also.
Since i have mentioned the data type as 'String', I have one doubt whether this will affect the performance. Because length of most of the values in my value field is less than 75characters and in some case only it will exceed 700characters. So, my question is whether the 'String' data type will allocate the length which am specifying in the table for each entries, though the values entering is less than the specified length.
For example, if the value of my value field is 'Very High Complexity' which is of length 20characters, will the space allocation be reduced to 20 or will it be still 1000characters?
Hope someone can clarify my doubt.
Thanks In Advance,
Shino
Moved to appropriate forum
Edited by: Rob Burbank on Feb 23, 2009 4:27 PMHi Shino,
Well it is possible to store using STRING or LCHR in the transparent tables. There are some underlyning facts here:-
1. You can only have one such field per table
2. You cannot view them in the se11 / se16 table content browser
3. You will need to maintain an additional field for storing the length of the STRING or LCHR field.
Regarding the performance:
even though ABAP allows storing STRING or LCHR type fields in the transparent tables but as soon as the lenght of the field crosses 255 chars it is not advisable to store it directly in the transperant tables.
You should store that field in the knowledge repository and only a pointer to the knowledge repository in the transperant table field.
Anyways, Since you have only one field with such a requirement then i would suggest you use STRING instead of LCHR as in LCHR you will have to mandatorily assign a length (like 1000) so even if you are storing only 20 chars or 300 chars the system will reserve a slot of 1000 chars; this is not with string as in case of string everything would be dynamic.
The result being that the reading time increases in case of LCHR.
I Hop this answered your question.
Regards,
Sagar. -
A newer version of data type BBP_PDS_HSS_IC was found than one required
Hi,
When I create a SC, it is automatically approved but the PO is not created.
If I check TRX SM58 I get the message:
"A newer version of data type BBP_PDS_HSS_IC was found than one required"
Any ideas?
Carlos DurazoHi
Which SRM version are you using ?
By an chance have you created any new fields in the standard structure
<b>'BBP_PDS_HSS_IC'</b> using <u>SE11</u> Transaction in SRM system. Please confirm the same by taking help of ABAP person here. Seems to be like the structure is not Activated completed.
<u>Related SAP OSS Notes -></u>
Note 758067 - SRM 4.0: Change documents of new sets (DynAttr, Weight)
Note 820201 - Document changes for attachments does not work
Hinweis 691880 - Changes in tolerances not displayed in purchase order
Note 1018714 - Change documents: Time stamp of the application server
Note 1006898 - Deleted vendor not displayed in Change hist of Shopping cart
Do let me know.
Regards
- Atul -
Hi all,
i have creted a ztable and in that for one field the length is to be more than 300 chars.
so i am using the data type directly as STRING. i tried to check the table but i am getting warning as 'data type string not allowed in DB tables'.
plz help what to do.
regards,
siri.Hi,
Here is the sample code to store the xml file into ABAP DB table.
First create a table called YTEST_BIN with following fileds.
Filed Nmae Data Elemen type
MANDT MANDT CLNT
DESCRIPTION HTTPBODY RAWSTRING
Now create a program to read the XML file from your desktop and load it into the table.
Below given is the code for loading the table.
REPORT y_store_xml.
DATA: wf_filetab TYPE filetable .
DATA: wf_filerc TYPE i ,
wf_filename TYPE string ,
wf_path TYPE string ,
wf_full_path TYPE string ,
wf_file_length TYPE i .
DATA: wf_extension TYPE string ,
wf_fname TYPE string .
DATA: BEGIN OF int_tab1 OCCURS 0,
int_txt(1000) TYPE x ,
END OF int_tab1.
DATA: upd_tab TYPE STANDARD TABLE OF ytest_bin .
DATA: wa_upd_tab LIKE LINE OF upd_tab .
DATA: temp_xstring TYPE xstring .
PARAMETERS: p_file LIKE file_table-filename LOWER CASE VISIBLE LENGTH 80 .
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file .
PERFORM browse_file CHANGING p_file .
AT SELECTION-SCREEN ON p_file .
IF p_file IS INITIAL .
MESSAGE e398(00) WITH
'Enter Filename and path' .
ENDIF.
START-OF-SELECTION .
CLEAR wf_filename .
MOVE: p_file TO wf_filename .
PERFORM load_file USING wf_filename .
PERFORM save_file_contents .
*& Form browse_file
text
<--P_P_FILE text
FORM browse_file CHANGING p_p_file.
CLEAR wf_filename .
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'Select the File'
DEFAULT_EXTENSION = cl_gui_frontend_services=>FILETYPE_TEXT
DEFAULT_FILENAME =
FILE_FILTER = cl_gui_frontend_services=>FILETYPE_EXCEL
INITIAL_DIRECTORY =
MULTISELECTION =
CHANGING
file_table = wf_filetab
rc = wf_filerc
USER_ACTION =
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE e398(00) WITH 'Error Opening File' .
ELSE .
READ TABLE wf_filetab INDEX 1 INTO p_file .
ENDIF.
ENDFORM. " browse_file
*& Form load_file
text
-->P_WF_FILENAME text
FORM load_file USING p_wf_filename.
CLEAR int_tab1 .
REFRESH int_tab1 .
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = p_wf_filename
filetype = 'BIN'
IMPORTING
filelength = wf_file_length
HEADER =
TABLES
data_tab = int_tab1
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17
IF sy-subrc <> 0.
MESSAGE e398(00) WITH 'File may be open - Error loading' .
ENDIF.
ENDFORM. " load_file
*& Form save_file_contents
text
--> p1 text
<-- p2 text
FORM save_file_contents .
CLEAR :wa_upd_tab , temp_xstring .
LOOP AT int_tab1 .
CONCATENATE temp_xstring int_tab1-int_txt INTO temp_xstring IN BYTE MODE.
ENDLOOP .
IF NOT temp_xstring IS INITIAL .
optional
TRY.
CALL METHOD cl_abap_gzip=>compress_binary
EXPORTING
raw_in = temp_xstring
IMPORTING
gzip_out = wa_upd_tab-description.
CATCH cx_parameter_invalid_range .
CATCH cx_sy_buffer_overflow .
CATCH cx_sy_compression_error .
ENDTRY.
APPEND wa_upd_tab TO upd_tab .
ENDIF .
IF NOT upd_tab IS INITIAL .
MODIFY ytest_bin FROM TABLE upd_tab .
IF sy-subrc EQ 0 .
MESSAGE i398(00) WITH wf_filename ` Saved!`.
ENDIF .
ENDIF.
ENDFORM. " save_file_contents
<b>Reward points</b>
Regards -
How to create an item with date type mm/yyyy (no day)
Hello,
Is it possible to create an item with date type mm/yyyy (no day)? I want the pop-up date picker to just show month and year.
Thanks,
JenHi,
you cannot pop-up date picker to just show month and year, but you can set your item format as MM-YYYY
You can check this APEX_ITEM.DATE_POPUP2 at : http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_item.htm#CHDJHBCG (if using apex 4.1) else http://docs.oracle.com/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDFDDEI
Edited by: Sergio_doudou on 2012-04-13 14:26 -
Error: A newer version of data type was found than one required
Hi Experts,
we made a changes to a table and then transported the table to the quality system. But a program which is referring to this table, results in dump with the below error message.
Error Message>>>>>>>>>>" A newer version of data type <TABLE> was found than one required "
The issue occures inspite of
1. re-activated the table and send to quality system
2. Re-activated the program
3. Activated and adjusted database in SE14.
Please let me know the correction to be taken to resolve the issue.
Regards
Suresh KumarThis happens when you modify your new data element, domain while another program is currently using it.
Simply get out completely of the program, re activate the program, reactivate the table. You might need to run se14 to convert the database table but this does not happen frequently. Try first to reactivate the program
Dean
Edited by: Dean Ton on Mar 8, 2012 9:54 PM
Edited by: Dean Ton on Mar 8, 2012 9:56 PM -
How to create longtext or blob data types in SQL using labview
Hello,
I am fairly new to SQL, and I'm using the labview database connectivity toolset. Using labview 6.1
I am using the DB Tools Create Table vi to create my tables. I want the tables to hold 1000 character strings. But the longest string that I can insert seem to be 255 characters. I think It is a limitation of the "String" data type in SQL so I need to use text or blob types. The problem is I created a control for the "Column Information" field and I see the following selections for the data type. (String, Long, Single, Double, date/time, binary). I dont see any selection for text or blobs. How do I define another data type that is not part of the selection in the control?
Thanks for any help.I don't know about defining long text, but the equivalent of a BLOB should be the binary data type, which just holds the data you put into it without formatting it.
Try to take over the world! -
Error ORA-01426: numeric overflow when Creating table with double data type
Hi,
I am using ODP.NET to create a table with data from SQL to Oracle. The problem is with double data type fields that is equivalent to FLOAT(49) in Oracle. My syntax is:
CREATE TABLE SCOTT.ALLTYPES
F1 NUMBER(10),
F10 DATE,
F2 NUMBER(10),
F3 NUMBER(5),
F4 NUMBER(3),
F5 FLOAT(23),
F6 FLOAT(49),
F7 NUMBER (38,5),
F8 NVARCHAR2(500),
F9 NVARCHAR2(500)
Th error is with field F6 but I am not sure what is the correct type equivalent to double in SQL.
I woul appreciate if anyone can help me with this problem.
SunnyDoes this simple test work for you?
In database:
create table float_test
f1 float(49)
);C# code:
using System;
using System.Data;
using System.Text;
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
namespace FloatTest
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
// connect to local db using o/s authenticated account
OracleConnection con = new OracleConnection("User Id=/");
con.Open();
// will hold the value to insert
StringBuilder sbValue = new StringBuilder();
// create a string of 49 number 9's
for (int i = 0; i < 49; i++)
sbValue.Append("9");
// command object to perform the insert
OracleCommand cmd = con.CreateCommand();
cmd.CommandText = "insert into float_test values (:1)";
// bind variable for the value to be inserted
OracleParameter p_value = new OracleParameter();
p_value.OracleDbType = OracleDbType.Double;
p_value.Value = Convert.ToDouble(sbValue.ToString());
// add parameter to collection
cmd.Parameters.Add(p_value);
// execute the insert operation
cmd.ExecuteNonQuery();
// clean up
p_value.Dispose();
cmd.Dispose();
con.Dispose();
}SQL*Plus after executing above code:
SQL> select * from float_test;
F1
1.0000E+49
1 row selected.- Mark -
Problem with data type 'STRING'
Hi All,
I have created a table named as zproject_mat and there is a field 'LONG_D' for long description and its size is not limited, so i used 'STRING' data type for this field. But the problem is: when i use this field in where condition with 'SELECT QUERY' in my abap program , it throws me an error..'The field long_d is a long string , so it cannot be used in WHERE, ON, or having conditions'.
Can anyone help me regarding this. I dont know which data type will be suitable in both conditions, LONG DESC AND SELECT QUERY.
Regards
RahulHi Rahul,
As mentioned your Table name is 'zproject_mat' and there is a field 'LONG_D'.
The field 'LONG_D' will have a Data Element associated with it. Create a new input Data Element & Domain 'ZLONG' of Type CHAR with Length = 1100. This will used in the code.
For the Table 'zproject_mat', you need to need to break up your field as 'LONG_D1', 'LONG_D2', ........, 'LONG_D5' with Data Element as 'BAPI_MSG'.
To INSERT data in table:
In your code, you need to write your logic where the field 'LONG_D' is SPLIT into 5 words and saved in your table against the 5 fields.
To SELECT data from table:
In your code, again you need to write your logic where the field 'LONG_D' is SPLIT into 5 words as abaove and pass them to your SELECT query...
SELECT SINGLE *
FROM zproject_mat
INTO wa_zproject_mat
WHERE long_d1 = v_split1
AND long_d2 = v_split2........
AND long_d3 = v_split3.
The limitation of a table length is 4096 whereas of a field is 255 to make it RFC compatible. Table/Structure fields that are passed via RFC for integration have this limitation and to maintain database standards, these limitations exist.
Hope this helps.
Regards,
Pranav. -
Issue with creating array of custom data type - WebLogic Integration
Hi,
We are doing WebLogic integration with Siebel for which from Siebel side we have generated java wrapper class which has all the methods, input\outputs defined and in\out params are serialized along with get\set methods. Following are the details of the input\output args.
Account_EMRIO.java
public class Account_EMRIO implements Serializable, Cloneable, SiebelHierarchy {
protected String fIntObjectFormat = null;
protected String fMessageType = "Integration Object";
protected String fMessageId = null;
protected String fIntObjectName = "Account_EMR";
protected String fOutputIntObjectName = "Account_EMR";
protected ArrayList <AccountIC> fintObjInst = null;
Above class also includes constructors\overloaded constructor\getters\setters
public AccountIC getfintObjInst() {
if(fintObjInst != null) {
return (AccountIC)fintObjInst.clone();
}else{
return null;
public void setfintObjInst(AccountIC val) {
if(val != null) {
if(fintObjInst == null) {
fintObjInst = new ArrayList<AccountIC>();
fintObjInst.add(val);
For the nested user defined data type AccountIC, it is defined in another java class as below
AccountIC.java
public class AccountIC implements Serializable, Cloneable, SiebelHierarchy {
protected String fname = null;
protected String fParent_Account_Id= null;
protected String fPrimary_Organization = null;
With the above, I was able to get all the AccountIC in the wsdl correctly and using this I was able to set the input param in the client
WSDL:
<xs:complexType name="accountEMRIO">
<xs:sequence>
<xs:element name="fIntObjectFormat" type="xs:string" minOccurs="0"/>
<xs:element name="fIntObjectName" type="xs:string" minOccurs="0"/>
<xs:element name="fMessageId" type="xs:string" minOccurs="0"/>
<xs:element name="fMessageType" type="xs:string" minOccurs="0"/>
<xs:element name="fOutputIntObjectName" type="xs:string" minOccurs="0"/>
<xs:element name="fintObjInst" type="tns:accountIC" minOccurs="0"/>
</xs:sequence>
<xs:complexType name="accountIC">
<xs:sequence>
<xs:element name="fName" type="xs:string" minOccurs="0"/>
<xs:element name="fParent_Account_Id" type="xs:string" minOccurs="0"/>
<xs:element name="fPrimary_Organization" type="xs:string" minOccurs="0"/>
minOccurs="0"/>
</xs:sequence>
</xs:complexType>
Now, I wanted to make slight difference in getter method of class Account_EMRIO method getfintObjInst so that an array of AccountIC is retured as output.
public ArrayList<AccountIC> getfintObjInst() {
if(fintObjInst != null) {
return (ArrayList<AccountIC>)fintObjInst.clone();
}else{
return null;
With the above change, once the wsdl is generated, I am no longer getting fintObjInst field for AccountIC due to which I am unable to get the array list of accountIC
WSDL:
<xs:complexType name="accountEMRIO">
<xs:sequence>
<xs:element name="fIntObjectFormat" type="xs:string" minOccurs="0"/>
<xs:element name="fIntObjectName" type="xs:string" minOccurs="0"/>
<xs:element name="fMessageId" type="xs:string" minOccurs="0"/>
<xs:element name="fMessageType" type="xs:string" minOccurs="0"/>
<xs:element name="fOutputIntObjectName" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
The issue that I am facing here is, we have a custom data type(AccountIC) which has several fields in it. In the output I need a array of AccountIC. In the java bean, when this type was defined as
protected ArrayList <AccountIC> fintObjInst = null; I was unable to get a array of AccountIC. this gets complicated as inside a AccountIC there is array of contacts as well and all the time I am getting just the first records and not a array.
To summarize: How to get xsd:list or maxoccurs property for a field in WSDL for the user defined\custom datatype?
Can someone help me with this.
Thanks,
Sudha.can someone help with this??
-
How to create new group for material type
Hello all experts,
Im unable to create a new group for materials types, diff groups for FG and raw materials material type??
Could you pls help ??
Thanks in advance.Hi
When you create a new material you have to specify the material types like finished goods or raw material like that in the initial screen
For this new material types can be defined in
SPRO -> Logistic - General -> Material Master -> Basic Settings -> Material Type ->Define attribute of material Type
T code OMS2
After specifying the material type and giving organizational data like plant, storage location,sales org etc we go on to create the material
In one of the tabs the material groups should be specified and from MM point of view it is a reqd entry
this can be defined in
Define Material Group
SPRO -> Logistic - General -> Material Master -> Setting for Key Field -> Define Material Group
T .Code: OMSF
I beleive this is what you are asking about
Regards
Raja -
Pl/sql Procedure is Not Creating With the CLOB data Type
Hi,
I am Using Oracle 10g Express Edition Release2.... My Doubt is While creating a table With CLOB Data Type the table is created successfully,but while Creating a Procedure With the CLOB Data type i am getting an Error Message
2667/5 PL/SQL: Statement ignored
2667/24 PLS-00382: expression is of wrong type
then i tried With the Varchar2(30000) the Procedure is Created Successfully note i have not changed any thing in my code except the data type.
I am Just Confused ......Why the Procedure is not Created with CLOB Data type?
Please advice ...
Thank U
SHANhi,
Thanks for reply....Another Example
CREATE TABLE USER_MAS (USER_ID VARCHAR2 (20 Byte),MAIL_ID VARCHAR2 (255 Byte));
set serveroutput on
declare
atable varchar2(64) := 'USER_MAS';
acolumn varchar2(64) := 'MAIL_ID';
avalue varchar2(64) := 'NEWYORK' ;
dyn_sql clob;
begin
dyn_sql := 'update '||atable||' set '||acolumn||' = '''||avalue|| '''' ;
dbms_output.put_line(dyn_sql);
execute immediate dyn_sql;
end;
commit ;
Error at line 2
ORA-06550: line 9, column 23:
PLS-00382: expression is of wrong type
ORA-06550: line 9, column 5:
PL/SQL: Statement ignored
When i Changed the Data type to varchar2(64)
update USER_MAS set MAIL_ID = 'NEWYORK'
PL/SQL procedure successfully completed.
Commit complete.
I like to Know the Reason Why the Procedure is Not Created in Oracle 10g XE DB
Note :the Same Script i used in 11g DB the Procedure is Created Successfully....
Why you need use CLOB or VARCHAR2 in your temp_num variable as you sending parameters as number?
In the Procedure we are create some run time queries while executing the procedure. There are around 10 run time queries created.
The size of each query is more than 4000 characters . We then add all the queries using union all after each query to the clob variable as the normal varchar will not support.
Please Advice
Thank U
SHAN -
Dump-A newer version of data type "ZMNFLOCK" was found than one required
Hi,
I am getting dump in program when there is a select query on ZMNFLOCK table.
Error analsys is given as
Error analysis
The data type "ZMNFLOCK" was loaded from the database during the program run.
However, a type of a newer version than the one requried was found here.
What could be the problem? my BASIS person says this is somewhere related to ABAP.
should i Adjust & Activate database by going to SE14 for ZMNFLOCK table.
Also noted that error is random in nature and its not coming everytime.Hi,
There could be an issue with in the table, As Dataelement or domain related to any field in table may have changed, And that field is not getting used aal the time, That's why Dump is coming randomly.
The best possible solution is to Activate and adjust database table through SE14, This will update table with all the updated versions.
Thanks
Saurabh Siwach -
Create Tabel having LONG Data Type
HI Team,
I want to create table but for table i have 2 LONG data type is throwing error message please give the lightJustinCave wrote:
1) When you're getting an error, it's always helpful to include the error. Otherwise, we have to guess. And if we guess wrong, our answers will be incorrect and we'll waste everyone's time. Including the Oracle version is also useful.
2) Why, oh why would you want to use the LONG data type? That type has been depricated since 9.0.1. It was replaced by the CLOB data type (assuming you are storing large amounts of character data-- BLOB would be the replacement for LONG RAW columns). Data in a LONG is terribly difficult to work with in PL/SQL.
3) My recollection is that one of the (many, many, many) restrictions on a LONG is that you can only have 1 per table. I'm guessing that is the error you're getting (though if you post the error, I wouldn't have to guess).
Justin
Even oracle should probably re-consider its data dictionary views not to use long datatype.
e.g. Does not look perfect when you see LONG datatype for TEXT column in dba_views/all_views/user_views and that too in latest version Oracle 12c
Cheers,
Manik.
Maybe you are looking for
-
Raw by raw contitional link in interactive report
hi all, i need an I.R. to show, or not, in a column always visible a link to another page. For example, i want an IR to show a list of records and some of these (not all) could be modified. So i need a column with dynamic content where to put a link
-
Hi all, when a create a SQL Server Project using "File > New ...", I find the following settings defaulted: SQL Server is (local)\Version12.0 and DefaultDataPath, DefaultFileprefix and the DefaultFilename(s) for MDFs and LDFs point to the Project dir
-
Dequeue from multi consumer queue table
Hi, Even after all consumers I created have dequeued the messages (in REMOVE mode), they just didn't go from the queue table. Although my application works fine (the messages could no longer be dequeued again), I am afraid this will affect performanc
-
HT3529 I changed my phone number how do I get iMessage to send new num not old one
How do you change number on iMessage after changing to new number
-
Third Party as Plant (Manfacturing Unit).
Dear Experst, Now we are implementing SAP for our client, Our client have total Business proces i.e., from Manfacturing to till its reach to end user. But our client is asking now, their Manfacturing Unit make as a Total Third party, for manfacturing