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

Calling a BSP application with MVC and send one start value


I developed a BSP application with BSP. The application has a start page with one input field. The user gives a number and click the send button. The controller creates the modeler and gives the userinput as start parameter for the data search. After the data are read/found, the controller calls a view to show the data.

This is very easy and does work.

I have to call this simply application from another one: the caller application sends the start value.

I don't know, if is better to send the start value in the URL or not. I tried it, but the controller cannot read it.

How can I call the controller with a start value?

Thank you!



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 10, 2005 at 07:41 PM


    if the URL is something like

     url = 'http://<server>:<port>/sap/bc/bsp/sap/zbsp/start.htm?my_value=10002' 

    your do_handle_event will have

      navigation->exit( exit_url = url ).

    This code will be in your do_init method.

      DATA :   ffs                   TYPE tihttpnvp,
               ff                    TYPE ihttpnvp.
      request->get_form_fields( CHANGING fields = ffs ).
      IF NOT ffs[] IS INITIAL.
        LOOP AT ffs INTO ff.
        translate ff-name to lower case.
          CASE ff-name.
            WHEN 'my_value'.
              value_to_use = ff-value.
            when others.

    Hope that helps.


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Brian McKellar

      Hi everybody,

      I thank you all three: our suggestions do work!

      The javascript one doesn't suit to this problem, but I can use it for another one 😊

      I put the code in my controller do_init method and I can start it with the parameters.

      This is very important for me because I have to start the BSP application from the SAP framework for Records Management: I can only start the BSP application over the service provider for URL. I cannot change the service provider 😔 but I can put parameters in the URL.

      Thank you and have a nice time!


  • Posted on Feb 10, 2005 at 03:49 PM

    Hi ,

    what you need to do is

    1) for the "Send" button attach a java script.

    <htmlb:button id="myButton" text="Submit ...." onClick="sendRequestWrapper()"/>

    this javascript should take the inputfrom the field,

    then in the javascript create the URL.

    function sendReqeustWrapper(){



    function sendRequest(InputField)


    var URL;

    URL = window.location.protocol + "//" ;

    URL += ;

    <b>Note: its only Example link,</b>

    URL += "/sap/bc/bsp/sap/ /";

    URL +="?InputFieldName=";

    URL +=InputFieldValue;

    <b>then use</b>

    Your URL will look like: /,"_self","");


    so once this URL is triggered you need to goto the respective controller and handle the input. You can see the reply from Mr. Akshaya Rao .


    Vijaya Kumar M.

    Message was edited by: Vijaya Kumar

    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.