Scripting Crash- "Create from Data Type" on Typedef Enum

I just encountered a crash that I can duplicate in both LabVIEW 2013 and 2012 (student).
Attached is a project that contains the code I used on 2012. Run the target VI.
(I can get the project I had in 2013, if needed, sometime next week)
Basic steps:
Create a type def enum
Place it on a VI
Use scripting to get ahold of the Control Terminal and get the data type
"Create from Data Type"

Haha, I saved your code and ran it while I still had another project open... didn't really think that one through. Thank you, Auto-save.
So it looks like the crash happens at the Create node. I can get rid of the crash by removing the Type Def link from the enum.
I'm not at all an expert in scripting and have only used it a few times. Could a workaround be to get a reference to all of the Controls on the FP and copy the Control with the same Label "Enum" (instead of loading the terminal and creaing a new terminal)? Maybe creating a typedef by data type is what's causing the crash, but copying an already existing control will work.

Similar Messages

  • Create dynamic data type in structure

    Hi Experts,
    I am new to ABAP.
    In my scenario data type is varying for the field. for that I need to create dynamic data type in structure, this structure I am using for  internal table for OVS search input.
    Please suggest the solution for this.
    Advance thanks,
    Regards,
    BBC

    Thanks for your quick reply,
    I used your logic like this.
    data:
    ls_component type abap_componentdescr,
    lt_component type abap_component_tab.
    *... (1) define structure components :
    clear ls_component.
    ls_component-name = 'NVALUE'.
    ls_component-type ?= cl_abap_typedescr=>describe_by_name( <fs_seg_v>-fieldname ).
    insert ls_component into table lt_component.
    *... (2) create structure
    data lr_strucdescr type ref to cl_abap_structdescr.
    data lr_data_struc type ref to data.
    lr_strucdescr = cl_abap_structdescr=>create( lt_component ).
    create data lr_data_struc type handle lr_strucdescr.
    field-symbols <fs> TYPE any.
    assign lr_data_struc->* to <fs>.
    your logic is working fine.
    here I am getting feild name (<fs_seg_v>-fieldname) from internal table.
    But I need to assign same field name structure to query parameter.
    FIELD-SYMBOLS: <ls_query_params> TYPE lty_stru_input.
    Please can you suggest how I can refer the field name structure?
    Regards,
    BBC

  • BAPI Diff between Creat and Create from Data

    Hi All,
    for Sales order creation we have Many BAPI function module.
    how can i decide which module shoud i use ..a
    and what is the diff bw create and create from data function module.
    And i have read some where about BAPI --- ' acces to SAP applications from Third party can only by means of BAPI's.'..
    it means can't third party call RFC's in SAP.
    if they can call RFC's why BAPI.
    i met this question in so many Situations.
    But i didnt get clear answer for this.
    could u pls help me.
    Thanks in advance.
    Jeyaseelan.G

    hi jeyaseelan guru,
    there no difference actually ...between a create bapi and create from data() bapi...
    open business object type kna1 in swo1 and see that  differeence lies in the versions .....double click on create method under the methods node u will find tat create bapi  used from the release 30a and create from data bapi used from the release from 45a.......... based on the versions it offer more features ............
    so, try to use a bapi of newer version
    The BAPI Create() or CreateFromData() creates an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.
    reward points if helpful.....
    Message was edited by:
            raam

  • Implicit Conversion from data type sql_variant to datetime is not allowed.

     Getting a odd error. This code was working perfectly before a SQLServer upgrade.
    The linked database is working, I'm able to pull up data from it in separate queries just fine.
    I'm getting the following error.
    Implicit conversion from data type sql_variant to datetime is not allowed. Use the CONVERT function to run this query.
    Invalid column name 'TotalDay'. (.Net SqlClient Data Provider)
    can anyone spot the issue? I've tried sever variations of the same code, but still get the same thing.
    If I put this section in a query by it self it works just fine.
    ( DATEDIFF(ss,
    CONVERT(VARCHAR(10),( SELECT TOP ( 1 )
    TimeDate
    FROM [nav].AcsLog.dbo.EvnLog AS X3
    WHERE UDF2 = E.No_
    AND CONVERT(VARCHAR(10), X3.TimeDate, 101) = CONVERT(VARCHAR(10), @sdate, 101)
    ORDER BY TimeDate ASC
    ),101),
    CONVERT(VARCHAR(10),( SELECT TOP ( 1 )
    TimeDate
    FROM [nav].AcsLog.dbo.EvnLog AS X4
    WHERE UDF2 = E.No_
    AND CONVERT(VARCHAR(10), X4.TimeDate, 101) = CONVERT(VARCHAR(10), @sdate, 101)
    ORDER BY TimeDate DESC
    ),101)) ) AS TotalDayBadge ,

    >ANDCONVERT(VARCHAR(10),X3.TimeDate,101)=CONVERT(VARCHAR(10),@sdate,101)
    It is not a good idea to use string dates for predicates in WHERE clauses.
    Use DATETIME or DATE in predicates.
    If you are not interested in the time part of DATETIME, use DATE datatype.
    Example:
    SELECT CONVERT(DATE, getdate());
    -- 2014-08-25
    Datetime conversions:
    http://www.sqlusa.com/bestpractices/datetimeconversion/
    Between dates:
    http://www.sqlusa.com/bestpractices2008/between-dates/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Running a SQL Script to Create an Object Type

    When I do Database Development with JDeveloper and fellow the instruction at
    http://www.oracle.com/technology/obe/obe1013jdev/dbdevelopment/obe_%20dbasedevmt.htm
    and try to Running a SQL Script to Create an Object Type by Right-clicking emp_rec.sql in the editor and
    choose Run in SQL*Plus > hrconn, the new Obuect type can not created. The screen flashs and I only got the
    message
    "Invoking SQL*Plus...
    D:\oracle\product\10.2.0\db_1\BIN\cemutls.exe
    hr@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))(CONNECT_DATA=(SID=ORCL)))
    @emp_rec.sql" and nothing else (No error like JBO-XXXXX).
    Can anybody Help Me? Thanks a lot!
    SID: ORCL

    Hi Simon,
    Having had a closer look at your original message it seems that rather than selecting the SQL*Plus executable in the directory you have managed to select the file 'D:\oracle\product\10.2.0\db_1\BIN\cemutls.exe'.
    If you go to 'Tools | Preferences' and select the 'Database Connections' node and alter the 'SQL*Plus Executable' field to 'D:\oracle\product\10.2.0\db_1\BIN\sqlplus.exe' and then try again, this should then work.
    Regards,
    Lisa

  • How to create the Data Type for the receiver end?

    Hello Expertise
    I wanted to Create a Data type for  Receiver end in PI.
    Sender end is ECC.
    Receiver end is SRM
    Here's the Data type for Sender end  as
    Can anyone help to create the Data type for Receiver end i.e SRM.
    Thanks in advance.
    Regards
    karan

    Hi Karan,
    Please don't call Sir, we are just trying to help each other.
    Please go through below scenario's and check your configuration.
    ABAP Client Proxy to ABAP Server Proxy Scenario - Process Integration - SCN Wiki
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0ac1a33-debf-2c10-45bf-fb19f6e15649?overridelayout=true
    http://wiki.scn.sap.com/wiki/display/XI/Step-by-step+FTP+to+ABAP+Proxy
    regards,
    Harish

  • Disallowed implicit conversion from data type datetime to data type timestamp

    Received error: [Macromedia][SQLServer JDBC
    Driver][SQLServer]Disallowed implicit conversion from data type
    datetime to data type timestamp, table 'myTbl', column 'duration'.
    Use the CONVERT function to run this query.
    I have a field named duration hh:mm:ss.lll that I am trying
    to insert into MS SQL. DB has field defined as [duration]
    [timestamp] NOT NULL,
    My insert has this: INSERT INTO myTbl( duration) VALUES(
    <cfqueryparam value="2006-05-26 11:12:13"
    cfsqltype="CF_SQL_TIMESTAMP"/> )
    Why does this not work? rrrrrrrrrrrrrr! BTW: also tried with
    seconds as 13.111 which did not work. Does the db duration need to
    be date? I just want to store a duration for the time of a movie...
    10 Q

    quote:
    Originally posted by:
    quiet1
    Received error: [Macromedia][SQLServer JDBC
    Driver][SQLServer]Disallowed implicit conversion from data type
    datetime to data type timestamp, table 'myTbl', column 'duration'.
    Use the CONVERT function to run this query.
    I have a field named duration hh:mm:ss.lll that I am trying
    to insert into MS SQL. DB has field defined as [duration]
    [timestamp] NOT NULL,
    My insert has this: INSERT INTO myTbl( duration) VALUES(
    <cfqueryparam value="2006-05-26 11:12:13"
    cfsqltype="CF_SQL_TIMESTAMP"/> )
    Why does this not work? rrrrrrrrrrrrrr! BTW: also tried with
    seconds as 13.111 which did not work. Does the db duration need to
    be date? I just want to store a duration for the time of a movie...
    10 Q
    Duration as a timestamp? How odd, most people would store it
    as an integer. Or, if you want to build your own string, the syntax
    is {ts 'yyyy-mm-dd hh:mm:ss'}. The seconds might not be required.
    In any event, use createodbcdatetime() for the value you want
    to put into your table.

  • Import from Designer crashes with IMAGE data type

    Hello,
    I'd like to report an issue with Data Modeler while importing from Oracle Designer. If you consider this a bug, please let me know if I need to do anything else to request a fix for it.
    I've used the import > Oracle Designer Model tool to import an application model. The import runs fine for a while, then crashes with a message "There are errors in import - check log file".
    The application to be imported has 509 domains, 963 entities to import.
    The summary info displayed after the import (when I close the error message pop up) is:
    All statements: 1472
    Imported statements: 538
    Failed statements: 0
    Not recognized statements: 934
    The log file has the lines below:
    2011-04-28 10:55:46,505 [Thread-8] ERROR XMLTransformationManager - Unable to load object from XML: C:\Users\Beatriz\Documents\ODTUG\2011\SDDM designs\GAME\GAME\rel\0EEBE15E-D9EFB22E4D6B\subviews\02A206F8-0C6C-0DF9-E643-5919DBCB895A.xml
    java.io.FileNotFoundException: C:\Users\Beatriz\Documents\ODTUG\2011\SDDM designs\GAME\GAME\rel\0EEBE15E-D9EFB22E4D6B\subviews\02A206F8-0C6C-0DF9-E643-5919DBCB895A.xml (The system cannot find the file specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at oracle.dbtools.crest.model.metadata.XMLToObjectTransformer.transformToObject(Unknown Source)
         at oracle.dbtools.crest.model.metadata.XMLTransformationManager.transformFromXMLToObject(Unknown Source)
         at oracle.dbtools.crest.model.metadata.XMLTransformationManager.openDesignPart(Unknown Source)
         at oracle.dbtools.crest.model.design.Design.openDesign(Unknown Source)
         at oracle.dbtools.crest.swingui.ControllerApplication$Recent$1.run(Unknown Source)
    2011-04-28 11:03:44,114 [Thread-12] WARN ODODomain - ODOType.initStructuredTypeAttributes() - Unable to find Logical DataType for: IMAGE
    2011-04-28 11:03:46,532 [Thread-12] ERROR ODExtractionHandler - Error during import from Designer Repository
    java.sql.SQLException: Numeric Overflow
         at oracle.jdbc.driver.NumberCommonAccessor.throwOverflow(NumberCommonAccessor.java:4380)
         at oracle.jdbc.driver.NumberCommonAccessor.getInt(NumberCommonAccessor.java:111)
         at oracle.jdbc.driver.OracleResultSetImpl.getInt(OracleResultSetImpl.java:928)
         at oracle.jdbc.driver.OracleResultSet.getInt(OracleResultSet.java:434)
         at oracle.dbtools.crest.imports.oracledesigner.logical.ODOEntity.generate(Unknown Source)
         at oracle.dbtools.crest.imports.oracledesigner.ODExtractionHandler.generateDesign(Unknown Source)
         at oracle.dbtools.crest.imports.oracledesigner.ODExtractionController$Runner.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:619)
    I see the issue with the IMAGE data type in the log. The model to be imported does have domains and entities using this data type. The domain actually did get imported, but it shows as "Unknown" logical type, even though there is an Image type available in the Data Modeler type list. None of the entities using IMAGE got imported.
    Please let me know if you can provide a fix or workaround for this (other than changing the format in Designer).
    Thank you,
    Beatriz.

    Hello Beatriz,
    definitely this is a bug. The problem with entities is not IMAGE data type it's supported there (it's overlooked for domains). The problem is volume information - Initial, Maximum, Average, Growth rate. No workaround for that.
    Domain can be changed manually if it's just one affected.
    Philip

  • Creating RosettaNet data types in XI 2.0: 'xml:lang' attribute

    Has anybody successfully created a RosettaNet interface in XI 2.0?
    I am working with the PIP 3A2 messages, but some of the elements have an attribute named 'xml:lang', which is a standardized attribute from the W3C's XML namespace.  The attribute name is declared as 'xml:lang' because it's still a DTD-based PIP.  Normally, in schema, this is handled by declaring an import of the xml.xsd file provided by W3C and defining the namespace alias 'xml' to point to it in the RosettaNet schema.  The xml.xsd provided by W3C boils down to the following declaration, to support 'xml:lang' as an attribute...
    <xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
    <xs:attribute name="lang" type="xs:language">
    </xs:attribute>
    </xs:schema>
    I'm trying to create this interface in the XI 2.0 data type editor, but...
    1. I can't create attributes as standalone data types in alternate namespaces (to simulate the declarations in W3C's xml.xsd).
    2. I can't link a standalone attribute declaration from another namespace to an attribute in the editor.
    3. The editor prohibits use of a colon in the attribute name (as it should), so I can't declare the attribute name to be 'xml:lang'.
    4. I can't figure out how to control the addition of a new namespace alias to 'xml'.  The editor wants to use default names like 'p0' when I bring in types from other namespaces.
    Can anyone suggest where I should look for an answer?
    --Dan King
    Capgemini

    Hi Dan,
    You can design and Test Rosettanet PIPS Messages in XI-3.0 only.
    Regards
    Prasad
    SAP Netwaver RIG-XI
    SAP Labs LLC, USA

  • Create Characteristics, Data Type - Currency

    Hi All,
    I am trying to create characteristics in transaction CT04 for our PO release strategy.
    Data type is Currency. After giving all required details when I press enter the value range becomes NNNNNNNNNNNNN.NN. So I am unable to select value in release strategy classification tab.
    Does anybody have any idea that why values are getting converted to  NNNNNNNNNNNNN.NN.
    Is any configuration missing?
    Is the problem with template?
    Regards
    sapmm1234

    I have done the following settings:
    Charateristrics PO_Value
    Valid from Today Date
    Decription Total Net Order Value
    Status Released
    Data Type Currency
    Number of Class 15
    Decimal Places 2
    Currency QAR
    Template I ahve not selected anything but defaults it is taking NNNNNNNNNNNNN.NN
    Even If I delete this when I press enter It is taking NNNNNNNNNNNNN.NN
    Multiple values & Interval Values allowed
    Additional Data:
    Table CEKKO
    Field GNETW
    Not Ready for Input Checked
    Unformatted Entry Checked
    Propose Template is not checked
    Values
    <= 2500
    > 2500
    <= 10000
    > 10000
    After giving this value when I press enter all values becomes
    <= NNNNNNNNNNNNN.NN QAR
    > NNNNNNNNNNNNN.NN QAR
    <= NNNNNNNNNNNNN.NN QAR
    >= NNNNNNNNNNNNN.NN QAR
    So I could not select any value in RElease strategy --> Classification tab
    Any Idea why Value are getting converted into this format.
    Regards
    sapmm1234

  • Get month and year from date type

    Hi all,
    I need to get the month and year from the date type.
    For example select to_date('2011-01-17', 'yyyy-mm-dd') from dual;Result needed:
    01-2011Any ideas?
    thanks in advance,
    Bahchevanov.

    Hello Bahchevanov,
    if you need the date to compute something, then you can
    TRUNC(SYSDATE,'mm')This will give you a date with the days removed -> 01.01.2011
    Regards
    Marcus

  • Creating runtime data types

    Hi
    I need to dynamically create input fields with specified lengths(so that user cannot enter values beyond this length).
    I do it like this.
    IWDAttributeInfo attributeInfo =
        nodeName
        .getNodeInfo()
        .addAttribute(attributeName,
           "ddic:com.sap.dictionary.string");
    IWDInpuField inputField =
       (IWDInpuField)viewHandle
                      .createElement
                      (IWDInputField.class,null);
    int length = getLengthFromSomeMethod();
    inputField.bindValue(attributeInfo);
    inputField.setLength(length);
    The input field added is of specified length, but still the user is able to enter value beyond this length. This i guess is due to the fact that attribute bound to the field is of type "ddic:com.sap.dictionary.string".
    Can i create data types at runtime so that i might add attributes with this data type to a node at run time?
    Is there any other way to solve this problem?

    kaushal,
    Try this:
    attributeInfo.getModifiableSimpleType()
      .setMaxLength(length);
    "Length" of InputField declares (average) width of control in characters.
    VS

  • Creating own data types

    Hi,
    How can i create my own data types????
    Thanks,
    Mohit.

    Hi,
    Through TYPES statement you can create your own datatypes. And through Type-pools you can create global data.
    Re: type pools
    Reward if useful!

  • How to create LOB data type in table?

    what is syntax to create LOB type in a table?
    Thanks
    Yash

    can u send me the query for the insert image into the data base plz.................
    mail id is
    [email protected]
    if u know please send me it is urgent to me plzzzzzzzzzzzz................
    thanks..............

  • Include program for script dump error in data type

    Hi i  have written following subroutine for script.
    FORM WITHHOLD TABLES in_tab STRUCTURE itcsy
                         out_tab STRUCTURE itcsy.
    data:     a_SKFBT  TYPE REGUP-SKFBT,
         A_DMBTR  TYPE REGUP-DMBTR,
        W_TAX1(18) TYPE REGUP-SKFBT.
    read table in_tab WITH KEY NAME = 'REGUP-SKFBT'.
    read table in_tab INDEX 1.
    check sy-subrc = 0.
    a_SKFBT = in_tab-value.
    read table in_tab WITH KEY NAME = 'REGUP-DMBTR'.
    read table in_tab INDEX 2.
    check sy-subrc = 0.
    a_DMBTR = in_tab-value.
    W_TAX = ( a_SKFBT - a_DMBTR ).
    read table out_tab with key name = 'W_TAX1'.
    IF SY-SUBRC = 0.
    out_tab-value = W_TAX1.
    modify out_tab INDEX 1.
    ENDIF.
    ENDIF.
    endform.
    above program is giving dump .
    while deduction values in w_tax .
    what type of variables i shold take here..

    Hi Venkat,
    Your declaration for the tax variable is wrong. When you have specified a table field there is not any need to mention the number of characters for that variable.
    Simply declare as W_TAX type REGUP-SKFBT and
    W_TAX1(16) type c.
    After computing W_TAX, Move W_TAX to W_TAX1.
    Regards,
    Anil

