Use SAP Application server name in a jsp in ISA

Hello,
We need to use SAP application server name in a jsp file. Any suggestions on how to do this?
Thanks
Archana
Edited by: Archana Swaminathan on Jan 9, 2009 1:02 PM

Archana,
The web application server can be determined in the JSP by the isa tag.
<isa:webappsURL
But you can also get the actual value by using WebUtil class. This class has all features that isa tag provides. As such you can get the web application URL using
import com.sap.isa.core.util.WebUtil;
String webAppURL = WebUtil.getAppsURL(PageContext pageContext,
  boolean Secure,
  String name,
  String params,
  String anchor,
  boolean completeURL);
But if you are asking for SAP application server that is different from what I have explained above, then I don't have a clue. If you are asking for MimeURL, where you have the images stored, you can use MimeURL class.
Easwar Ram
http://www.parxlns.com

Similar Messages

  • Reading of File from legacy system into SAP Application Server using SAP XI

    Hi All,
      I have a file in <b>Legacy System with Exchange rates information data</b> i have to read that file using SAP XI process and put that file in SAP Application Server in SAP Specific Format and latter i have to use program RFTBFF00 to upload the file in the Application Server into SAP Tables.
      Can anybody tell me how can i do this with some example of same scenario.
      It would be better if anybody provides code example as i am new to SAP XI.
    Thanks in advance.
    Warm Regards,
    Rayeez.

    Hi Shaik,
    You need the access to the file system of ur legacy application and then you can follow this link for the required ifnormation
    File & Header
    Regards
    Vishnu

  • How to store a JSP file in the SAP Application server ?

    Hello All,
    My reqt. is as follows :
    1. I need to store a JSP File on the SAP Application server .
    How can I do this ?
    2. I want to call the uploaded jsp file from the server and call this jsp from abap to view the result of it .
    How can I achieve this ?
    First of all is this possible ?
    Regards,
    Deepu.K

    Hello Mike,
    Thanks for ur reply.
    I've imported the JSP as a mime object into the BSP.
    Now I've created the page to show that Mime Object as an image.
    But nothing is coming as an output.
    But then,there is an option for that mime object. i.e when I right click on the mime object there is an option called " convert to BSP".
    I selected that option and it created a view in my BSP .( My BSP is a page with flow logic application )
    Now how should i make this view to be an output ?
    I guess this shud be posted in the BSP Forum ...but still taking a chance here :)-
    Regards,
    Deepu.K

  • Get Application Server Name and Version

    Hello All,
    Is it possible to get the Application Server Name and Version using Java?
    To simplify my question, if I am running Weblogic, the jsp page should tell me that I am running Weblogic Version <number> or IBM WebSphere Version <number>.
    Thanks

    I get an error when I put this line in my jsp page:
    out.println(" Server Info: " +getServletContext().getServerInfo());
    Is there something I am missing?
    symbol : method getServletContext ()
    location: class jsp_servlet._jsp._mu.__showmxversion
    out.println(" Server Info: " +getServletContext().getServerInfo()); //[ /jsp/mu/showMXVersion.jsp; Line: 16]

  • Copy file from FTP server to sap application server

    Hi,
    I am able to copy a particular file from FTP server to sap application server using FTP_CONNECT, FTP_COMMAND and FTP_DISCONNECT. But here my problem is, it copies into default application server path(DIR_HIOME). I want to copy into specified folder in the application server. How can I specify the required destination path.
    Can you please suggest how to achieve this.
    Thanks,
    Shiva Kankanala

    try something like this:
    data: user(30) type c value 'ftpuser', "ftp username
                  pwd(30) type c value 'ftppass', "ftp password
                  host(64) type c value '255.255.255.255', "ftp server IP
                  cmd1(80) type c value 'lcd /dump', "location on app server where you want to copy the file
                  cmd2(80) type c value 'get', "specifies you are going to get the file from ftp server
                  dest like rfcdes-rfcdest value 'SAPFTPA',
                  file(15) type c value 'file.txt'. "specifies file that you want to get from ftp server
    data: hdl type i,
            key type i value 26101957,
            slen type i.
    slen = strlen( pwd ).
    call function 'HTTP_SCRAMBLE'
        EXPORTING
          source      = pwd
          sourcelen   = slen
          key         = key
        IMPORTING
          destination = pwd.
    call function 'FTP_CONNECT'
        EXPORTING
          user            = user
          password        = pwd
          host            = host
          rfc_destination = dest
        IMPORTING
          handle          = hdl.
    call function 'FTP_COMMAND'
        EXPORTING
          handle        = hdl
          command       = cmd1
        TABLES
          data          = result
        EXCEPTIONS
          command_error = 1
          tcpip_error   = 2.
      loop at result.
        write at / result-line.
      endloop.
    CONCATENATE cmd2 file INTO cmd2 SEPARATED BY SPACE.
    call function 'FTP_COMMAND'
          EXPORTING
            handle        = hdl
            command       = cmd2
          TABLES
            data          = result
          EXCEPTIONS
            command_error = 1
            tcpip_error   = 2.
        loop at result.
          write at / result-line.
        endloop.
        refresh result.

  • Error while starting SAP Application Server

    Hello everyone,
    This morning, i tried to start the SAP application Server, and i have this message error, some sentances are in frensh , i translate it in english with this sign --> before.
    ===================================================
    ============== Starting System NSP ================
    ===================================================
    =============== Starting database instance ...
    Le nom de service n'est pas valide.
    -->The service name is invalid.
    Vous obtiendrez une aide supplémentaire en entrant NET HELPMSG 2185.
    -->More help is available by typing NET HELPMSG 2185.
    The MaxDB Database Starter, Version 7.7.04.23
    Copyright 2000-2008 by SAP AG
    ERR
    -24988,ERR_SQL: SQL error
    -104,DBM command impossible at this time
    20013,Admin command cannot enter critical state 'Backup'
    Error: Error while calling dbmcli
    "D:sapdbprogramspgmdbmcli"  -d NSP -u , db_online
    ============== Start database failed !
    Can somone, explain me, please, the origin of this problem and may be a solution to solve it.
    Thank you and have a nice day.
    Best regards.
    Amine

    Seem that is a problem in starting DB instance phase, specificly for DBMS instance (you need to check detailed DB starting log in run directory).
    For Run Directory, check this link:
    http://www.sapdb.org/7.4/htmhelp/ff/2d823b572b844ee10000000a11402f/frameset.htm
    For DB Log Files:
    http://www.sapdb.org/7.4/htmhelp/9c/2d04073493af41844be62f15d252f3/content.htm
    Is a Local SAP System?

  • ACCENT Symbol in Oracle Reports printing using 10g Application server

    Some of the report with names containing ACCENT symbol are printing like upside-down comma. But the report used to printing certified copy and the client requiring to print the ACCENT symbol as it is. Oracle support recommend us to use PDFPrint destination, which is third-party utility that converting the post-script output to printer for ACCENT symbol. Please provide the link and instruction to download the PDFprint utility and installation requirement for the below environment:
    Oracle Application Server Version=10.1.2.3.0
    SUN SPARC - 64 bit
    Thanks
    Krishna

    By the looks of it you used 9i which also used an Application Server so your knowledge should be up to date. The Default URL has changed a little as has the port. Look in the installation guide for the default URL and port.
    If you mena the development side you can use the one-button-run functionality which makes it possible to run am form without the full App Server just by hitting the run button in the builder. You do need to start the local OC4J but that is easy. On Windows there is a start menu item to do that. On Linux you run a shell script I think.

  • Application server name and port number

    Hi
    Is it possible to get the application server name(ip) and port number at runtime. Becuase i want to open an html file which is in the application server, when a button is pressed by using web.show_document ();
    Can anyone guide me please.
    Thanks in advance
    geethu

    application server name and port number

  • Error showing in listener while giving tnsping application server name

    iam trying to connect application server with database server.......while giving tnsping from database server as tnsping application_server_name
    its showing error as
    $ tnsping 10.92.5.8
    TNS Ping Utility for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production on 09-FEB-2007 06:18:05
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    Used HOSTNAME adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=10.92.5.8))(ADDRESS=(PROTOCOL=TCP)(HOST=10.92.5.8)(PORT=1521)))
    TNS-12541: TNS:no listener
    but i have set the listener in databse server.
    thsi is my listener.ora
    LISTENER =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=application server name)(PORT=1521))
    (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)))
    SID_LIST_LISTENER=
    (SID_LIST=
    (SID_DESC=
    (GLOBAL_DBNAME=RBTT)
    (SID_NAME=RBTT)
    (ORACLE_HOME=home path of database server)
    if iam connecting sqlplus there in application server and giving username and password
    its showing error as .......
    Enter user-name: xmluser
    Enter password:
    ERROR:
    Enter user-name: xmluser
    Enter password:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    thanks in advance
    R.Ratheesh

    hi,
    I have changed the listener hostname....before changing the host name also tnsoping database server name works fine....
    i am posting the tnsnames.ora of databse server
    RBTT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS=(PROTOCOL=TCP) (HOST=application server_name) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER=DEDICATED)
    (SERVICE_NAME = RBTT)
    tnsnames.ora for application server
    RBTT =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS=(PROTOCOL=TCP) (HOST=database server name) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER=DEDICATED)
    (SERVICE_NAME = RBTT)
    is this is the right one..
    and regarding this connectivity between two servers tnsnames.ora and listener.ora plays a vital role....should i have to make any changes in sqlnet.ora in both application server and database server...should i have to copy sqlnet.ora,listener.ora in application server...and what has to be set in both???
    I have changed sqlnet.ora in database server in names.directory_path=tnsnames.ora
    thanks in advance,
    R.Ratheesh

  • How to dertermine size of a perticula Client in sap application server

    R/S all,
    Kindly guide me for "How to determine size (hard disk space) of a perticular client in SAP Application Server "

    Hi,
    Have a look at the [SAP Note 118823 - CC-ADMIN: Size of a client|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=118823].
    You can use the report RSSPACECHECK to check the size of SAP client. You can also use the test run option in client copy to determine the size os a client.
    Hope this helps.
    Regards,
    Varadharajan M

  • Create directory on SAP application server with blanks

    Hi,
    is it possible and if so how to create within ABAP a directory on a Linux based SAP application server that contains blanks.
    We've tested with SXPG_COMMAND_EXECUTE but didn't succeeded.
    A working code snippet would be great.
    Thanks and kind regards
    Florian

    Hi
    Try with Tcodes SM49/SM69.
    Thanks,
    Sreeram

  • Download PDF File from Archiv to SAP Application Server

    Hi,
    I need to download the PDF file from an NAST-Dataset (how is stored from the message via SAP ArchivLink) to the SAP Application Server.
    1) At first i read the Archiv-Link data via function module WFMC_GET_ARCHIVE_OBJECT_TYPE
    2) Then i get the Connection-Infos via function module ARCHIV_GET_CONNECTIONS_INT
    3) Now i read the file from archiv as table via function module ARCHIVOBJECT_GET_BYTES
    4) Save to the SAP Appl.Server via:
       - OPEN DATASET ld_dpfad FOR OUTPUT IN BINARY MODE
       - LOOP and TRANSFER lf_archivobject TO ld_dpfad.
       - CLOSE DATASET ld_dpfad.
    In the dialog of NAST-Dataset (Messages) i can open the PDF-File without any errors (display originals). But after the filetransfer to the SAP Appl.Server i get the following errors during the file opening dialog from Adobe Acrobat Reader:
    - the embedded font u201CArialu201D cant to be extract
    - not enough data for the picture
    The reader can display the PDF-File but only without the picture (Logo) and with alternative font.
    The same transfer from archiv and sending as an attachement to the BOR-Object via function module SO_DOCUMENT_INSERT_API1 works very fine and without any errors.
    Can any one please help me to solve this Issue?
    Thanks in Advance,
    Thomas

    Hello Keith,
    Many thanks for your answer.
    In the past i didnu2019t need the BINARCHIVOBJECT-Parameter and so i overlook this option.
    Now, the File looks a little bit different, but only in the STREAM-section.
    During the Fileopen-Dialog i get only one message now - "not enough data for image" and the image will not displayed. The rest seems to be correct.
    The relevant coding is now:
      ld_doc_typ = pf_connections-reserve.
      CALL FUNCTION 'ARCHIVOBJECT_GET_BYTES'
        EXPORTING
          archiv_id                = pf_connections-archiv_id
          archiv_doc_id            = pf_connections-arc_doc_id
          document_type            = ld_doc_typ
          length                   = ld_length1
          offset                   = ld_offset
        IMPORTING
          binlength                = ld_length                        
          offset                   = ld_offset
        TABLES
          binarchivobject          = lt_binarchivobj                  
        EXCEPTIONS
          error_archiv             = 1
          error_communicationtable = 2
          error_kernel             = 3
          OTHERS                   = 4.
    Zieldatei zum Schreiben öffnen
        OPEN DATASET ld_dpfad FOR OUTPUT IN BINARY MODE.
    Inhalte in Zieldatei schreiben
      LOOP AT lt_binarchivobj INTO lf_binarchivobj.
        TRANSFER lf_binarchivobj TO ld_dpfad NO END OF LINE.          
      ENDLOOP.
    Zieldatei schließen
      CLOSE DATASET ld_dpfad.
    Where is the error for the image data?
    Ciao Thomas
    Push up by: Thomas Engler on May 3, 2010 4:54 PM

  • Limit on the size of the flat file in SAP Application Server

    Hi Gurus,
    My requirement is to upload the account payable data to the SAP Application Server.
    The requirement say's like if the size of the file exceeds the limit(is there any limit on file size in SAP?) of SAP then I should upload another file with the remaining records.
    Is there any limit on the file size uploaded into SAP Application Server?If there is limit on file size then what is the value of the limit?
    I guess the file size will depend on the basis configuration and the free size of the Application Server Folder.
    How to check free space in the Application Server folder and proceed further for placing the file in that folder?
    Thanks & Regards,
    Kiran Kumar K

    The limitation (if any) will be on the OS level. Nothing to do with SAP as such. Asking your basis team to provide you with an area with plenty of room will be the easiest option. How big are your files - most OSs can handle files of many GB. Sounds to me like the "requirement" has been written by someone without technical knowledge...

  • How to downlaod vednor master data into excel sheet in SAP Application serv

    Hi friends
    I want to download SAP vendor master data into excel sheet and the file should be stored in SAP Application server Location with padding zeros.
    Please help me.
    Thanks

    Hi Ramesh,
    It is not possible to download data in Excel file on application server. You can better download the same in tab separated text file and then convert that text file to XLS.
    Please do not open multiple threads for same problem.
    Regards,
    Atish

  • Transaction Time out error in EJB while using Websphere Application Server.

    Hi All,
    I am using Websphere Application server and getting the transaction time out error. By default the transaction time out is 120 second. I am using session bean for doing a set of transaction. These set are dynamically generated. Is there any way to set the transaction time out for only this session bean to infinite ?
    Thanks in advance
    Vivek

    Hi,
    According to WAS 6 , every opened connection has to be commited (or rolledback) explicitly (didnt try autocommit) before closing. Even if all you have done with that connection is a SELECT Query.
    This has apparently solved the same problem I was getting. implement it and see whether it helps you.

