cancel
Showing results for 
Search instead for 
Did you mean: 

Using Customer stylesheets in BSP

Former Member
0 Kudos

Hello,

I would like to know how customer stylesheets can be used instead of standard BSP styles.

I use the following line on each BSP side and only use htmlB:

<abap:content id="asdf" design="classicdesign2002design2003">

Do the customer has to create his own "design" and "modify" the coding to add this design?

Do anybody know where I can find information about using customer stylesheets in BSP Applications?

Thanks in advance for your help.

Kind regards,

Daniel

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

This is probably a "duh" question, but just to be sure I've not missed something I'll ask it. We are not in production either in Enterprise Portal or BSP's. Our production data is in 4.6C which we access through the GUI or via the web. EP, our BSP sandbox, and our data are all on different servers -- 3 servers. Copied and modified stylesheets using the EP design tool are not accessible from the server where we're implementing our BSP's, are they? Does the BSP have to be deployed within the Portal to have access to these custom-modified stylesheets?

Janice Ishee

Former Member
0 Kudos

Hello Daniel,

indeed, for customer own design we modify the given style sheets of the HTMLB-Tablib -after we copied them of course.

In the SAP Enterprise Portal you can define the colors and the layout of the elements. Then you can grab the css-files and images, define the folder hierarchy in the public-path of the mime-repository, and then you can set the path of the current style sheet folder via the themeroot-parameter of the htmlb-content-tag.

Watch out: there's a difference between DESING2002 and DESIGN2003. In Design2003 you have to use the unified rendering-folders, for design2002 there are the folders 'controls' and 'xcontrols'.

If you don't have a Portal 5.0 you can use the "ABAP Style Sheet desinger" as described in a OSS note with the same title in component "BS-BSP".

Hope that helps a bit.

Regards, Bernd

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I was unable to find the OSS note that you described.  I search for ABAP Style Sheet and Style Sheet Designer. I even looked through all notes in BC-BSP and didn't see what you were refering to. This sounds like something very interesting.

Former Member
0 Kudos

Hi Thomas,

sorry for your inconveniance: the OSS note I mentioned is only for SAP internal use - I didn't realized that before...

But you can use the customer own styles generated by the Enterprise Portal.

Regards, Bernd

Former Member
0 Kudos

Hello again,

to be more precise:

In the EP you generate a new Style in the Style Sheet Editor. You have to provide a technical name and name for the web frontend.

The technical name is used to create a folder in EP/JE22 hierarchy. Search for this technical name and you will find the common/ur/controls/xcontrols folders.

Create these folders in the public sector of mime repository and import all the images and CSS.

For DESIGN2002 and CLASSIS you have to use controls/xcontrols folder, for DESIGN2003 you go for the unified rendering: UR and COMMON.

The HTMLB-content-Tag should look like this:

<htmlb:content

id = "OZ2_01"

design = "DESIGN2003"

themeRoot = "/sap/bc/bsp/sap/public/<your name>/" >

The folder with <your name> contains the controls/controls or the ur/common folders with its content - keep the same structure and file names as in the portal.

Regards, Bernd