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

question about method: construct_bsp_url

Hello,

A simple question:

When I call a BSP using (for example):

-


CALL METHOD

cl_bsp_runtime=>construct_bsp_url

EXPORTING

IN_APPLICATION = 'ZEPCTESTMCG'

IN_PAGE = 'index.htm'

IN_PARAMETERS = params

IMPORTING

OUT_LOCAL_URL = url.

-


In the BSP that is called, how do I retrieve the values of the exported table "params"??

Thanks,

Tim

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 01, 2005 at 02:46 PM

    hi timothy,

    u have to define <b>params</b>in a page attribute as a Table Type using either <b>se11</b> or u just double click on params it will automatically open se11 for u ( only with WAS 6.4), so if ur using WAS 6.2 ,its better u define one Table Type using se11 and assign params as the type u created in page attributes <b>associated type</b> field.

    Regards,

    kamaljeet

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I found the solution:

      -


      DATA: ls_value type upwb_ys_sel_option.

      DATA: r_pays type ref to if_upwb_c_selector.

      DATA: params TYPE tihttpnvp,

      wa TYPE ihttpnvp,

      url TYPE string,

      descr TYPE string.

      clear: params, wa, url.

      refresh: params.

      r_pays ?= cl_upwb=>get_component( 'VarvlSel17' ).

      clear: descr, ls_value.

      descr = r_pays->get_value( ).

      check descr is not initial.

      read table r_pays->mt_value into ls_value with key sel_key = descr.

      if sy-subrc = 0.

      MOVE: 'pays' to wa-name,

      <b>ls_value-text</b> to wa-value .

      APPEND wa to params.

      endif.

      -


      I found this routine as a method in SAP standard:

      -


      method if_upwb_component~get_bps_description.

      • resolving description (redefined in subclasses if needed)

      • new type: value

    • importing value(field) type string

    • returning value(descr) type string.

    • data: ls_value type upwb_ys_sel_option.

      case field.

      when 'value'.

      descr = get_value( ).

      check descr is not initial.

      read table mt_value into ls_value

      with key sel_key = descr.

      if sy-subrc = 0. " found

      descr = ls_value-text.

      endif.

      when others.

      descr = super->if_upwb_component~get_bps_description(

      field ).

      endcase.

      endmethod. "if_upwb_component~get_bps_description

      -


      I think I can call instead get_bps_description directly, but my solution in using the actual code for the method in my BSP works fine...

      Thanks for your help, you can close the item 😊

      Timothy

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.