Maybe you are looking for

  • Reporting Services install on SQL 2012 SP1 instance blank

    Sorry for the duplicate . . . didn't think the first on posted due to VDI locking up. I have looked at all the links and tried the suggestions and I am still having the problem:  SCCM 2012 R2                         SQL 2012 SP1 SSRS installed and co

  • Regarding goodsmovement  IDOC

    Hi guys,   I have to do goods receipt/issue with serial number assignment and some  custom fields population . with WMMBID02 IDOC i can extend the idoc and send custom fields but i cant do serial number assignment.if i use MBGMCR02 i can do the seria

  • Procedure that checks for a value in the database and returns related info

    Hi Everyone, I need to create a stored procedure that takes customer info(any of these fname,lname,id,email etc) and looks for it in the database and displays the customer info of that particular customer(kinda search engine). I have to use dynamic s

  • How to retain 3D View while embedding U3D in PDF

    Hi, I'm using PDF Library to embed U3D data into PDF file. But I noticed that when I open my PDF file, the 3D Views created in U3D file are not retained. I know that in Acrobat 3D when we embed U3D, there is is check box reading "Retains views, comme

  • Stock Transport Order-shipping point not determined

    Hi MM Gurus, We need to set up STO for transferring stock from plant 2000 to 1000. I have completed following setting. IMG Enterprise Structure-Assignment-Sales and Distribution-Assign sales organization to company code Both the sales orgnizations ar