Maybe you are looking for

  • Checking a position in a 2D array

    I am making a minesweeper game and the mineCheckUpLeft function works perfectly but the mineCheckUpRight doesn't work half the time I'm hoping one of you can figure out what is wrong with the code. And the only thing on my Form is  label1 and the For

  • Getting path from file

    Good Morning, Is there a way to get a file path from a file without having to select it through client_get_file_name? for example i have a file 'test_01.txt' in C:/ I cannot hard code the path as each day the txt name will change eg. 'test_02'. Is th

  • All my photo libraries in my iPhone have duplicate photos since I have installed IOS 6.  Please help.

    All my photo libraries in my iPhone have duplicate photos since I have installed IOS 6. I work with Aperture 3.3 not iPhoto! Also, most of the photos in my camera library have been deleted without my consent! I'm very ****** about that! Please help.

  • Need Step by step installation guide for Cisco ISE in distributed environment.

                 Hi Friends, If anyone is having  step by step installation guide for Cisco ISE in distributed environment please shere! I have user guide from Cisco, but does someone have created at the time of actual installation. Thanks, Sachin

  • Installing Classic onto a disk image

    Hi. I have a Classic 'System Folder', together with a few legacy classic apps, on an external hard drive. I would much rather have them bundled together nicely in one single disk image which I could mount as and when I require classic -- which is ver