Switch to different application server in ABAP program

Hello everyone,
I am currently working on some ABAP objects classes and tool programs for additional user administration functionality. We are runnig a SAP ERP system with distributed application servers and active logon load-balancing for users.
I'd like to switch to a different application server from within my program in order to get all relevant information for an active user. So far I only found the function TH_SELECT_SERVER (from the function group THFB) for this, but this uses a separate dialog for interactively switching to another application server.
I could use RFC calls with a lookup table for the destinations of individual application servers, but this would not be as flexible. Also I would have to create some wrapper code for standard functions which are not defined as RFC-usable. So I would rather like to switch to the other server instead.
What I'd like to do instead is switching to another server from a user-related server list without any additional interaction in order to run a function locally on the other server. Does anybody know some function, object method etc. which will do the trick?
Greetings,
Markus.

Hello Thomas,
Bingo !!!
I debugged the report program RSM51000_ALV & found the sub-routine SM51_USER_CMD.
The SY-UCOMM for our purpose is 'RLOG'. and it utilises the FM 'TH_REMOTE_TRANSACTION' )
Hope this will be of some help to the thread starter.
BR,
Suhas

Similar Messages

  • Fetching of multiple files from Application Server into SAP Program

    Hi All,
    I have a issue related <b>Fetching of multiple files from Application Server into SAP Program</b>.
    Actual issue is as below.
    In the <b>selection screen</b> of <b>my program</b> i will give <b>Application Server Path</b> as :
    <b>/PW/DATA/SAP/D1S/PP/DOWN/eppi0720*</b>
    Then the based on above input it should pick up all the files that are matching <b>eppi0720*</b> criteria.
    Suppose if i am having <b>5</b> files with above scenario, i have to fetch all those <b>5</b> files at a time and place in my SAP Program.
    All those 5 file's data should come into SAP at a time.
    Can anybody tell me how can we solve above issue.
    If any body has come across same issue please provide me with solution.
    Thanks in advance.
    Thanks & Regards,
    Rayeez.

    If you want to get around the authorization check, you can do something like this.
    report zrich_0001 .
    parameters: p_path type epsf-epsdirnam
                      default '/usr/sap/TST/SYS/global'.
    parameters: p_file type epsf-epsfilnam default 'CO*'.
    start-of-selection.
    perform get_file_list.
    *       FORM get_file_list                                            *
    form get_file_list.
      types: name_of_dir(1024)        type c,
             name_of_file(260)        type c,
             name_of_path(1285)       type c.
      data: begin of file_list occurs 100,
              dirname     type name_of_dir,  " name of directory. (possibly
                                             " truncated.)
              name        type name_of_file, " name of entry. (possibly
                                             " truncated.)
              type(10)    type c,            " type of entry.
              len(8)      type p,            " length in bytes.
              owner(8)    type c,            " owner of the entry.
            mtime(6)    type p, " last modification date, seconds since 1970
              mode(9)     type c, " like "rwx-r-x--x": protection mode.
              useable(1)  type c,
              subrc(4)    type c,
              errno(3)    type c,
              errmsg(40)  type c,
              mod_date    type d,
              mod_time(8) type c,            " hh:mm:ss
              seen(1)     type c,
              changed(1)  type c,
            end of file_list.
      data: begin of file,
              dirname     type name_of_dir,  " name of directory. (possibly
                                             " truncated.)
              name        type name_of_file, " name of entry. (possibly
                                             " truncated.)
              type(10)    type c,            " type of entry.
              len(8)      type p,            " length in bytes.
              owner(8)    type c,            " owner of the entry.
            mtime(6)    type p, " last modification date, seconds since 1970
              mode(9)     type c, " like "rwx-r-x--x": protection mode.
              useable(1)  type c,
              subrc(4)    type c,
              errno(3)    type c,
              errmsg(40)  type c,
              mod_date    type d,
              mod_time(8) type c,            " hh:mm:ss
              seen(1)     type c,
              changed(1)  type c,
            end of file.
      call 'C_DIR_READ_FINISH'             " just to be sure
           id 'ERRNO'  field file_list-errno
           id 'ERRMSG' field file_list-errmsg.
      call 'C_DIR_READ_START' id 'DIR'    field p_path
                              id 'FILE'   field p_file
                              id 'ERRNO'  field file-errno
                              id 'ERRMSG' field file-errmsg.
      if sy-subrc <> 0.
        sy-subrc = 4.
        exit.
      endif.
    * Read the file list and add to internal table.
      do.
        clear file.
        call 'C_DIR_READ_NEXT'
          id 'TYPE'   field file-type
          id 'NAME'   field file-name
          id 'LEN'    field file-len
          id 'OWNER'  field file-owner
          id 'MTIME'  field file-mtime
          id 'MODE'   field file-mode
          id 'ERRNO'  field file-errno
          id 'ERRMSG' field file-errmsg.
        if sy-subrc =  1.
          exit.
        endif.
        append file to file_list.
      enddo.
    * Write out the file list
      loop at file_list.
        write:/ file_list-name.
      endloop.
    endform.
    Regards,
    Rich Heilman

  • Is it possible to integrate a different application server with Creator

    It's not love at first sight, but I think i'm gonna fall in love with creator. my question is, is it possible to use/integrate a different application server into creator instead of Sun's Application Server. I prefer to use Jonas

    Alexis, thanks for your help -
    The following was taken from the JRUN logs right after trying to deploy a sample Creator project called teta -
    It works fine with the APP server provided with Creator.
    # Created by JRun on 07/12 18:25:27
    07/12 18:25:38 info JRun Web Server listening on *:8105
    07/12 18:25:39 info Deploying enterprise application "JRun 4.0 Internal J2EE Components" from: file:/C:/JRun4/lib/jrun-comp.ear
    07/12 18:25:39 info Deploying EJB "JRunSQLInvoker" from: file:/C:/JRun4/lib/jrun-comp.ear
    07/12 18:25:39 info Deploying enterprise application "default-ear" from: file:/C:/JRun4/servers/teta/default-ear/
    07/12 18:25:39 info Deploying web application "JRun Default Web Application" from: file:/C:/JRun4/servers/teta/default-ear/
    07/12 18:25:40 info Web Services in default-ear#default-war:
    07/12 18:25:40 info AdminService
    07/12 18:25:40 user JSPServlet: init
    07/12 18:25:41 info Recovering 1 session(s)
    07/12 18:25:41 info Deploying web application "file:/C:/JRun4/servers/teta/teta.war" from: file:/C:/JRun4/servers/teta/teta.war
    07/12 18:25:41 user JSPServlet: init
    07/12 18:25:41 error Could not pre-load servlet: JSPServlet
    [4]java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
         at java.lang.Class.getConstructor0(Class.java:1762)
         at java.lang.Class.newInstance0(Class.java:276)
         at java.lang.Class.newInstance(Class.java:259)
         at jrun.servlet.WebApplicationService.addListener(WebApplicationService.java:1393)
         at jrun.jsp.compiler.JRunTagLibraryInfo$TLDParser.listenerclassEnd(JRunTagLibraryInfo.java:602)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at jrunx.util.SAXReflectionHandler.invoke(SAXReflectionHandler.java:115)
         at jrunx.util.SAXReflectionHandler.endElement(SAXReflectionHandler.java:38)
         at org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java:353)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1536)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
         at jrun.jsp.compiler.JRunTagLibraryInfo.init(JRunTagLibraryInfo.java:190)
         at jrun.jsp.compiler.JRunTagLibraryInfo.<init>(JRunTagLibraryInfo.java:119)
         at jrun.jsp.JSPEngine.checkResourceForTaglibs(JSPEngine.java:483)
         at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:451)
         at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141)
         at jrun.jsp.JSPServlet.init(JSPServlet.java:62)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    [3]java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at jrunx.util.SAXReflectionHandler.invoke(SAXReflectionHandler.java:115)
         at jrunx.util.SAXReflectionHandler.endElement(SAXReflectionHandler.java:38)
         at org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java:353)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1536)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
         at jrun.jsp.compiler.JRunTagLibraryInfo.init(JRunTagLibraryInfo.java:190)
         at jrun.jsp.compiler.JRunTagLibraryInfo.<init>(JRunTagLibraryInfo.java:119)
         at jrun.jsp.JSPEngine.checkResourceForTaglibs(JSPEngine.java:483)
         at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:451)
         at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141)
         at jrun.jsp.JSPServlet.init(JSPServlet.java:62)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    Caused by: java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)
         at java.lang.Class.getConstructor0(Class.java:1762)
         at java.lang.Class.newInstance0(Class.java:276)
         at java.lang.Class.newInstance(Class.java:259)
         at jrun.servlet.WebApplicationService.addListener(WebApplicationService.java:1393)
         at jrun.jsp.compiler.JRunTagLibraryInfo$TLDParser.listenerclassEnd(JRunTagLibraryInfo.java:602)
         ... 34 more
    [2]java.lang.reflect.InvocationTargetException
         at jrunx.util.SAXReflectionHandler.invoke(SAXReflectionHandler.java:119)
         at jrunx.util.SAXReflectionHandler.endElement(SAXReflectionHandler.java:38)
         at org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java:353)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1536)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
         at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
         at jrun.jsp.compiler.JRunTagLibraryInfo.init(JRunTagLibraryInfo.java:190)
         at jrun.jsp.compiler.JRunTagLibraryInfo.<init>(JRunTagLibraryInfo.java:119)
         at jrun.jsp.JSPEngine.checkResourceForTaglibs(JSPEngine.java:483)
         at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:451)
         at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141)
         at jrun.jsp.JSPServlet.init(JSPServlet.java:62)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    [1]jrun.jsp.compiler.JRunTagLibraryInfo$TLDParseException: Exception parsing the TLD null : null
         at jrun.jsp.compiler.JRunTagLibraryInfo.init(JRunTagLibraryInfo.java:198)
         at jrun.jsp.compiler.JRunTagLibraryInfo.<init>(JRunTagLibraryInfo.java:119)
         at jrun.jsp.JSPEngine.checkResourceForTaglibs(JSPEngine.java:483)
         at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:451)
         at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141)
         at jrun.jsp.JSPServlet.init(JSPServlet.java:62)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    [0]javax.servlet.ServletException: Exception parsing the TLD null : null
         at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:457)
         at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141)
         at jrun.jsp.JSPServlet.init(JSPServlet.java:62)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    07/12 18:25:42 error Could not pre-load servlet: Faces Servlet
    java.lang.NullPointerException
         at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
         at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
         at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
         at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
         at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
         at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
         at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
         at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
         at jrun.deployment.DeployerService.run(DeployerService.java:891)
         at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
         at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
         at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

  • Sending a message to different application server

    Hi all
    I have a session bean that send message to a message driven bean in the same application server.
    I wonder how to send the same message to a message driven bean in a different application server.
    Is Context.PROVIDER_URL (jndi hard coding) important for that matter?

    anyway if i do not want use jndi.properties file it's enough specifing the Context.PROVIDER_URL pointing to the new jboss server???
    // hard coding configurazione jndi
              Properties properties = new Properties();
              properties.put(Context.INITIAL_CONTEXT_FACTORY,
              "org.jnp.interfaces.NamingContextFactory");
              properties.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces");
              properties.put(Context.PROVIDER_URL,
              "xxxxxxx");
              try {
                   initialContext = new InitialContext(properties);
              } catch (Throwable ex) {
                   throw new ExceptionInInitializerError(ex);
              }

  • (266758030) Can WebLogic Workshop Web Services be deployed on a different Application Server?

    (266758030) Q(asked by Lalit Sudan): Can WebLogic Workshop Web Services be deployed
    on a different Application Server?
    A(by Adam Fitzgerald): .jws files are not yet an accepted standard so you can expect
    that the WebLogic Workshop Web Services cannot be ported to other Application Servers,
    however, it is a general goal to expand the functionality of the Workshop tool for
    other App Servers.

    Just so you'll know Oracle9iAS also includes apache as the HTTP server.
    As Suncan said, if you want to use Forms on the Web you need the Forms Server engine, and it comes bundled in Oracle9iAS. You'll save yourself a lot of headache if you just install Oracle9iAS and have everything pre-configured for you thus reducing maintanance costs.

  • Does oracle application server's plsql program accord with corba criterion?

    Does oracle application server's plsql program accord with corba criterion?

    You need to purchase a have a support contract to have access to that.
    You can try upgrading to the latest JDK 6 an latest WLS 10.3.6, you have the chance the issue is fixed in the latest 11g release.
    Best Regards
    Luz

  • Can Forms 9i run on a different Application Server, e.g. Apache?

    Can Forms/Reports 9i run on a different Application Server, e.g. Apache? i.e. without needing to use 9iAS.
    It is quoted in the document "Migrating Client/Server to the web" that it may be possible, but will not be supported. Is this possible?
    The reason I ask this is due to the costs involved of 9iAS. If I can use an alternative route like Apache / Tomcat, it's free. Then I only need the developer suite licensing.
    Thanks,
    Jacques

    Just so you'll know Oracle9iAS also includes apache as the HTTP server.
    As Suncan said, if you want to use Forms on the Web you need the Forms Server engine, and it comes bundled in Oracle9iAS. You'll save yourself a lot of headache if you just install Oracle9iAS and have everything pre-configured for you thus reducing maintanance costs.

  • Uploading and view an document in application server from abap

    Dear SDN users,
    I have a similar requirement:
    i need to upload a docuement into SAP  under a particular system generated unique No.
    My basis team has given a file path in application server.
    So i need to upload and view(Not Downloading) that uploaded document at any time in future.
    Note : Each System generated no is having different documents.
    Thanks in advance.
    Regards
    RAJ
    Moderator Message: Do not dump your requirement. Get back to the forums in case you've any specific issues.
    Edited by: Suhas Saha on Jan 14, 2012 3:50 PM

    Dear Prakash,
    As i Said  i have to  upload and Just view the documents.
    its an urgent requirement.
    i want to upload multiple documents and i have to raed with file name.
    Note : currently it is downloading only last uploaded one.
    following is the code:
    DATA: V_DSN(40) VALUE '\usr\reports\fico\',
          V_STR(1673) TYPE C.
    FORM UPLOAD .
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = L_FNAME
    FILETYPE = 'BIN'
    IMPORTING
    FILELENGTH = LENGTH
    TABLES
    DATA_TAB = ITAB.
      OPEN DATASET V_DSN FOR OUTPUT IN BINARY MODE..
      LOOP AT ITAB INTO V_STR.
        TRANSFER V_STR TO V_DSN LENGTH 1673.
      ENDLOOP.
      CLOSE DATASET V_DSN.
      IF SY-SUBRC EQ 0.
    MESSAGE S001(ZSD) WITH 'Sucess'.
      ENDIF.
    EndForm.
    FORM DOWMLOAD .
    CLEAR WA_DEMO.
    OPEN DATASET V_DSN FOR INPUT IN BINARY MODE.
    DO.
    READ DATASET V_DSN INTO ITAB-FIELD MAXIMUM LENGTH 1673.
    IF SY-SUBRC = 0.
    APPEND ITAB.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    FILENAME = DWN_FILE
    FILETYPE = 'BIN'
    BIN_FILESIZE = LENGTH
    IMPORTING
    FILELENGTH = LENGTHN
    TABLES
    DATA_TAB = ITAB.
    endform
    Regards
    MNR
    Edited by: mnr4sap on Jan 14, 2012 1:54 PM

  • Sessions in jspx between different Application Server

    Hello All,
    I have two applications running in two different Application servers.
    I call the jspx in one applications server from jspx of another applications server using the href.
    My requirement is, when I logout the first application it shud automatically inviladate session in the second jspx also.
    Is there any way of acheive this..
    Also please pass on any links to work on sessions in jspx.
    Thanks
    Krrish

    Hi frank,
    Thank you for the reply..
    Can you please provide any links to SSO enabling the custom application.
    Thanks
    Krrish

  • Can we run a java class in a external server through abap program?

    Dear Experts,
    Can we run a java class in an external server ( other than application server and client system )?
    I have tried running it in the client system through a program and it works.
    But i have the requirement of running it in another system. Can it be done?

    Hi,
    If this is the case I think you can call this web service from SAP and triger the execution of the application on the "external server".
    SAP is behaving as a client in this case.
    Another alternative:
    "have tried running it in the client system through a program and it works." please elaborate.
    Regards.

  • St02 and different application server

    I am trying to find an easier way to read the swap entries for all our CI and application servers. Is there a way to find out which table contains all the entries for the swap settings of all the application servers? OR if there is any other automated way to get swap information without having to go to sm51 and selecting each app server and going to st02 to get the swap entries.
    Thanks!

    Hello Rahul Kabra,
    From the history screen of ST02 (Shift + F6) you can scroll through each application server without needing to do this via SM51 but I am not aware of a way of easily getting to the initial screen of ST02 for each instance switching via SM51 or also no way of getting the same information for all application servers.
    Regards, Mark

  • Want to know the file path for application server in upload program

    Iam doing upload program(i,e)uploading from application server,iam getting run time error while executing the following piece of code
    "OPEN DATASET '/usr/sap/SPE/DVEBMGS00/work/ZPSPAR35_PERS_UP.txt' FOR OUTPUT
                 IN TEXT MODE
                 ENCODING DEFAULT."
    if the above code is wrong can u mention the correct one.

    hi,
    <b>Note: 699267</b>
    <b>Symptom</b>
    a) When downloading to the application server a short dump occurs with the error 'UC_OBJECTS_NOT_CHARLIKE'.
    b) When downloading to a presentation server from an SAP system running on Unicode, only half the data is actually transferred to the downloaded file.
    or
    *)When downloading from an SAP system running on an application server with an EBCDIC-type code page, an incorrect code '0A' is written for the LINE FEED character
    <b>
    Pre-requisite</b>
    a) The output file is opened 'in text mode' which does not allow to write non-character-like structures to the file via the TRANSFER command.
    b) The file is downloaded in the internal representation which uses two bytes per character in a Unicode system. The number of bytes to download is determined from the number of characters in the SAP system, however.
    or
    *)The code of the LINE FEED character is incorrectly programmed.
    <b>
    Solution:</b>
    You need to put some support packs attached with this note. For that you definitely need to ask YOUR FRIENDS WHO HAVE AN S-USER id at your WORK PLACE.
    <b>Note: 879598</b>
    <b>Reason and Prerequisites</b>
    The file is downloaded in the internal representation which uses two bytes per character in a Unicode system. The number of bytes to download is determined from the number of characters in the SAP system. Hence when the download happens the data has to be          converted to the required format.
    <b>Solution</b>
    Apply the corresponding support package or manually implement the changes described in the correction instructions.
    Hope this helps.
    Regards
    ak.
    PS: Reward useful answers with points.

  • EJB Supporting Different Application Server

    I have a task to develop an session/entity bean(for both select and insert) which needs to be called from both WebSphere Application Server(4.x) and Resin Application Server
    For your information - WAS uses EJB(1.1) and Resin uses EJB(2.0).
    I want to create this session/entity bean which works on both application server without doing any change in code. Is that really possible. If YES - HOW ? Please suggest if you really know anything on this topic. Thanks.
    Zahid.

    So - Which Entity Bean should I use. CMP or BMP. I would prefer CMP as I do not have to write code for callback methods. Cracker - could I contact you. If yes - please email me at [email protected] I really need help on this and want to complete this. Won't take much of your time. Thanks.
    Zahid.

  • Manual JNDI lookup for EJB3 between different Application Server Instances

    Hi all,
    i have spent quite some time looking into this problem and searching the net but i just can't figure out for the life of me what i am doing wrong so i hope someone here can give me a clue or a good resource where i can look it up myself.
    I am currently doing some interoperability tests concerning EJB calls between Glassfish and Weblogic 10. In my test setup i have an EJB deployed in a jar file on one server and a servlet in a war file deployed on the other. The objective is to try to look up and call the EJB from the servlet. As there seem to be some issues with injection in Weblogic 10 i set that one aside for now (i have opened a case at BEA support for this) but i would like to do a plain old JNDI lookup to obtain the EJB.
    The online tutorials and FAQs i have read so far all state that this can be done the same way as it works for EJB2.x, at least if i understood them correctly. The interessting thing is, when i deploy an EJB2.x bean i can look it up without problems, but when i try to do the same with the EJB3 bean the name cannot be found. On the other hand when listing all contents of the JNDI tree in Glassfish from a stand alone application i can see entries for both EJBs of the type java.naming.Reference (in Weblogic i can also see entries for both, but the ones for EJB3 are of some weird internal weblogic types, which i put down as a weblogic problem for now).
    The lookup code for the servlet running in weblogic looks like this:
    Properties env = new Properties();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    env.put(Context.PROVIDER_URL, "corbaname:iiop:1.2@localhost:3700");
    Object myEjb = new InitialContext(env).lookup("JNDINameDisplayedByContextListing");
    I know that the preferred way would be to have the corbaname put into weblogic.xml/sun-web.xml and just use an InitialContext without an environment to perform the lookup but i wanted to get rid of any additional indirections to pinpoint the source my problem and it should work this way, too. As i said, it works when i target an EJB2.x bean but not with the EJB3 one, so i guess i am doing something wrong there. The jar file contains the interface of the bean annotated with @Remote and the implementation of the interface annotated with @Stateless, i also tried setting the mappedName attribute for the bean and use that name as JNDI name, but that also fails. In addition i added an ejb-jar.xml to the jars META-INF containing the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
    http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
         version="3.0">
         <enterprise-beans>
              <session>
                   <ejb-name>SecurityTest3EJB</ejb-name>
                   <ejb-class>
                        testcase.ejb.SecurityTestBean
                   </ejb-class>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
    </session>
    </enterprise-beans>
    But the ejb-name specified there does not show up in a context listing, so i would guess that means the file is ignored or only accessible from within the same application server (note, there is no indication of any problems in the Glassfish log when deploying the jar file).
    This might be just a stupid mistake by me, but i just can't figure it out at the moment, so any advice will be greatly appriciated.
    Thanks, Chris

    I think i stumbled across something now. From some posts it seems to me that the EJB3 spec does not require EJBs to be accessible from a remote location, since this can be achieved by using the @RemoteHome annotation and performing a EJB2.x compliant look up. Is that correct?

  • Why do firefox pages load faster if I switch to different application on the taskbar?

    Using XP sp3, Firefox 27.0.1. Firefox spikes resources usage. I've tried resetting firefox. Granted, my pc is older, and only has 2.25 gig of ram, but until recently the loading time was acceptable. Now it's not. This seems to happen occasionally after firefox is updated.
    Pages are loading much more slowly recently, maybe since security update on 2/14? The odd thing is, if, while the page is loading, I click on another non-firefox application, like the task manager, in the taskbar, the firefox page seems to load faster. Is this possible? The delay seems to be when the spinning circle (I don't know what it's called - favicon?) with the ball has turned green and is rotating to the right. I'm not talking just a few seconds of difference. It could be a minute's difference.
    Thanks for any help you can give.

    Ok, so I installed a program called Process Explorer, which is like Windows Task Manager, but with a bit more information. When Firefox is loading a new page, and is the current window, the page is slow to load and firefox takes between 65-80% of the cpu. If I click off firefox, it can take as much as 97% of the cpu, giving some up to AVG's avgrsx.exe, vprot.exe and sometimes plugin-container.exe, but loads the page faster.
    Your instructions:
    "let your firewall ask again for permission to get full, unrestricted, access to internet for Firefox and the plugin-container process and the updater process. "
    I'm not sure what you mean - should I see this happening (as in it asking permission from me to grant access)? Because I don't.
    I've attached a screenshot of Process explorer top cpu processes while the page is loading.

Maybe you are looking for