How to find hostname while calling bsp

Hello Experts ,
I am developing a bsp program, in which i have to download a document from presentation server.
i have used file_download option in htmlb,
now i have to make document through CV01n.
I have used a bapi 'BAPI_DOCUMENT_CREATE'  for creating a document.
it works fine in R/3 environment, but when i run it through bsp it gives me dump.
it requires hostname(name of frontend computer) for creating document.
through SDN i came to know that i can't use 'cl_gui_frontend_services' .
can anybody provide me alternate FM or class/interface for finding hostname on internet / intranet while running BSP.

Hi Sahadev,
You can get the IP address of your client using..
DATA l_host TYPE string.
l_host = request->if_http_entity~get_header_field( '~remote_addr' ).
Have a look at [this thread|Re: How to find domain name for the host] for more details.
Search the forum , you will get the exact answer.
Regards,
Anubhav

Similar Messages

  • How to redefine interface while creating BSP extensinon

    hi,
    how to redefine interface while creating BSP extensinon i am using cl_bsp_extension a ssuper class here i have to redefine some interface how but it is not allowing hoew can i do these?

    Hi Sahadev,
    You can get the IP address of your client using..
    DATA l_host TYPE string.
    l_host = request->if_http_entity~get_header_field( '~remote_addr' ).
    Have a look at [this thread|Re: How to find domain name for the host] for more details.
    Search the forum , you will get the exact answer.
    Regards,
    Anubhav

  • How to find out the calling point of a Badi

    Hi Experts,
    Say one Badi is getting called in a particular screen of a transaction.
    Can anyone please guide me how to find out the calling point for that Badi.
    I checked for transaction CC31 screen 2000, method IF_EX_ECM_EXIT~OMR_CHECK_01
    is getting called.
    But I could not find the calling point.
    Please help.
    Thanks,
    Sonali.

    Go in to the perticular method, and click on where used list.That may help.
    Or get into the method in debugging, and press F7. That will take you to the calling point.

  • How to find out  fn calls  from portal.

    can anyone help me to find out  fn calls in xrpm portal?
    steps!

    You can use the following steps for doing it in portal
    Open two sessions of SAP EP with the same user
    Navigate to: Portfoliomanagement – Administration – Cache Administration – RFC Debugging (first session)
    Activate the Debugging
    Execute xRPM application in the second session
    Switch back to the RFC Debugging press Load
    Select the executed function
    All parameters will be displayed in the Context Input window
    if you need to do debugging in backend !
    make sure to swithch to new editor.
    regards@gopeekrishnan

  • How to find the perticular call is made with in +30 or -30 minutes.

    hello masters ,
      i got a repoting requirement such that i have to track the "calls made with in +30 or -30 minutes".

    Hi
    Pls provide more info. You mean to say you have to track the calls made 30 minutes prior and 30 minutes afterwards...how you know that afterwards calls which will be made..
    Regards
    N Ganesh

  • How to find out who calls servlet

    I'm working on this little bit for my JSP project where I want the user to be able to change the style of the webpage. I'm doing this by sending the new theme info to the database through a servlet. That part is okay, but I also want to send the user back to the specific jsp page they called the servlet from.
    Now how do I find out which page sends the request?

    http://forum.java.sun.com/thread.jspa?forumID=54&threadID=746355

  • How to Find Controller class of  BSP application for particular Iview

    Hi  All,
    Any one please  help me  to find a Controlller class of BSP for an  I view.
    http://Host Name :Port No/sap/bc/gui/sap/its/wosm-cr-->this is for sap retail,
    My requirement  is to change some source code in that particular iview.
    i goine with SE80 Tcode
    with package called WOSM>ITS service>Topic 90-->which contain Mime Objects,Html Templates.
    but i dint find any
    Point will be given!!!

    Hi All,
    My question is where should i find Controller class ?
    i gone with Tcode  SE80>packages>WOST>ITS service>WOSM>Topic90>which contain Mime Objects,HTML Templates.
    i dint find any controller class.
    regards
    Naresh

  • How to find  function module call in 'BP_GIVE_MESSAGE' in BAPI

    Hi experts
    i want debugg the BAPI_GOODSMVT_CREATE  to find out what data passing to 'BP_GIVE_MESSAGE' function module.
    i tried to find through FIND button i could not find it.
    please can you tell me how can i find  call 'BP_GIVE_MESSAGE' in BAPI_GOODSMVT_CREATE source code.

    Hi experts
    i want debugg the BAPI_GOODSMVT_CREATE  to find out what data passing to 'BP_GIVE_MESSAGE' function module.
    i tried to find through FIND button i could not find it.
    please can you tell me how can i find  call 'BP_GIVE_MESSAGE' in BAPI_GOODSMVT_CREATE source code.

  • How to find out the caller of a method?

    Hi there,
    I wonder if there is a recommended way to find out, from which code a method gets called. My only idea is to create a stacktrace with new Exception().getStackTrace() and inspect the 2nd stacktrace element. Does anyone know if there is a better (or recommended) way to do this?
    Thanks, Hans

    Sounds like you really want two methods, one for internal use and one for external use. What you're asking for goes against good OOP principles.OK - in the mentioned case, i can get along with using two different methods. But for me it was not the first time that this question arised and i guess there might be cases where it would make sense to differentiate between callers. (In the core classes, for example, there is code which checks if certain methods are overridden in a sub-class and branches execution dependent on this information, which is a similar approach).
    Thanks to all replying to my question - Hans

  • How to find which program called FBVB

    Hi,
    I have a small question.. I was looking at the document using fb03 and in the details I found that the tcode used 'FBVB' but when I tried to execute it directly I got the follwoing error "you can't call this transaction directly".. so can you please help me in finding which program or tocde called FBVB.
    Thanks,
    Rajeev

    Hello ,
    it will  be called thru worfflow only.
    regards
    Prabhu

  • How to avoid error while calling jsp file?

    hello,
    how to avoid the following error?
    i am using jdevloper for devloping jsp applications.
    after that i am calling the jsp page using tomcat4.0 ,i followed the steps according docs by jdev team,
    i am getting the following error how to solve this,
    can one help?
    =============================
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.compiler.CompileException: /AccountView_Browse.jsp(4,0) Unable to load class oracle.jbo.html.jsp.datatags.ApplicationModuleTag
         at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:139)
         at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:829)
         at org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:153)
         at org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEventListener.java:1039)
         at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:221)
         at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:216)
         at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:852)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)
    ====================
    thanks
    pullareddy

    Ok, Oracle Developer Suite (ODS) 10g (Forms/Reports) was not designed for Windows 7. In order to the ODS you must follow these steps for the installation to be successful.
    1. You must set the Virtual Memory (VM) size. The Oracle installer can not read Windows Managed VM. See the Microsoft article Change the size of virtual memory for more information on setting the VM size.
    2. The Oracle Installer does not recognize the internal version number of Windows 7, so you have to set the compatibility mode on the Setup.exe to Windows XP. Right-Click the SETUP.EXE and select properties. Then click the Compatibility Tab and in the Compatibility Mode area set this to "Run this program in compatibility mode" and select "Windows XP SP3".
    3. You must run the ODS setup.exe as the Administrator. Right-click the setup.exe and select "Run as Administrator".
    Having done these three steps, your installation should be successful.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to encrypt Password while calling Portal URL from Abap

    Hi all,
    My requirement is to call portal from R/3 4.6C.  As part of it I'm calling Portal URL along with user id & Password by using the FM CALL_BROWSER. The problem here is User ID & Password are visible everyone in the URL.
    Is there any way that I can encrypt sothat it doesn't become a security issue?
    I really appreaciate for your help.
    Thanks
    Seshu

    can you please mention the abap code  by which you are sending the username and password to a portal via url.....
    are you able to log on to the portal...please share your code ......
    Edited by: Ashutosh Shukla on Apr 18, 2008 9:17 AM

  • How to find out blocked call numbers

    I'm really getting ****** off with blocked calls coming to my phone. It's been happening so much! And it's annoying me!
    I saw there is some blocked call app and I downloaded it on the app store, and then it was telling me to buy some bear package or w.e and I'm like no way am i ever going to give them my credit card number!
    So is there anything that will do something about this?
    Please help me!

    Hi,
    If your are talking for Invoice verification of purchase.
    Please use MIR6 report.
    Here use Held/Parked and Invoices Verified Online option.
    Regards,
    Mahesh Wagh

  • How to Find the Hostname / IP Address of Reports Server From Forms

    Hi
    We have following query to find out on which machine form server is running,
    but how to find hostname/ip address of reports server (if there are more than one reports server running and on different machines).
    SELECT SYS_CONTEXT('USERENV','HOST'), SYS_CONTEXT, SYS_CONTEXT('USERENV','IP_ADDRESS')
    from dual.
    can anybody answer?
    rocky rocks.

    Our oas name is the same as the box name, and the report server naming convention is rep_(oas name) so that makes it easy to find out.
    I have a pll attached to my form that contains the following function, which works for PC or UNIX based app server:
    -- get_oas_name - Returns OAS name. 
    -- caveat:  Can't be run from pre-form, when-new-form-instance or when-new-block-instance of first
    --          block on the form due to webutil limitation.
    FUNCTION get_oas_name RETURN varchar2 IS
      fp text_io.file_type;
      oas_name varchar2(30);
      op_sys varchar2(30) := get_application_property(OPERATING_SYSTEM);
    BEGIN
      if op_sys = 'WIN32COMMON' then                    
        oas_name := webutil_clientinfo.get_host_name;
      elsif op_sys = 'SunOS' or op_sys = 'UNIX' then
        host('/bin/uname -n > /tmp/oas_name');
        fp := text_io.fopen('/tmp/oas_name','r');
        text_io.get_line(fp, oas_name);
        text_io.fclose(fp);
      end if;
      return oas_name;
    END;Then in when_timer_expired (first place you can use webutil functionality) call it accordingly. I also use it to set platform dependant variables so the form will run
    when I'm working on my PC or deployed on UNIX:
    declare
      :control.op_sys  := get_application_property(OPERATING_SYSTEM);
    begin
          :control.oas_name := get_oas_name;
          :control.report_server := 'rep_'|| :control.oas_name;
          if :control.op_sys = 'WIN32COMMON' then        -- For running locally during development.                     
            :control.close_page := 'http://127.0.0.1:8889/forms90/common/window_close.htm';
            :control.rpt_temp := 'c:\temp\';
          elsif :control.op_sys = 'SunOS' or :control.op_sys = 'UNIX' then
            :control.close_page := 'http://'||:control.oas_name||'.yournamehere.com:7779/forms90/common/window_close.htm';
            :control.rpt_temp := '/appl/oas/yournamehere/reports/cache/';
          end if;
    end;Good luck,
    Gary

  • Error while calling RFC when using BSP Web Interface

    Hi,
    we have a problem with the Authorization when we use an Web Interface for BSP. We have assigned all roles to the user which were mentioned in the SAP standard documentation:
    R_AREA   
    R_METHOD 
    R_PACKAGE
    R_PARAM  
    R_PLEVEL 
    R_PM_NAME
    R_PROFILE
    R_STS_PT 
    R_STS_SUP
    R_WEBITF 
    S_RS_ADMWB
    S_RS_AUTH
    S_RS_COMP
    S_RS_COMP1
    S_RS_DAS 
    S_RS_ICUBE
    but we still get the error message: "Error while calling RFC".
    When using a user with SAP_ALL, it works.
    What can we do?
    Thx for your time.
    Joerg

    Actually that's surprising - because BSP (Business Server Pages) and RFC (Remote Function Call) are not related; they use totally different transport protocols (http vs. RFC). Even if an BSP application is calling a function module remotely (acting as RFC client) no authorizations for S_RFC are required - in the calling system (but in the called system, i.e. the RFC server).
    Since assigning SAP_ALL seems to "cure" the problem, it seems to be an authorization issue, indeed. In that case it makes sense to use the authorization trace (ST01 - notice: that's specific to one single ABAP application server; you might have to activate the trace on multiple instances) to find out which authorizations are checked / demanded.

Maybe you are looking for

  • Satellite P300D-10V is overheating

    Hi everyone I am using Toshiba p300 d-10v laptop till one year. After one month I've bought this notebook, I had some problems with it. For those problems I'vee sent my laptop to the service twice in three months. First problem was it is overheating

  • How to get the user interface in english ?

    Hello I have installed SQLdevelopper 1.5.5. The user interface is in french (probably because my PC is in french). I would like to switch in English; How to do ? Thank you ! Christian

  • How can i recover missing purchased items?

    I have purchased movies from iTunes store. My labtop got stolen and now i have new one. I have downloaded all my previouse purchased items except for movies. How can i download them again, without purchasing them again?

  • Touchscreen stops responding in Mail app?

    This started happening yesterday - haven't recently updated iOS (still on 5.1.1) or installed any new apps etc.... I'll open the Mail app, be browsing messages etc, and all of a sudden I can't type or click any of my messages or any other buttons in

  • ERMS - Factbase not determined correctly

    Hi All, I am facing an issue with ERMS, when I debug into the action handler services I can see that the BP number and Email Body is not being determined. Although during normal execution the process works fine. My Service Manager profile has the fol