DSP - how to use Function Library

hi all,
ALDSP is returning the following error code:
*weblogic.xml.query.exceptions.XQueryDynamicException: ld:br/com/DSL.ds, line 59, column 274: {err}XP0002 [{bea-err}XP0002a]: Current node needed, but not defined (or $ missing preceding a variable name)*
I created a physical data source(DSP) based on a oracle function.
In my Logical data source (DSL), I have the following code:
for $bla in proc:BLABLA_MYFUNCTION($endereco/COD_COMPL1,$endereco/TXT_COMPL1,$endereco/COD_COMPL2,$endereco/TXT_COMPL2,$endereco/COD_COMPL3,$endereco/TXT_COMPL3,$endereco/COD_COMPL4,$endereco/TXT_COMPL4,null,null,null,null,null)
return
<ns1:Address>
<ns1:tipoEndereco?>a constant string</ns1:tipoEndereco>
<ns1:endereco?>
<end:numeroEndereco?>{fn:data($endereco/NUM_ENDERECO)}</end:numeroEndereco>
          *<end:complemento?>{fn:data($bla)}</end:complemento>*
<end:referencia?>{fn:data($imovel/TXT_REFERENCIA)}</end:referencia>
</ns1:endereco>
</ns1:Address>
i tried to use
+<complemento>+
+                    {+
+                    for $x in fun:FNTH_OBTEM_ENDER_PRINCIPAL($EQUIPAMENTO/ID_EQUIPAMENTO)+
+                    return $x+
+               }+
+                    </complemento>+
instead, but i got the same error.
does anyone can help me?
Edited by: virgulino on Jul 6, 2009 5:44 PM
Edited by: virgulino on Jul 6, 2009 6:01 PM

