Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    May 04, 2004 at 03:22 PM

    use javascript

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • 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 comment
    10|10000 characters needed characters exceeded