Skip to Content
author's profile photo Former Member
Former Member

How to get the URL address ?

I would like get the full URL address of my page with PARAM fields. Is a method exist to do it ?

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 04, 2004 at 03:22 PM

    use javascript

    location.href = location.href + '#monAncre';

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 04, 2004 at 04:25 PM

    Depending on your BSP application development context, you have the choice of using the methods ->

    • Application Object:

    "get_application_url"

    (Returns a server-specific URL that references the current BSP application)

    • BSP-MVC OODP Native:

    "GET_PAGE_URL"

    (Returns the URL of the page or the current controller)

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 05, 2004 at 09:07 AM

    Great. Sometime I dont understand how it's so difficult to find a complete BSP reference on Internet. 😉

    I come from JAVA and .NET world. I have to say a strange thing : It's really faster and easier to develop a webapplication with BSP + ABAP than with JAVA. very Faster. On other good new : For a guy coming from IT world, begins with a ABAP 00 BSP developpement (language is very easy ) It's a best way to acquire SAP culture and overview.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 05, 2004 at 08:47 PM

    For all the things you you want to "get" about an incoming request, it is best to ask the request itself. There are some custom/predefined header fields that are injected into the request on arrival, that contains many interesting answers. For example:

    request->get_header_field( '~requet_uri' ).

    But, the better way to write this is:

    request->get_header_field( if_http_header_fields_sap=>request_uri ).

    And if you are very fast in making connections, you would now already have SE80 open and be looking at these interesting interfaces if_http_header_fields and if_http_header_fields_sap.

    For a good and simple example, look at BSP application IT00, page "misc_echo.htm". Run it with different URL parameters, and see what happens.

    And then, define in ICF an external alias onto BSP application IT00, and run the page again via the alias.

    ++bcm

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.