Need to determine data type of free characteristic in multiprovider
Hi,
I need to determine the data type (e.g. numeric vs alpha numberic) of a free characteristic in a multiprovider. Can this be accomplished in BEx Query Designer?
If not, can it be accomplished in RSA1? How?
Thanks,
Kevin
its not possible via Query designer..
give that object name if it is infoobject then you can get via RSD1
Similar Messages
-
Hi all,
I've got procedure for inserting data into value1 column of table1.
My need is to determine data type entered by user.
If data type is not number then user should receive error.
How do I perform it?The easiest and most reliable way would be to declare the formal parameter as a number like:
SQL> create procedure p (p_num in number) as
2 begin
3 null;
4 end;
5 /
Procedure created.
SQL> exec p('a');
BEGIN p('a'); END;
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character to number conversion error
ORA-06512: at line 1If you cannot do that, or want to be more "user friendly", then the only alternative is to test it and raise an error like:
SQL> create procedure p (p_str in varchar2) is
2 l_num number;
3 begin
4 l_num := to_number(p_str);
5 exception
6 when value_error then
7 raise_application_error(-20001, 'I know I said it was a string, but I really want a number');
8 end;
9 /
Procedure created.
SQL> exec p('a');
BEGIN p('a'); END;
ERROR at line 1:
ORA-20001: I know I said it was a string, but I really want a number
ORA-06512: at "OPS$ORACLE.P", line 7
ORA-06512: at line 1John -
How to determine data type of cell in Excel file
I have a company standard Excel file that needs to be read to determine what tests to run. I have no control over its format. I need to be able to tell what the data type is in order to read it using the LabView sample code. It is a hodge poge of numbers and strings. Some of the numeric fields are formated as hex while some are floating point. There does not appear to be a vi that I can call to determine info about the cell formating. As I remember it, the Windows Active X control for accessing Excel support that. I really was hoping to avoid dealing with the Active X control for Excel directly.
Any help/ideas?
Outputting it in CSV or similar is not an option.
Solved!
Go to Solution.If you have to deal with Excel directly, I don't see how you're going to get around using Active X.
MSDN page on using ActiveX -
How do determine data type?
I am trying to write my own binary file saver and I need to list the data type in the custom header. How do you do this in labview?
kameronrausch wrote:
The data acquistion spits out data in several different formats so a priori, I do not know the data type. It can be either a 32-unsigned int, 16-bit unsigned int, 8-bit unsigned int or the signed version of each one of these. To make the program general purpose however, I would like to incorporate floating point data points as well.
At some point you have to know what the data type is before start collecting data. If all you have is a stream of bits there is no way to determine what the data type is. What controls how the data acquistion is getting its data? If it is test specific you could use an external configuration file to store this and use that to determine how the data should be interpreted. If you have arrays of specificdata types you could use a polymorphic VI for your data writes. Based on teh wire type of the input the appropriate VI would be called. How is your data being passed from your data acquistion to the VI that will write it to a file?
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot -
Need Help with data type conversion
Hello People,
I am new to java, i need some help with data type conversion:
I have variable(string) storing IP Address
IPAddr="10.10.103.10"
I have to call a library function which passes IP Address and does something and returns me a value.
The problem I have is that external function call in this library excepts IP Address in form of a byte array.
Here is the syntax for the function I am calling through my program
int createDevice (byte[] ipAddress).
now my problem is I don't know how to convert the string IPAddr variable into a byte[] ipAddress to pass it through method.Class InetAddress has a method
byte[] getAddress() You can create an instance using the static method getByName() providing the IP address string as argument. -
Determining data type of existing column in table
Hi
I've done some googling on this, and I know I've done it before, but i cant find/remember how to determine the data type of a column in an existing table..... i tried select dump(column_name) from table but it didnt work.
any suggestions?
Thanks in advanceHi try this
SQL> select data_type from user_tab_columns
2 where COLUMN_NAME='EMPNO'
3 and table_name='EMP';
DATA_TYPE
NUMBER -
Need to know data type which could take the result of - data TYPE RAW.
Hello,
I have the following Req:
I need to make a RFC call from one SAP system to SAP Banking Services system to retrieve Contract ID.
But the field contract id happens to be of TYPE RAW. (16 characters)
So my problem is - I need to know the data type could take the result (contract id) of that RFC call.
As the declration -> data: v_con_id Type RAW --> isn't a valid syntax.
Please help in this regard.
Thanks
AnoopHi
Check this link for RAW data type
http://help.sap.com/saphelp_46c/helpdata/en/9d/ab1b0f055b11d2806500c04fadbaa1/content.htm
As you have mentioned about the declration ->
data: v_con_id Type RAW --> isn't a valid syntax.
lets try another one assign a variable to RAW data TYPE and inturn assign v_con_id to that variable.
var_raw(16) type RAW,
v_con_id type var_raw(16).
I am though not sure just try out
Revert for clarification
Thanks and Regards
Srikanth.P -
Determine data type of string field
I am trying to determine the data type of input strings in a data flow task. For each column in the input (all of which are strings) I want to sample X number of records, try to cast them as money, date, boolean, etc and if 100% of X records pass then
use the first data type that passes the test. I looked into row sample but this doesn't appear to be the right data flow task. Can anyone point me in the right direction?
Thanks!You have two tasks: find the datatype by looking at X rows; cast all rows to the popular datatype.
What I use is the TryParse method that occurs on several datatypes in .Net (http://msdn.microsoft.com/en-us/library/f02979c7(v=vs.110).aspx). It returns true if it parses
and false if it doesn't. I have used this in a profiling package that reads a CSV and stores counts of values that can be converted to different datatypes.
The second piece is trickier. If you can afford, I would add a second dataflow. The first dataflow looks at a sample of the data and determines the datatype. You assign that to a variable. Then the second one has a derived column that has
a set of derived columns, each with a formula like this:
@DataType == "Int"?(DT_I4)[Column]:NULL(DT_I4)
Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com -
Hi :
I am developing a applicaition in apex i have a reqirement like this i have created a check box, Check box will normally have check and uncheck values which is like 0 and 1
now i need to create a table to hold these values if i check it must hold 1 if i uncheck it must hold 0 to the data base
how to design a table with suitable data type to this please suggest
Please give me both create table and how to insert into table also
:p16_check is the check box item
I tryed like this but this didnt work to me
Create table Check // Createa table syntax
Board Number(2)
Insert into Check (Board) values (:p16_check) // Insert table Syntax
Thanks
SudhirThis is really an Apex question for the Oracle Application Express (APEX).
There's nothing wrong with storing 0, 1 in your NUMBER(2) column (a NUMBER(1) would do). In the Apex form you need to define the properties of the checkbox to say what values represent checked and not checked (by default I think it is Y and N, which won't work with your number).
Regards Nigel -
Advice needed for using date type in leave quota generation.
Requirement: Seniority for quota generation of long service leave must be based on date "02" in IT0041.
Although all the relevant config has been done using the date type 02, the quota is still being generated based on date type 01.
My Question: What is required to make this scenario work?
Thanks
Maureen.Validity/Deduction
Validity: Valid From = Date type 02 -1Days; Valid To = Date Type 02 999Months
Deduction: From = Start of Val +1Day, To = End of Val +999 Months
Base Entitlement:
Rule: 002
Sequence 001; Seniority = 0 - 5 years; Constant= 5 days; Related to = Accrual period
Sequence 002; Seniority = 5 - 999 years; Constant=10 days; Related to = Accrual period
Selection Rules:
Applicability: default values
Accrual Period: Rel to date type = 02; Length = 60 Months
Base Entitlement: Rule = 002; Key for seniority = For exact day
Accrual Entitlement: No pro-rata calc
Transfer time: Upon accrual
All fields not mentioned are standard defaults.
Employee:
IT0041
Date Type 01 = 01/09/2005
Date Type 02 = 06/04/1995
IT0000
Current position: Begda: 01/02/2009 - 31/12/9999
Previous position: Begda: 01/03/2008 = 31/01/2009
Testing by running Time Evaluation till 31/09/2012
Result:
5 days accrued on 05/04/2010
IT2006: Deduction from = 06/04/2009 To 31/12/9999; Validity from = 05/04/2009 To 31/12/9999
Please note I've used different dates in an attempt to clearly illustrate the problem. Hope it doesn't serve to confuse.
Thanks for the help. -
Need a generic data type to hold any string
Hi,
I m trying to write a program which can log data from any table into a Trace Z table.
I have used
FIELD-SYMBOLS: <line>.
to get the line of that table. But now I want to dynamically know what are the field names of this line structure and the data in it. And then write it as a string to the trace Z table
form log_table_data tables rt_any_table
using rv_statement type string.
data: v_line type string,
v_char_line type char255.
FIELD-SYMBOLS: <line>.
loop at rt_table ASSIGNING <LINE>.
v_char_line = <LINE>. - Terminating at this statement
ASSIGN <LINE> to v_line casting type string.
endloop.
endform.
Thanks for readingHi,
if you are interested in generic programming in ABAP then this [presentation|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b332e090-0201-0010-bdbd-b735e96fe0ae] is full of information. There is a class CL_ABAP_STRUCTDESCR with method GET_COMPONENTS. This method returns a list of components of table or structure. So you will be able to loop over every field in the table and convert each field into string.
Cheers -
Data Type field read only in Data source for transaction data (PC_FILE)
Hi folks,
I need to change Data Type for some of the fields in "Field" tab in data source for transactional data. It became read only after I activate the data source. Need help in making it editable. All fields now have Data type=CHAR.
ThanksNevermind folks. I got it.
-
Determine the type of the caught exception
Hi!
Here is my problem :
I'm using a web service and the method I call throws different types of Exception (RemoteException, ServiceException, etc...)
And, the reaction to the caught exception depends on its type, that's why I need to determine what type of exception i've caught. I know that with C# I use the boolean function is :
if (exception is TypeOfException1)
// associated reaction
else if(exception is TypeOfException2)
// associated reaction
}Is there any method or any other way in Java to do that?
Thanks a lot,
Gan�che.>
Here is my problem :
I'm using a web service and the method I call throws different types of Exception (RemoteException, ServiceException, etc...)
And, the reaction to the caught exception depends on its type, that's why I need to determine what type of exception i've caught. >
try {
// stuff that may cause exceptions..
} catch(RemoteException re) {
// deal with this re
} catch(ServiceException se) {
// deal with this se
} catch (Throwable didNotExpectThis) {
// exceptional!
didNotExpectThis.printStackTrace();
} -
hi all,
i need some information regarding date types infotype 41.
i need to print date types in sequential manner like dar01 dar02 dar03 like upto 12 date types.
can you please suggest me how should i print them.
thanks,
madhavi.Hi,
Steps to create a HR Infotype:
1) Go to Transaction PM01.
2) Enter the custom Infotype number which you want to create (Should be a 4 digit number, start with 9).
3) Select the 'Employee Infotype' radio button.
4) Select the 'PS Structure Infotype'.
5) Click on Create... A separate table maintenance window appears...
6) Create a PS structure with all the fields you want on the Infotype
7) Save and Activate the PS structure
8) Go back to the initial screen of PM01.
9) Click on 'All' push button. It takes a few moments.
10) Click on 'Technical Characteristics'. Infotype list screen appears
11) Click on 'Change'(pencil) button
12) Select your Infotype and click on 'Detail' (magnifying glass) button
13) Give 'T591A' as subtype table
14) Give 'T591S' as subtype txt tab
15) Give your subtype field as subtype field
16) Save and come back to PM01 initial screen
17) Click on 'Infotype Characteristics' ... Infotype list screen appears
18) Click on 'Change' (pencil) button
19) Click on 'New Entries'
20) Enter your Infotype number and short text
21) Here we have to set different Infotype Characteristics as per the requirement. (Better open another session with some standard Infotype's infotype characteristics screen and use as the reference to fill yours)
22) Save your entries.
23) Now the Infotype is created and ready to use.
24) If you want to change the layout of the Infotype as per your requirement...
25) In the PM01 initial screen...Select 'Screen' radio button and give 2000 as the screen name, then click on edit.
26) In the next screen.. Select 'Layout Editor' and click 'Change'.
27) Screen default layout appears...here you can design/modify the screen..change the attributes of the fields..etc.
28) Save and activate. (Don't forget to 'Activate at every level)
Subtype Creation :
Transaction PM01 Goto Subtype Characteristics. Click on Append and then subtype. Enter the name and description of subtype on screen.
Then goto technical Characteristics and maintain the details of subtype there. I.e name of subtype i.e. component name defined in PSnnnn. Subtype table is T591A.
Subty.text tab is T591S and time const tab is T591A.
See:
http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
HR related site:
http://www.sapdevelopment.co.uk/hr/hrhome.htm
Enhancement of Infotype
Check the following
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAXX/PYINT_INFOTYP.pdf
Infotype Enhancement overview screen
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60a7586d-edd9-2910-68a8-8204303835a1
with regards,
Hema SUndara. -
Hi All!
I am very new to XI. As in this is my first project. I did look for this question in the forum, but I probably missed it as the wording would have to be close to my own. Anyway-
I am trying to import an XSD into a data type. I keep getting an error:
Attribute "name" of element "/schema/element("Name") has the value "Name" that has already been used in the element "/schema". Ensure all attributes and elements of each element have unique names when using the xsd editor.
Well - I'm very confused. This is the XSD that I was given for an outbound process. Any suggestions on what to do? XSD is below.
Thank you!
Michelle
XSD:
<xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
<xsd:element name='ShipperLoadPlan'>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref='LoadNumber'/>
<xsd:element ref='LeanLoadID'/>
<xsd:element ref='Canceled'/>
<xsd:element ref='DirectionCategory'/>
<xsd:element ref='TrailerNumber' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='ReferenceNums' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='Carrier' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='Stops' minOccurs='0' maxOccurs='1'/>
</xsd:sequence>
<xsd:attribute name='CreateDate' type='xsd:string' use='optional'/>
<xsd:attribute name='ExecutionEvent' type='xsd:string' use='optional'/>
<xsd:attribute name='ExecutionEventID' type='xsd:string' use='optional'/>
</xsd:complexType>
</xsd:element>
<xsd:element name='ReferenceNums'>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref='Reference' maxOccurs='unbounded'/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name='Reference'>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base='xsd:string'>
<xsd:attribute name='type' type='xsd:string' use='required'/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name='Stops'>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref='Stop' maxOccurs='unbounded'/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name='Stop'>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref='StopNumber'/>
<xsd:element ref='StopType'/>
<xsd:element ref='CalcDueDate' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='DueDate' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='Appt' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='ETADate' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='ArrivalDate' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='DepartureDate' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='Location'/>
<xsd:element ref='LoadDates' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='ReferenceNums' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='OrderNums'/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name='LoadDates'>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref='LoadDate' maxOccurs='unbounded'/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name='LoadDate'>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base='xsd:string'>
<xsd:attribute name='DateTypeID' type='xsd:string' use='required'/>
<xsd:attribute name='TimeZone' type='xsd:string' use='optional'/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name='OrderNums'>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref='OrderNum' maxOccurs='unbounded'/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name='OrderNum' type='xsd:string'>
</xsd:element>
<xsd:element name='Carrier'>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref='SCAC'/>
<xsd:element ref='Name'/>
<xsd:element ref='VendorNumber' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='TenderSCAC' minOccurs='0' maxOccurs='1'/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name='Location'>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref='LocationRef'/>
<xsd:element ref='Name'/>
<xsd:element ref='Address1' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='Address2' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='Address3' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='City' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='State' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='Zip' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='Country' minOccurs='0' maxOccurs='1'/>
<xsd:element ref='IsPoolPoint' minOccurs='0' maxOccurs='1'/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name='LoadNumber' type='xsd:string'>
</xsd:element>
<xsd:element name='Canceled' type='xsd:string'>
</xsd:element>
<xsd:element name='LeanLoadID' type='xsd:string'>
</xsd:element>
<xsd:element name='DueDate'>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base='xsd:string'>
<xsd:attribute name='Start' type='xsd:string' use='optional'/>
<xsd:attribute name='End' type='xsd:string' use='optional'/>
<xsd:attribute name='TimeZone' type='xsd:string' use='optional'/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name='Appt'>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base='xsd:string'>
<xsd:attribute name='From' type='xsd:string' use='optional'/>
<xsd:attribute name='To' type='xsd:string' use='optional'/>
<xsd:attribute name='TimeZone' type='xsd:string' use='optional'/>
<xsd:attribute name='ApptRef' type='xsd:string' use='optional'/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name='ETADate'>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base='xsd:string'>
<xsd:attribute name='TimeZone' type='xsd:string' use='optional'/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name='ArrivalDate'>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base='xsd:string'>
<xsd:attribute name='TimeZone' type='xsd:string' use='optional'/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name='DepartureDate'>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base='xsd:string'>
<xsd:attribute name='TimeZone' type='xsd:string' use='optional'/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name='CalcDueDate'>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base='xsd:string'>
<xsd:attribute name='TimeZone' type='xsd:string' use='optional'/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name='SCAC' type='xsd:string'>
</xsd:element>
<xsd:element name='Name' type='xsd:string'>
</xsd:element>
<xsd:element name='VendorNumber' type='xsd:string'>
</xsd:element>
<xsd:element name='TimeZone' type='xsd:string'>
</xsd:element>
<xsd:element name='CreateDate' type='xsd:string'>
</xsd:element>
<xsd:element name='ExecutionEvent' type='xsd:string'>
</xsd:element>
<xsd:element name='TenderSCAC' type='xsd:string'>
</xsd:element>
<xsd:element name='ExecutionEventID' type='xsd:string'>
</xsd:element>
<xsd:element name='TrailerNumber' type='xsd:string'>
</xsd:element>
<xsd:element name='DateTypeID' type='xsd:string'>
</xsd:element>
<xsd:element name='StopNumber' type='xsd:string'>
</xsd:element>
<xsd:element name='StopType' type='xsd:string'>
</xsd:element>
<xsd:element name='DirectionCategory' type='xsd:string'>
</xsd:element>
<xsd:element name='LocationRef' type='xsd:string'>
</xsd:element>
<xsd:element name='Name' type='xsd:string'>
</xsd:element>
<xsd:element name='Address1' type='xsd:string'>
</xsd:element>
<xsd:element name='Address2' type='xsd:string'>
</xsd:element>
<xsd:element name='Address3' type='xsd:string'>
</xsd:element>
<xsd:element name='City' type='xsd:string'>
</xsd:element>
<xsd:element name='State' type='xsd:string'>
</xsd:element>
<xsd:element name='Zip' type='xsd:string'>
</xsd:element>
<xsd:element name='Country' type='xsd:string'>
</xsd:element>
<xsd:element name='IsPoolPoint' type='xsd:string'>
</xsd:element>
</xsd:schema>Hi ,
I don't know your requirement in detail , If you are using XSD, no need to create data type message type , upload this XSD to ' EXTERNAL DEFINITIONS' , you can use this XSD directly in Message mapping ( MM) .
Maybe you are looking for
-
How to add an image at the end of a video?
I tried following these instructions https://pantherfile.uwm.edu/type/www/116/SoftwareTutorials/QuickTimePro/DougProu ty_QTPro_Tutorial/QuickTimePro_DougProuty.pdf But can't find where to choose the frame rate. So when I add it to my video it goes aw
-
It doesn't save as word but as picture I cannot edit. Why?
I read forum and followed the step by step instruction. But Adobe still doesn't alow me to save my pdf file as a word document. It saves my pdf file as picture, that I cannot edit. What is wrong? My file is 146 kb. Vanda
-
When printing two-sided from my Mac on landscape A4 with 2 columns, how can I get my HP Photosmart 6520 to print the same way up?
-
Assign status profile automatically when upload documents in cFolder
Hello all, Is there any way to make the automatic assignment of a state profile to documents that are upload into a collaboration of cFolder? At this time we do it manually, but carries to assign the state profile every time we upload a new document.
-
Sharepoint 2010 Foundation administrator permission gone
Hi all experts; today, we found that the administrator privilege on Team Site Owners suddenly gone. All administrators under this group is no longer to manage the Sharepoint site and the users cannot add and edit any new or existing files. It affec