on 09-15-2014 5:30 PM
Hi,
we have a BEx web template shown on an enterprise portal page.
We have noticed that if we put a system-wide message with transaction SM02, this is shown inside the BEx Web Template as follows:
In this case, the message is PROVA PPPPPPPPPPPP.
Can someone help me figure out how the message is retrieved from the backend and what in the source code of the Web Template is making the message to show?
The html source code of the template is the following:
<!-- Set the data provider -->
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="SET_DATA_PROVIDER"/>
<param name="NAME" value="DP"/>
<param name="DATA_PROVIDER_ID" value=""/>
DATA_PROVIDER: DP
</object>
<!-- Output area -->
<html>
<!-- BW data source object tags -->
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="SET_PROPERTIES"/>
<param name="TEMPLATE_ID" value="ZANALYZER_BRA"/>
<param name="VARIABLE_SCREEN" value="X"/>
TEMPLATE PROPERTIES
</object>
<head>
<script type="text/javascript">
<!--
/* Calls the online Documentation via technical QueryName */
function callquerydoc() {
var docustart= '/sap/bw/doc/meta/fldmeta/default?tlogo=elem&objnm=' + document.getElementById('querydoc').innerHTML + '&sap-language=' +SAP_BW_Get_Language();
SAPBWOpenWindow(docustart,'Documentation',800,600);
}
/* Sets the displayed tab */
/* Check, which items of the Array check_items is not hidden.
Change the style of the HTML tag with id Group+Area/Group+Link */
function set_tab() {
if (!(navigator.appVersion.substring(0,1) == '4' && navigator.appName == 'Netscape')) {
var check_items = new Array('GR1Toolbar','GR2Chart','GR3TECommon','GR4Broadcaster');
for (i=0;i<check_items.length;i++) {
hidden = true;
prop = SAPBWGetItemProp(check_items[i]);
if (prop != null){
for(j=1;j<prop.length;j++){
if (prop[j][0] == "HIDDEN") hidden = (prop[j][1] == "X");
}
}
anchor_item = document.getElementById(check_items[i].substring(0,3)+'Area').firstChild;
if (hidden) {
document.getElementById(check_items[i].substring(0,3)+'Area').className='SAPBEXTbsTab';
anchor_item.title = '<SAP_BW_TEXT program="SAPLRRSV" key="737">' + ' ' + anchor_item.title;
}
else {
document.getElementById(check_items[i].substring(0,3)+'Area').className='SAPBEXTbsTabSel';
anchor_item.title = '<SAP_BW_TEXT program="SAPLRRSV" key="736">' + ' ' + anchor_item.title;
}
} /* if */
} /* for */
/* Set the BexHeader invisible when running as IView */
if (SAPBWGetProperty('RUNS_AS_IVIEW')) {
document.getElementById('bexheader').style.visibility='hidden';
document.getElementById('bexheader').style.display='none';
}
anchor = window.location.hash.substring(1,50);
SAPBWSetFocus(anchor);
} /*function */
-->
</script>
<!-- Query description in the window title bar -->
<title>
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="TITLE"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
<param name="DATA_PROVIDER" value="DP"/>
<param name="GENERATE_CAPTION" value=""/>
<param name="ELEMENT_TYPE_1" value="COMMON"/>
<param name="ELEMENT_NAME_1" value="REPTXTLG"/>
<param name="ONLY_VALUES" value="X"/>
<param name="ELEMENT_NAME" value="REPTXTLG"/>
<param name="HELP_SERVICE" value="HW_OPEN_DIALOG"/>
<param name="HELP_SERVICE_CLASS" value="CL_RSR_WWW_HWIND_OPEN_DIALOG"/>
ITEM: TITLE
</object>
</title>
<link href="https://answers.sap.com/sap/bw/Mime/BEx/StyleSheets/BWReports_blank.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<P>
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="ZANALYZER_LINKS_2_BRA"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEMPLATE"/>
<param name="TEMPLATE_ID" value="ZANALYZER_LINKS_2_BRA"/>
<param name="GENERATE_CAPTION" value=""/>
ITEM: ZANALYZER_LINKS_2_BRA
</object></P>
</body>
</html>
Thank you,
Pietro
Any message defined in SM02 will appear when any user tries to login BW system or Portal. There is nothing to do with your web template code. If you want to avoid it, you have to either set validity range in Sm02 or knock-off the message in SM02.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear
1)Which version are you in ?
Also you could look at passing messages using user exits but am not sure as to how to get the query being executed using user exits... but then assume that such messages would be specific to infoproviders and there should be a way to fetch the same in the user exit
2)This can be done using a Custom BSP or JSP application workin along with the BI Web template.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.