cancel
Showing results for 
Search instead for 
Did you mean: 

Passing parameters between BSP pages

Former Member
0 Kudos

Hi all,

Can someone please help me in resolving this issue. I have exhausted all of my options that I know of. This BSP is a flow logic bsp but it does use some controllers and views.

I am trying to pass parameters between BSP pages using the Page Attributes, this works until the redirect.htm page then the values disappear. This page has the layout_controller.do in the layout. I need the data throughout the BSP. I tried using the application class variable counter, but because the Todo.htm page is being called from the Portal, and this counter is used it gives me a dump.

I would like to use the application class instead of the Page Attributes, is that possible or is there another way to store the values where they will be available for the whole session.

Your help is much appreciated.

Thanks in advance.

Sarah

Accepted Solutions (1)

Accepted Solutions (1)

raja_thangamani
Active Contributor
0 Kudos

You can use the server side cookies.

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

Raja T

Former Member
0 Kudos

Hi Raja,

Thanks for you reply, can you please show me how I can do that. I haven't done much with server cookies.

Thanks,

Sarah

raja_thangamani
Active Contributor
0 Kudos

Here is the link which will guide you how to set/get values from server side cookie..

<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/bd/4cd23a09313b37e10000000a11405a/content.htm">Server-Side Cookies and Data Persistency</a>

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

Raja T

Former Member
0 Kudos

Hi Raja,

I was able to get the server cookies working but I am still having one issue.

I have a page called Todo.htm which is called from the Portal and displays a tableview. I am also using this page to list employees under certain manager using an R/3 program with a specific selection. My program sets the page attributes i.e. (Flag) then I setup set my server cookies.

The issue is: When I call this page from the portal it is still getting the cookie that I stored when I ran my program and it is display the same selection as my program which it shouldn't.

I need to somehow delete the cookie when my R/3 program ends. Or do you have any suggestions.

If I am able to delete the cookie, I need to do it at the end of the cycle/session of the R/3 program.

Thanks again Raja.

I'll reward the points as soon as I get this working.

raja_thangamani
Active Contributor
0 Kudos

Yes at the end of the cycle or once you retrive the value from server cookie, you need to delete the cookie..

Sample code:

call method cl_bsp_server_side_cookie=>delete_server_cookie
  exporting 
      name = 'SALESORDER_GETLIST'
      application_namespace = runtime->application_namespace
      application_name = runtime->application_name
      username = usr
      session_id = runtime->session_id.

Hope this will solve your problem.

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

Raja T

Former Member
0 Kudos

Thanks Raja,

I was able to get it working. I've rewarded you the points.

Answers (0)