A variant is a very specific LabVIEW datatype (really a C++ type object internally) and trying to pass that to a function, which excepts a flat memory pointer there, for sure will crash very quickly.
As to endianess, yes Unflatten will be able to adjust for endianess, which in this case however is most likely exectly NOT what you want. So make sure that the you select native type for the endianess input on Unflatten from String. LabVIEW internally works with whatever is the native endianess, as will most likely your C++ DLL. The platform independent big endian format does only come into play when you receive data streams over some streaming interface like a network connection. Here it is desirable to use an endian format that is independent from the actual platform that generates and consumes the data stream. LabVIEWs default endianes is big endian here.
But as long as you pass data directly to native components like DLLs there is no difference in endianess between what LabVIEW uses and what those components use.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • How to use functions in Message Mapping

    Hi All,
           I am new to SAP XI. I don't know how to use functions in message mapping.     Can any body tell me how to use IF condition in message mapping.
         Please provide me a good link where I can get the details how to use those functions.
    Thanks,
    Srinivas.

    HI Srinivas
    Please take a look at these links,
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    /people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    This will help you
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/190eb190-0201-0010-0ab3-e69f70b6c257
    http://help.sap.com/saphelp_nw04/helpdata/en/55/7ef3003fc411d6b1f700508b5d5211/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/a8/bfc6373c8fea43bdb3541535bcbd43/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8a57d190-0201-0010-9e87-d8f327e1dba7
    This will give you a detailed Idea about Context
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db95f835c111d1829f0000e829fbfe/frameset.htm
    This will give more explanation on Queue
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/51a39490-0201-0010-5b9f-ae21e8b78195
    For understanding node functions this blog will help you
    /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
    Not sure you can find a collection of all...
    Cheers..
    Vasu
    <i>** REward Points if found useful **</i>

  • How to use external library(in .jar format) in netbeans project?

    How to use external library(in .jar format) in netbeans project?
    Thanks!

    How to use external library(in .jar format) in netbeans project?
    Thanks!

  • How to Use Function Module READ_TEXT

    Hi
    Anyone give me code or link or example for how to use function module READ_TEXT
    and what are the parameters which we have to pass in module.
    Regards.
    Mohsin

    Hi,
    refer the given below code.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
       CLIENT                        = SY-MANDT
        id                            = 'KOPF'uF0E0 these details we will get thru transaction , where we enter these details.
        language                      = 'EN'uF0E0 these details we will get thru transaction , where we enter these details.
        name                          = TNAME  "table name
        object                        = 'AUFK'    " these details we will get thru transaction , where we enter these details.
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    IMPORTING
       HEADER                        = HTEXT
      tables
        lines                          = LTEXT
    * EXCEPTIONS
    *   ID                            = 1
    *   LANGUAGE                      = 2
    *   NAME                          = 3
    *   NOT_FOUND                     = 4
    *   OBJECT                        = 5
    *   REFERENCE_CHECK               = 6
    *   WRONG_ACCESS_TO_ARCHIVE       = 7
    *   OTHERS                        = 8
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks
    Arun

  • How to use functional module " DETERMINE_DUE_DATE"

    Hi All,
    Can anyone suggest how to use functional module " DETERMINE_DUE_DATE" as it is used in an FI transaction code "FBL5N" and i have to use it in my zprogram to capture the net due date..please suggest..
    Regards,
    Shanu

    hi,
    CALL FUNCTION 'DETERMINE_DUE_DATE'
                 EXPORTING
                      I_FAEDE = LS_FAEDE
                 IMPORTING
                      E_FAEDE = LS_FAEDE
                 EXCEPTIONS
                      OTHERS  = 1

  • HT5037 How to use iPhoto Library Upgrader

    How to use iPhoto Library Upgrader

    Hello Terence,
    sorry that I come here with a completly different thema but I follow your answers since long and they are always excellent! And I do not know who could help... as I can not find the solution in Apple Support Communities.
    I am very afraid with my MacBook Pro: midd. 2012
    Prozessor: 2,3 GHz Intel Core i7
    4GB 1600 MHz DDR3
    Intel HD Graphics 4000 384 MB
    Software: OS X 10.8.5 (12F45)
    Kernel-Version: Darwin 12.5.0
    iPhoto 11, Version: 9.4.3 (720.91)
    iPhone 4s, 64GB Version:7.0.2 (11A501),
    Symptoms:
    1. I have notice three days ago that Spotlight allways answers I should go to the web when I look for data in my computer. It seems that Spotlight can not find anything from my computer.
    2. Timemachine has no data before the 28th. January 2014 (!?) No idea why this happens
    3. In Finder window when I go to "Alle meine Daten"(= All my data) there is absolutely nothing there...it means 0 objekts are there.
    4.In  Systemeinformationen (=Systeminformations) if I go to Software and then to Programs... there is nothig there because the Plug-In do not react quick enough (Das Plug-In hat beim Sammeln dieser Informationen nicht schnell genug reagiert). I am asking me which Plug-In it is and where to find it...
    5. On my iPhone the Photo-stream suddenly shows only 110 fotos from Dezember on, but in My MacBookPro the iPhoto Stream shows of course the lasts 1000 ones...from 25.01.2013 to 03.02.14 as it did allways before.
    I am not going to sync anything until I discover what is going on...
    6. On my Contacts suddenly appeared the link address of a "game" in my own card ( both in iCloud and Lokal AddressBook)... and I have never ever played an online game (!?). So I deleted this two links as I discovered them some days ago...
    I do not know what is going wrong here but I'm afraid to loose all my data in the computer, so I am making a secure copy in an external drive right now...
    Could it be a virus inside... a software problem may be...?
    The mayor  Problem is how to get the programms to work (Spotlight, etc), or how to repair them.
    I'm trying to find something wrong in the Protocols I have here, for example
    - the Repair protocol for users from 27.01.2012 ( /Users/Begona/Library/logs/fsck_hfs.log).
    - the Datasystem-Reppairprotocol from 01.02. 14 (/var/log/fsck_hfs.log)
    - the Installationsprotocol from 04.02.14...
    but I am really lost.
    Thank you very much for reading this, help would be high appreciated
    Begoña

  • How to use function:MLApp_DIMLAppPutWorkspaceData?

    how to use function:MLApp_DIMLAppPutWorkspaceData?
    MLApp_DIMLAppPutWorkspaceData is a function of MATLAB ACTIVE 
    在LABWINDOWS/CVI调用MATLAB的控件生成的函数有下面一个
    MLApp_DIMLAppGetWorkspaceData (CAObjHandle objectHandle,ERRORINFO *errorInfo,const char *name,const char *workspace,VARIANT data);
    在使用过程中应该如何用?
    定义了一个VARIANT *DATA=NULL,无法获得数据,应该如何处理?

    Hi,
    refer the given below code.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
       CLIENT                        = SY-MANDT
        id                            = 'KOPF'uF0E0 these details we will get thru transaction , where we enter these details.
        language                      = 'EN'uF0E0 these details we will get thru transaction , where we enter these details.
        name                          = TNAME  "table name
        object                        = 'AUFK'    " these details we will get thru transaction , where we enter these details.
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    IMPORTING
       HEADER                        = HTEXT
      tables
        lines                          = LTEXT
    * EXCEPTIONS
    *   ID                            = 1
    *   LANGUAGE                      = 2
    *   NAME                          = 3
    *   NOT_FOUND                     = 4
    *   OBJECT                        = 5
    *   REFERENCE_CHECK               = 6
    *   WRONG_ACCESS_TO_ARCHIVE       = 7
    *   OTHERS                        = 8
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks
    Arun

  • How to use Call library function node for a function in dll with VOID data type

    Hi All,
    I would like to ask for your kind help,
    I am facing an issue with the call library node.
    I have a C++ function(stdcall), which has void as data type
    error code XXXX(hwnd, lID, getValue, *void data1, *void data2)
    the data1 and data2 types are always changing depending upoin the value of "getValue".
    Primarily i can use call library node multiple times and adapt each node according to the data types of data1 and data2, and extract the values and use in the code. Here is no issue. Real question is:
    My question:
    How can i just use one time call library node and make a case depending upon the "getvalue", which will control the data type of data1 and data2. Here i really looking for solutions.
    My trials:
    i used varaints as input to the call libray node for data1 and data2, and selected Parameters in call libraby node as " Adapt to type". here labview just crashed.
    i really appreciate your feedbackand suggestions.
    Thanks
    Kutbuddin
    Solved!
    Go to Solution.
    Attachments:
    Clipboard02.jpg ‏103 KB

    A variant is a very specific LabVIEW datatype (really a C++ type object internally) and trying to pass that to a function, which excepts a flat memory pointer there, for sure will crash very quickly.
    As to endianess, yes Unflatten will be able to adjust for endianess, which in this case however is most likely exectly NOT what you want. So make sure that the you select native type for the endianess input on Unflatten from String. LabVIEW internally works with whatever is the native endianess, as will most likely your C++ DLL. The platform independent big endian format does only come into play when you receive data streams over some streaming interface like a network connection. Here it is desirable to use an endian format that is independent from the actual platform that generates and consumes the data stream. LabVIEWs default endianes is big endian here.
    But as long as you pass data directly to native components like DLLs there is no difference in endianess between what LabVIEW uses and what those components use.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • HOW TO USE FUNCTION Deletion of Requests from the Change Log IN PRCSES CHAN

    Respected all
    i used Deletion of Requests from PSA from the prcess chain and found good results, now i have only one request at the psa and thus i am doing good space utililisation. but when i am using Deletion of Requests from the Change Log i am not getting any changes in the request of dso. kindly let me know how to use this 2nd function.
    thanks
    abhay

    Hi Mahodaya,
    As per SAp standards its good to delete the requestes that are no longer needed for the delta update and no longer used ffor inti from the change log table and the data is loaded already in to DSO.
    Goto RSPC
    Click on create New PC -> enter the PC name n long descp
    Next we need to define the start process for the PC.Maintain the start variant process.save n come back.
    for deletion of change log we have option in the Other BW Processes -> deletion of requestes from change log
    Once u select the option we get a dialoge box here we need to create the variant for the process enter the process variant n long descp. cick ok.
    Next in the maintenance screen for the deleting the request from change log table will appear.
    Enter the selection patterns to which the requestes should be deleted from the change log.
    In the maintenance screen, select one or more Data Store objects for which requests are to be deleted from the relevant change log tables under Data Store Object column and select theInfo Area of the corresponding Data Store Objects under Info Area
    If you select the first check box exclude selction pattern, this means that del of requests from change log table will be ignored.
    or
    We can delete the requests which are Older than N-number of days (or) date in the above screen. For this one, enter the number of days (or) date in the filed Older than .
    OR
    If we want to select the requests with a certain status then we can also do in the above screen. We can select the following status indicators from the above screen.
    Delete Successfully Updated Requests Only -This status will delete only requests which
    are successfully updated into corresponding Data Store objects.
    Delete Incorrect Requests that were not Updated - This status will delete only incorrect requests which are not successfully updated into the corresponding Data Store Objects.
    Delete Activation Requests only, No Load requests- This status will delete only the activation requests (requests that begin with ODSR_... ). No load requests are deleted.

  • How to use functions and views in SMP2.3

    Hi all,
       I am new to SUP/SMP, I did some samples for hwc like create the MBO with object queries and operations using tables. Now i have a doubt 
         Is it possible to use sql functions in smp2.3?
         If it possible how to use them?
         for Select Query can i use stored procedure?
    Ex: Select * from Employee where EmpID=:empid for this querey i wrote a stored procedure like this
    Create procedure Emp_sp(@empID int)
    as
    begin
    Select * from Employee where EmpID=@empID;
    end
    This procedure shown in my database connections profile.
    I created an  operation,
    when i invoke the operation this procedure is visible in the operations list, i give the success screen in that i put a listview but here the attributes are not comming.
    Is there any mistake in my approach,
    Please suggest me.
    Thank you.

    I will suggest you to look at official document for more understanding:
    SyBooks Online

  • How to use Function module generated to update CDHDR CDPOS

    Hi,
    I have a Z-table, and I want to tracks the value changes in some fields,
    the data elements for those specific fields are marked for "Change document".
    I created a Change document object using the transaction SCDO and I got the function module.
    now can any one tell me how to use these function modules like ( what values need to be passed to function module. what value do we need to pass for   OBJECTID,..value for tables ...etc )
    I have a custom program to update/delete entries in the custom table so should I use the function module in my custom program to result an entry in CDHDR & CDPOS.
    how to display the old value and new values  for the fields specified to changes.
    Regards,
    Nagu.

    check in SE37
    RV_ORDER_FLOW_INFORMATION
    SD_SALES_DOCUMENT_READ
    SD_SALES_DOCUMENT_READ_POS
    SD_DOCUMENT_PARTNER_READ
    SD_DETERMINE_CONTRACT_TYPE
    SD_SALES_DOCUMENT_COPY
    SD_SALES_DOCUMENT_SAVE
    SD_SALES_DOCUMENT_ENQUEUE
    SD_PARTNER_READ
    RV_DELIVERY_PRINT_VIEW
    SD_PACKING_PRINT_VIEW
    SD_DELIVERY_VIEW
    RV_BILLING_PRINT_VIEW
    RV_PRICE_PRINT_HEAD
    RV_PRICE_PRINT_ITEM
    Rewards if useful...........
    Minal

  • How to use function in dll file

    hi
    i am new to jni. i want use the function declared in the dll function. i am also having the .h header file.
    can anybody please help me out with this?
    thank you
    suhas

    What kind of function? Function with name created
    with javah generated name or arbitrary function? In
    first case load library and just use "function()", in
    second case you should call something like "rundll"
    under Windows or create wrapper to call from Java and
    redirect call to DLL function itself.Thanks for the reply Michel,
    Actually I have connected RFID 6500 module to PC through com port. and want send request for which module gives response.
    The commands for the module are declared in FeCom.dll and also in FeCom.h. The definitions of the functions are given in FeComDef.h.
    Now I get problem while accessing function in these files.
    did you get the problem?
    waiting for reply
    Thank you,
    suhas

  • How to Use iTunes Library in older version

    I updated to the latest version of iTunes and I do not like it.  I went throught the trouble to move iTunes to another disk so I could download a the previous version of iTunes.  When I finally got the older iTunes installed, it was unable to use my iTunes library because the library was somehow updated by the never version of iTunes.  What a pain. 
    So, I'm back where I started and having to learn how to use the new iTunes. 
    I was more than happy with the previous version of iTunes that I had (I think that was 10. something)....
    I would like to try again to go back to it...if someone can tell me how to get around the library problem.
    Otherwise, I guess I'll just have to learn to live with the changes and do the extra work involved with using the new iTunes. 
    Is this a luxury problem?  If so, I guess I'm just a spoiled baby boomer.  Wah!

    In your case you will want to set the iPod to "Manual Update". THis option will allow you to connect the iPod to a computer and will not auto update so songs are lost. when your iPod is on this setting you can use iTUnes to dran and drop songs from the PC to your iPOd (Not the reverse).
    To set the iPod to manual, connect the iPOd to your PC, rightclick, and select "iPod Options" here you will switch from "Auto Update" to "Manual". When you change this and hit OK you will get a pop up telling you you have to manually eject the iPod while on this setting. this is normal.
    To get songs off an iPOd onto a PC you will have to use either a third party program to copy songs already put on it by iTUnes, Or you will have to set the iPod to "Disk Mode" and use windows exploer to copy songs from the PC and onto another. you can go here to iLounge to read on how to use thrid party program to copy from iPod to PC http://www.ilounge.com/index.php/articles/comments/copying-music-from-ipod-to-co mputer/

  • How to use functional global with a large amount of variables?

    Hi all,
    I'm currently developping a LV program which control and acquired data from a device. Up to now I used global variables ( very conveniente to use for experimental parameters). But now my program is become to be too large and I have too much "global" variables to continue to use a global.vi.
    I'm wondering if functional global can help me. If someone has an exemple of how use functional global with a large amount of variables...
    thanks

    I agree with Ben.
    Using queues is better than a number of Globals or Action Engines (Functional Globals).  If you need to pass data to a sub-vi, you can simply wire the queue out to a queue control of a sub-vi, or a reference.  See attached example of passing data to a sub-vi using a queue.  The example is an extremely simple, undocumented tid-bit of code that sends the loop count to the consumer VI.
    Run the main program called QueueProducer.vi.
    R
    Attachments:
    QueueProducer.vi ‏18 KB
    QueueConsumer.vi ‏14 KB

  • How to use function to Post with Clearing - Partial Pymnt with FB05

    hi,Dears,
    I am write a function to post with clearing - partial pymnt or Res. Items with FB05, but there is no any BAPI to do that, and I find the function POSTING_INTERFACE_CLEARING.
    but it seems that the function is only for Post with Clearing-Standard Screen, how to use that function to post with clearing - partial pymnt or Res. Items???
    Many thanks.

    Hi  Guys,
    If you post partiall payment you don't clear the invoice. Just post a normal item and fill the connection with the invoice, filling fields rebzg, rebzj, rebzz.
      PERFORM fill_ftpost using:
                       'P' '3' 'BSEG-BSCHL' '15', "
                       'P' '3' 'BSEG-HKONT'  customer_id ,
                       'P' '3' 'BSEG-WRBTR'  tmpt,
                       'P' '3' 'BSEG-GSBER'  it_pozkli-gsber,
                       'P' '3' 'BSEG-SGTXT'  'Patial payment',
                       'P' '3' 'BSEG-REBZG'  it_pozkli-belnr,
                       'P' '3' 'BSEG-REBZJ'  it_pozkli-gjahr,
                       'P' '3' 'BSEG-REBZZ'  it_pozkli-buzei.

Maybe you are looking for

  • Does anyone know how to play Mobile Youtube videos in Windows 7?

    http://m.youtube.com/ I am currently trying to make it work in Firefox 3.6 without success.

  • Itune 7.0.2 not responde

    I just update from itune 7.o.1 to 7.0.2 now Itune update my ipod photo for about 20seconds then the itune not responding.What can I do? Can i convert itune back to 7.0.1 I did not have problem with it

  • Error when trying to enable usage rights

    Hi there! I have created a PDF form using Live Cycle via Acrobat Pro 8.0.0. This is to let colleagues and customers with only the Reader installed fill out the form and email. Everything works like a charm until I'm returning from Live Cycle to Acrob

  • Import/export table stats in 11i

    Hi, Experts: A table stats is old in the prod instance and i want to import the stats from a test instance (the same table). I appreciate you if you can tell me the steps. Thanks and regards

  • Cut and paste problems

    Cut and paste between program has been real buggy since upgrading.  Today, I am trying to cut lines of text out of InDesign and paste into either a web browser or Mail, and nothing happening.  Text cuts OK, cause I can paste it back into ID, but won'