Is it possible to unload a program at runtime?

Hi experts,
maybe you can help solve the following problem:
I have a customer program that is calling a sap standard function module several times. The function module is BAPI_BUPA_ADDRESS_ADD. The BAPI works fine when calling it once but I get errors when repeating the call.
I assume that the error is caused by the fact, that the data of the respective function group is no longer initial after the first call. Of course this would be a programming error. My assumption is approved by a workaround: When I call the function module in a separate work process with "starting new task" I observe no errors.
Now I wonder if there is a better workaround because starting a new task for each call has the disadvantage of making each call asynchronous - moreover we create many work processes. For example is there a way to unload or refresh a function group at runtime so that the second call is like the first?
Thanks
Peter

Hi Thomas,
after importing the patch of sap note 1256410 the error "update was terminated", caused by function module BUPA_ADR_WRITE_DOCUMENT due to duplicate entries in table CDPOS, did not appear anymore.
However calling the function module BAPI_BUPA_ADDRESS_ADD several times destroys the address data of the business partner because the BAPI does not refresh the local address memory. I found out that this can be done with function module BUP_MEMORY_ADDRESS_INIT.
Thus actually two problems were involved here.
Peter

Similar Messages

  • Is it possible to unload a class?

    Suppose I take a classloader and load a class. Then I set my classloader to null and get rid of any objects of it that I've instantiated. Can that class be garbage collected?
    I'm thinking that it probably isn't possible. Even if you can get rid of all references to the class, what if a thread is running a static method of that class? But then again I suppose the stack trace would then have a reference so it can't be garbage collected. Was also thinking about what if a thread is just about to call it, but I guess you could just pop a classNotFoundException. So maybe it is possible... Can anyone comment?

    Well... I'm pretty sure it's possible to unload a class since it's possible to replace them. My IDE (IntelliJ) is capable of recognizing a change in your class file (as a result of compilation while the program is running, for example) and inserting the new class into the application if you want. This is very handy for working on web applications wherein the server takes a while to reload the application.
    So if you can reload the class, you can probably unload it, yes?

  • Is it possible to create a program for embedded system

    Is it possible to create a program for embedded system?

    Yes. Many solutions.
    1 = http://jcx.systronix.com/
    2 = http://www.harbaum.org/till/nanovm/index.shtml (see links to Asuro)
    And many more but I'm too lazy too look them for you ...
    Dan

  • If I am buying single app adobe premier pro by annual prepaid plan,after the after the end of the year subscription would it be possible to use the program further without updating or I should pay each year?

    If I am buying single app adobe premier pro by annual prepaid plan,after the after the end of the year subscription would it be possible to use the program further without updating or I should pay each year?

    Thanks
    2 бер. 2015 15:50, користувач "Peru Bob" <[email protected]> написав:
        If I am buying single app adobe premier pro by annual prepaid
    plan,after the after the end of the year subscription would it be possible
    to use the program further without updating or I should pay each year?
    created by Peru Bob <https://forums.adobe.com/people/Peru+Bob> in *Premiere
    Pro* - View the full discussion
    <https://forums.adobe.com/message/7243337#7243337>

  • I need to interface SCC-TC02 with help of SC 2345 and PCI-6024E DAQ Card.please tell me the procedure and if possible send me the program

    Dear Friends,
               I need to interface SCC-TC02 with help of SC 2345 and PCI-6024E DAQ Card.But i can not understand example program.please send me the procedure to interface these three componnets and if possible send me the program.
    With Regards,
    Eswaramoorthy K V

    nce of nth triggering pulse. i need to know when the when the ist trigger occurs and when the nth trigger occurs . please tell me how to to . what i know is that event triggering has to be done with start and stop trigger. please tell me how it has to doneSuresh;
    What you will need to do is to set up a digital start and stop triggered Analog Input acquisition. Then you will need to have a counter set as event counter, having the specific number of pulses you need configured as the preset value, configured to count down, and generating a pulse after the terminal count has been reached. That counter output will be the stop trigger of the Analog Input operation. In summary, you will have the external pulse being both the digital trigger of the Analog Input operation and the source pin of the counter, and the counter output being the digital stop signal for the analog input.
    I'm attaching a Labview VI that does the start and stop analog input acquisition. You will need to include the counter part and set the stop s
    ignal to be the counter output.
    Hope this helps.
    Filipe
    Attachments:
    AI_Start-Stop_D-Trig.zip ‏25 KB

  • Is it possible to have a program start with a splash screen?

    Would it be possible to have a program show a splash screen while loading with Java's latest release 1.4.0 ?
    If it is possible, could anybody explain me how.. and maybe show me a little example? :)
    Thanks in advance

    I just implemented this with one of my applications.
    I wrote a class which extends JWindow and adds a JLabel icon to the contentPane.
    The class containing the main method instantiates this class, makes the window visible, wait's some time and deletes the window:
    Through the Dimension object I calculate the center of the screen
    => Splash screen
    import javax.swing.*;
    import java.awt.*;
    class Splash extends JWindow
    JPanel pane;
    public Splash()
    super();
    setBounds(300, 225, 300, 200);
    pane = new JPanel();
    ImageIcon image = new ImageIcon("logo.jpg"); //Splash logo
    Dimension dim = this.getToolkit().getScreenSize();
    int height = (int) dim.getHeight() / 2;
    int width = (int) dim.getWidth() / 2;
    int iconheight = image.getIconHeight();
    int iconwidth = image.getIconWidth(); // Center of Screen
    int x = width - (iconwidth / 2);
    int y = height - (iconheight / 2);
    setLocation(x, y);
    JLabel label = new JLabel(image);
    pane.add(label);
    setContentPane(pane);
    pack();
    => "Main Method"
    import util.*;
    import app.*;
    import java.awt.*;
    import javax.swing.*;
    public class Main
    public static void main(String[] args)
    Splash splash = new Splash();
    splash.setVisible(true);
    try
    Thread.sleep(10000);
    catch (InterruptedException e)
    splash.setVisible(false);
    splash = null;

  • Is it possible to write a program to unzip files in pl/sql or sql ?

    Morning Experts,
    I have a zip file on my Host which contains a list of files(reports). Each of those files have a distinct name and i have already written the codes to retreive data from those files.
    My oracle is installed on a linux server
    Now my question is as follows:
    is it possible to write a program in sql to unzip those .zip files (located on my host) and stores its content in that same folder?
    Thanks

    You can use Java like this:CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED "Zipper"
    AS import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import java.util.zip.ZipInputStream;
    import java.util.zip.ZipEntry;
    public class Zipper {
       public static String unzip(byte[] pBuf) throws IOException {
          ZipInputStream in = new ZipInputStream(new ByteArrayInputStream(pBuf));
          ZipEntry ze;
          byte[] buf = new byte[2048];
          StringBuffer stribu = new StringBuffer(pBuf.length * 5);
          while((ze = in.getNextEntry()) != null) {
             int bytesRead;
             while((bytesRead = in.read(buf, 0, 2048)) > 0) {
                for(int i = 0; i < bytesRead; i++) {
                   stribu.append((char)buf);
    in.closeEntry();
    in.close();
    return stribu.toString();
    CREATE OR REPLACE FUNCTION unzip(
    pData IN RAW)
    RETURN VARCHAR2
    AS
    LANGUAGE JAVA
    NAME 'Zipper.unzip(byte[]) return java.lang.String';
    In this example you can pass the content of a reltively small zip file and get the contents as VARCHAR2.
    It's just to show where to start.
    Hth, Urs                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Is it possible to open a program when connecting an external hard drive?

    Is it possible to open a program when connecting an external hard drive?
    I have a external hard drive with an iphoto library. I just want to connect my drive and automatically see iphoto open! Possible?
    I know there are some action scripts, am i right?

    Ok, here are the steps to take. Doing this involves generating two scripts, the first of which will have the system monitor the attachment of a hard drive, and the second which will conditionally open iPhoto. To make these and set them up, perform the following steps (it is a little involved, but will get you the result you want):
    Script 1: A launch agent to monitor attached hard drives
    1. Open the Terminal utility in the /Applications/Utilities/ folder. Then copy and paste the following command into it and press Enter, which will open up an editor program in the Terminal:
    pico ~/Library/LaunchAgents/iphotodrive.plist
    2. Now copy and paste the following text to the Terminal window in its entirety so it is all entered into the Terminal editor:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>Label</key>
              <string>local.iPhotoDrive</string>
              <key>QueueDirectories</key>
              <array/>
              <key>WatchPaths</key>
              <array>
                        <string>/Volumes</string>
              </array>
              <key>ProgramArguments</key>
              <array>
                        <string>/Users/USERNAME/Library/iphotodrive.sh</string>
              </array>
    </dict>
    </plist>
    3. Use the arrow keys to navigate your cursor down to the place where it says /Users/USERNAME/Library..., and change the text of "USERNAME" to be the same name as your account home folder. For example, my login name in OS X is "tkessler" so my home folder is also "tkessler," so for me this is what should go in place of "USERNAME" in the text above.
    4. Now press Control-O to save the file, and then Control-X to exit the editor (use Control, and not the standard Command key here).
    Script 2: A shell script to open iPhoto when your drive is attached
    1. Type (or copy and paste) the following command in the same Terminal window to make the second script in the same editor:
    pico ~/Library/iphotodrive.sh
    2. Now copy and paste the following text into the Terminal editor:
    #/bin/bash
    if [ -d /Volumes/"IPHOTODRIVE" ]; then
            open -a iPhoto;
    fi
    3. Again use the arrow keys to navigate, and edit the text IPHOTODRIVE to be the exact name of the drive you would like to spur iPhoto to open. The name will be case-sensitive, and spaces are OK within the quotes.
    4. Again save this file by pressing Control-O, then press Control-X to quit the editor.
    5. Next ensure this new script can be run, so to do this now copy and paste the following command:
    chmod +x ~/Library/iphotodrive.sh
    Now to activate these scripts you can log out of your account and log back in, and they should work as expeted, and will launch iPhoto only when a drive named "IPHOTODRIVE" (or whatever you edited this entry to be) is attached to the system. This procedure will create two files at the following locations on your computer, so to undo it simply remove these two files followed by logging out and back in, and you should be good to go:
    /Users/USERNAME/Library/iphotodrive.sh
    /Users/USERNAME/Library/LaunchAgents/iphotodrive.plist
    If you run into any problems, then write back here and we can figure out if there are any nuance details to cover for your setup.

  • Is it possible to unload a class thru the standard Classloader

    is it possible to unload a class thru the standard Classloader,
    I mean during runtime..

    If you want do unload any class then create separate custom class loader and load it with it.
    When you don't need anymore that package you can simply set your custom class loader to null and the next time GC is invoked it may free the memory.
    If you want to free it right after you don't need that package anymore you should call System.gc() twice -
    this usually works.

  • Possibility of finding deleted programs in any table

    Is there any possibility to find deleted programs in a particular Table.

    Hi Pradeep,
      Refer this thread:
    Deletion programm : TADIR entry not deleted
    Regards,
    Ravi

  • Is possible to purchase the program and host it on our own server?

    Is possible to purchase the program and host it on our own server?

    Like so many questions, the answer is: yes... maybe.
    Mac OS X Server includes a web server, so it's entirely possible (trivial, even) to create a web site on your server.
    Making it available to the outside world depends a little bit on your network connection - you'll probably need to tweak your router/firewall configuration to let external connections into your server.
    Then you also need to consider your network speed - remote users will be limited to the upload speed of your link - if you're on a residential link that might not be all that fast. In addition, many large ISPs restrict the running of servers on residential connections (you don't say whether your server is located on a business or residential link).
    Beyond that, though there are various back-end technologies that you can use to add dynamic elements to your pages (so they're not just static HTML pages). Things like PHP, Perl, Ruby, Python and more are built in, as is MySQL if you want a databased-driven site. Some technologies are not supported, though, such as ASP. Therefore you might need to consider what dynamic content system (if any) you want to run.

  • Possible to run NXT program on PC simulate before I run it on nxt brick?

    1. Is it possible to run NXT program on PC simulate before I run it on nxt brick?  For example, NI has this program http://legoengineering.com/library/doc_download/126-play-the-scale.html so I want to run it on my PC first to check it and or modify it.  Then later I will install(compile) whatever to put it on the nxt brick.  Is there any type of simulation program or visual simulation of what I am about to put on the nxt brick before I put it on? 
    2.  (a)What is the difference between Lego NXT-G 2.0 versus (b)(Labview Student edition $80.00 + NI LabVIEW Toolkit for LEGO MINDSTORMS NXT )? I am guessing no datalogging with just option b?
      (a= http://www.legoeducation.com/store/detail.aspx?CategoryID=178&by=9&ID=1670&c=1&t=0&l=0&bhcp=1 ) (b= http://zone.ni.com/devzone/cda/tut/p/id/4435 )
    Thank you?.

    I do know of this one software where you can simulate the NXT, but it might only be for NXT-G programs.
    SimplySim at The NXT Step
    Other than that I don't think there's any way.
    As for the difference between the two, there's a whole ton. Those are two different programs with very different syntaxes. Lego NXT-G is the basic software that comes with the NXT kit. It's a very scaled down version of LabVIEW and is pretty nice. LabVIEW is much more advanced and you can do much more with it, but you are restricted to using the LabVIEW NXT Toolkit and the NXT's cababilities. (no float, only so much RAM, etc.). But you can still do a ton more with it. Yes, you can data log with LabVIEW in, like, many ways.
    Hope that helps!

  • Is this possible to run a program on one server(e.g. development server) on

    Is this possible to run a program on one server(e.g. development server) on another server via remote log on, or any other such technique

    Hi Surbhi,
    RfC are remote function calls through which u can remotely access other system.
    RFC
    Purpose
    Communication between applications of different systems in the SAP environment includes connections between SAP systems as well as between SAP systems and non-SAP systems. Remote Function Call (RFC) is the standard SAP interface for communication between SAP systems. The RFC calls a function to be executed in a remote system.
    Synchronous RFC
    The first version of RFC is synchronous RFC (sRFC). This type of RFC executes the function call based on synchronous communication, which means that the systems involved must both be available at the time the call is made.
    Transactional RFC (tRFC)
    Transactional RFC (tRFC, also originally known as asynchronous RFC) is an asynchronous communication method that executes the called function module in the RFC server only once. The remote system need not be available at the time when the RFC client program is executing a tRFC. The tRFC component stores the called RFC function, together with the corresponding data, in the SAP database under a unique transaction ID (TID).
    If a call is sent, and the receiving system is down, the call remains in the local queue until a later time. The calling dialog program can proceed without waiting to see whether or not the remote call was successful. If the receiving system does not become active within a certain amount of time, the call is scheduled to run in batch.
    tRFC is always used if a function is executed as a Logical Unit of Work (LUW). Within a LUW, all calls are
    ·         executed in the order in which they are called
    ·         executed in the same program context in the target system
    ·         run as a single transaction: they are either committed or rolled back as a unit.
    Implementation of tRFC is recommended if you want to guarantee that the transactional order of the calls is preserved.
    Disadvantages of tRFC
    ·       tRFC processes all LUWs independent of one another. Due to the amount of activated tRFC processes, this procedure can reduce performance significantly in both the send and the target systems.
    ·       In addition, the sequence of LUWs defined in the application cannot be kept. Therefore, there is no guarantee that the transactions are executed in the sequence dictated by the application. The only guarantee is that all LUWs are transferred sooner or later.
    Queued RFC (qRFC)
    To guarantee that multiple LUWs are processed in the order specified by the application, tRFC can be serialized using queues (inbound and outbound queues). This type of RFC is called queued RFC (qRFC).
    qRFC is therefore an extension of tRFC. It transfers an LUW (transaction) only if it has no predecessors (in reference to the sequence defined in different application programs) in the participating queues.
    Implementation of qRFC is recommended if you want to guarantee that several transactions are processed in a predefined order.
    RFC: Data Transfer
    All RFC types are transferred by means of CPI-C or  TCP/IP. They constitute a form of gateway communication. 
    HOPE I ANSWERED TO UR POINT
    reward if helpful
    thanks and regards
    suma

  • Launch many java programs at runtime

    Hi i got one question.
    i have a list of java program ina file.
    i read this file and get each program names.
    i would like to launch all java programs at Runtime from my main Java application.
    here is my code so far:
    String fileName = expansion + ".txt";
              try
                   File file = new File(fileName);
                   FileReader     fileReader= new FileReader(file);
                   BufferedReader bufferReader = new BufferedReader(fileReader);
                   while((program=bufferReader.readLine())!= null)
                        Runtime launch=Runtime.getRuntime();
                        System.out.println("I launch "+ program);
                        launch.exec("cmd.exe /c start /c cd /bin");
                        launch.exec("java "+program);
    this does not work. How can i handle this?
    thank you
    seb

    while((program==bufferReader.readLine())
    != null) {Sorry, I meant
    while((program==bufferReader.readLine())!= null) {{=^)                                                                                                                                                                                                                                                                                                                                                                   

  • Is it possible to load fxg graphics at runtime

    Hi All,
    I have costumers that want to change and update icons that where constructed with AI and are FXG graphics.
    Is is possible to load FXG graphics at runtime?
    Lior

    The AppModule for a page is configured in an attribute of the root element of that page. Maybe that attribute is available at the OAWebBean parameter in processRequest.

Maybe you are looking for

  • Double click on list field in ALV grid control

    Hello all, I developed a report with a ALV grid control. I would like to move some functionality from marking a line and pressing a button in the status line to double clicking a specific field in the output list and execute a command there (i.e. dou

  • ADF BC4J unable to connect to database on Application Server 10.1.3.1.0

    Hi, We had an ADF BC4J application deployed on application server 10.1.3. We recently migrated the application server to 10.1.3.1.0 (SOA Suite). The look up is made via JNDI and as far as I can tell my JNDI tree is empty. This can be checked by going

  • How can i automate importing certificates?

    My company is using zScaler for web filtering and we are trying to figure out how we can import certificate into firefox. I have tried copying the cert.db from one machine to another but the problem is that the page only loads with text, which implie

  • Balances

    Hi all how to transfer balances from 4.7 to 6.0 version. is there any procedure? what r all the data required from old system and how to take those data. we are merging in to 6.0 version which is allready using by our another same business. now we r

  • RFC adapter minpoolsize

    Anyone, who knows how to set the minimum number of connections for an RFC adapter? In communcation channel in the integration builder of the RFC adapter you can set the maximum number of connection - I wonder if you are able to set the minimum number