BSP URL  in Variable

Hi,
How can i get bsp application URL in a variable. Is there is any function module?
Please let us know as early as possible.

Hi ram,
This is the code i have used use it.
data: V_TARGET_URL type string,
        W_APP_NAME type string.
CALL METHOD runtime->construct_bsp_url
    EXPORTING
      in_protocol       = 'http'
      in_application_ns = runtime->application_namespace
      in_application    = runtime->application_name
      in_page           = '**/Zi18n/i18n.htm'
    IMPORTING
      out_abs_url       = v_target_url.
  CONCATENATE runtime->application_name '/**/' INTO w_app_name.
  REPLACE w_app_name IN v_target_url WITH space.
But i have used this code for adding some information more to the URL)Eg <sap-langauge=en)
In thi way.
By using the global objcet APPLICATION
If you want to get the URL statically.
APPLICATION->GET_APPLICATION_URL
In the PAGE also  we have a method to get the URL.
Try with it.
Hope this helps you.
Thjnaks & Regards,
Lokesh

Similar Messages

  • How to launch a non bsp url through transaction launcher

    Hi All,
    i am not able to launch a non bsp url from transaction launcher. i have followed all the steps needed.
    Defined URL as non bsp url and defined the logical system and assigned it to rfc destination.
    when i test this out, i am getting a blank page.
    Any pointers on this will be helpful.
    Thanks,
    Udaya

    I am trying to launch sap/bc/bsp/sap/ytest2/index.htm without giving the initial server details. for the server details, i have mapped to logical system.
    i am assuming that this will pick the server info http://dmsap650.fm.test.com:8006/.

  • Button URL With Variables widget that works with HTML5

    Hello,
    I'm currently using the "Button URL With Variables widget 6.x" developed by CaptivateDev. com. Unfortunatley it is not compatible with HTML5 projects in Captivate 7. Do you know where I can find one?
    Thanks,
    Stewart

    I don't know yet about any widget available for HTML5 output, with the exception of the interactions included with Captivate.

  • Session id in BSP Url

    Hi
    I am creating a new iView of type BSP. On executing/previewing the iView the url is generated similar to:
    http://<hostname>:<port>//sap(bD1lbiZjPTEwMCZkPW1pbiZpPTEmcz1TSUQlM2FBTk9OJTNhZHYxZDIxX0QyMV8yMSUzYU5pOXBPcGVTbE9HTVk0ZWdfcU1jUnVkYU04MU5WUUdCTDhrai10cGMtQVRU)/bc/bsp/sap/<application>/<start page>.htm
    Although the BSP url is
    http://<hostname>:<port>//sap
    (bD1lbiZjPTEwMCZkPW1pbg==)/bc/bsp/sap/<application>/<start page>.htm
    So the session parameters generated in the two URLs is different and the latter one works fine but the earlier one gives some issue when trying to save etc and does not work as expected.
    I analysed the session parameters in the URLs and found that the former URL:
    (l)anguage en
    (c)lient 100
    (d)omainRelax min
    (i)info 1
    (s)ession-id SID:ANON:dv1d21_D21_21:Ni9pOpeSlOGMY4eg_qMcRudaM81NVQGBL8kj-tpc-ATT
    and the latter:
    (l)anguage en
    (c)lient 100
    (d)omainRelax min
    Is there any way this parameter be controlled from portal end so that I am able to get the BSP url (latter).
    Appreciate any pointers.
    Thanks,
    Priyanka

    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

  • BSP URL parameters

    Hello,
      I have BSP developed with MVC paradigm. I show multiple tables in BSP page which is something like report output. I have event for line select on each table.
      My problem is, when user select any line, the BSP URL becomes extensive long and it get appending with all values of selection like event, event id etc.
      Is there any way I can control this. I want URL should not change after any event. I know Java Script has option / solution for it but I don't know how to.
    I appreciate yr help.
    Thanks
    Aj

    Hi,
    Explicitely adding the POST method to forms will prevent adding the values in your URL. Check http://www.htmlcodetutorial.com/forms/_FORM_METHOD_POST.html for details.
    Eddy
    Pimp up the S(D)N site and earn points. Check this <a href="/people/eddy.declercq/blog/2007/02/01/pimp-up-the-jam log</a> for details

  • BSP URL in BEX Browser role

    Hi,
    I'm putting a link to a BSP URL into a role in the BW BEX Browser, for transport up through our dev and test systems. How do I configure this link so that it resolves the correct address for each system?
    Regards
    Neville

    If you want place BSP applications in the roles you should place them in the role menu.
    It has options for reports, transactions and others.
    Click on others button and choose the BSP application radio button. in the resulting screen enter the BSP application name and start page.
    Regards
    Raja

  • BSP URL Rewrite

    Dear All,
    I have created one controller and URL of the controller is being called from non-SAP interface. While calling from non-SAP interface, it is giving error "BSP URL requires rewrite".
    If I call the same URL in web browser from external network, it is working absolutely fine.
    I tried using following code also to avoid URL Rewrite in my controller, still getting same error.
      RUNTIME->CONSTRUCT_BSP_URL( EXPORTING
                                    IN_APPLICATION      = 'ZBSP_EXT'
                                    IN_SUPPRESS_REWRITE = 1 ).
    Kindly suggest...
    Regards,
    Sagar

    Hi,
    the portal self displays a link for changing the language by the user. If you want to influence the language in your BSP application directly, then use parameter ?sap-sessioncmd=open&sap-language=DE in the URL.

  • Tell Safari to open url using variables

    Hi,
    I need to be able to tell Safari to open a url using variables.
    Example:
    I type "Soul Men" (without the quotes) in MS Word Mac, then select it, then run the
    script and Safari opens as if I had opened imdb.com and searched for "Soul Men".
    The issue:
    The format for that imdb.com search url is:
    http://www.imdb.com/find?s=all&q=Soul+Men&x=12&y=12
    Notice that each word in the search terms is followed by a "+", except the last.
    So I would need to tell the script to create that url, and use variables for the search terms.
    I would need to account for any number of words in the variable.
    Hope that makes sense,
    Any help appreciated,
    Charles

    Hello
    As for building imdb's query url, you may try something like the CODE1 below.
    It includes code to handle characters in U+0080 and upper.
    (The imdb's query looks like using iso-8859-1 encoding, not utf-8, so the code is written as such.)
    --CODE1
    set n to "Soul Men"
    set u to imdbQueryUrl(n)
    return u
    on imdbQueryUrl(n)
    set sh to "echo " & quoted form of n & ¬
    " | iconv -f utf-8 -t iso-8859-1 " & ¬
    " | perl -M-utf8 -MURI::Escape -lpe '$_ = uri_escape($_); s/(%20|%09)+/+/og;'"
    return "http://www.imdb.com/find?s=all&q=" & (do shell script sh)
    end imdbQueryUrl
    --END OF CODE1
    As for getting text in selection of Word document, you may try something like the CODE2 below. Not tested, though.
    --CODE2
    tell application "Word"
    set t to content of selection
    --set t to content of text object of selection -- if above fails
    end tell
    --END OF CODE2
    As a whole, you may try something like this -
    --SCRIPT
    tell application "Word" to set n to content of selection
    open location imdbQueryUrl(n)
    on imdbQueryUrl(n)
    set sh to "echo " & quoted form of n & ¬
    " | iconv -f utf-8 -t iso-8859-1 " & ¬
    " | perl -M-utf8 -MURI::Escape -lpe '$_ = uri_escape($_); s/(%20|%09)+/+/og;'"
    return "http://www.imdb.com/find?s=all&q=" & (do shell script sh)
    end imdbQueryUrl
    --END OF SCRIPT
    Good luck,
    H

  • Documentation of SAP default BSP url parameters

    Hi,
    I'm looking for a documentation on the SAP default BSP url parameters like
    - sap-syscmd
    - sap-sessioncmd
    - sap-params
    I already used some of them but am not quite sure whether there aren't any more to help me solving tricky problems.
    Is there any list of all parameters including their meaning and examples for usage?
    Thanks & regards
    Wolfgang

    I don't think you have listed the commands for sap-syscmd.  These look like the ones for sap-sessioncmd. 
    The following was taken from page 94 of <i>Advanced BSP Programming</i>:
    <b>SAP-SYSCMD</b>: The only value supported is nocookie.  This tells the BSP runtime to mangle the session ID into the URL and not use a cookie for handling the session id.  This is especially required when the same stateful application must be run multiple times in situations where session ids in coookies would have resulted in all applications mapping ont the same session.
    <b>SAP-SESSIONCMD</b>: The parameter sends actions to the session managemer:
    <b>open</b> - starts a new session
    <b>close</b> or <b>logoff</b> - ends the current application and redirects the browser to the URL supplied by the parameter SAP-EXITURL.
    <b>cancel</b> - is similar to close, but already handled by ICM.
    <b>usr_abort</b> and <b>usr_close</b> - is used by the portal to control BSP sessions. 
    It is interesting that the posting by Guillaume Garcia matches the text from the BSP book exactly.  I referenced my source, did you?

  • How to mount an url with variable data?

    Hello fellas, i need to use a variable url in an a tag to send emails.
    Something like: <a href="exemple.com?guest=Name%20Of%20My%20Guest">
    Anyone knows how i can encodeURI of an variable data in Eloqua???
    Thanks for attention.
    Respect!

    Hello fellas, i need to use a variable url in an a tag to send emails.
    Something like: <a href="exemple.com?guest=Name%20Of%20My%20Guest">
    Anyone knows how i can encodeURI of an variable data in Eloqua???
    Thanks for attention.
    Respect!

  • Calling wrong BSP url in CRM PCUI

    Hey
    Im using CRM 4.0 PCUI 60.2 and issue with an event on the Quotation BSP. In this application you have the opportunity to print/preview an quotation. If i press this button, a new window opens with following URL:
    http://myhost:8003/sap/bc/bsp/sap/ml_preview.do?
    The problem is that this url is incorrect and i get an BSP error. The correct URL should be http://myhost:8003/sap/bc/bsp/sap/crm_ml_preview/ml_preview.do?
    How can i change this url? should i do it in the config of the PCUI ? In that case HOW? or is it possible to  make an alias in the transaction SICF?
    Best Regards
    Kristoffer Engh

    Hi,
    we've already done a rework of the marketing attributes screen by using the technique I've described in my Weblog <a href="/people/gregor.wolf3/blog/2005/05/27/use-crm-pcui-html-viewer-to-call-a-custom-url">Use CRM PCUI HTML viewer to call a custom URL</a>. But it has one drawback: You can't use the Save button of the PC-UI applicaiton. You have to provide your own. But the usability enhanchement is rearly great.
    Regards
    Gregor

  • BSP Url encoding

    Hi all!
    I'd like to use URL encoding (I guess base64) to mask url parameters in our URL (instead of default.htm?param1=value&param2=value etc.) to prevent URL manipulation. In most parts of our application we use PopUp-Windows without the location bar of the browser, but we have email links to workitems which launch BSPs and these new opened browser windows do have a location bar and a URL which can be manipulated.
    How do you set up URL encoding in your BSP application? (entries in the BSP service of /sicf for example or BSP Application Attributes ?). Is there a way to encode the only parts of the application? How to use and when the if_http_utility->en/decode_base64 methods?
    best regards,
    Christoph

    did you try the following?
    ex. you have page a.htm and from there you are calling page b.htm with params param1 and param2.
    use
    CALL METHOD cl_http_utility=>if_http_utility~encode_base64
                     EXPORTING
                       unencoded =  param1value
                     receiving
                       encoded   = param1value .
    and pass this as the value for param1 and call the URL for page b.htm.
    and within page b.htm decode it and use .
    CALL METHOD cl_http_utility=>IF_HTTP_UTILITY~DECODE_BASE64                 EXPORTING
                       encoded =  param1value
                     receiving
                       decoded   = param1value .
    <b>Sample application:</b>
    Create a BSP application withe two pages a.htm and b.htm
    and have a page attribute called name in both the pages.
    <u><b>a.htm layout code</b></u>
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = " ">
        <htmlb:form>
    <%
    if name is initial .
    name = sy-uname .
    endif .
    %>
          <htmlb:textView     text          = "<%= name %>"
                              design        = "EMPHASIZED" />
    <%
    CALL METHOD cl_http_utility=>if_http_utility~encode_base64
                     EXPORTING
                       unencoded =  name
                     receiving
                       encoded   = name .
    %>
          <htmlb:button       text          = "Press Me"
                              onClientClick       = "javascript:window.open('b.htm?name=<%= name %>');" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <u><b>b.htm layout code</b></u>
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = " ">
        <htmlb:form>
    <%
    CALL METHOD cl_http_utility=>if_http_utility~DECODE_BASE64
                     EXPORTING
                       encoded =  name
                     receiving
                       decoded   = name .
    %>
          <htmlb:textView     text          = "<%= name %>"
                              design        = "EMPHASIZED" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Hope this helps.
    Regards
    Raja

  • Need to create or load a url with variables in CCX

                  Im trying to find a way to used the building browser for CAD.  the url will goto a customer DB web portal.  but the url needs to be loaded with the ani and other variables.  example.  will some type of scripting steps allow me to create a http url and then populate it in the cad browser.  Or at least gives me a link some where in the layout to click on to get the the created/ loaded url
    http://411webhost.com/customer/connect.php?cust_phone=678-900-3000. 

    I have done something similar to this in the Desktop Admin interface. Assuming you populate the variable in the script (meaning you will have to define a custom one or use one of the CustomCallVariables), you can have an HTTP action on either ringing or answered that will display the URL in the CAD browser.

  • Execute Broadcaster direct with URL and variables

    Hi,
    is it possible to execute an broaadcaster with an existing setting as an URL command like <SAP_BW_URL CMD='START_BROADCASTER >.
    But i want execute the broadcaster direct in the same like the button below without any user action. It would be very nice to change the variable settings in the same way.
    Brg,
    Frank

    Hi,
    is it possible to execute an broaadcaster with an existing setting as an URL command like <SAP_BW_URL CMD='START_BROADCASTER >.
    But i want execute the broadcaster direct in the same like the button below without any user action. It would be very nice to change the variable settings in the same way.
    Brg,
    Frank

  • Capturing URL WITH VARIABLES for reuse?

    Hi,
    I have an application that authenticates users only if a
    certain page is requested. Once they login, i'd like to send them
    back to the page they came from, the one that required they log in.
    BUT, I need to send them back to that page with some URL
    variables intact (pageID, sometimes another one, it varies from
    page to page).
    I cannot for the life of me figure out how to do this...have
    messed with GetTemplatePath and such, have looked at my Forta book,
    have searched here and googled....this seems like it should be easy
    but I can't figure out how to grab what I need.
    Help?
    Many thanks in advance....
    Liz

    That was it!
    I'll find one to answer now , many thanks :)

Maybe you are looking for

  • Unable to load bluetooth device driver to xfer files

    On W500 and T61P attempt to connect a Samsung SGH T809 phone using bluetooth. Device is seen at both PC and phone using bluetooth. Win 7 OS. When it connects it loads the Modem, and other device drivers but fails to load one of the peripheral device

  • 10.4.10 External Hard drives, and other oddites

    Greetings, I decided to turn my Mini into my file server tonight, and connected a 160 GB hard drive via an external USB 2.0 Case, and formatted it, and then copied some 50 GB of data from another hard drive that was formatted EXT3. I then installed t

  • QuickTime 7.6.5 doesn't display controller on browser viewing

    This happened with QT 7.6.4 for Windows. When 7.6.5 came out, I uninstalled the old and freshly installed the new. But still...going to QuickTime.com for movie trailers and clicking to watch movies (not HD) for browser viewing doesn't display the Qui

  • Problem with time dimention

    Hi Gurus I have a problem with the time dimension and hierarchy, because it does not add to totals Example 2011.ABR | 2011.MAY | 2011.JUN | 2011.JUL | 2011.AGO | 2011.SEP | 2011.OCT | 2011.NOV | 2011.DIC | 2011.TOTAL 10         10          10       1

  • OS X Yosemite as a new install?

    I have to do a fresh install on a new hard drive for my laptop, and was hoping to use Mavericks as a new install.  I know it's reported as an upgrade, but has anyone used a new OS X as a new install for a new system?