sapdev logo background
sapdev logo sapdev logo
Comments

Stateful and stateless BSP applications




Setting the status of a BSP is done within the properties tab and can be set to either 'Unchanged', 'Stateless from now on' or 'Stateful from now on'.


Unchanged
Retains status set in previous page.

Stateless Within a stateless application any data retrieved within one page will be lost as soon as a new page is called, unless it is passed as a parameter.

Stateful
Within a stateful application data is retained in memory even when a new page is called. This makes it much easier to pass data between BSP pages but means more resources will be used inorder to store the data.

Stateful BSP
You can also set the whole BSP application to be stateful by going to the properties tab of the actual BSP application rather than the individual pages. In-order for data stored within an application class (also declared within the properties tab of BSP) to be available to each page this status seems to need to be set to sateful, otherwise data is lost when leaving a page.

Also here is a useful explanation from SAP regarding the control flow of BSP's and the difference between stateful and stateless http://help.sap.com/saphelp_47x200/helpdata/en/a3/4b9afa7aa511d5992e00508b6b8b11/frameset.htm




comments powered by Disqus