Skip to Content
avatar image
Former Member

Exit BSP / Launch new transaction

Hello all,

We have a custom BSP in the opportunity transaction on our Portal. This BSP basically has a table that displays subordinate transactions associated with the transaction we are in. We are trying to allow the user to navigate to those subordinate transactions via a hyperlink. We want the current transaction to navigate to the subordinate transaction. For example, assume I am in transaction 1 and the BSP displays a link to the sub-transaction, 2.

Using the CL_BSP_NAVIGATION class allows me to navigate to the sub-transaction but only in the BSP page. So basically, I'm in transaction 1, and the bsp tabstrip displays transaction 2. This is wrong. I want to completely exit transaction 1 and go to transaction 2 when the link is hit. Does this make sense?

How can I do this? Standard functionality allows navigation but since we are using a custom BSP with HTML code, I can't use the standard BOR.

Thanks,

Chris

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • Oct 11, 2007 at 06:38 PM

    Did you use <i>navigation->goto_page( url ).</i> to navigate?

    Raja T

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 11, 2007 at 06:44 PM

    Or you can use exit url option.

    Look at below links..

    use-javascript-to-redirect-url-on-exit-of-bsp

    http://help.sap.com/saphelp_erp2005/helpdata/en/1b/f9b53a364e0e5fe10000000a11405a/frameset.htm

    <i>*Reward each useful answer</i>

    Raja T

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2007 at 05:51 PM

    Do you know how to pass parameters in the BSP from ABAP to JAVA?

    For example, say I have a button on the BSP. If the user presses it in the "OnInputProcessing" event, I would set a flag in the ABAP code. If I have the page refreshing after each request, I want to be able to import the flag I have set into the JAVA code to close the window. How can I do this? There has to be a way to import the flag into the JAVA code.

    Chris

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2007 at 08:44 PM

    Yes. The URL example you gave as an example closes the window that opens. Not the one I'm in. So, what I need to do, is have a button on the BSP. When the user clicks on it, it will kick open a new window while at the same time closing the window I am in when I click the button. So, I figure when the button is hit, it will trigger an event which I will check in the "OnInputProcessing" event. I will set a flag via some variable I define in ABAP. Then, when the page refreshes, I will use the java code to close the window. However, I will need the JAVA code to check the flag I have set. So, I will need to be able to import the variable into the JAVA part of the page to check if it's set or not. If it's set, I close the window. If not, I do nothing.

    Does this make sense?

    Chris

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 17, 2007 at 03:09 AM

    Look at this link..It will solve your issue:

    bsp-redirect

    <i>*Reward each useful answer</i>

    Raja T

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2007 at 11:19 PM

    Hi Raja,

    This doesn't work the way I need it to. My custom BSP is a tabstrip on the opportunity. So, if I use the solution it does exit but only the tabstrip is exited. Meaning, if I use www.SAP.com as the URL per the solution, the opportunity is still open but the tabstrip navigates from my custom BSP to www.sap.com. I want to leave the opportunity entirely and go to another transaction. Not launch a transaction in the BSP tabstrip.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 18, 2007 at 04:06 PM

    It's opening in the new tabstrip. It's a custom BSP that was developed here to be part of the opportunity. It sits alongside the other standard tabstrips.

    Add comment
    10|10000 characters needed characters exceeded