Finding 'things' dynamically from within a program

Hi all,
I have the following 'problem': I'm writing a program that should find a particular folder in SAP Office. I want the program to find this folder as dynamically as possible: so I certainly don't want to use the folder-id hard-coded (besides: I'm writing this program on a development system, and on the prod.system the folder doesn't exist yet). I don't want either to specify a folder-name in my program, because the customer should be able to change that name if he/she likes it, and the program should continue to work correctly, finding the renamed folder (or for that matter, a whole new folder, if the customer wants that) if this (renaming) happens.
So what I'm looking for is a place (in the system) for the customer to indicate the name of the folder to be found by the program, a place that can be found by the program to read this name (and then find the folder with that name).
Of course this can be solved by a customer table (with application data, not a customizing table!) with name-value pairs in it. In that case I can use a name (= logical label) hard-coded in the program and read the associated value (in this case the name of the folder to be found) from that table.
But I don't want to use customertables if it can be done without them, in order not to pollute the system more than necessary.
So, my question is: can this be done without using a table in the customer-namespace? Does SAP offer such a thing?
Of course the SAP Office folder is only an example.
I know they do have something for file names (and paths): it's hidden in the customizing somewhere under SAP Web Application Server. There you can connect logical names to 'real' paths/filenames, which makes it very flexible: in your programs you only need to use the logical name, and on each server you can fill in the actual path on that machine, and your program works everywhere.
But in general???
Thanks for any idea's on this subject.
Regards Fred

If your are calling RSCONN01 after your function module then remove the submit of RSCONN01. This program will run scheduled every 1 to 5 minutes anyway as background job by the basis .

