INTERMEDIA VIR - ORDIMAGE TYPE에 저장된 DATA크기 구하는 방법
제품 : ORACLE SERVER
작성날짜 : 2002-04-12
INTERMEDIA VIR - ORDIMAGE TYPE에 저장된 DATA크기 구하는 방법============================================================
Purpose
Intermedia vir 에서 ORDIMAGE type에 저장된 data size를 구해보자.
Explanation
Oracle 8.1.5 이상에서 사용하는 ORDImage type에 저장되어 있는
Image의 크기를 구하려면 getContentLength Method 를 이용하여
가능하다.
getContentLength Method는 실제 데이타에 대한 크기값만 정수로
return해 준다. 아래 예제를 참고해 보자.
Example
emp table에 저장된 ORDImage type data의 크기를 구한다.
set serveroutput on
DECLARE
Image ORDSYS.ORDImage;
ContentLength INTEGER;
BEGIN
SELECT large_photo INTO Image FROM emp
WHERE ename = 'John Doe';
-- get the image size
ContentLength := Image.getContentLength;
dbms_output.put_line('Image Size = '||ContentLength);
END;
/
Similar Messages
-
Intermedia ORDIMAGE type in Portal
I have a table which has Intermedia ORDIMAGE type. It stores employees pictures. Is there a way in Oracle Portal to show this field in a report, or dynamic page?
I have got a portal form to successfully insert and query intermedia images.
I also want to do this EMBEDDED (not as a link) within a Portal Report. So far, the only way I have managed to do this is via Report from Query Wizard option AND not choose Custom as the layout tab. This seems to be only way that allows me to choose in the Display Options whether I want to "embed Rich Intermedia Content in Report" or not.
How can I do this in a custom layout? Is there any way to do this? -
Error while setting a value into an UDF of type date
Hello,
i get the following error while trying to set a value to an udf with the type "date":
Exception from Server: RPC_E_SERVERFAULT
This code is used:
objDate = CDate(objLineRecordSet.Fields.Item("U_TESTDATE").Value)
objDocument.Lines.UserFields.Fields.Item("U_ACTDATE").Value = objDate '### Here comes the error
The application is in PL 29Christian,
If you search this forum on "date UDF" you will find many posts that may assist you such as this one ...
Format of string passed to Date/Time Hour UDF
HTH,
Eddy -
If a class method exporting a value with the generic type 'data'.
Then how can I get the information?
For exmple.
cl_my_clss->get_value( exporting ev_data = .... ) .
ev_data is a type of data.
I can not use DATA : lv_mine type data. because generic data should be used in formal parameter, however , if I use a field symbol, how to assign value with out knowing the data type?
Best regards,Hi Blake,
As per my understanding,
You are getting the data type from the database table....
You want to use the same data type....
Lets say for example:
You have a db table x with field y having data type Z.
What you do is that, while declaring the data type for the attribute in the method use the reference as table_name-field_name(x-y).
Or....
use ANY. This will give you a chance to map any field type to this method....
Note: Using ANY will limit the syntax that you can use within the method......
Regards,
Kunjal -
Handle null value in char infoobject -data type DATE(ora-01722 invalid num)
Hi,
We have a DSO with a info object in the Data fields. The char info object has the data type DATE and most often it has the null value. but some times it has data in it.
When ever we were trying to run a report on the DSO it throws a error as ORA- 01722 INVALID NUMBER.
we tried editing PSA data and placing 00000000 for null values - and had a message invalid date.
suggestions pls
Regards.Hello,
Please check the note given below
https://service.sap.com/sap/support/notes/1327167.
If null value is the problem, change the query setting for not to show the null values. Just add a filter in ZDAT to exclude "NULL"
Thanks
Nidhi -
Bursting 2 Oracle BI Analysis type Data Set
Hi
We have 2 Oracle BI Analysis type Data Set.We are able to burst but in the email we just recieve only email attachement with only header(only column headings) ( in
excel/pdf output without any data.
But when we import the report xml and load into xml into template we are able to preview data in excel or PDF format.
Could you Please answer as soon as possible
Thanks
Niteshedit BI Analysis and remove any FILTER USING etc... save analysis and then try in BIP to add the BI Analysis data set.
-
How can I use a variable in BEx of type date ?
Hello,
I have an infoprovider with a key figure of type "date" and I want to display for example all the data where the date is lower than a date entered by the user.
So I want to create for that a date variable and use it in conditions.
When I try with "manual entry", I can't get the type "date" : it proposes quantity, amount, number but not date.
When I try with "customer exit", I can get the type "date" but when I get it on the selection screen, the date is seen as a number so it doesn't work.
Does anybody have an idea.
Thanks for your help.
Regards,
Vanessa RoulierHi!
if you are using a cube then there will be at least one time char. I think you can just add 0calday to your cube , even if you are not filling it.
Once this is available in cube it can be used in query (free chars) where we can define a variable on this 0calday. But we it will not have any effect on query results as you are not storing anything in your query.
then in your conditions you create a variable with USEREXIT type. then in your ABAP code you can access the value stored in variable(which is entered by user) and copy it to the USEREXIT variable. Then your condition works because it is having a date type and the value is date.
I don't see any problem in implementing this scenario.
with regards
ashwin -
Conversion from string "20041023 " to type 'Date' is not valid.
Hi ,
I have a table with one of the column(EmpHiredate) datatype is char(10). It has value like "20141023". I need to display this value as date format(dd/mm/yyyy) in report.
Following methods i tried in textbox expression but no luck.
=Format(Fields!EmpHireDate.Value,"dd/MM/yyyy")
=Cdate(Fields!EmpHireDate.Value)
Error:
[rsRuntimeErrorInExpression] The Value expression for the textrun ‘EmpHireDate.Paragraphs[0].TextRuns[0]’ contains an error: Conversion from string "20041023 " to type 'Date' is not valid.
Is it possible to convert string to date using SSRS textbox expression ? Can anyone help me with the solution.
Thanks,
KittuHi Jmcmullen,
Found one more issue on the same. I have one value like "00000000" for the column(EmpHiredate)
, when i use above expression values(ex:"20141023")
are displaying in dd/MM/yyyy format in report except value like "00000000" and giving following error:
[rsRuntimeErrorInExpression] The Value expression for the textrun ‘EmpHireDate.Paragraphs[0].TextRuns[0]’ contains an error: Conversion from string "0000/00/00" to type 'Date' is not valid.
Even i tried to pass its original value("00000000") as below but no luck.
=IIF(Fields!EmpHireDate.Value = "00000000","00000000",Format(CDATE(MID(Fields!EmpHireDate.Value,1,4) + "/" + MID(Fields!EmpHireDate.Value,5,2) + "/" + MID(Fields!EmpHireDate.Value,7,2)),"dd/MM/yyyy"))
Also tried this:
=IIF(Fields!EmpHireDate.Value = "00000000","2000/10/21",Format(CDATE(MID(Fields!EmpHireDate.Value,1,4) + "/" + MID(Fields!EmpHireDate.Value,5,2) + "/" + MID(Fields!EmpHireDate.Value,7,2)),"dd/MM/yyyy"))
Please Suggest.
Thanks ,
Kittu -
MDM JAVA API to enter value into field of type date
Hi All,
I am having an input field in a typical Dynpro application where a date would be entered.I want to enter the date in my MDM table in a field of type "Date".Do you have any idea about MDM JAVA API's I need to do this.Also how can I do this ?
Thanks
VinayHi,
Web Dynpro shall return you a type Date field. For Value, you shall have to pass SystemTime Object.
Just get the substring of Date.toString() and convert them to Integer ..
So a typical date would look like yyyy-mm-dd (eg: 2006-10-19) and not yyyymmdd.
SystemTime st = new SystemTime();
st.setYear( Integer.parseInt(Date.toString().substring(0,4));
st.setMonth ( Integer.parseInt(Date.toString().substring(5,7));
st.setDate ( Integer.parseInt(Date.toString().substring(8,10));
A2iField date = new A2iField("fieldname", new Value(st));
Hope that helps..
Regards,
Tanveer.
<b>Please mark helpful answers</b>
Note: The above mentioned code is not pasted from any editor..So might contain syntax error.. -
Insert a value of type Date/Time into a database
I am trying to insert a value of type date time into an access database. What is the format needed to insert the date/time.
Thanks,
-AmosI had all kinds of problems getting a datetime inserted into a SQl Server DB. Probably similar so this is what I do:
String date = new String("01/01/97 12:00:00");
stmt.setObject(1, date);
I tried using TimeStamp's but found I got an occasional Fractional Truncation exception back from the driver. Never had a problem inserting a String using the setObject() method though.
Hope this helps -
Issue with Data type 'Date' in Hyperion Planning V11.1.2.2
Hi,
I have created members with data type date. However when I save the date, it either disappears or comes up with a random date? Has any one come across this kind of problem before?
If so can you share the fix.
Thanks in advance for your help.
Cheers,
XXXHi
This problem is linked to you not having a consistent setting for your date input type.
So, go to application administration and set the date format to MM/DD/YYYY in application settings and display options, under current application defaults. Then after you have done this as a user go to User Preferences and display options and on the date format select the same. Or remove the Automatically detect.
I have seen this behaviour if you have Automatically Detect on the user preferences
Thanks
Anthony -
Hi All,
following piece of code was working fine in 4.6 C but in ECC 6.0 I get the following error:
" "END_OF_RECORD" must be a character-type data object (data type C, N,D, T or STRING) . "
I tried type-casting with field symbols but still not able to remove the error. Cannot convert end_of_record directly to type C as it may hamper the functionality. Plz advice how to remove the error without converting type x to type C
In the following code :
DATA: DELIMITER TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB,
end_of_record TYPE x.
SPLIT data_file_i AT delimiter INTO it_ekko-rtype
it_ekko-ebeln
it_ekko-bsart
it_ekko-lifnr
it_ekko-bedat
it_ekko-ekorg
it_ekko-ekgrp
it_ekko-bukrs
it_ekko-zterm
it_ekko-zbd1t
it_ekko-zbd1p
it_ekko-zbd2t
it_ekko-zbd2p
it_ekko-zbd3t
it_ekko-inco1
it_ekko-inco2
it_ekko-waers
it_ekko-wkurs
it_ekko-kufix
it_ekko-verkf
it_ekko-telf1
it_ekko-ihrez
it_ekko-unsez
it_ekko-angnr
it_ekko-ihran
it_ekko-submi
it_ekko-loekz
end_of_record.
where all these fields except " end_of_record " are of character type and "data_file_i " is a character type structure as defined below:
DATA :
BEGIN OF data_file_i OCCURS 0,
record(1000),
END OF data_file_i,Type X is not allowed in Unicode. When a field is declared as Type X with Value u201809u2019 or any other value, it can be resolved by using classes.
Before Unicode
CONSTANTS: c_hex TYPE x VALUE '09'.
Resolution:
Itu2019s work for any value of x.
First a temporary field of Type c should declare. Following class will convert Type x variable into type c.
Example:
CONSTANTS: c_hex TYPE x VALUE '09'.
DATA: LV_TEMP TYPE STRING.
DATA: LV_TMP TYPE C.
TRY.
CALL METHOD CL_ABAP_CONV_IN_CE=>UCCP
EXPORTING
UCCP = c_hex
RECEIVING
CHAR = LV_TMP .
CATCH CX_SY_CONVERSION_CODEPAGE.
CATCH CX_PARAMETER_INVALID_TYPE.
CATCH CX_SY_CODEPAGE_CONVERTER_INIT.
ENDTRY.
CONCATENATE I_OUTPUT-BKTXT I_OUTPUT-BVORG
I_OUTPUT-BUDAT I_OUTPUT-MESSAGE INTO
SEPARATED BY LV_TMP.
I_BUFFER = LV_TEMP.
CLEAR LV_TEMP.
CLEAR LV_TMP.
OR
Note: It works only for type x value 09.
CLASS cl_abap_char_utilities DEFINITION LOAD.
CONSTANTS: c_hex TYPE c VALUE
abap_char_utilities=>HORIZONTAL_TAB. -
Mapping of PLSQL table type Date to java
i am having problem in mapping plsql table type DATE in java,
able to execute procedures which return plsql table type NUMBER,VARCHAR.
i am using oracle 9 , jdk1.4, oci driver, windows 2000.
sample code:
registering:
st.registerIndexTableOutParameter(15,100,OracleTypes.DATE,1000);
st.registerIndexTableOutParameter(16,100,OracleTypes.DATE,1000);
st.execute();
getting out params in arrays:
java.sql.Date[] O_lSubFolder_CrOn=(java.sql.Date[])java.sql.Date[] st.getPlsqlIndexTable(15);
O_lSubFolder_MdOn=(java.sql.Date[])st.getPlsqlIndexTable(16);
error while executing the code:
java.sql.SQLException: Invalid PL/SQL Index Table element type
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:285)
at oracle.jdbc.driver.OraclePreparedStatement.checkPlsqlIndexTableBindTypes(OraclePreparedSt
atement.java:2705)
at oracle.jdbc.driver.OracleCallableStatement.registerIndexTableOutParameter(OracleCallableS
tatement.java:834)
can anyone help me to solve this problem.i am having problem in mapping plsql table type
DATE in java,
able to execute procedures which return plsql table
type NUMBER,VARCHAR.
i am using oracle 9 , jdk1.4, oci driver, windows
2000.
sample code:
registering:
st.registerIndexTableOutParameter(15,100,OracleTypes.D
TE,1000);
st.registerIndexTableOutParameter(16,100,OracleTypes.D
TE,1000);
st.execute();
getting out params in arrays:
java.sql.Date[]
O_lSubFolder_CrOn=(java.sql.Date[])java.sql.Date[]
st.getPlsqlIndexTable(15);
O_lSubFolder_MdOn=(java.sql.Date[])st.getPlsqlIndexTab
e(16);
can anyone help me to solve this problem.1. Write a wrapper procedure that converts the table of dates to either number or date and then re-convert the table back into date.
2. Since it's an out param you could create a temp table, insert the contents of the index by array into it and return a cursor.
3. Create a oracle type using CREATE TYPE and then use an array of the type.
David Rolfe
Orinda Software -
EasyDMS - search by date range for characteristics of type date
Hi Folks,
I have a characteristic of type date in the additional data of a DMS document. If I enter the date (for example validity date) as 08/31/2009 and search using cv04n and give a date range for the characteristic (i.e. 01/01/2009 - 12/31/2009), the search result will bring up the document.
However, I cannot do this from the EasyDMS find function. I need to specify an exact date. This is not very helpful for user who need to find documents with a validity date between 01/01/2009 - 12/31/2009 for example. Is there a way users can search for date range in EasyDMS find function?
Thanks,
LashanTo search a date range with EasyDMS Client you have to set the registry key
\HKEY_CURRENT_USER\Software\SAP\EasyDms\Generel\DateSearchPick to Value 0
Then you can use the input field like in SAP-Gui. (01.01.2009-31.01.2009)
If you set the value to 1 or the key is not defined you can only search for one specified date.
If you don't find this key on your PC create it as dword.
Maybe you must restart you PC for takeing effect.
Hope this will help you.
Regards Wolfgang -
How to change heading text for parameter field of type date
Hi,
After creating a parameter field with the type " Date Time" when I open the report for entering the parameter then it displays the given parameter with the following text:
" Please enter Date in format "yyyy-mm-dd". "
I want to change it to some other text like as:
" You have to enter the date and time in format yyyy-mm-dd . "
Is there any way by which I can change this given header to some other text.
Let me know if anyone needs some more information in this regard so as to solve my given query soon.Hi Garrett,
Well first of all I can change only the prompt text that is user defined. I cannot change any parameter as of now whose type is let suppose Date. Since in this case the Business Object itself shows the text which is something like this " Please enter Date in format "yyyy-mm-dd". " .
Here I want to change this given text to some other format like " You have to enter the date in the format yyyy-mm-dd" or in any other manner.
Also the current Crystal Report version which I am using is 11.0.0.1282.
Maybe you are looking for
-
How can I use two different ToolTipUIs?
Hi, I want to use two different ToolTipUIs depending (in my case) on the JRadioButton that the Cursor is hovering over. For some JRadioButtons, I want to use the default ToolTipUI, and for others I wish to display a large amount of text over multiple
-
I bought my Mac Book Pro on 4th July with Mac OS X Lion Version 10.7.4. How can I get the new Mac OS Mountain Lion?
-
STEP BY STEP PROCESS TO IMPLEMENT BW IN A SAP - R3 ENVIRONMENT
Hai experts!!!, An organisation is running on SAP for the past 3 years, it is planning to implement SAP-BW. what are all the steps for implementing this process. Thanks in advance. Regards, Giri
-
only had my imac for 2 days so still learning. I have imported my photo collection of 5500 photo into my Pictures they come to about 9gb. Got them into Iphoto no problem but i now see a file called Iphoto Libary and that is about 9gb is size as well.
-
Can I use a WRT546 V8 Wireless Router in combination with Vonage?
Please bear with me if this turns out to be a simple question with a simple answer; I'm challenged when it comes to these things. I use Vonage, with a Motorola VT2442-VD router. That's connected to my desktop but I also have a Dell laptop (with Windo