Dynamically call Matlab file

A colleague of mine has made a Matlab .m file that I should call in from LabVIEW. I have imported the function into a Matlab script node. I haven installed Matlab on my PC and therefore i get a licence error. Before I ask my boss for a matlab licence i will ask this forum if there is another way. The Matlab function is still under development and will change a number of times. I could be nice if I didn't have to import the function every time the .m file changes
1. Could I use a MathScript node instead? Or is there another way for importing or calling that function without a Matlab Licence?
2. Is it possible to dynamically call the Matlab Script node/ MathScript node eg via a propertynode or another method instead of importing the function?

I know the Model Interface Toolkit has some options for Matlab but I think that is only for compiled Matlab models.
http://sine.ni.com/nips/cds/view/p/lang/en/nid/211815
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

Similar Messages

  • Calling Matlab MEX Files in LabView ?

    What is the procedure to call a MATLAB MEX File in Labview?

    Nope Battler.
    I didnt find any help regarding Matlab MEX DLLs on that link by Chris.
    I presume if they are keeping mum, there is no solution possibly.
    Btw, I migrated my testing from LV to MSVC.
    Its a lot more easier to call  Matlab MEX DLLs from MSVC.
    http://www.mathworks.com/support/tech-notes/1600/1605.html

  • How to add dynamically called files to a teststand workspace?

    I am using TestStand 4.1.1 and LabVIEW 8.6.1 to try and install dynamically called VI's into a TestStand workspace.  I am following the instructions on pp. 14-8 through 14-10 in the TestStand Reference Manual (May 2008) edition.  So far I have not been successful, and the instructions are not clear.  For example, I cannot see in the instructions anywhere that I am supposed to add my test sequence.  Should the test sequence already be loaded in the project before this set of instructions is followed?  Could someone clarify this set of instructions for me? 
    Then when I get a successful build, I would like to try out the deployment and installation on a target computer.  Please provide a detailed and clear set of instructions on how this can be accomplished.
    Also, is there anyway to do this without building an installation?  Originally I just wanted to create the deployment without an installation.  But please explain both ways. 
    Thank you.
    epsilon-delta

    Epsilon,
    What are you using dynamically called VI's for? Are you adding dynamic VI's to LabVIEW, or to TestStand? If you are calling from TestStand, you don't need to do anything, the deployment utility will do all of the work for you.  The section on adding dynamically called files to a workspace listed in the Test Stand Reference Manual  is a mini-tutorial, and not exactly step by step instructions. All you need to do to add dynamically called VI's is to add them to your workspace file, and make sure the TSW is saved before you build your deployment. The example right before that one, covers how to deploy from a TSW, and mentions that you need to add your sequence file to the project that is in the workspace.
    The steps needed to deploy a sequence is as follows:
    1. Create a new workspace file
    2. Right click on the workspace file and select "Add a project"
    3.
    Right click the project and select add additional files (here you
    should add your sequence file and any files that are dynamically called
    (e.g. VIs))
    4. Go to Tools --> Deploy TestStand System
    5. Check "Deploy Files from TestStand Workspace File"
    6. Select the appropriate file path where you saved the workspace file
    7. Add in a path for the location you want to store your deployable image (for instance your desk top)
    8.
    Go to the distributed files tab and select "yes" to analyze the source
    files [here you will find all the files you chose to include with your
    distribution, this is automatically populated from the workspace and
    its dependencies), if you are deploying and plan on using a User
    Interface and not the TestStand Sequence Editor, here you would need to
    include the UI as well
    9. If you were making an installer, you
    could check the "Create installer" box under installer options and
    specify a location. Also here you could click on the drivers and
    components box to add additional driver installation (only if you are
    building an installer)
    10. Click on build status, then build
    You can also reference the same manual 14-7 through 14-8 which goes through an example deployment, and installation on a target computer. 
    After you build your installer, copy the files to the target computer and run the setup.exe to install to the new computer, what problems do you have? Do you get errors, and if so can you take screenshots of them? 
    If you do not wish to create an installer, and you already have a user interface installed, and the TestStand engine on your target machine, you can just copy all of your files to the target machine, and run them normally. We generally recommend building installers, so that any missing dependencies on the target system could be installed, and the TestStand  deployment tool takes care of pulling out all the needed files for you (except for the dynamiclly called ones, which is why you need to add them yourself). If you want you can use the deployment tool to create an image and then move that image to the target computer. The image should have all of your non-dynamic files included, but still requires that your system have all needed components installed. Please let me know what part of the deployment, installation process you are having errors, and we can help you troubleshoot. I always recommend trying to deploy a very simple example sequence with no code modules, if you are having problems. This is always a good troubleshooting tip that will help to determine if the problem is with one of your systems, or with your specific sequence file. 
    Richard S -- National Instruments --Applications Engineer -- Data Acquisition with TestStand

  • Dynamically called VI becomes broken inside an executable. Error 1003 from "Open VI Reference".

    Here's the problem. Dynamically called VI becomes broken inside an executable in debug executable mode Error 1003 is occuring from "Open VI Reference" Block. The computer has all of the necessary drivers, NI-VISA and NI-DAQmx. This executable is a new release of software that currently works on the PC in question. I can using NI-VISA Remote Server control the instruments from my PC using the executable. But when I put the executable on the PC I am getting this error. The only way I have been able to get this to work properly is to build the executable from the console I believe the project was created in, note that the project file has been moved to a network drive and it still works. All of the stations I have opened the project in show the VI that is being called is runnable. I've tried building the executable from the console I am deploying to and the same thing happens.
    I am honestly at a loss for ideas why this is occuring. Is this something about the way LabView works internally that may be causing this problem?
    I have trolled this forum for idea's and none have made sense to me.
    Any input would be greatly appreciated.
    -Nate

    Two ideas:
    Mass compile the project to ensure all linkages are ironed out
    Include the dynamically launched VI's into the "Always Included" section of the build spec
    Report back on if either of these actions solves your problem.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • How to dynamically load jar files - limiting scope to that thread

    Dynamically loading jar files has been discussed a lot. I have read a quite a few posts, articles, and demo code for doing just that. However, I have yet to find a solution to my problem. Most people modify their system class loader and are happy. I have done that and was happy for a time. Occasionally, you will see reference to an application server or tomcat or some other large project that have successfully been able to load and unload jar files, allow for dynamic deployment of code, etc. However, I have not been able to achieve similar success; And my problem is much less complicated.
    I have an application that executes a thread to send a given file/message to a standard JMS Server Queue. Depending on the parameters selected by the user, this thread may need to communicate with one of a number of JMS Servers, ie. JBoss, WebLogic, EAServer, Glassfish, etc. All of which can be done with the same code, but each needs to load their own flavor of JMS Client Jar files. In this instance, spawning a separate JVM for each communication would work from a classloader perspective. However, I need to keep it in the family and run under the same JVM, albeit each JMS Server Connection will be created and maintained in separate Threads.
    I am close, I am doing the following...
    1. Creating a new URLClassLoader in the run() method of each thread.
    2. Set this threads contextClassLoader to the new URLClassLoader.
    3. Load the javax.jms.JMSException class with the URLClassLoader.loadClass() method.
    4. Create an initialContext object within this thread.
    Note: I read that the initialContext and subsequent conext lookup calls would use the Thread�s
    contextClassLoader for finding/loading classes.
    5. Perform context.lookup calls for a connectionFactory and Queue name.
    6. Create JMS Connection, etc. Send Message.
    Most of this seems to work. However, I am still getting a NoClassDefFoundError exception for the javax.jms.JMSException class ( Note step #3 - tried to cure unsuccessfully).
    If I include one of the JMS Client jar files ( ie wljmsclient.jar for weblogic ) in the classpath then it works for all the different JMS Servers, but I do not have confidence that each of the providers implemented these classes that now resolve the same way. It may work for now, but, I believe I am just lucky.
    Can anyone shine some light on this for me and all the others who have wanted to dynamically load classes/jar files on a per Thread basis?

    Thanks to everyone - I got it working!
    First, BenSchulz' s dumpClassLoader() method helped me to visualize the classLoader hierarchy. I am still not completely sure I understand why my initial class was always found by the systemClassLoader, but knowning that - was the step I needed to find the solution.
    Second, kdgregory suggested that I use a "glue class". I thought that I already was using a "glue class" because I did not have any JMSClient specific classes exposed to the rest of the application. They were all handled by my QueueAdmin class. However...
    The real problem turned out to be that my two isolating classes (the parent "MessageSender", and the child "QueueAdmin") were contained within the same jar file that was included in the classpath. This meant that no matter what I did the classes were loaded by the systemClassLoader. Isolating them in classes was just the first step. I had to remove them from my jar file and create another jar file just for those JMSClient specific classes. Then this jar file was only included int custom classLoader that I created when I wanted to instantiate a JMSClient session.
    I had to create an interface in the primary jar file that could be loaded by the systemClassLoader to provide the stubs for the individual methods that I needed to call in the MessageSender/QueueAdmin Classes. These JMSClient specific classes had to implement the interface so as to provide a relationship between the systemClassLoader classes and the custom classLoader classes.
    Finally, when I loaded and instantiated the JMSClient specific classes with the custom classLoader I had to cast them to the interface class in order to make the method calls necessary to send the messages to the individual JMS Servers.
    psuedu code/concept ....
    Primary Jar File   -  Included in ClassPath                                                      
    Class<?> cls = ClassLoader.loadClass( "JMSClient.MessageSender" )
    JMSClientInterface jmsClient = (JMSClientInterface) cls.newInstance()                            
    jmsClient.sendMessage()                                                                      
    JMSClient Jar File  -  Loaded by Custom ClassLoader Only
    MessageSender impliments Primary.JMSClientInterface{
        sendMessage() {
            Class<?> cls=ClassLoader.loadClass( "JMSClient.QueueAdmin" )
            QueueAdmin queueAdmin=(QueueAdmin) cls.newInstance()
            queueAdmin.JMSClientSpecificMethod()
        }

  • I would like to know how i can save an byte array to a mat file format (matlab file format '*.mat') within to use the matlab API

    So, I search the binary matlab file format('*.mat').

    Title:
    Moving Data Between MATLAB® and LabVIEW
    Problem: 
    How can I share data between LabVIEW and the MATLAB environment?
    Solution: 
    MATLAB users can move data between the
    MATLAB environment and LabVIEW, you have several options. Prior to
    LabVIEW 5.1, the only way to transfer data between these two
    environments was to use the Save and Load functions. Those are discussed herein.
    Beginning
    in LabVIEW 8.0, MathScipt was introduced. MathScript is an integrated
    part of LabVIEW that you can use to combine intuitive graphical
    dataflow programming with math-oriented textual programming. See the
    attached links below for more information on MathScript.
    Beginning
    in LabVIEW 5.1, the MATLAB script node was introduced into the LabVIEW
    programming environment. The MATLAB script node makes ActiveX calls to
    the MATLAB software from within LabVIEW. This requires that both MATLAB
    be installed on the same machine and that a valid license is obtained.
    More information on the MATLAB script node can be found in the attached
    KB's.
    For all versions of LabVIEW, this data transfer can be
    performed by saving the data in a file using the MATLAB software and
    reading it directly from LabVIEW, or vice versa. In the MATLAB
    environment, the command "save" allows you to save the data in
    binary format (*.mat) or ASCII format. You also have an option of
    saving it in ASCII format using a tab delimiter between data points and
    the command "load" allows you to read in the data.
    ASCII Format
    Complete the following steps to import or export data between LabVIEW and the MATLAB environment using an ASCII file format.
    From the MATLAB environment to LabVIEW
    To save a vector or a matrix X in tab-delimited ASCII format, enter the following in the command window or m-script file in the MATLAB environment:
    >>SAVE filename X -ascii -double -tabs
    This creates a file named filename containing data X in tab-delimited ASCII format.
    Import the file into LabVIEW using the Read From Spreadsheet File VI located on the Functions»File I/O palette.
    From LabVIEW to the MATLAB environment
    To export a matrix X from LabVIEW to the MATLAB environment, first save the data in ASCII format in LabVIEW using the Write To Spreadsheet File VI on the Functions » File I/O palette.
    Enter the following in the command window of the MATLAB environment, or in the m-script file:
    >> LOAD filename
    This reads the data into the MATLAB environment.
    Binary Format
    Complete the following steps to import or export data between LabVIEW and the MATLAB environment.
    From the MATLAB environment to LabVIEW
    As mentioned above, LabVIEW does not save multiple variables to one
    data with extra manipulation, and will not be discussed here.
    Therefore, the only way of sending the data from the MATLAB environment
    to LabVIEW without tampering with the MAT binary file structure is
    using the ASCII format. Also, please bear in mind that you need to have
    one file for one variable.
    From LabVIEW to the MATLAB environment
    Because
    the MATLAB software saves data in its own binary format, the "MAT"
    file, binary LabVIEW data must be converted to this format prior to
    transferring the data. The attached examples can be used to save
    LabVIEW data in the MATLAB software format. The convenience of the .MAT
    file format is that more than one variable can be saved in the same
    file. The example shows saving seven variables to .MAT format; the
    example can be modified for any number of variables.
    Once this data is saved from LabVIEW, it can be read into the MATLAB environment, using the following command:
    >>LOAD filename
    The Who
    command can then be used to display all the seven variable names, and
    you can display the content of them by entering the variable names at
    the command prompt as usual.
    MATLAB® is a
    registered trademark of The MathWorks, Inc. Other product and company
    names listed are trademarks and trade names of their respective
    companies.
    | Michael K | Project Manager | LabVIEW R&D | National Instruments |

  • Can we dynamically change the file name in dst file in Report 6i, Urgent!

    I am calling dst file to generate file with diffenet format.
    but name of the pdf file should generate dynamically everytime i call dst file,
    is there anyway to set the desname in dst file in Report 6i? Any solution,
    Thanks for your help

    Hi Roshan,
    Create two RKF's one for Normal Invoices and another for canceled invoices, for doing this you should have some characteristics or some status value which will identify the normal and canceled invoice.
    In the Normal Invoice RKF simply restrict the key figure with status restriction as Normal and pull the invoice amount as key figure. And in case of Canceled key figure you will set the status restriction as "canceled" and pull the invoice amount, now for canceled invoice key figure to show the negative value do the following,
    Go to RKF properties of canceled invoice and mark the check box +/- Reverse sign, which will show the negative amount.
    Regards,
    Durgesh.

  • Can i call a file which is not bundled with war file

    i am dynamically creating a file which i want to call in another jsp but it is giving error file missing. i am working on sun app. server all the jsps servlet,beans are bundled with war file. can i call a file in some jsp which is not bundled with war. i am also setting path of server to that folder.but its not working. how can i do it.

    Do you have a small code sequence that you can share with us?

  • VI Profiler on dynamic called VI archiecture

    I have a question about debugging to put to the Gurus out there.
    My architechure is this, Event driven Producer, which queues Data into the Primary Consumer Loop. Primary consumer Loop performs an action and Queues information into the Secondary consumer Loop which updates the front panel GUI.
    The Primary consumer calls test VIs dynamically using a call by Ref node function.
    I have a very simple test VI which I am repeatedly calling which is outputing the time since the whole test sequence started (in ms) to the Front panel.
    For debugging I have put a conditional disable around the dynamic call function, and I can change it to call the test VI directly.
    VI profiler is telling me that the execution of my run a test VI which does the dynamic call takes 0ms. This can't be true.
    The results from VI profiler would indicate that I could run 20 tests in about 1 second, but it's taking me about 10 seconds.
    I do 10 display updates (via property nodes to change the active row, colours and contents of a multicolum listbox) per test.
    Any ideas how I should be debugging where the time is being lost? - VI profiler is not helping enough.
    Cheers
    James

    James W wrote:
    Ben wrote: Use the VI itself to time how long it takes by getting the time before and after.  
    Opening a dynamic VI takes time. Load ahead of time use it and when done close it.
    1) Def FP updates (to shut of  screen updates), hide the MCLB, update it, un-hide, un-defer. passing data directly to the MCLB via terminal is fastest but can't do color stuff without property nodes.
    2) Pre-load
    Ben
    1) 
    And here comes the killer...
    If I defer FP updates, the code runs slower!!! not faster.
    If I change the MCLB from Synchronous to Asynchronous using the drop down menu before I run it has no effect on the run time.
    If I change the MCLB from Synchronous to Asynchronous at runtime using at property node (not meant to do this), I get error 1073 and the GUI stops updating (sometimes while redrawing the screen half way down), but wiping over the FP window 10 seconds later shows the code has run significantly faster.
    2) How do you preload 120 different tests all with the same VI pattern (generated from the same template) and ensure you have the correct VIs in memory without running them? (and producing loads of errors - these tests all logs any errors they produce to files)
    I asked for the Guru's I didn't think I was going to the the Knights so fast!! Thanks Ben
    Lacking Guru's you'll have to settle for me for now. 
    If the defer makes it go slower the issue may indeed be the FP updates since the defer forces an extra update when set.
    Is is slower if do the next two steps of hiding updating and un-hiding?
    If you toss all MCLB code does it run fast enough to make you believe it is the GUI update that is hitting you?
    Can you post image of your code as png or jpg?
    How much data is in the MCLB?
    This cloud has links to LabVIEW_Performance threads. Not sure if any of those threads ring a bell.
    Please show us the code to get the most out of us.
    Not sure about Q#2 but I would open them and keep a ref to each in array so that they are loaded when I need to run them. 
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to pass command line parameters in calling ant file

    Hi All, I m using a Build file which calls another build file.
    That build file is run from the command prompt by give ant -lib <path of jars it needs for executing>.
    Now i m calling this file from main build file but it does not work as i m not able to set <b>-lib </b>.
    Pls can anybody let me know how to set such command line parameters to call the build file in ant script.
    Thanks in Advance.
    Ketan.B.Parekh

    Create the control file dynamically (and fill one of the columns with the file name as a constant) before you start SQL*Loader
    Another option is to use external tables
    Re: Data Loading
    Message was edited by:
    Jens Petersen

  • Calling Matlab 7.1 from LabView 6.1

    Hello,
    I am using LabView 6.1 and I have recently installed Matlab 7.1 on the same machine.
    When I try to call Matlab by a Matlab script node, I only get the error
    message that the script could not be executed and that a failure
    occured calling the script server. (This does not depend on what script
    I implement.)
    Earlier, I had Matlab 6.5 which worked well with the script nodes.
    What can I do to get the script nodes running?

    Hello ffffff 
    I can pretty much assure you that LabVIEW 6.1 has not been tested with MATLAB 7.1, and "officially" I might go so far as to say it's not supported.
    That said, you might try downloading the MATLAB Script.zip file attached to this KnowledgeBase entry:
    http://digital.ni.com/public.nsf/allkb/4475BC3CEB062C9586256D750058F14B
    Follow the directions in the KB to update the matscript.dll file in your LabVIEW 6.1 distribution, and this might resolve the issue.  This addressed numerous issues with the MATLAB script node so that version 7.0 of MATLAB would work well with LabVIEW.  I'm not sure if this version of the matscript.dll has been tested with LabVIEW 6.1 or not, but in theory it should work.  Also, if the problems you are encountering are new to MATLAB 7.1 in specific, there may not yet be a solution for this; I don't know how new MATLAB 7.1 is.
    Good luck!
    Message Edited by Jeff B on 02-16-2006 07:44 AM

  • How to call matlab from Sun studio Fortran? ^_^

    Hello, everyone,
    I have a fortran code which calls matlab engine and matlab functions. I have successfully demonstrated the code in Compaq Visual fortran 6.6 platform. However, I don't know how to call matlab in Sun Studio platform. I don't know how to add the required Liberay modules in the Sun Studio Fortran project.
    Now I can build the code successfully, however, I cannot build the project due to the following errors:
    Undefined               first referenced
    symbol                in file
    sum_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    matgetvariable_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxcreatedoublematrix_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    matputvariable_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    maxval_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxcopycomplex16toptr_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    minval_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    engopen_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxdestroyarray_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    engputvariable_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxcreatenumericarray_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxcopyreal8toptr_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    matopen_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    matclose_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxclassidfromclassname_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxgetstring_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    engevalstring_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxgetpr_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxgetpi_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    mxcopyptrtoreal8_ build/Debug/Sun12-Solaris-x86/FDTD_3D.o
    I think this is because that I didn't add the required liberary modules in the project. How to do that?
    I really appricate anyone who can help me to solve my problems. Thank you very much&#65281;
    All the best,
    Yunhong

    hello,
    Unfortunately, matlab doesn't exist on solaris x86 platform. They only deliver matlab for sparc platform, and i'm wonder if it is EOL'ed now?
    Sun never convince Mathworks to offer matlab for solaris x86, so you have to use (if it is possible) other software like Mathematica (money) or Scila, Sage, Octave, ... (free)
    We are several Mathworks customers who asked Mathworks for that, and i never understand why people continues to use old or slow sparc machines to compute.
    Anyway, today, solaris isn't a right choice for computing, but i'm waiting for Sun to prove that i'm wrong.
    (my main compute server is a Sun V40z with Solaris 10, but the next one will be a Sun X2270 with CentOS, because matlab)
    gerard

  • Web.show_document calling .htm files saved on disk....

    Hi ,
    Is it possible to call .htm files saved on disk - let's say c:\my_htmFiles on AppServer/DevSuiteServer using the web.show_document form's built-in...????
    I have tried the following:
    web.show_document('c:\my_htmfiles\first.htm','_blank') and
    web.show_document('file://c:\my_htmfiles\first.htm','_blank')
    but whereas in the web browser's file->open both of them work.... in web.show_document do not....
    Is it possible to do it....?????
    Note: I use Dev10g
    Thanks....
    Sim

    I 'll try it of course.... but is it possible to define multiple directories down this virtual directory.....????
    Assuming that there is the following dir structure:
    C:\dev10gr2/tools/web/html
           |
           |--------------------------------------------/app1
                                                         |---------------/subdir1
                                                         |---------------/subdir2
           |--------------------------------------------/app2
           |--------------------------------------------/app3Is it possible to define multiple dirs ....????
    Is there any doc which describes it with examples.....?????
    Thanks.......
    Sim

  • How to edit a program dynamically called from another program

    Hi all,
    Can anyone help me in coding for a program which call's another
    report dynamically from selection screen(for instance z_dynam_called)
    and retreive the whole content of the dynamically called program(z_dynam_called)
    into an internal table and replace the contents of the internal table  with some new code and put it back in z_dynam_called and save it.
    Thanks in advance.
    Needful will be rewarded with points

    Hi,
    Follow this:
    1) U can pass data from one program to another in a single login using SAP memory......
    2) u can create a DBtable update dat table using ur first pgm and fetch from second program.....
    3) U can pass the report output using EXPORT TO MEMORY addition and get it back using IMPORT FROM MEMORY..........
    Eg:
    Export the selected rows to the next program
    EXPORT final TO MEMORY ID 'ABC'.
    CALL TRANSACTION 'XXX'.
    XXX is the tcode for the other program where u want to import the values.
    In the second program
    INITIALIZATION.
    IMPORT the internal table from the first program
    IMPORT final FROM MEMORY ID 'ABC'.
    Thanks and Regards,
    Reward If Helpful

  • How to call PDF file in Web Dynpro Appl?

    How to call PDF file in Web Dynpro Appl?

    Hi Gobinath,
    1. Create a value attribute of type byte called pdfSource.
    2. Insert an UI element called Interactive Form in your layout
    3. Set the source property of this Interactive From UI element to the context pdfSource.
    4. Insert a button which would open your pdf file.
    public void onActionsubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionsubmit(ServerEvent)
       IPrivate<viewname>.IContextElement contextElement = wdContext.currentContextElement();
             byte[] bytes = contextElement.getPdfSource();
             try
                   File file = new File("C:
    temp
    example.pdf");
                   FileOutputStream os = new FileOutputStream(file);
                   os.write(bytes);
                   os.close();
                catch (IOException e)
                   // do something
                   e.printStackTrace();
        //@@end
    Warm Regards,
    Murtuza

Maybe you are looking for

  • Xslt Problem (var in var)

    I have an xml file that looks, like this: <overschrijving soort="eigenrek" kleur="">      <veld naam="Memodatum (DD/MM/JJ)">           <omschrijving>den datum</omschrijving>           <type breedte="10" aantal="1" maxlength="10" typecode="1">text</ty

  • Correct procedure to export/import catalog

    I took photos on my vacation and imported them into Lightroom 4 on my laptop. The RAW files are separated by Date folders. I have edited many of them and saved the resulting jpgs in a separate folder called jpg exports, as a subfolder in each date fo

  • How to run java exe files without having to install jre

    Hi all i want to run a java application. i already converted the jar file to exe using Launch4j but the problem is that i want to run the application on other computers without having to install jre. please, is this possible and if yes, how can i do

  • IWeb will not launch #2

    I have the same problem described by Wayne Marien (4/11/06). iWeb starts but hangs before opening. I have done the following 1. Run Disk Utility and repaired permissions 2. Deleted the plist file in the Domian 3. Reinstallled iWeb and rerun Disk Util

  • Sub-Query using IN

    Hi I am trying to wite a sub-query that will return the values that exist in the names table and also the address table. If I knew the values I could write the following: SELECT n.nme_id FROM name n WHERE n.NME_ID IN (1161, 1181); However, I would li