cancel
Showing results for 
Search instead for 
Did you mean: 

Best practice

Former Member
0 Kudos
101

Hi I'm new to BSPs. I've already searched this forum for what I'm about to ask which I'm sure has been asked before but I still can't find an answer. I've got a BSP app with many pages. A lot of the pages will be sharing common custom type definitions. Obviously I would like to declare them only once. The only way I can see to do this is to create an include file and use that between the pages. Is this a sound idea or is there a better way?

Thanks in advance,

Kevin

Accepted Solutions (1)

Accepted Solutions (1)

eddy_declercq
Active Contributor
0 Kudos

Hi,

You need to it on a class level. Create an application class (see http://help.sap.com/saphelp_webas610/helpdata/en/21/8cec3ada87e076e10000000a11405a/frameset.htm). Beside the info icon, you will find a button local types where you can define local types for your public class for your app.

Eddy

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks Eddy, that's exactly what I was looking for. Is it just me or is it hard to find documentation for BSPs in general?

Thanks again,

Kevin

eddy_declercq
Active Contributor
0 Kudos

Hi,

Glad it helped. Documentation could be indeed better.

There is of course experience, by finding things out by trial and error.

Luckily there are books like /people/thomas.jung3/blog/2005/12/15/new-bsp-book--advanced-bsp-programming

Eddy