BSP App URL

I have one bsp application. the app consists of one initial page(entry point) and any other pages.
I wanna know the initial page's url as like 'http://xxx.xxx.xxxx:50000/sap/bc/bsp/sap/zhr_hap_018/index.htm' to call it from abap report program.
I can't code the fixed url on the report.
as you know the url(domain and port etc) is diffrent where the bsp app runs on(DEV, QAS and PRD).
how can i get the information(domain and port etc)?
i think there are function modules or util classes...
plz. help..

use the following method to build the url
DATA: url1 TYPE string .
     page TYPE string .
    DATA:  params TYPE tihttpnvp.
page = '<targetpage>.htm' .
cl_http_ext_webapp=>create_url_for_bsp_application
      EXPORTING
        bsp_application      = '<BSP application name>'
        bsp_start_page       = page
        bsp_start_parameters = params
      IMPORTING
        local_url            = url1.
params can be filled with any parameter you want to pass to that page.
Hope this helps.
Regards
Raja

Similar Messages

  • Add EP-userid to BSP app as (URL) parameter

    Hi,
    I've created a default BSP-iView (via com.sap.portal.appintegrator.sap.BSP) and try to pass the EP-userid as an extra parameter, without any result so far. I've checked several SDN posts, but didn't help (or I didn't understand them).
    In the properties of the iView I've tried to edit the following:
    Application Parameters : user=<User.UserID>  or
    Parameters to Pass from Page Request (for URL isolation) : user=<User.UserID>
    I need to pass the EP-userid, because the BSP app. is called with one user (user mapping for a specific Group/Role for the backend system) and is not able to distinguish the logged on EP-user.
    Where did I go wrong?
    Any suggestions how to solve this issue?
    Best regards,
    Mark

    in the application parameter of the BSP iview pass
    userid=<User.LogonUid> or
    userid=<User.UserId>
    and in the BSP application have a page attribute called userid with auto check box checked.
    within BSP application now the variable userid will have portal logged on user id.
    also check this thread
    Disable Variable Screen issue
    Regards
    Raja

  • Trouble changing a class attribute in a STATEFULL bsp app - PLEASE HELP!!!!

    hello, i have some trouble changing the value of a class attribute, in certain point of the execution of a statefull bsp app. The scenario is: the bsp app is on a url iview in a portal; i have some link in the portal, that do a window.open (pop up) of that app. the question is: how can i change the class attribute of the bsp app when i close that pop up?, if when i first click the link that show me the pop up, its doesn't create another instance of the class...i mean it continuing working with the same instance of the url iview in the portal. ANY help it will well received. Thanx in advance

    hello Durairaj...yes indeed in the other thread thats the issue with the portal_version attribute, the person who create the iview dont want to change it...so i try to solve it with something else....thats bring me to another problem (posted in this thread). Now i have a question...in the url iview it calls a template that start the bsp app...i mean is not the url iview who calls the bsp app is a middle template...with this scenario can i pass the parameter sap-sessioncmd=open to the url iview or i have to pass it to the bsp app directly when in the middle template i call it??? another question when i pass that parameter via url, it create another instances (apart) of the class or restart the same instance that the app work with until that moment....tell me more about that parameter coz' i am new in bsp and i need help....i will give a lots of rewards point who help me!!! i promise....i am kind of desperade for sure....  thanx in advance

  • Find BSp application URl

    Hello,
    is there any FM or method that i can find the BSP app. URL ?
    Regards

    Hi Anubhav ,
    thanks for your time ,
    i find this method that bring me the url,
    how i can find which BSP App belongs to some user?
    cl_http_ext_webapp=>create_url_for_bsp_application
      exporting
        bsp_application      = 'ZACT_J_TEST'
        bsp_start_page       = 'test_co_htm'
        bsp_start_parameters = params
      importing
        local_url            = url.
    Regards

  • How to Create and Test a Zone of Type F1-APP-URL

    Hi,
    I would like to how to create and test a Zone of Type F1-APP-URL?
    What all is required to setup an ADF application based URL in F1-APP-URL, what to configure and what are the basics or definite steps required to have a Zone of Type F1-APP-URL up and running in the application? Any Sample ADF components to be created?
    Please kindly let me know. Any test or dummy URL existing already which is based on ADF?

    Refer to Doc. Id 1515146.1 on the support site. Although for the moment it refers to a MWM example and may not be much of a help but it'd give a basic idea as to how it should be done.

  • Editing the Schedule PDP, at the Page Details Web Part, inserted wrong Project Web App URL. Cannot access Project Schedule Pages.

    I need a help. The environment, SharePoint and Project Server 2013 and SQL Server 2012, running on Windows Server 2008. Editing Details Web Part in a Schedule PDP Page, saved invalid Project Web App URL. After that, can display the Project Information and Project
    Details Pages from the projects accessed, and can display the Project site, too. But, when I access the Project Schedule Page, receive an error page, because of the invalid URL. The message is obvious: "There
    is no Web named xxxxxxx". I´ve tried to find out how to correct this, but no success, because cannot open the Project Schedule page anymore.
    I would like to know if there is some way to fix it without re-installing the system. Thanks for all. If somebody need more information, have log information and page display available. 

    Paul,
    When I click Schedule after PWA Settings > Project Details Page, there comes the error.
    I can download the Schedule Page. But I don't see where to change, because the wrong URL doesn't apper at the page. 
    I'm sending below the page that I can download. The schedule.aspx.
    <%@ Page language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage" %>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <SharePoint:ListProperty Property="Title" runat="server"/> - <SharePoint:ListItemProperty Property="BaseName" maxlength="40" runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
    <WebPartPages:WebPartZone runat="server" title="loc:TitleBar" id="TitleBar" AllowLayoutChange="false" AllowPersonalization="false" />
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
    <meta name="GENERATOR" content="Microsoft SharePoint" />
    <meta name="ProgId" content="SharePoint.WebPartPage.Document" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="CollaborationServer" content="SharePoint Team Web Site" />
    <script type="text/javascript">
    var navBarHelpOverrideKey = "wssmain";
    </script>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderSearchArea" runat="server" />
    <asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
       <asp:literal id="idPageDescription" runat="server" text="<%$Resources:PWA,PAGE_DESCRIPTION_SCHEDULE%>" />
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server"></asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar" runat="server"></asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderNavSpacer" runat="server"></asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <WebPartPages:WebPartZone runat="server" Title="loc:FullPage" ID="FullPage" FrameType="TitleBarOnly"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderID="PlaceHolderUtilityContent" Runat="server">
    </asp:Content>
    Thanks
    LuisPerez

  • Editing the Schedule PDP, at the Page Details Web Part, inserted wrong Project Web App URL. Now, cannot access Project Schedules.

    I need a help. The environment, SharePoint and Project Server 2013 and SQL Server 2012, running on Windows Server 2008. Editing Details Web Part in a Schedule PDP Page, saved invalid Project Web App URL. After that, can display the Project Information and
    Project Details Pages from the projects accessed, and can display the Project site, too. But, when I access the Project Schedule Page, receive an error page, because of the invalid URL. The message is obvious: "There
    is no Web named xxxxxxx". I´ve tried to find out how to correct this, but no success, because cannot open the Project Schedule page anymore.
    I would like to know if there is some way to fix it without re-installing the system. Thanks for all. If somebody need more information, have log information and page display available. 

    Luis,
    Have you tried this?
    Navigate to the schedule PDP, in the browser address bar, append the string
    ?Contents=1, like thus:
    https://<your PWA Address>/Project%20Detail%20Pages/Schedule.aspx?Contents=1
    This will open the Webpart Maintenance page. Now, select the Details
    webpart, and Delete it. Once done, navigate bacjk to the webpart page, edit page, and re-add the Details Webpart to the page.
    This should fix your issue.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • ***How to call BSP App when custom button event fired from toolbar group***

    Dear PCUI Experts,
       I have created one custom button for the transaction CRMD_BUS2000116.
    And my urgnet requirement is , I need to call BSP application which is used to   take data from custom fields and stores into BP table.
    How to call the BSP App. when i clicks on the button.
    Please help me..
    I will reward with great points.
    Regards,
    Stella.

    Hi Purushothaman,
                                 I have created a button in CRRM_ACCOUNT application.
    Now i want to call  a custom bsp application by clicking on that button.I have followed step given in this blog
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1646. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    But the event is not triggered.Do I have to create an iview for my bsp application?
    How to do that?Plz help.
    Regards,
    Ruby.

  • Need BSP-Application-Url without session_id

    Hallo everybody,
    have a problem with bsp. my problem is, i need a bsp-application-url without session-id. you can see in my example
    get:
    http://test:8100/sap(xxxxx)//bc/bsp/ztest/index.do?onInputProcessing(setformfields).....
    need:
    http://test:8100/sap//bc/bsp/ztest/index.do?onInputProcessing(setformfields).....
    thanks...
    harryatworld

    Hi, it is not possible to diasable the url mangling you mentioned. You can call the static method
    cl_o2_helper=>generate_url_for_page to get an url for a specific page.
    Best regards,
    Stefan

  • Loosing application attribute in a statefull bsp app

    Hello guys,
    i have a little problem. I got a statefull bsp app that contain an application attribute that is loose between the oninit and the oninput...any ideas that could solve my problem? Thanx in advance

    Hi Mariana,
    I got (perhaps ?) a very similar problem just few minutes ago.
    In my OnInitialization event handler, I have :
    DATA: ta_usr01  TYPE TABLE OF usr01.
    SELECT * FROM usr01 UP TO 100 ROWS
             INTO TABLE ta_usr01.
    GET REFERENCE OF ta_usr01 INTO ta_data.
    where
    ta_data is declared as a page attribute TYPE REF TO DATA. 
    When I tried to dislay the data in the Layout, I observed in Debud that ta_data was like this :
    FREED STACK:{A:2*TYPE=%_T00004S00000072O0000002784}
    And then "Eurêka !" 
    It is because
    ta_data is pointing on a local variable (ta_usr01) which has long gone (since the end of OnInitialization event handler) 
    Everything went fine once I had declared ta_usr01 as a Page attribute (which means declared globally)
    I guess you experience the same kind of problem.
    Best regards,
    Guillaume

  • BSP app WEBSERVICEBROWSER missing from SICF

    Hi! All,
    I'm trying to test the WEBSERVICEBROWSER BSP app from SE80 but am getting the "Service is not active" message in IE. When I went to SICF to activate it, it's not there in the tree. I've read that some users have activated it straight from SE80 and have tried that but still am getting the "Service is not active" message.
    Has anyone had the same issue on 620 and how did you resolve it?
    Thanks,
    Alan Tan

    Thanks everyone for taking so much interest in the issue that I'm having. I'm trying to do everything in R/3 so the wsadmin option wouldn't work for me; it doesn't exist.
    I can't create the node in SICF because the field length is too short.
    So what I was wondering yesterday, like Raja has pointed out, is if the "dependant/mandatory" service is running. Does anyone know how can I find out if it is running and if not, how to activate it?
    Thanks,
    Alan

  • Calling a BSP App from the UWL - What is required?

    Hello,
    We are trying to call a BSP application using workflow from the UWL. We are using ECC5.0(ERP2004) and EP6.0.
    I have setup a Std Task to call method EXTSRV:PROCESS and in the task container I have the parameters that the BSP is expecting.
    I have set the task as BSP_Standard is transaction SWFVISU. The visulisation parameters I have set as follows:
    APP_PATH:      sap/bc/bsp/sap/yfi_aa_b_req
    CONFIRM:      
    SYSTEM_ALIAS:  SAP_R3_Financials
    I could not find any documentation on what these parameters should be so I have taken an educated guess.
    The current configuration opens the HTML SAPGui with a generic screen stating that the workitem is in process, but there is no sign of the BSP application
    I need to confirm that there is no other Portal Content Directory configuration required with respect to the Launcher/Handler in the portal.
    Also that the setting for the visualisation parameters are correct:
    Eg.
    APP_PATH "Complete path to the BSP Application"
    CONFIRM "Flag to show a confirm end of step button"
    SYSTEM_ALIAS "The ECC System alias defined in the portal"
    Yor help would be appreciated.
    Regards
    Mark Rodrigues

    Sorry for the tardy reply, we were swamped by a deadline and I have only had a chance to re-surface in SDN.
    Here is an example of the UWL XML config:
        <ItemType name="uwl.task.webflow.TS90000117.SAP_R3_Financials" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchWSHanlder" executionMode="pessimistic">
          <ItemTypeCriteria systemId="SAP_R3_Financials" externalType="TS90000117" connector="WebFlowConnector"/>
          <Actions>
            <Action name="launchWSHanlder" groupAction="" handler="XhandlerLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes">
              <Properties>
                <Property name="webservice_url" value="http://ssisapd3.app.govnet.qld.gov.au:8040/sap/bc/webflow/wshandler"/>
                <Property name="sap-client" value="110"/>
                <Property name="display_order_priority" value="5"/>
              </Properties>
              <Descriptions default=""/>
            </Action>
          </Actions>
        </ItemType>
    Hope this helps. As mentioned you have probably worked it out yourself now.
    That Callback URL was very important for sending the terminating event back to R/3.
    Mark

  • How to open Viewer from other apps? - App 'URL Scheme' has disappeared from Viewer Builder!

    Hello
    The 'URL Scheme' option in the Viewer Builder did let me to specify a url that made other apps open my viewer. But this option has disappeared from the newer version of Viewer Builder. So. How do I do now to let other apps open my viewer?

    Is there a spacial reason that the URL scheme option was taken away from ordinary Multi-issue viewers? It was there in earlier version. I'll explain our situation:
    Our client want to publish corporate information; annual reports etc, with DPS. Not really magazines or newspapers you subscribe to.
    We are making another app where they publish news articles, videos etc. In that app, we want to have a link which opens the viewer with their publications.
    To make this simple thing work, we have to create a 'subscription' to content which is not relly good for subscribing (it is free and announced with push anyway). We also have to tell the client to create Privacy Policys etc for this. A lot of hassle for something we do not really want.
    Any chance that this option will come back in v19?

  • Launching BSP from url in email

    Happy New Year,
    I have a page that automatically generates an e-mail and sends it out to a user.  Inside that e-mail is a link to a page from the same BSP application where the e-mail was created.  When I click the link, it launches the correct page, but it gives me the message, "An internal error occurred. Please try again later."
    I call the .do file, in which it calls the .bsp file.
    I have tried to debug the class method Do Init(), but it's like it doesn't get to it before it crashes.  What could be causing this problem?  This is an MVC BSP.
    Is there some documentation out there on this?
    Best regards,
    Kevin

    Hi Kevin
    I am afraid this approach will not work...
    The eRecruitment 3.0 BSP pages were developed prior to the completion of the full MVC implementation by SAP. As a result they have created their own controllers which inherit from the CL_BSP_CONTROLLER2 standard controller class. These controller classes link into other HRRCF classes at runtime, it is therefore not possible to call the individual pages directly.
    You can only call the eRecruitment pages from outside a current session in two ways. The first is via a start page and the second is via an HRRCF logical application.
    The ABAP report RCF_GENRATE_URL and RCF_GENERATE_URLS will give you some idea of the possible entry points. RCF_GENERATE_URL can be called to give the required URL for either a given start page or a given logical application.
    Adding new logical applications can be achieved by configuring table T77RCF_LOG_APPL and T77RF_LOG_APPLT. The new logical application must have a stand along controller, to see an example of these look at the BSP application HRRCF_PERS_SETT where you will find the controller MAIN_SA.DO [ SA stands for stand alone ] on occasions were no separate controller is required for stand alone use you may find the the main controller [ with _M ] will be called.
    All pages will be called via the base application HRRCF_START_INT [ for users known to the system ] or HRRCF_START_EXT [ user external to the system ]. These applications will instantiate the necessary framework before calling the logical application or start application pages...
    You can see this from the URLs when browsing the system. Normally you will be pointing at /hrrcf_start_int/application.do OR /hrrcf_start_ext/application.do
    Hope that helps
    Jon Bowes

  • Need to warn user of session timeout in BSP app hap_document......

    Hi,
    We're using the hap_document app to allow employees to change appraisal documents in ESS and for managers to create them thru MSS....
    When employees have their documents open for more than 1 hour, the next time they click on save, it takes them to the session timeout (ICM, version 6040, module icxxthr_mt.c)....
    Is there a way to add a timer to the document.htm or body.htm pages in the application to start a timer, reset it each time user clicks on save, and warn him with a popup when we're within 5 minutes to a timeout...
    I've read messages on the BSP thread that say...
    "Document.htm is split in two frames. One hidden to enable session handling, the second one visible which contains the document.
    So the document.htm is not refreshed, the second frame is refreshed. I tried your approach as well and was not able to tie the script to the second frame.
    Regards and Groetjes,
    Maurice"
    I've also read Thomas's stateful/stateless timeout parameters article...
    Can anyone help me with where I would put the timer javascript code (if not in document.htm or body.htm) and which timeout parameter to check...
    Thanks for all your help,
    Venkatesh

    Look at the sample code..Will solve your problem..
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <script type="text/javascript">
    function remind() {
    var msg = "Your Session will be timed out in 10 Secs";
    alert(msg);
    </script>
    <htmlb:content design="design2003" >
      <%
      data: v_rem type string.
      DATA: port TYPE STRING.
      port = request->get_header_field( if_http_header_fields_sap=>server_port ).
      DATA: services TYPE TABLE OF ICM_SINFO.
      CALL FUNCTION 'ICM_GET_INFO' TABLES SERVLIST = services.
      FIELD-SYMBOLS: <service> TYPE ICM_SINFO.
      DATA: wait TYPE STRING.
      READ TABLE services ASSIGNING <service> WITH KEY service = port.
      wait = <service>-KEEPALIVE - 10.
      CONDENSE wait.
      concatenate `'remind(`  wait `)',2000` into v_rem.
      %>
      <htmlb:page onLoad = "setTimeout(<%= v_rem %>)"
                  title  = " " >
        <htmlb:form>
          <htmlb:textView text   = "Hello World!"
                          design = "EMPHASIZED" />
          <htmlb:button text    = "Press Me"
                        onClick = "myClickHandler" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <i>* Reward each useful answer</i>
    Raja T

Maybe you are looking for

  • Sharing Internet via Airport with Firewall on doesn't work....correctly

    My imac has an ethernet hi-speed cable connection and I want to share it over the airport so that I can connect to it with my macbook and iphone. Everything works fine, until I turn on my firewall. Once the firewall is turned on and I try to connect

  • Gaps in interval data

    Hi Gurus, I am using oracle 11.2.0.1 Enterprise Edition. And I tried writing query different ways but unable to get going. Your help is greatly appreciated. The Query should give output as I explained below. This query is identify the gaps in interva

  • Looking for an Access Point with 2 Ethernet ports

    Hi,      I am looking for an AP with two ethernet ports. Is there any model of Cisco is available with 2 ethernet ports? Regards, Noman

  • Swf to svg conversion

    I have static SWF files that I need to convert to SVG, DWG, _or_ DXF files. Is it possible to do this in Flash Profession (or any other Flash-based product)? If so, is it possible to do programmatically (that is, via an API/SDK)? Thanks.

  • How do I resolve an error message that wont go away

    I keep getting a "ActionScript" error message and do not know how to get it corrected or resolved.  Any and all help here will be greatly appreciated!!!   I am running Windows 7, and use Internet Explorer, Google Chrome and Firefox.  The message alwa