Calling sub controllers in different BSP applications

I try to call in a controller class a sub controller which belongs to another bsp-application (and another dev package)
Here the example of the structure:
(Package) Z_TST1
--(Controller class) Z_CO_TST1
--(BSP-Application) Z_TST1_BSP
(controller) tst1.do ...
(some additional views, model classes, ...)
(Package) Z_TST2
--(Controller class) Z_CO_TST2
--(BSP-Application) Z_TST2_BSP
(controller) tst2.do
Now i want to call the controller tst2.do as sub controller in controller class Z_CO_TST1. help.sap.com says its possible to call controllers of other applications:
http://help.sap.com/saphelp_erp2004/helpdata/en/21/d8463c9c9ffc3ae10000000a114084/frameset.htm
In controller class Z_CO_TST1 i will do some code like described in help.sap.com:
http://help.sap.com/saphelp_nw04/helpdata/en/ce/43473ccf20514ee10000000a114084/frameset.htm
Thanks for any ideas
Peter

I'm sorry, but I solved it by my own (today). Solution is to let application_namespace empty and use application_name for the BSP application name you call in the create_controller method. In the view I only call <bsp:call comp_id = 'name_of_controller_id' />. Help.sap.com has more info, than I thought.
Thanks for answering - Peter.

Similar Messages

  • How to call a controller from a different BSP application?

    I have searched for the documentation, I have found literature that says it is possible but I am struggling with the syntax. I am in BSP 'MVC1' and upon a condition I would like to call the main controller of BSP 'MVC2'. What will be the syntax?
    Thanks
    Mani

    Hi,
    this might help:
    MVC call another controller with other (own) namespace
    grtz
    Koen

  • How to call a smartform in a bsp application

    Hi,
    I would like to have an example or code for calling a Smartform in a BSP program.Can anyone suggest me in this ?
    Thanks in Advance,
    shwetha

    Hi,
       Also chek the BSP application sf_webform_01 and page form.htm in it.
      Go through the event OnInitialization of the events of form.htm too.
      Hope this will be useful.
    Rgds,
    Vijayalakshmi

  • Calling of Sapscript program from BSP Application

    Hi,
       I have a requirement to display the sapscript output in PDF throgh BSP.
       In the Application program I am taking the output in PDF format.
       Now While calling the Driver program in BSP it is giving dump.
       I am using Submit 'Prog_name'  and return.
      Pls help.

    Hi Thanuja,
    You cannot call the program using SUBMIT PROGRAM in BSPs.
    You can create PDF from a Smart Form. <i>I have no idea of SAPSCRIPTS calling from BSPs.</i> You can do one thing, you can migrate your SAPSCRIPTS to SMARTFORMS and try the below code.
    You can call the the below three FMs in the following sequence.
    1)
      call function 'SSF_FUNCTION_MODULE_NAME'
        exporting
          formname           = l_form_name
        importing
          fm_name            = l_function_module_name
        exceptions
          no_form            = 1
          no_function_module = 2
          others             = 3.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                 with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    2)  call function l_function_module_name
    3)  call function 'CONVERT_OTF'
    Thanks,
    Sreekanth

  • How to call custom BSP application on click of BACK button for SC in EBP.

    Hi All,
    We are implementing OCI using custom BSP applications.In EBP SC screen ,in step1 (Select Goods/Services), the links for these BSP applications are displayed.
    The user can create a shopping cart using these applications , after the items are transfered from BSP to SC on standard  EBP screen , in step2
    there are four buttons ,
    1)Refresh
    2)Check
    3)Back
    4)Continue.
    We need to call one of our custom BSP applications on click of  this BACK button
    How can i acchieve the same?
    Do i need to make changes in the standard ITS application or thers some other way?
    Thanks,
    Anubhav.
    Edited by: Anubhav Jain on Jul 1, 2008 7:24 AM

    To call a wd abap application from BSP use the method CL_WD_UTILITIES=>CONSTRUCT_WD_URL then just create a link in bsp with the url returned like this:
    <a href="url">Link</a>
    To pass data from wd abap to bsp or vice versa that a look at this blog: /people/koen.labie2/blog/2006/11/29/eating-cookies-with-webdynpro-and-bsp
    regards,
    Fabio Louzada Saito

  • How to create custom BSP application in SAP CRM?

    Hi Experts,
    I would like to seek help from you. I am new in developing CRM objects. My first requirement is to create a custom program that will generate a PDF report.
    First thing I would like to know is the transaction code where I need to create a BSP application that will be able to run in crm webclient. Please clarify if it is in BSP_WD_CMPWB or in SE80 because it is said that I should create BSP application using MVC.
    Second thing is how will I be able to call a smartforms in a BSP application. The scenario for my custom program would be, I should have a two input fields in the selection-screen which are Business Partner ID and Product Lines. together with a button that will trigger the form when ticked.
    Hope to hear from all of you. Your help will be very much appreciated.
    Thanks and Regards,
    Monica

    Hello MonicAnna,
    You can find some information on this page.
    (http://help.sap.com/saphelp_nw70/helpdata/en/59/cd7daa07d711d5b66f006094192fe3/content.htm)
    And also you dont have to use se80 to create new Bsp appliaction. You can create new application by this transaction BSP_WD_CMPWB.
    Zafer,
    Edited by: Zafer Kuru on Dec 5, 2011 10:12 AM

  • How to call a Webdynpro view from BSP page (MVC) in a new window?

    Dear Experts,
    kindly advise how to call a webdynpro view from BSP application after performing an event (through button or hyper link).
    Regards,
    Sarat.

    Hi,
    This has been discussed many times in several forums.
    Please check the method CL_WD_UTILITIES=>CONSTRUCT_WD_URL, to create a runtime url for your WD Application and call this URL.
    Refer thread: Call Webdynpro Application from BSP Application
    Hope this will be useful!
    Regards,
    Meganadhan S

  • How to call  an abap report in BSP..

    hi all,
    Please can anybody tell me how to call an abap report in BSP application.....since I am new to BSP....
    with regards,
    Santosh

    check this thread
    Urgent!!  How to call a custom transaction or an ABAP program in BSP?

  • Capture all the Users who viewed the BSP Applications ???

    Hello All,
           I need to create a BSP Application which shows all the Users, who have executed different BSP Applications and the Number of Times each user has executed these BSP's.
    Is this Possible ?
    If yes, can anyone tell me how to go forward  ????
    Regards,
    Deepu.K
    Message was edited by:
            deepu k

    Hello Eddy,
          I have gone thru ur Blog.
    But in this I guess I need from this part -->
    C. Generating Own Stats in BSP
    C.1. Logging It
    If all of the aforementioned tools don’t cover what you’re looking for, or there are technical/other reasons not
    to choose them, then there is only one thing left to do. Write your own stuff. It really isn’t that difficult to do
    and, if you are confident enough, you can make something that suits your needs 100%. Or as a host in a
    Flemish regional TV DIY show always says: “What you do yourself is usually done better.” Let us see what
    you need to do in order to achieve this.
    First of all you need data on the browser. This can be done via JavaScript and the navigator object:
    appCodeName
    The code name of browser (i.e.: Mozilla)
    appName
    The name of the browser (i.e.: Microsoft Internet Explorer)
    appVersion
    Version information of the browser (ie: 4.75 [en] (Win98; U)
    userAgent
    String passed by browser as user-agent header. (ie: Mozilla/4.0
    (compatible; MSIE 5.5; Windows 98; Hotbar 3.0))
    Platform
    The platform of the client's computer. JavaScript 1.2 property. (ie:
    Win32)
    You probably need some extra information like IP number. This can be done via the
    request->get_header_field method.
    As such you don’t need to retrieve this info every time if you have a single entry point like a login page. Just
    put it in a server side cookie. Each new page will read this cookie and save this info together with the page
    name, user id, eventual parameters, etc. into the log. Now I talked earlier about the visitor concept. This is
    also an ideal place to implement this. If you are only interested in returning visitors with a full day time interval,
    you can for example determine whether that user has already used that application. If so, you just increment a
    counter. If not, you have to create a new line. This method will also reduce the size of your table.
    C.2 Showing It
    The only thing you need to do is to analyze and visualize stuff. The analyzing stuff is completely up to you.
    The following screen shot is an example where the total number of visitors within a given time frame is shown.
    It also shows the number of unique visitors in that same time frame compared to the potential number of
    visitors. You might find this of interest if you want to know how many (internal) users actually use your intranet
    application. You can couple the user info to the department info and then you can figure out whether
    department X or Y is actually using the application.
    But I didnot get the actual idea of implementing this in my BSP.
    Can you give an explanation for the above ?
    Regards,
    Deepu.K

  • Stateful and Stateless BSP Application

    Hi Experts,
    I would like to know what a stateful/Stateles BSP Applicaiton means. I read the description given in help file but couldn't get the full idea behind it. Could anyone give a practical example for the same and explain. Thanks.
    Regards,
    Prabaharan

    Hi,A stateful BSP application is executed like a normal SAP transaction, – independent of all user interactions - in one single context (roll area). This means that data specified by the user during the application execution or data determined by the application itself is available potentially throughout the entire execution duration of the session.
    Since the HTTP protocol itself operates in stateless mode and knows no implicit mechanism to assign independent requests to a common logical session, the BSP runtime uses Session Cookies to group requests into one common session. The name of the cookie is sap-contextid, the validity area is restricted to the URL of the BSP application. This means that a BSP application can be executed within a browser only once at any one time. Different BSP applications can operate in parallel in the same browser. Multiple users/browsers can execute the same BSP application in parallel as often as required.
    Advantage
    The main advantage of stateful BSP applications is that they are simple to program. As usual, you have access to data determined previously and reading or re-calculating data can often be omitted. For database-intensive applications, this can lead to considerably better system performance compared to a procedure where identical read operations have to be executed for every request.
    Disadvantage
    This significant advantage is at the same time however a disadvantage – the improved runtime is offset by a larger memory requirement. The number of possible parallel sessions in an SAP Web Application Server is restricted not least by the amount of available memory space. When this space is exhausted, no further sessions can be started and users cannot log on
    Stateless BSP applications only block resources on the SAP Web Application Server during the time one single request is being processed. When the request has been processed, all resources in particular the application context are returned to the system for use in other requests.
    Stateless applications allow - at least from the viewpoint of the memory resource – optimal scaling regardless of the number of users. On the other hand, releasing the application context after every request may mean that identical data is read from the database and formatted multiple times. In this respect, the runtime may offset the memory saving. This should be evaluated and analyzed on a case by case basis.
    Rule of Thumb: Stateful or Stateless?
    As a rule of thumb, it is recommended that Internet scenarios used at the same time by a large number of users operate in stateless mode. Stateful programming is recommended for more complex applications that are used by a limited number of users in parallel and that operate with data that is expensive to determine.
    hope this helps.
    regards,
    keerthi.

  • Calling copy of BSP application in e-recruitment

    In E-recruitment module, I have a requirement to copy the SAP standard BSP application HRRCF_REQ_MNT to a z BSP application
    and add new fields to one of the BSP pages of the ZBSP application.I could not find any customizing table where I can make a
    call to my zBSP application. Can someone help me with this please?

    Hello,
    to include views of customer bsp application in a container sequence like the requisition maintenance you have to use the standard flexibilization for container sequences.
    It can be found in the IMG under the path e-recruiting -> technical settings -> user interface -> (Settings for UI BSP [only 600]) -> Flexibilization.
    You first define a context if you have not already done this. Then you go to Container Sequence -> Define Elements for CS and create an element for the screen of the customer bsp you want to include. As the standard customizing is not shown (it's stored in seperate tables) you might want to have a look on T77RCF_CS_ITEM in SE16 to get an idea what to put in the different fields (namespace can be SAP noone seems to know what it's really for).
    Then you have to go to -> Modify CS. Add an entry for CS Id 1000 which is the Container Sequence for requisition management. In the assingments you add entries for the context you created before and all customer and standard CS Items you want to use. The elements assigned to this CS Id in standard can be found in table T77RCF_CS_SEQ in SE16.
    To access the new configuration you have to call the startpage of the recruiter with the condetext defined (URL Param: rcfContext)
    Best Regards
    Roman Weise

  • Calling BSP application in same session

    Hi,
    I am trying to arrange a few BSP pages into some sort of "BSP pool" so I can call them from different applications. Means: I want to create something like a few base objects to re-use in other BSP applications. My BSP applications have to be stateful - so when I embed those pool pages (using iframe or similar technology) I do get a new session and cannot share the model data. :-((
    Is there any way of avoiding this session problem? Can I force a call to a new URL (on the same server) to re-use my previous session?
    Interface method "IF_BSP_NAVIGATION->goto_page" sports a parameter "session", but this parameter does not what I would have expected when fed with the current session ID.
    I could not find any documentation on the session handling in the WAS either. All I learnt is that a new session seems to be created whenever a URL with a different ICF path is called - even on the same server. If this is the case I will definitely have problems pooling BSP pages into a "toolbox" BSP application.
    Sharing the model data via server-side cookies could be a way, but fails for object references (like class instances or data references).
    Any experience with writing the model data (and references!) into ABAP memory to be re-used in the same GUI session (e.g. CIC)? That might be a workaround (?).
    Any hint greatly appreciated.
    TIA
    Peter

    I can tell you what I have used in the pass to acomplish this: BSP Extension Elements or Reusable Controller classes. 
    BSP Extensions are really designed for just this kind of reusability.  You have static interface into and out of the extensions.  All the rendering is encosed in the extension, yet will be befored in-line in the rendering of the main page.  You don't have to worry about separate sessions, or the overhead of iFrames.
    Another very similar approach is to create reusable controller classes.  Rendering logic can actually be placed in the controller as well (instead of calling a view). Brian McKellar has an SDN Weblog on how to use a controller class to build a pattern engine.
    If you are really trying to create a reusable toolbox - then I highly suggest the Extension approach.  However I have done the sharing of model data between two applications.  I have an example here:
    /people/thomas.jung3/blog/2005/05/27/custom-bsp-extension-element-for-field-level-help
    Basically I serialize the model class and write it into a server cookie.  Then I pass a unquie ID for that model instance to the second application.  It can then retrieve and deserialize the model.

  • Calling a BSP application from universal worklist

    Hi All,
    I want to call a BSP application, when a workitem is clicked in Universal Worklist(Enterprise Portal)
    I have configured the Task Type in SWFVISU transaction, with Visualization type BSP standard & in visualization parameter i entered,
    APPLICATION = zgelrbsp0001
    PAGE_ID = leso.htm
    When I click on the workitem my test BSP application is called. Buy my requirement is not call a static dynamic application, when the workflow is called the workflow container has a URL
    http://dev01.abc.gov.sg:8000/sap/bc/bsp/sap/hap_document/document_port_wf.htm/
    this URL will change. But I don't know how to configure to call the URL in container. Please let me know how to achieve this.
    Regards,
    H.K.Hayath Basha.

    Hi Raja,
    Thanks for the reply.
    I said wrongly in my earlier mai, my URL is static, but the parameter appl_id  will have different value.
    http://dev01.abc.gov.sg:8000/sap/bc/bsp/sap/hap_document/document_port_wf.htm/?appl_id=1234
    What I have done is similar to the one which you have said, copied the standard BSP and modified, I pass WORKITEM ID to the BSP application, BSP application reads the workflow container for appl_id and sets that value to the BSP application attribute.
    There should be a better way to do this.
    Regards,
    H.K.Hayath Basha.

  • How to call BSP pages from a BSP application of another package

    Hi,
    I have a BSP application in one package and I want to call pages from another BSP application in a different package.
    Is it possible? How it would have to do it?
    Thanks in advance
    Regards

    Hi,
    You cannot call a page fragment in a seperate window or seperately in the same window...
    Page fragment is used only for including a fragment in your page....
    It is not a seperate page..!
    To call a page fragment, you have to  use the include directive...
    eg :
    <%@include file="Carrier_report_logo.htm" %>
    Hope this helps.
    <b><i>Do reward each useful answer..!</i></b>
    Thanks,
    Tatvagna.
    Message was edited by:
            Tatvagna Shah

  • How to find where a BSP application is called?

    Hello Experts,
    I am having a reqmnt. there is this standard BSP application and we have created a Zapplication for that. now i want replace teh call to standard application to my newly created application. hence i am trying to find out whre in main application this sub application is called. how can i go about it?
    are there any tricks or tips?
    where-used did not give no returns,
    Please suggest,
    thanks,
    Hitesh

    Please try this....
    DATA: lo_ex TYPE REF TO cx_root,
                 lo_appl_ctrl TYPE REF TO cl_hrrcf_application_ctrl       .
    CHECK exist_exception( ) EQ false.
      TRY.
        Call success message
          lo_appl_ctrl = get_application_ctrl( ).
          IF lo_appl_ctrl IS BOUND.
            CALL METHOD lo_appl_ctrl->set_controller
              EXPORTING
                p_application = 'zer_XXX'   "BSP Applicaiton Name
                p_controller  = 'message_v_apne.do "Controller Class name
                p_comp_id     = 'message'.
          endif.
        CATCH cx_root INTO lo_ex. "EC CATCH_ALL
          add_exception( lo_ex ).
      ENDTRY.
    Regards,
    Ramki.

Maybe you are looking for

  • How do I create a scrolling slideshow in iMovie?

    So I know how to make a basic slideshow in iMovie, but I'd like to create a "scrolling/sliding" slideshow (see link: http://www.youtube.com/watch?v=CXit8kxCCTg). That video uses videos, however, I'm using still pictures. The pictures can all just be

  • How to transfer a string from sub sequence to main sequence

    Hi, How to transfer a string from sub sequence to main sequence, My main sequence has included a sub sequence, the sub sequence is return a string value after running done, I need to get this string value from sub sequence to main sequence, I check t

  • Errors with Resource Adapter with data source as "http header"

    hi Team, The objective was to create a ResourceAdapter that will get accountid from http-header and automatically log me in. More like Siteminder, Tivoli Access Mgr. In the adapter's "prototype.xml", I added this line. "<AuthnProperty name='sauid' di

  • What are the benefits to using the OCI JDBC driver?

    I understand that the Thin JDBC driver is geared toward Applets since it is all Java and relatively small for download. If I am running servlets is there any compelling reason for me to use the OCI driver? I would think my application would be more p

  • Unable to start and create new listener

    hiii everybody, I m unable to start listener in win 7 (11g database) using services.msc bcoz it is showing "status as stopped" only and also unable to create a new listener using net configuration assistant which is giving error-"could not create lis