Change what data type data socket requests from OPC server

I suspect this is a foregone conclusion, however just in case; is there a way to make Datasocket request items from an OPC server in a different data type than variant?
I have a server that scales integers (native data type) and offers tham as floating point values, however to get those nice floats the client must request the data in the right type. If the client asks for a variant the server will return the integer value (e.g. 2 instead of 2,36...).
I have not checked whether this is a server behaviour as it must be (according to OPC specs) or if it's just a choice by the vendor (Automated Solutions), but still it may become an obstacle.
Has anyone implemented OPC Client functionality without using Datasocket (and server for that matter)? Any software componants you can recommend?
MTO

Hi Mats
I once found vi's (..\vi.lib\Platform\dataskt.llb) with different read- and write-types. In fact they are all wrapping up the read- & write-variant functions.
I use them to communicate with Siemens OPC-Scout and it works. They make life a little easier .
Hope this helps.
Thomas
Using LV8.0
Don't be afraid to rate a good answer...

Similar Messages

  • Is it possible to get the element data type of a Queue from itself?

    Hi everyone,
    i have a Q that has a cluster as element data type.
    now when i want to enqueue
    i'll use bundle-by-name
    and for that i'd have to have my data-type present
    (long cable from whereever (possibly from where i obtained the Q).
    my question is,
    whether there is a method/property-node/something that allows me to
    wire the Queue Refnum into it and receive the element-data-type,
    so i can then input into the top of bundle-by-name?
    (i really dont want to have that cable all over the place)
    the reason i ask here is that
    the help for the outgoing Queue Refnum from the Obtain Queue method,
    shows the element-data-type and so i hope there might be a solution.
    thx for your time
    and cheers
    j
    Solved!
    Go to Solution.

    If I understand your question correctly, the answer is "Yes, it's very easy ..."
    The answer is "Preview Queue".  Here I create a Queue of some mysterious type (it's a cluster having a Thing and a Center, but you don't know that yet).  I take the Queue reference from whereever I can find it and pass it into Preview Queue Element.  I take the output and use it to define my cluster in Bundle by Name.
    Two caveats.  This copies the first element of the Queue into the cluster, so you probably need to be sure to define all of the elements of your cluster.  But what if the Queue is empty (as mine is, above, as I just Obtained it) -- well, that's why 0 is wired into the TimeOut input, since I do not want to wait "forever" (-1) for the empty Queue to have an element!  Turns out that even in this case, you still get the correct Cluster elements!
    Neat, huh?
    Bob Schor

  • The data type DEC while downloading from ALV to EXCEL

    The data type DEC while downloading from ALV to EXCEL is giving some invalid data .
    Ex : In ALV field is the time difference in  hours:minutes
      if the value is  :23 in Excel it will be 22:59 .
    Please Suggest immediately

    Hi ....
    I have the similar problem. My coumns are not in any sequence when I download it to excel sheet.
    How do I fix it.
    Neha

  • Query regarding the data type for fetcing records from multiple ODS tables

    hey guys;
    i have a query regarding the data type for fetcing records from multiple ODS tables.
    if i have 2 table with a same column name then in the datatype under parent row node i cant add 2 nodes with the same name.
    can any one help with some suggestion.

    Hi Mudit,
    One option would be to go as mentioned by Padamja , prefxing the table name to the column name or another would be to use the AS keyoword in your SQL statement.
    AS is used to rename the column name when data is being selected from your DB.
    So, the query  Select ename as empname from emptable will return the data with column name as empname.
    Regards,
    Bhavesh

  • Characteristic of Data Type = Date follows User Profile Only

    Hi All
    In EHS SVT the characteristic TSCAList_Date [SAP_EHS_1023_053_DATE_LIST] is of Data Type = Date) and follows the date format defined in the User Profile of actual user.
    If a user is using EU profile such as:
    EU date format = 1 DD.MM.YYYY
    EU decimal notation format = 1.234.567,89
    If he enters a date in another format (Such as YYYY-MM-DD - 2010-03-27) than the one defined in the User Profile (DD.MM.YYYY - 27.03.2010); he will get an error message text:  "Value (&) is not numeric"
    Question:
    How he can bypass this error and allow SAP make the conversion to changing the date entered (2010-03-27) to the one used in the User profile (27.03.2010)?
    I will apreciate any Help
    KO

    Hello Ouadria
    very interesting request indeed.
    a.) my understanding of SAP GUI approach is: user has an user id and logon parameter
    b.) by specifing an user profile some "default" set up should be used in further UI interaction in SAP GUI interface (especially date format etc.)
    c.) Therefore it makes "no" sense to use a "different" format in entering a date etc. as specified in the user profile; in addition I believe the "look and feel" of the data (display and no maintain) is once again connected to the user profile, That means if you change the data in user profile the "date" format and "numeric" format should change in UI; this "change" should be active after saving the profile once again (regarding fonts etc. in UI: the change is done "immediate"; user profile changes is done in a further session and I believe the original session is not changed (not sure ..))
    d.) indipendent on  user profile the application makes sure that the data is written into the SAP internal format (date and numeric vlaue) into the tables
    Coming with EH&S 2.7 you can use a new function in class/characteristic maintenance to change (display conversion in different allowed UOM) "UOMs" (etc.) and to get an idea which UOMs are allowed. I believe (not sure) that this new function should be available regarding characteristics of date format too. This function is "hidden" in some sense in the Menue (if I remember correct; i am not using it often).
    May be you could think of a "tricky" way to use the user parametres (by preparing some programming) but I would not investigate the money (and time) but simple change the user profile enter the data and then change back the profile.
    Different "easy" solution would be to use a second user id (one with default format DD.MM.YYYY and second with YYYY-MM-DD)
    May be this helps
    With best regards
    C.B.
    PS: Regarding UOM conversion: take a look here:
    http://help.sap.com/erp2005_ehp_04/helpdata/en/c1/eda0f591ec12408b25e7a1b369ca45/frameset.htm
    And search for topic: "Conversion of Units of Measurement"  which can be found in "Editing Characteristic Values" which is subtopic of: "Value Assignment "
    Edited by: Christoph Bergemann on Nov 19, 2010 10:08 PM
    Edited by: Christoph Bergemann on Nov 19, 2010 10:11 PM

  • 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

  • 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,
    XXX

    Hi
    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

  • Transport a request from one server(quality) to another server(production)

    Hi All,
    I want to transport a request from one server(quality) to another server(production)
    Can we transport a request from quality to production programatically i.e. by using programing logic.
    Regards,
    Swarup

    Hi,
    It cannot be done programmatically. Although it can be automated by basis guys. They configure it in TMS (Transport Management System). You can check it using STMS. (if you are authorized to view it).
    Transport path are defined in TMS.
    For Automated Transport configuration is done in TMS.
    Generally automatic Transport are not setup between quality and production. Changes are first tested in Quality and then Transported by basis team either periodically / individually.
    In case of manual transport Transport Request can be imported in production using STMS_IMPORT transaction in production. (Basis guy will do it for approved Transports)
    If there is no direct connectivity - Basis people copy "data" file and "co" file and Transport it to target server (This is generally not the case in Quality - production as Transport path is always defined).
    Regards,
    Mohaiyuddin

  • Transporting requests from development server to production server

    Hi gurus,
    can anyone tell me how to transport requests from development server to production server.

    You can use SAPGUI now instead of calling tp at OS level.
    Serious: Totally wrong forum!

  • Proper Data type for transferring XML from ABAP to XI

    Dear Colleagues,
    I have a question on how to wrap XML data, that itself contains an encoding
    declaration, so that it will be properly transferred to XI.
    XML Generation: "always use X"
    I have searched a lot on SDN and other resources but could not find
    information, describing how a web service should wrap unicode-data when
    making it available to XI. The XML processing group emphasizes that all generation of XML should be done using X-bases (HEX) datatypes in ABAP and preferably using UTF-8 as ancoding. This by itself is not a problem.
    But transferring UTF-8-XML - through which interface?
    When a webservice provides an XML Stream and wants to transfer it to XI then there is a bit of a paradox situation, because it has to choose between using an X-based or Character-based type for its interface
    -> as Binary data?
    - when using X-based data types in the interface, I have control of the character encoding, but I expect that the XML-information will probably be wrapped in base64 encoding and then the XI will receive a base64 encoded
    XML-block instead of "plain" XML.
    I did not find any reference information on how the soap interface of XI and the WAS behave when transferring X-based data, however.
    -> as Character data?
    - on the other hand when using Character-based data types (e.g. String), I have no control of the codepage being used. I have then only the choice to generate the default encoding of the application server. Maybe this encoding
    will be transformed later to a different encoding, but usually during this process the header, which declares the encoding in use will not be adapted as well.
    So if I have a unicode machine, it will generate UTF-16 - based XML. I have no other choice, if I use a character-based type for output. And this will also be stated in the header of the XML stream. If the XML stream
    leaves the system it will probably be transformed to UTF-8, but the XML-header will still state the content to be UTF-16, because the header will probably not be auto-converted together while adapting the Character
    encoding.
    Because of these issues I am quite insecure, on how to generate and wrap UTF-8 - based XML, so that I can properly hand it over to XI, ensuring that
    it stays UTF-8 and that XI can really unwrap it automatically.
    Does anyone have a tip in which type to wrap XML-based data on the ABAP stack so it will be usable in XI?
    Thank you very much for your attention and time.
    Yours
    Christian Steinert

    Something like this should work (with a little tweek I imagine)
    This would be in the 'Command on Target':
    OdiFtpGet "-HOST=<%=odiRef.getInfo("SRC_DSERV_NAME")%>" "-USER= '<%=odiRef.getInfo("SRC_USER_NAME")%>'" "-PASSWORD= <%=odiRef.getInfo("SRC_PASS")%>" "-REMOTE_DIR=<%=odiRef.getInfo("SRC_SCHEMA")%>" "-REMOTE_FILE=<%=odiRef.getTable("L", "COLL_NAME", "W")%>" "-PASSIVE_MODE=YES"
    Set the Technology of the 'Command on Source' as File, and the technology of the 'Command on Target' as ODI Tools
    Edited by: Bos on Jun 30, 2011 11:53 AM

  • Change "String" into data type "Date"

    Hi,
    I have created a report containing several date fields for a plan/actual comparison. The connection is built up by using the jdbc connector.
    My problem is that the date fields are only displayed as String, but I actually want them to be displayed as Date type.
    Here an example:
    Right now the date fields are displayed like this "20060411"
    but I want them to be displayed like this ("11/04/2006", or similar).
    I would appreciate any suggestions to solve this problem!
    Cheers
    Thomas

    Hi Thomas,
    Check out the following links :
    http://help.sap.com/saphelp_nw04/helpdata/en/55/55a34098022a54e10000000a1550b0/content.htm
    http://help.sap.com/download/netweaver/nw04/visualcomposer/VC_60_UserGuide_v1_1.pdf
    Re: Custom message in VC
    Thanks in advance,
    Deep.

  • Process Type - Delete overlapping requests from an Info Cube

    I have read many threads on this topic, still have some questions. To give you background, I will be doing delta load (“delta” process chain). But before delta, I want to do setup initialization (“init” process chain). I want to use this process type in my “init” process chain” to delete all data in my cube loaded from a specific ods. I cannot use delete all contents process type because many ods’s feed the same cube.
    1.     Do you put this process type after Load Data or before Load Data. I have seen both cases in SDN forums.
    2.     Variant of this process type is an info package. Does this info package have to be same as in load data step or it can be different.
    3.     I want to delete all data in cube which was loaded from my ods. Term overlapping is confusing to me. Will this process type delete all data or not.
    Tanks in advance.

    Yes, you can do that. Goto RSPC - under process types Load Process and Post Processing, you will see DELETE OVERLAP REQUESTS FROM INFOCUBE option is there.
    Select the proper check boxes like same sourcesystem, same datasource etc...
    If it is one time deletion, why not do that manually?
    Also check: How to delete most recent request in a Cube by using process chain
    Hope it helps..

  • Matching data types b/w oracle and sql server

    anyone here knows if there is a list of data types supported by both oracle and sql server (regardless of releases & versions?
    an immediate response would be highly appreciated.
    thanks.

    Hi,
    The following post might be of assistance to you:
    http://msdn.microsoft.com/en-us/library/ms151817.aspx
    If this is what you're looking for, then mark the question as answered and closed.
    Regards,
    Naveed.

  • How to update Data Services (ALDSP 2.5) from WebLogic Server 9.2 correctly?

    Hi,
    I need to update some physical data service in ALDSP 2.5 on WLS 8.1 SP6 (8.1.6) via Static Mediator API from WebLogic Server 9.2 MP2 (9.2.2) application. I have reviewed the article about interoperability of ALDSP 2.5 and WLS 9 here:
    http://edocs.bea.com/aldsp/docs25/appdev/ejbclt.html#wp1090900
    Firstly, I had a problems with the interconnection between 9.2 client and ALDSP 2.5 due to some missed methods/classes. Finally, I've added the following libs to my WLS 9.2.2 pre-classpath in such an order:
    MyDSPProject-ld-client.jar (built with Ant script using XmlBeans 2.0)
    wlsdo.jar (from ALDSP 2.5)
    xbean.jar
    xqrl.jar
    wlxbean.jar
    ld-client.jar (from ALDSP 2.5)
    I do the update in the way shown in attached java file.
    After submit method call, I've got two copies of a new item added in the DB and also an exception that is shown in attached log-file.
    What is the possible cause of this issue?
    I use MySQL DBMS version 5.0.45.
    I've also tried MS SQL 2005 but it simply had the same results.
    DSP audit log is also attached.
    Thank you in advance!
    Best Regards,
    Vitalii Tiutiunnyk

    The problem is that your client is WLS server, and WLS server has network class loading disable (for security), and the result from the call requires a class that is not on the client. The call succeeds, but the the network class load for the result fails, and the WLS 9.2 framework (incorrectly) retries the call (and you get either a duplicate key exception or a second row inserted). Putting the server jar in the client classpath solves the problem.
    If you wanted more information or help, you can contact BEA Customer Support and tell them it is regarding the CR I mentioned.

  • Idoc message type which contains all  data types & date format

    Hello experts,
    I have Two questions :
    1.Need Idoc message type which has all sap data types (24 types).
    2. I am getting output date in  31-05-1999, whereas am expecting 5/31/1999.
        is there anything to be done at system level, since same Func Mod gives expected output in 4.7 verions, whereas in ecc 6.0 version it doesnt.
    Thnx in advance

    Hi Taj,
      The date format usually depends upon the user settings in SAP. for this check your user settings... Go to menubar - > System - > user profile -> own data ->defaults tab -> change the date format in which you want.
    Or else.......
    There is a conversion exit to change the date in the format you wish to get.... use the Function Module  FORMAT_DATE_4_OUTPUT and give the date  and the format in which you want to print as input parameters.
    Hope this helps.
    Regards,
    Ravikiran.

Maybe you are looking for

  • Ask the Expert: One Management with Prime Infrastructure 1.2

    With Tejas Shah Welcome to the Cisco Support Community Ask the Expert conversation. This is an opportunity to learn and ask questions from Cisco expert Tejas Shah on One Management with Prime Infrastructure 1.2 Combining the wireless functionality of

  • Organizational Structure Search Help in Webdynpro ABAP

    Hi, I need an organizational structure search help in webdynpro abap. It should list the organizational structure in tree view like RH_OBJID_REQUEST lists. I tried to use RH_OBJID_REQUEST function in webdynpro but I got " A RAISE statement in the pro

  • How can I get rid of unwanted text in my preview?

    My book looks the way I want it to look on my mac.  But when I preview it on my iPad unwanted text "Untitled"  and "Section 1 appears. How can I get rid of these words?  Can I replace them with something else?

  • Date Format in Forms 6i

    I have been allocated a new PC. Where is the date format used by forms (6i) set up. I previously used to enter 20110519 in my applications and the application and it used to accept. It now does not accept the above format. Requires 'DD-MON-YYYY'. The

  • Powerj to standard JAVA IDE

    I need to move from a PowerJ development platform to say Forte4java IDE. I'm having problems with propietary packages powersoft.powerj.ui.grid and the like. Is there a way I can compile referencing this libraries? as I move to powerj'less packages? R