Similar Messages

  • Creating a Step for Background Job from within ABAP Program

    Step-1: I have a Report in ECC, which is scheduled as Background Job, which writes the file to the Application Server(UNIX)
    Step-2:  Trigger a Unix Command to ftp the file to other server.
    Both Step-1 & Step-2 can be done from SM36. 
    Another Scenario:
    Users can run the report in background from SE38 or using the transaction code for the report, In this case we want to call the external command.
    Instead of calling the External Command as below in the report, I want to create a Step from within the program when it is scheduled in background mode.
    CALL 'SYSTEM' ID 'COMMAND' FIELD lc_unixcom.    [ Here lc_unixcom has the External Command ].
    Any ideas??? Appreciate help.

    Hi,
    For submitting a report step, you may use either SUBMIT ... VIA JOB ... or JOB_SUBMIT function module.
    For external commands, this should be done only by calling JOB_SUBMIT function module.
    Sandra

  • I have CS 6 installed on a Win 7 OS machine. I can not connect to the internet to get updates from within the program. How do I fix this?

    I have CS 6 installed on a Win 7 OS machine. I can not connect to the internet to get updates from within the program. How do I fix this?

    IP routing doesn't work the way many folks might initially think it does; functional IP routing requires manual configuration and the establishment of static routes and default routes specific to the local network configurations, and it's very easy to get it wrong, or to get the default route swapped. Multiple NIC boxes don't magically work, either. (Been there, done that, wondered what happened to my network when the paths got reordered or my route settings were messed up, etc.)
    Routing configuration errors can be quite subtle, too. (Again, voice of experience. Ever had a thousand-seat office LAN accidentally routing through your desktop? As the, um, unnamed guilty party discovered, getting into that configuration was subtle. Seeing the performance crater on the fellow's box and on the LAN was obvious.)
    Knowing how IP routing works is a prerequisite to getting this configuration to work; there's manual configuration required. Clearly something has gone weird here.
    What to do? Read up on IP routing. I'll again suggest the threads and the manual mentioned earlier.
    And in general, I prefer to avoid using my comparatively expensive Mac boxes as sub-optimal IP routers or as firewall boxes. General-purpose operating systems and generic x86 boxes are going to be inherently poor IP routers. Dedicated routers (or embedded or surplus x86 boxes with routing software loaded) offload the Mac boxes here, and are also typically easier to configure manage. And "real" IP routers can have hardware specific to efficiently routing packets. Use of an outboard firewall or firewall-router box also greatly simplifies gateway routing, too; it's a configuration that many folks and many businesses tend to use.

  • Compiling a file from within a program

    I was hoping to write a teching JSP which a user would type in a simple java program and I would read this in to a file and run the program and to check the output to see if it is correct, but I don't know how you would compile and run the read in file. Is there some method that can write a kind of java shell command ?
    Thanks.

    TextPad does just that. For example if the program compiled successfully they create batch files and you can run the prog. from within the TextPad.
    Batch file for running looks like this:
    @ECHO OFF
    C:
    CD \dir1\dir2\AppName
    C:\j2sdk1.4.0\bin\java.exe AppName
    PAUSE
    file AppName.BAT

  • Is it advisable to MOVE contents of "Users/~/Library/Mail/V2" in the Finder instead of from within Apple Mail "ON MY MAC" left pane?

    Is it advisable to MOVE some folders/mailboxes within "Users/~/Library/Mail/V2" by drag and drop in the Finder instead of moving them from within the Apple Mail "ON MY MAC" left pane?
    Any drawback or problem or danger about it? In case of doing it, should I do it with Apple Mail open or closed?
    For more details about why I want to do it, please see:
    How to MOVE folders and mailboxes from Localhost into On My Mac?
    https://discussions.apple.com/message/25004039#25004039
    Thanks.

    Someone knows? Thanks.

  • Running ssh from within java program

    Hi!
    I am trying to start ssh from within java e.g.:
    Runtime run = Runtime.getRuntime();
    Process pro = run.exec("ssh -l xx 12.12.12.12");
    But it complains:
    socket: Operation not permitted
    ssh: connect to host 12.12.12.12 port 22: Operation not permitted
    Running ssh from the command prompt works just fine. It's run on win xp.
    What is the problem, and how can I avoid it?
    Endre

    Afraid not. I think maybe it's related to security permissions, but I am really not sure. If you can help, I would appreciate it.
    - Endre

  • -Xms64 from within the program

    Can I set -Xms64 within the program, i.e. main method, instead of it being a command line option? Same applies to some the other JVM options.

    No because the heap requires contiguous memory

  • How can I call a java class from within my program?

    I was wondering if there's a platform independent way to call a java class from my program.

    Here's my scenario. I'm working on a platform independent, feature rich, object-oriented command prompt program. The way I'm designing it is that users can drop classes they write into my bin directory and gain access to the class through my program. For example, they drop a class named Network.class in the bin directory. They would type Network network at my command prompt and gain access to all the methods available in that class. They can then type system.echo network.ipaddress() at my prompt and get the system's ip address. I have it designed that there's a server running in the background and the clients connect to my port. Once connected the end-user can enter their user name and password and gain access to the system. When they type a command they actually call another java program which connects to my server using a seperate thread. They can then communicate back and forth. I have it set that everything has a process id and it's used to keep track of who called what program. Once the program is done it disconnects and closes. Rather than getting into the nitty gritty (I didn't want to get into heavy detail, I know how everything will work) I'm really interested in finding out how I can call a java program from my program. I don't want it to be part of the app in any way.

  • Passing data to se16 from within abap program

    Hi,
    I have an internal table itab defined as three fields (e.g., fld1(10) type c) and would like to pass the data from fld1 row 3 to the se16 textbox and then have se16 process to find the table.
    I used "call transaction 'SE16'." to initiate, but I do not know how to pass the field value to the textbox and then have it process the field value to find the table.  Can anyone advise?
    thanks!

    I believe that this is what you want.
    report zrich_0004.
    data:   bdcdata like bdcdata    occurs 0 with header line.
    start-of-selection.
      perform bdc_dynpro      using 'SAPLSETB' '0230'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'DATABROWSE-TABLENAME'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=ANZE'.
      perform bdc_field       using 'DATABROWSE-TABLENAME'
                           'MARA'.
      call transaction 'SE16' using bdcdata
                                    mode 'E'.
    *        Start new screen                                              *
    form bdc_dynpro using program dynpro.
      clear bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      append bdcdata.
    endform.
    *        Insert field                                                  *
    form bdc_field using fnam fval.
      clear bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      append bdcdata.
    endform.
    Regards,
    Rich Heilman

  • Sending an email from within a program

    Hi,
    I am using SO_DOCUMENT_SEND_API1 to send an email from a program. Everything works fine, but the users don't want to see the popup message titled 'SAPconnect Send Process - List of Sent Objects'.
    Is there anyway I can supress this message from the program, or is it a setting in SAPconnect?
    Thanks
    Lindy

    If your are calling RSCONN01 after your function module then remove the submit of RSCONN01. This program will run scheduled every 1 to 5 minutes anyway as background job by the basis .

  • Changing CLASSPATH from within a program

    i need to start rmi registry in my program and i want is to bind to the right CLASSPATH. i know how to do it from the command line, but how do i set it from the program

    i need to start rmi registry in my program and i want
    is to bind to the right CLASSPATH. i know how to do
    it from the command line, but how do i set it from the
    programYou can't change it. Your choices for loading libraries
    1. Use classpath (either env var or command line option)
    2. Use the ext directory.
    3. Use a custom class loader - as the previous poster suggested.

  • Error finding/creating AM from Java Concurrent Program

    Hi All,
    Here is what I am attempting to do in a Java concurrent program
    --------------- Code Start - Error description in the code snippet comments ---------------
    public void runProgram(CpContext pCpContext)
    DBTransactionImpl mDBTransactionImpl
    = new DBTransactionImpl(pCpContext.getJDBCConnection());
    OAApplicationModule am = null;
    // At this point I tried to call various methods on DBTransactionImpl
    // And each method call, causes the CP to error with a different exception
    // Calling findApplicationModule() causes the following exception
    // java.lang.NullPointerException
    // at oracle.jbo.server.DBTransactionImpl.findApplicationModule(DBTransactionImpl.java:4840)
    // at xxicon.oracle.apps.xbol.pa.cp.XXIconImportUnitsFrmXls.runProgram(XXIconImportUnitsFrmXls.java:101)
    // at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    am = mDBTransactionImpl.findApplicationModule(IMPORT_UNITS_AM_INS);
    // Calling createApplicationModule() causes the following exception
    // java.lang.NullPointerException
    // at oracle.jbo.server.DBTransactionImpl.createApplicationModule(DBTransactionImpl.java:4954)
    // at xxicon.oracle.apps.xbol.pa.cp.XXIconImportUnitsFrmXls.runProgram(XXIconImportUnitsFrmXls.java:109)
    // at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    am = mDBTrx.createApplicationModule( IMPORT_UNITS_AM_INS
         ,IMPORT_UNITS_AM_DEF);
    // Calling isConnected() causes the following exception
    // java.lang.NullPointerException
    // at oracle.jbo.server.DBTransactionImpl.isConnected(DBTransactionImpl.java:4335)
    // at xxicon.oracle.apps.xbol.pa.cp.XXIconImportUnitsFrmXls.runProgram(XXIconImportUnitsFrmXls.java:65)
    // at oracle.apps.fnd.cp.request.Run.main(Run.java:161)
    if (mDBTransactionImpl.isConnected())
    // Log the fact that DBTrx is connected
    --------------- Code End - Error description in the code snippet comments ---------------
    Would someone be kind enough to tell me what is it that I am doing wrong here?
    Thanks a ton!
    KH
    Message was edited by: Kiran
    kiran.k.hegde

    Kiran,
    How did you convert/cast the CpContext into an AppsContext to supply to createRootAM?
    Would you maybe share some more code?
    Update
    No need for that, a simple
    public void runProgram( CpContext ctx )
    String amName;
    String methodName;
    OAApplicationModuleFactory amF = new OAApplicationModuleFactory();
    OAApplicationModule am = amF.createRootOAApplicationModule( ctx, amName );
    am.invokeMethod( methodName );
    will do...
    Message was edited by:
    TyskJohan

  • Does iPhoto 09 allow you to find a photo from outside the program?

    I quit using iphoto with 08 since I can't access the photos from my Adobe applications. I'm using Bridge right now, but there are some features I prefer in iphoto. However, I use these photos in publications and have to export them to another place in order to use them. Has this changed in the 09 version? I'd like to know before I spend the money on the update....

    I quit using iphoto with 08 since I can't access the photos from my Adobe applications. I'm using Bridge right now, but there are some features I prefer in iphoto. However, I use these photos in publications and have to export them to another place in order to use them. Has this changed in the 09 version? I'd like to know before I spend the money on the update....
    Well since you always had full access to your photos it has not changed - it also has not changed that the iPhoto library is a UNIX style package and it has not changed that you need to access your photos correctly - Click here for a discussion on accessing your photo in iPhoto '08 and '09
    Exporting them is one way - but certainly not the only way
    LN

  • CC icon is not appearing in my menu bar and I can't open it from the finder. apps work from within osx environment , just not CC app

    any thoughts regarding this CC issue. do you think someone else is logged in using my password info?

    You might try uninstalling the desktop app using the Cleaner Tool: helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html
    Then reinstall it from creative.adobe.com/products/download/creative-cloud

  • Running programs from within other programs

    I have a problem with running small java-applications form within another.
    If I put the BufferedReader for errors first, sometimes it gets stuck
    (without throwing any exceptions) when I want to run applications that
    are working without any errors, when I run them manually. But if I put
    the standardoutput-Reader first, it gets stuck (again without throwing
    any exceptions), when an error occurs. This "getting stuck" always happens
    in the line where the "while" is. It seems that nothing can be read, but its
    not null too.
    Thats part of my code:
    String cmd = "java -cp rightDirectory MyFile";
    Runtime rt = Runtime.getRuntime();
    Process pr = rt.exec(cmd);
    BufferedReader pout = new BufferedReader(new InputStreamReader(pr.getErrorStream()));
    String line2;
    while ((line2 = pout.readLine()) != null) {
    System.out.println(line2);
    pout.close();
    BufferedReader peout = new BufferedReader(new InputStreamReader(pr.getInputStream()));
    String line;
    while ((line = peout.readLine()) != null) {
    System.out.println(line);
    peout.close();
    How can this be done, that it works for all cases?

    hi, Have you read http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html ?

Maybe you are looking for

  • Understanding Application and Web Server Integration

    Folks, I am relatively new to web development and have some fundamental questions. I have read various articles and posts on these forums that describe the difference between an Application server and web server but haven't seen any on the integratio

  • Mini with 22" ADC Cinema Display w/ADC-DVI

    Greetings... I've been playing with my new 1.4Ghz mini and the display I happen to have free right now is an original 22" Cinema Display. I have the ADC to DVI adapter for this display and it's rock solid on my old G4 Sawtooth. Anyway on the mini it

  • Equipment is common for both the plants.How to differentiate the cost seperatly

    Hi Guys, Maintenance plants are Ex:2076 and 2023 and planning is done by 2076 for both the plants.Equipments is unique for both the plants. Suppose for example i have a equipment installed in 2023 and i will have the cost center of 2023 plant.When i

  • Nhl gamecenter app problem

    When im logging in with my gamecenter live account the app doesn't verify my account. There is just a loading screen which says 'verifying your account' and nothing doesn't happen. Any ideas how to solve this problem?

  • How to test if a image file exists???

    Hi ppl, heres my problem...im using servlets and jsp and i only ever want to access the jsp file from a redirect in the servlet. Problem arises however if the user trys to access the jsp file directly in which case all the relative links on the page