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.

Similar Messages

  • Calling BSP Application from Business Object?

    Hi,
    Can any one tried to call BSP Application from Business Object for showing in the Portal.
    I have the following Scenario:
    1. BSP Page: User will input the Date and Submit to store in the Database. and in this page the Workflow will be truggered and a Work item will be sent to the Next Level User.
    2. When he executes the Work Item it has to trigger the BSP Application and has to show in the Enterprise Portal.
    All this has to happen in the Enterprise Portal.
    If any one knows how to triggere from business object, please let me know.
    Thanks & Regards
    Sumanth

    Hi Vijay,
    Thanks for the information. Its long back i was working on this, but not successful,
    Now the similar requirement i need to develope in R/3.
    I checked the mentioned class in R/3 4.7, This class is not available. I hope this is only in CRM because of PC-UI.
    Any Suggesions how can i achieve this execution of BSP.
    In one of the document i saw the Business Object BUS1006 as an example but i could not locate the way to reutilize the similar way.
    Thanks & Regards
    Sumanth

  • Call BSP Application From ABAP

    Hi,
    I want to call BSP Application from ABAP. I've searched the forum and they all are displaying BSP Page in Container of the Screen. My requirement is to show it in a web browser. For that matter I am generating URL to call BSP Application. Following is the code which is throwing short dump.
    DATA: url TYPE string,
    l_appl TYPE string,
    l_page TYPE string,
    l_params TYPE LINE OF tihttpnvp,
    params TYPE tihttpnvp.
    l_appl = 'ZPWLS_SCH_RPT'.
    l_page = 'SELECTION_SCREEN.htm'.
      call method cl_http_ext_webapp=>create_url_for_bsp_application
        exporting
          bsp_application      = l_appl
          bsp_start_page       = l_page
          bsp_start_parameters = params
        importing
          abs_url              = url.
          CALL FUNCTION 'CALL_BROWSER'
           EXPORTING
             url                          = url
            WINDOW_NAME                  = ' '
            new_window                   = 'X'
            BROWSER_TYPE                 =
            CONTEXTSTRING                =
          EXCEPTIONS
            FRONTEND_NOT_SUPPORTED       = 1
            FRONTEND_ERROR               = 2
            PROG_NOT_FOUND               = 3
            NO_BATCH                     = 4
            UNSPECIFIED_ERROR            = 5
            OTHERS                       = 6
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    Thanks,
    Usman Malik

    What is the dump? also you should uncomment the following lines to receive the exception thrown by the FM
    * EXCEPTIONS
    * FRONTEND_NOT_SUPPORTED = 1
    * FRONTEND_ERROR = 2
    * PROG_NOT_FOUND = 3
    * NO_BATCH = 4
    * UNSPECIFIED_ERROR = 5
    * OTHERS = 6

  • How to use bsp application SYSTEM for session handling.

    Hi All,
    We are implementing OCI.We have a few BSP applications that are called by standard ITS application.I need to destroy session at server side when the browser is closed for that..
    I copied the pages session_default_frame.htm and session_single_frame.htm from bsp application SYSTEM into my application and made necessary changes.
    I need to pass one url 'HOOK_URL' (this is related to OCI) from starting page of application to final page.
    Now suppose earlier there were two pages in my application page1.htm and page2.htm , so i was able to pass the HOOK_URL from page1 to page2 but after adding the two pages from SYSTEM application , i can pass the HOOK_URL from session_single_frame.htm  to page1.htm
    Page session_single_frame.htm:
    Page attributes:
    hook_url     TYPE     STRING (AUTO)
    OnRequest:
    navigation->set_parameter( hook_url ).
    but cant pass it from page1 to page2...what additional code is required?
    page page1.htm:
    Page attributes:
    hook_url     TYPE     STRING (AUTO)
    onRequest:
    navigation->set_parameter( 'HOOK_URL' ).
    the above code was working fine until i added the two new pages to my application.
    Hope i was able to explain the issue properly.
    Thanks,
    Anubhav.

    Hi,
    Let me describe the steps i have taken oncw again:
    1)Copy page session_single_frame and session_default_frame from SYSTEM application and changed the name in
    DATA: target_page               TYPE STRING VALUE 'session_test.htm'.
    to
    DATA: target_page               TYPE STRING VALUE 'mypage1.htm'
    2)Addes a page attribute HOOK_URL of type string (AUTO) to session_single_frame.htm .
    3)Added the line
    <i n p u t  t y p e="hidden" na m e ="HOOK_URL"  v a l ue = "< % =  hook_url %>">
    to page1.htm so that hook_url is passd to page2.htm (page2.htm has a page attribute HOOK_URL of type string and auto).
    The hook_url in page2.htm looks like:
    "http://sapupd.mycompanyname.com:8002/sap(cz1TSUQlM2FBTk9OJTNhc2FwdXBkX1NSTV8wMiUzYXJUaHBOdE1VZDdhWkVTa3hYZGtPTXRxY1NBTWo3VlAwN3NWQ2c2REYtQVRU)/bc/gui/sap/its/bbpsc02/?~OkCode=ADDI&~Target=_top&~Caller=CTLG&~sap-syscmd=NOCOOKIE&~client=200&~language=EN&~HTTP_CONTENT_CHARSET=utf-8";
    The problem is that after the page is submited , a blank page comes up .
    On closing this blank page the "Endig user session" window comes.
    Please help
    Thanks,
    Anubhav.
    Edited by: Anubhav Jain on Oct 21, 2008 6:49 AM

  • Calling BSP application from CRM PCUI framework

    Hi All,
    We are using the CRM PCUI for channel partner management. Since CRM PCUI framework has some limitations as to how the data is formatted in the layout such as no multiple value selection ( since it is a generic framework using the blueprint tables we have to use the predefined layout settings) we want to call a standalone BSP application to maintain some of the data such as marketing attributes. We want to do this by providing a link to the standalone BSP application where the data can be maintained. Since we will be calling this application in the create mode of a new BP, is it possible to integrate the whole application as one logical unit ? I mean we want to commit the marketing attributes within the same 'save' methods of the pcui framework. Is this possible to do ? Any ideas or input is greatly appreciated.
    Thanks.

    Hi,
    we've already done a rework of the marketing attributes screen by using the technique I've described in my Weblog <a href="/people/gregor.wolf3/blog/2005/05/27/use-crm-pcui-html-viewer-to-call-a-custom-url">Use CRM PCUI HTML viewer to call a custom URL</a>. But it has one drawback: You can't use the Save button of the PC-UI applicaiton. You have to provide your own. But the usability enhanchement is rearly great.
    Regards
    Gregor

  • Problem in calling BSP application through portal

    Hi All,
    We have EP 2004s and we have integrated a CRM (BSP) application with it .
    CRM application is a custom application which contains two frames . The upper frame of this application is developed using BSP and the lower frame is ICWC .
    We are calling this application (BSP) in portal using a BSP iView . When calling this application using iView it gives an error as some values needs to be initialized , though all the values have been initialized in controller.
    When we are calling the same application using a browser instead of an iView it works perfectly fine .
    Can anybody explain me how does portal treats the BSP application.
    Thanks & Regards,
    Amit Kade

    The BSP is just a URL as far as the portal is concerned. Just make sure the same URL is being generated as if you called the BSP directly.
    Cheers

  • Trouble calling BSP application in EP

    Hi,
    I have a BSP application which I need to call in an iView. EP version is 6.0, SP7 P1. The BSP seems to run fine as a URL, but does not work when called as a BSP iview. The error on calling it via the BSP iview is 'This page cannot be displayed'. Is there something I'm doing wrong?
    Thanks in advance.
    Sudha

    Hi Sudha,
    Have you activated the Portal Session Management?
    If not, please have a look at
    http://help.sap.com/saphelp_470/helpdata/en/cb/f8751d8c6b254dac189f4029c76112/frameset.htm
    and then click on "Activating Portal Session Management".
    Under "Activities" there are 2 possibilities. If you use the HTMLB library in your application, you just have to check the box "Supports Portal Integration" in the Properties Tab (poss. 1), otherwise you have to copy the piece of code at the beginning of your page (poss. 2).
    Regards,
    Rainer

  • How to open OCI catalog(BSP application) in same window.

    Hi All,
    In EBP we are using BSP as OCI for raising a shopping cart . Currently at the home page(where links for catalogs are displayed) , when we click he link the BSP application opens in a new window.
    What changes are required that the BSP application opens in the same window and not a new window?
    Thank a lot,
    Anubhav

    Hi,
    As per the SRM_SERVER IMG Help data for external web services:
    7. Create the dialog/call structure.
    To open a Web Service in a separate window, choose Standard Call Structure.
    To open a Web Service within the application, choose Integrated Call Structure.
    Note:
    For the Integrated Call Structure of product catalogs, you should use the servlet delivered for this purpose (see post installation steps: Integrating the Requisite Catalog in the Shopping Cart).
    Syntax example:
    http://<HTTP-Server>:<port>/<your_entry>/catalog/logonOCI.do
    SAP recommends that you only use the Integrated Call Structure for the catalog delivered by SAP because external product catalogs and Web Services usually to not take the SRM-Server-specificHTML frame structures into account. If you wish to include an external Web Service, SAP cannot provide any support in the event that errors should occur.
    Regards,
    Jason

  • Calling BSP application from Portal causes error

    Hi,
    called a bsp application from our portal. The application prompts the following error message:
    BSP Exception: The object sap-tray-type=PLAIN_sap-tray-padding=X_sap_ep_version=7.00.200611091758_sap_ep_baseurl=http://v900stwmk1902.v900dtk1.v900.intern:50000/irj/portal in der URL /sap bD1kZSZjPTIwMCZwPTMwOTUxJnY9NyUyZTAwJmk9MSZzPVNJRCUzYUFOT04lM2Fhc2FwdDAzZW4xX1QwMl8wMCUzYXBFMVdnMmlqS21LYnNSZ01mMzIyLXpRdkwxMjdoYWF2NHFBeU9fTGEtQVRU)/bc/bsp/sap/zsi02/sap-tray-type=PLAIN&sap-tray-padding=X&sap_ep_version=7%2e00%2e200611091758&sap_ep_ is not valid.
    We used an BSP iView (EP 7.0 and BI 7.0) Any ideas?
    Thanks.
    Frank

    Hi,
    I am not sure how did you get that bsp-url but here are the steps:
    1) Create a system and assign an alias to it.
    2) Make sure you give proper values in Connector, User Management and ITS Property Category
    3) Check the connection by creating a sample SAP Transaction iview using WebGUI
    4) If this is working fine, then create a BSP iview. Make sure you select proper system alias, BSP Defination Type (BSP), give the correct Application Namespace, BSP Application, Customer Namespace and start page.
    Let me know what are the values you have entered here and we can try to fix this problem.
    Cheers,
    Sunil
    PS: Reward points for helpful answers.

  • How to call bsp application in workflow and process it...

    The requirement is ...
    HR as (admin) -- in standard workflow selects apprasiee for 360 degree apprasial process(bsp application developed by me)..
    aprasiee selects 10 employees and sends to HR
    HR checks the employees list and their relationships
                            if
                      HR satisfies and clicks ok .. email will go to all 10 employees selected by apprasiee with a link
                  of 360 degree application developed in bsp..
                      else
               HR says to reselect the employees to apprasiee.
    when apprasier completes the form and submits both HR and appraisee gets a note that particular
    employee as filled your application..
    for this process ... there r standard ones and i have to creare new ones ..
    tell me which standard workflows  i can use for this and which one to and also how to create a new one...
    i hope i can use HR and apprasiee selected by HR can be used as standard ones, which i want to copy and create a new one.

    Hi,
    If you want to use a BSP in your workflow, this can fairly easy be done by incorporating your BSP as a webactivity in your own flow or into an existing one. Things to consider when creating webactivitysteps in your workflow are:
    - Making settings in WF_HANDCUST.
    - Make settings in SICF: here you have to activate the WSHANDLER (pad /default_host/sap/bc/webflow/wshandler) and your own BSP which is somewhere under pad /default_host/sap/bc/bsp/&name_of_your_bsp&
    - Make settings in WF_EXTSRV: here you can make settings between the import and export parameters of your BSP and the (future) parameters in your workflowtask. When all these settings are made correctly, you can generate a WF-task with the corresponding button in this transaction (a wizzard will be started). The connection between the task and your BSP will be stored in table SWLWPTSSID.
    Try if you can figure it out with these transactions. Good luck!
    Kind regards,
    Joost van Poppel

  • Two bapi calls in the same session using PI

    Hi,
    I have a file to RFC scenario wherein I need to call a BAPI (L_TO_CANCEL) and then again, I need to call another bapi called
    "BAPI_TRANSACTION_COMMIT" in the same session. My question is, if I use RFC adapter, do I have to call the commit bapi again?
    If yes, is there anyway I can do that ?
    I believe that will be the case only if I use a proxy. Is that correct ?
    The requirement is to call these two BAPIs and finally include a success or error message in the response.
    Thanks.

    Inside the BPM you do not have a specific exception message. You can do an exception handling based on the exception, but the excpetion itself is not a real message.
    If you want a real message, you could create an ABAP proxy, which has a message like this:
    root
      - part1
           - rfc response
       - part2
            - error text
    then you can split this inside BPM and send a the response or the error.
    Of course there are other possible solutions.

  • Need BSP-Application-Url without session_id

    Hallo everybody,
    have a problem with bsp. my problem is, i need a bsp-application-url without session-id. you can see in my example
    get:
    http://test:8100/sap(xxxxx)//bc/bsp/ztest/index.do?onInputProcessing(setformfields).....
    need:
    http://test:8100/sap//bc/bsp/ztest/index.do?onInputProcessing(setformfields).....
    thanks...
    harryatworld

    Hi, it is not possible to diasable the url mangling you mentioned. You can call the static method
    cl_o2_helper=>generate_url_for_page to get an url for a specific page.
    Best regards,
    Stefan

  • ***How to call BSP App when custom button event fired from toolbar group***

    Dear PCUI Experts,
       I have created one custom button for the transaction CRMD_BUS2000116.
    And my urgnet requirement is , I need to call BSP application which is used to   take data from custom fields and stores into BP table.
    How to call the BSP App. when i clicks on the button.
    Please help me..
    I will reward with great points.
    Regards,
    Stella.

    Hi Purushothaman,
                                 I have created a button in CRRM_ACCOUNT application.
    Now i want to call  a custom bsp application by clicking on that button.I have followed step given in this blog
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1646. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    But the event is not triggered.Do I have to create an iview for my bsp application?
    How to do that?Plz help.
    Regards,
    Ruby.

  • Calling web query from BSP application: Session handling

    I would like to call a BI 7.0 web query from a BSP application.
    Therefore, I generate a link like http://<server>:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=CR_M_0001_SALESFORECAST_0&VARIABLE_SCREEN=X
    Now, I have the problem that I have to log in again.
    The BSP application is embedded in the portal. SingleSignOn works for the BSP application, but not for the following link to the query.
    Anybody know how to execute the query w/o login again?

    i guess this is more related to ITS.
    which ITS are you using?
    integrated or standalone.
    i checked in both (using standard webgui service) i dont see any problem using /n or /<transaction>
    Regards
    Raja

  • Call a ABAP Web-Dynpro-application via a BSP-Application

    We have a BSP-Framework, that call several applications among other things other BSP-Applications, ITS-Application and other systems. Now I want to integrate a ABAP Web Dynpro-Application.
    For the moment I can call the ABAP Web Dynpro-Application from our application.
    This application runs in the same session as the Framework (verify in transaction sm04).
    When I want to call another application in the Framework, the session will be killed (no more sessions in sm04). This happens also, when I want to call the ABAP Web Dynpro-Application a second time.
    I guess, that the ABAP-Framework thinks I want to go outside the system (for example www.google.de) and close the session. I found out, that this wouldn't happen, if the application were suspended. But I found no way to tell the application via a url-parameter to suspend.
    Can someone help me?

    Thx for the tip,
    but I can't firea suspend plug. Because I'm in BSP. I understand the docu so, that you have the option to call a other apllication like BSP from a ABAP Web Dynpro.
    I want to call the ABAP Web Dynpro form BSP like this way.
    1. Start BSP-Framework
    2. Call ABAP Web-Dynpro-Application from BSP
    3. Call another Application from BSP without automatically logout by unload ABAP Web Dynpro. (I have a chance to call the ABAP Web Dynpro again via url to suspend before I call the other app.)
    Regards Stefanie

Maybe you are looking for

  • Output Conditions for Header- with Item criteria

    Hi! We want to set up the Output conditions for delivery note per storage location. SAP has problems with reading it on the header level- as it is only on LIPS. Is there any easy workaround so it picks up the item field? Thanks!! Cheers Bea

  • Error when installing 10.4.6

    I tried to update to 10.4.6 using the software update. The first installation (a new JSE engine?) went fine). I got an error message from the system update, however. I've tried to download it again maybe 4 times in the last week and keep getting the

  • Batch Processing using Bridge to PhotoShop

    - I am using CS4 on a PC. - I shoot RAW and from Bridge I go into Camera RAW and adjust my images. - Usually I save each one at a time however I would like to learn how to be able to edit each photo using Bridge and Camera RAW ( I'm already doing thi

  • Who has a MOBILE CPU like me!?

    I wanna know what problems you faced with your mobo and how you solved them...and if you got a new bios??? thx.

  • TS3899 Can receive emails but can't send them

    Hello ~I can receive emails on my phone but am unable to send any out.  Any ideas on why this happening? I have contacted our email provider and everything is good on their end.  Thank you in advance!