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

params between BSPs

Hello,

I have a BSP and in the event onInputProcessing I put:

navigation->set_parameter( name = 'user'

value = user ).

navigation->goto_page( 'default.htm' ).

The problem is that in the URL the params is:

http://s453d.doma.es:8000/sap/bD1lcyZjPTEwMA==)/bc/bsp/sap/zpruebas/default.htm?sap-params=dXNlcj1wZXBl

I want that the URL have the param "user", because the next page doesn`t a BSP and it have read the param.

http://s453d.doma.es:8000/sap/bD1lcyZjPTEwMA==)/bc/bsp/sap/zpruebas/default.htm?user=user

Why I can get it?.

Thanks

Add comment
10|10000 characters needed characters exceeded

4 Answers

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

    Hi,

    set_parameter doesn't add a parameter in the url, but you can access it in a BSP page with get_parameter. But as i see, the next page is not bsp, can't you construct the url in your navigation->goto_page ?

    Add comment
    10|10000 characters needed characters exceeded

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

    Hola Isa!

    You can concatenate url with:

    data url type string 'http://srv.dom.com/app/site.html'.

    concatenate url '?user=' user into url.

    navigation->goto_page( url ).

    Suerte, wapa!

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 27, 2004 at 01:39 PM

    better solution in my opinion is to use the method:

    CALL METHOD cl_bsp_runtime=>if_bsp_runtime~construct_bsp_url

    EXPORTING

    in_protocol = lv_protocol

    in_application_ns = lv_bsp_namespace

    in_application = lv_bsp_application

    in_page = lv_start_page

    in_parameters = lt_parameters[]

    in_suppress_rewrite = 0

    IMPORTING

    out_abs_url = lv_preview_url

    out_local_url = lv_local_url.

    and fill the parameters table with values you like, then you will receive url stirng including your values...

    Matthias

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 28, 2004 at 07:56 PM

    Hi all-

    One brute force method of passing parameters between different components/pages of a BSP application or even between BSP applications is via the memory.

    This can be performed by Exporting the requisite attribute/value to a memory location identified by the unique session reference and then Importing it back using the same unique session reference.

    If you have more than attribute/value to pass then just suffix the unique session reference value with a serial number style enumeration.

    This technique has allowed me to hide data during passage and contrary to my previous guesses - works quite reliably for me.

    Good luck,

    - Vik.

    Add comment
    10|10000 characters needed characters exceeded