cancel
Showing results for 
Search instead for 
Did you mean: 

What is the purpose of the BSP-Directive <%# %>

Former Member
0 Kudos

Hi,

I did not found information, what <%# %> is good for.

Any idea someone?

Thanks.

Frederic

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Go through this link very useful info...

http://help.sap.com/saphelp_erp2005/helpdata/en/7a/b86049397211d5992200508b6b8b11/frameset.htm

Regards,

Azaz Ali.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I searched a lot but couldn't find documentation on this Directive.

Regards,

Azaz Ali.

Former Member
0 Kudos

Hi,

<%# code %>

Is this a BSP DIrective?

Regards,

Azaz Ali.

Former Member
0 Kudos

Citation from last message: "You can see it in the Tag Browser, section BSP-Directives."

Please check for yourself in SE80.

athavanraja
Active Contributor
0 Kudos

unfortunately this is not documented anywhere ( not even in <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/bd/ac1e3a0088e042e10000000a11402f/frameset.htm">2004s bsp directives help</a>

May be Brian or Thomas can jump in and help us.

when i just put <%# %> in the layout the system treats it like a inline code and throws error.

Regards

Raja

Message was edited by: Durairaj Athavan Raja

Former Member
0 Kudos

Yep, same with me. I didnt get a clue what it's about. Might be, that this is a cool feature and we just don't know.;)

Regards

Frederic

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I checked inside the Page Analyzer class. It does checks on the beginning of the source line. The first check looks for '<%@', the second '<%' and the final and the final nested if is for '<'. The directive <%# should fall within the middle if condition. It then breaks processing down into two categories:

if me->source_string+source_index(3) = '<%=' or

me->source_string+source_index(6) cp '<%RAW=' or

me->source_string+source_index(7) cp '<%HTML=' or

me->source_string+source_index(6) cp '<%URL='.

These all get processed as script expressions.

Everything else then falls within script processing.

I couldn't find anything in the script processing specific to this particular directive.

athavanraja
Active Contributor
0 Kudos

Hi Thomas,

Thanks .

Regards

Raja

Former Member
0 Kudos

Hi,

With this directive you can embed the script code into the page.

The inline code is written in the language specified with the Page directive.

<% inline code %>

<%@ page language="javascript"%>… <% inline code javascript %>…

Regards,

Azaz Ali.

Former Member
0 Kudos

Hi,

thanks for your reply... BUT:

What is <%# %> good for. You can see it in the Tag Browser, section BSP-Directives.

Frederic