CSS in BSP page
Hi all!
I need your help because a trouble in my BSP application.
In fact my BSP seems to be lost some stylesheet when viewing BSP in a web browser.
Instead to see a formatted web page, I can see only some forms without any style, in a white background page.
We do not modify any existing stylesheet.
Which could be the problem?
How can I restore the original css?
Thank a lot to all!
Regards
Dan
Hi all
I found something interest concerning my problem.
If I select transaction se80 I'm able to find the css of my bsp. But if I try to display it, I have the message: Error while opening document.
This error occurs only with MIME object type. If I select a HTML page, i'm able to see its code.
Even more I tried the same on another system: in this last system all work correctly. So I think the the trouble concerns something in se80 and in MIME.
I alreay read some post about HTTP proxy cache in tx SICF, but i don't know what could happen after.
In SICF I checked if the services were active: and they are.
My question at this point is: there is a way to regenerate the entire MIME content?
This is a very urgent issue.
Thanks a lot!!
Daniele
Similar Messages
-
Embedding JavaScript rendered controls into a BSP page
Hello,
I want to add a JavaScript rendered grid control from the Ext JS framework into a tab of a BSP application.
It looks however that the layout management code behind BSP (it has to manage its tab container somehow)
interferes with the JavaScript of the Ext JS library.
My question is how to embed such a non-trivial JavaScript software into a BSP page without interfereing with the internals of the BSP rendering engine.Now in more detail:
I am talking of adding a sophisticated grid control, which itself is implemented with the Ext JS JavaScript framework.
Here is a simple grid of that kind:
[http://www.sencha.com/deploy/dev/examples/grid/array-grid.html]
To give you an impression of the amount and complexity of the code, here is the user code which calls the Ext JS framework:
[http://www.sencha.com/deploy/dev/examples/grid/array-grid.js]
The present embedding is of the kind:
(code sample omitted, because the forum software dies with a post error if leave it)
This is included into a BSP tabcontrol tab.
In Firefox we see that the ext-grid is hidden by some BSP JavaScript logic which gets delivered with the final pages in the user's browser.
In Internet Explorer we see a bug:
file: sapUrMapi_ie6.js, line 4729, function sapUrMapi_PcTabSeq_draw, error: style.display is not an object (it tries to check the display attribute).
which stops execution and such has the lucky effect of not hiding the grid, so it display as intended from our part.
I have researched some examples on the net, where AJAX code was embedded into a BSP application and saw that this code is often structured differently, using documentHead, documentBody und content HTMLB Elements, but also sometimes puts the JavaScript just at the end like in the code fragment given above. Alas I lack a proper description and guidelines when to use what element and where to put what JavaScript (and CSS) into the various sections of a BSP htm file.
Regards,
Marc van Woerkom -
Unable to capture the Idle time for BSP page
Hi Experts,
I want to capture the Idle time of my BSP page. If that is 5 mins then i have to display the pop up displaying the remaining time.
Please let me know how to capture the IDLE TIME. not the time after the page is loaded.
Any suggestion will be helpful.
Aready checked in SDN but unable to get the solution so posting it.
Thanks in advance.
Sravanthi.Vhi,
After capturing the idle time iam giving the warning popup to user before 5mins of expiry.Now my requirement is if the user clicks on OK button of popup the page should get refresh. i.e.Idle time should of system should break and we have to get one more hour for expiry.
Thanks in advance,
Sravanthi.V -
Hi,
I have a requirement to show previous entered values in an input field on BSP Page. for example suppose I enter value '0998' in an input field say 'XYZ' and then I close or refresh the browser. again i open the page in browser and click the input field then system should suggest me the previous entered value i.e. '0998'. does anyone have idea how we can do it?
Regards
Amit kumar
Edited by: amitku1201 on Jan 8, 2010 12:19 PMHi Amit,
I saw your code..
<htmlb:form id="Form1" method="POST" autoComplete = "TRUE">
<bsp:findAndReplace find = "ON" replace = "ON">
In the link I provided
<bsp findAndReplace find = "off" replace = "on">
I dont see the closing tag
</bsp:findAndReplace>
anywhere in your code.
The tag should be not used immediately after the FORM tag instaed it is used just before the tag for particular element.
Like in your case if you want to used it for the inputfield i_case , it should be done as
<bsp findAndReplace find = "off" replace = "on">
<htmlb:inputField id="i_case" value="<%=i_case%>" type="string" maxlength="12" width="100"/>
</bsp:findAndReplace>
The inputfield tag will be used between find and replace tags.
I hope this will help you solve the issue.
Regards,
Anubhav -
Assign a value from dropdownlist to input field value on BSP page
Hi,
I'm new to SAP and ABAP. We have a CRM project in which I have to maintain BSP pages.
Now, coming to my problem: I have a input field with
value = "//BTAdminH/HeaderInfo"
This field is normally maintainable. The required function is now to set this field as not maintainable/readonly. Then, the value should be set automatically to an value, which will be selected from a dropdownListBox. After saving, the value HeaderInfo should have the same value like the selected value from the dropdownListBox.
How can I now set the field as readonly (this should be the easier part) and
how can I set the value for the HeaderInfo to the value of the selected value from the dropdownListBox?
If I set it directly like this
value = "//BTActivity/Priority"
it is shown on the BSP page correclty, but it is not saved as HeaderInfo.
Please help me.
EnjaHello Gokul,
test was only for test purposes! I am using as a separator the plus sign!
But this is not the problem!
In debugging, the local variable has the concatenated value! So, this is working!
oncatenate ls_ddlb1-value ls_ddlb2-value ls_ddlb3-value into lv_headerinfo SEPARATED BY ' + '.
But when I assign the value of my set_headerinfo to the local variable, then it is returning only the separator sign!!!
if BTAdminH->GET_HEADERINFO( 'HEADERINFO' ) is initial.
BTAdminH->SET_HEADERINFO( attribute_path = 'HEADERINFO' value = lv_headerinfo ).
endif.
If I declare the local variable as one of the dropdown values, then it is getting populated also for set_headerinfo
lv_headerinfo =ls_ddlb1-value.
So, the assigning is also working! But it is not working, when the local variable equals more than one value! I hope that I could explained it in the right way for you!!!!
So. why is the value for set_headerinfo not the same as the one for the local variable! The local variable has the correct value after the concatination.
Regards
Enja -
Message not getting refreshed in bsp pages.
Hi experts,
An error message which is getting displayed should be removed on leaving the page. I mean the meassage area is not getting refreshed on leaving the page. Everytime i need to refresh the page to remove it. Please help.
Abhi.hello Friend,
Please clear the internal table / work are used to show message in OnInitialization method of the BSP page.
now It is not getting cleared at the time leaving the page and data stays in memory...
Thanks
K. -
In portal blank bsp page is displaying
Hi Experts,
Iam having an issue in BSP i.e, regarding appraisal template the bsp page is working fine at R/3 side
but, in portal for one user the data is comming and for other user the blank bsp page is comming
please can u help me in this
waiting for u r responses,
Regards,
Shilpa.
Edited by: pasumarthi shilpa on Dec 15, 2008 7:40 AM
Edited by: pasumarthi shilpa on Dec 16, 2008 5:16 AMHi,
Check the user Authorization in R/3 and Portal also..
In portal, Content Administration-->Portal Content -->Your folder(i.e. Role) -->Give a Every one Group Permissions with Read to that folde and check the Enduser check box.
Thnx
Suriya -
How to return values from a BSP page to Javascript
Hi All,
I want to call a BSP page which reads a single value from a table and returns that value I want the Javascript in the HTML code to get the value from the BSP page.
Can you kindly let me know how I can return the value from the BSP page to JavaScript.
Kindly please provide me a simple code of a BSP page and the Javascript
Thanks
KarenHi,
you need 3 elements to make the javascript code read the value in any field in the table: table´s name, line and column. This is how your code could look like:
script language="javascript>
var row = 0;
function display(){
row = row + 1;
campo = 'tabla1_' + row + '_4'; " <-- table, line, column
valor = document.getElementById(campo).value;
</script>
ROW works as a counter. You have in variable valor the value of the field and can do with it what you want, perhaps display it with ALERT. I am reading the values from field 1 to n in column 4 in table TABLA1. Pay attention to the '_' in the concatenation of field´s name. The table in my BSP is very simple:
<htmlb:tableView id = "tabla1"
table = "<%= mytable %>"
width = "100%"
allRowsEditable = "X"/>
and somewhere I must call function display in my javascript code:
<htmlb:button id="boton" text="Texto aqui" onClientClick="display()" />
So, give it a try. -
How to call a BSP page or webdynpro from a WAD Template button
Hi All,
I want to implement a button on a web template which when called involes a BSP page or a web dynpro and displays the BSP page or webdynpro in a popup window.
Thanks
KarenHi Karen,
What you could do is create a bsp application which receives workbook id as url parameter.
From WAD create a link to this BSP page and pass the wbook id in the url.
Within the BSP you can then read the excel as binary string like below
Select * from rsrwbstore into table wb_tab where workbookid = wbid.
You can then set wb_tab-clustd as the response of the page with mime type to 'application/vnd.ms-excel'. which will open as excel
Take a look on this weblog,
/people/durairaj.athavanraja/blog/2006/02/06/read-sap-table-data-from-bw-webtemplate-ajax-in-bw-webtemplate
Hope it Helps,
Regards,
Amit -
Questions on using classes inside BSP pages
Hi Group,
I have a few questions on how to use classes,interfaces,parameters in classes,
and etc., relating to OOPs concepts that can be implemented in BSPs.
Pls send me some link wherein I can explore things and use it in BSPs.
Thanks & Regards,
Vishnu.Hi Raja,
I am facing issues like this:
1) When I use the code in my BSP as under:
<%
class ZCL_MODEL_03 definition load.
data ref1 type ref to ZCL_MODEL_03.
data cust_id type c value "1000".
data c_id type c.
create object ref1.
c_id = cust_id.
call method ref1->CHECK_CUSTOMER changing cid = cust_id.
%>
Cannot we define variables in the Scriptlet?? or we need to do only in the attributes sections only?? or in both??
2)I am not able to use both exporting & importing things in my method call.
eg.,call method ref1->GET_CUSTOMER
exporting cid = cust_id
importing c_id = eid.
In the method definition, I am only using simply logic like, I was trying to send a value into the "cid" defined in the method and putting that value into "eid" which was defined exporting, but, still I could not get the value into "c_id" that I have defined in the BSP page.
Note: in both the things(in BSP and class definition as well, I am using the same
type for defining the attributes.
3)When can we define a "Returning" option in the Class method's parameter
Definition? and how can I use it with an example?
Thanks in advance.
Regards,
Vishnu. -
Hi all,
i am in ABAP report and i want to open new BSP page from the ABAP report
becuse some time it is open the BSP page in the same session of SAP system.
and also how i can maximize it automatically in the same way of (F11 key).
is there any documents that describe and explain the signature of this method.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
EXPORTING
DOCUMENT = 'XXXXXX .......'
APPLICATION = 'X'
PARAMETER =
DEFAULT_DIRECTORY =
MAXIMIZED =
MINIMIZED =
SYNCHRONOUS =
OPERATION = 'OPEN'
EXCEPTIONS
CNTL_ERROR = 1.If you want to open the BSP in Browsers, you can call the FM CALL_BROWSER & pass your BSP appl URL. This will open the BSP from R/3.
OR you can use the HTML viewer to call URL..
Look at the below blog for the same.
/people/thomas.jung3/blog/2004/08/26/updated-calling-a-bsp-application-from-a-sapgui-transaction
Hope this will help you.
<b>*Reward each useful answer</b>
Raja T -
How to set F4 help for an inputfiled of BSP page?
hi friends,
I have to set F4 help for a Field in my BSP page. for this i am doing like this.
Oninitialization Event....
tables : t001p ,pa0001 ,t554t.
data : begin of it,
awart like t554t-awart,
atext like t554t-atext,
end of it.
data : it_t554s like it occurs 0 with header line.
parameter : k_pernr like pa0001-pernr.
data : werks like pa0001-werks,
btrtl like pa0001-btrtl,
abs_grp like t001p-moabw.
clear it_t554s.
refresh it_t554s.
select single werks btrtl into (werks ,btrtl) from pa0001
where pernr = K_pernr.
select single moabw into abs_grp from t001p where
werks eq werks and btrtl eq btrtl.
select awart atext from t554t into corresponding fields of it_t554s
where moabw eq abs_grp..
append it_t554s.
endselect.
now it_t554s contails the values to display F4 help in BSP page inputfield.
how to assign this as F4 help to inputfield....
I saw some threads. It's getting me to confuse...
I am new to this topic...
plz help me.........
Regards,
Shankar.solved
-
How can i call a zreport from my bsp page.
Hi friends,
How can i call a zreport from my bsp page.
MoosaHi Friend,
These are the codings to be wirtten in BSP for transferring values to the REPORT
DATA:wf_date TYPE ztable-ID.
data:seltab type standard table of rsparams,
wa_seltab like line of seltab,
event TYPE REF TO if_htmlb_data.
DATA:p_value TYPE REF TO CL_HTMLB_INPUTFIELD.
event = cl_htmlb_manager=>get_event( runtime->server->request ).
p_requ ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'inputField'
id = 'i1'
if p_requ is not initial.
wf_date = p_requ->value.
endif.
clear wa_seltab.
if wf_date is not initial.
wa_seltab-selname = 'P_REQU'.
wa_seltab-kind = 'P'.
wa_seltab-option = 'EQ'.
wa_seltab-low = wf_date.
append wa_seltab to seltab.
endif.
submit *ZSAMPLEAP1* with selection-table seltab AND RETURN .(ZSAMPLEAP1 refers to the report name and AND RETURN for coming back to the BSP page after the completion of its operation in Report )
IMPORT int_name TO int_name FROM MEMORY ID '*zid*'.(For importing the obtained value from Report)
In Report
REPORT ZSAMPLEAP1.
SELECT-OPTIONS: p_requ FOR ztable-id NO INTERVALS.
SELECT SINGLE name from ztable into int_name WHERE id = p_requ-low.
WRITE:int_name.
EXPORT int_name TO MEMORY ID 'zsharmila'.
With Regards,
SHARMILA BRINDHA.M -
Bsp Page Not displying in browser!
Hi friends,
My Bsp Page is not displaying in the browser, i read all previous messages and applied patches too,Still i am getting the same problem
http://sapr347:8001/sap/bc/bsp/sap/system/sso2test.htm?sap-client=800&sap-sessioncmd=open
this is the url generated by Web Application builder test tool, even i forced the system to use the Anonymous logon procedure and checked logon data required check box, is any request handler require for my application?
My Instance_profile and trace file shows
icm instance as sapr347.ssdomain, even i made an attempt and gave Ip address and system name as..
10.10.4.11 sapr347.ssdomain sapr347 -> Failed
10.10.4.11 sapr347 -> Failed
in windows/system32/drivers/etc/host file for temporary solution.
Please advice me in this regard
Thanks in Advance
YokiHi friends,
Thanks for all of your great help, i chekced all the parameters as i said before.. FQDN paramter in instance profile showing sapr347.ssdomain, my host file set into
10.10.1.106 sapr347.ssdomain
even i restarted my mechine(client/server),i am getting the following error
Not found
The following error occured:
MsSGetNextLogon: no server found which provides service HTTP (msxxserv.c [15317])
mySAP.com 620 msg_server (ENT)
My URL is...
http://sapr347:8001/sap/bc/bsp/sap/ztutorial/defualt.htm?sap-client=800&sap-sessioncmd=open
...its not even finding out my server..i dont know how to work get connected....please any one here find me the correct solution..i read all weblogs..and seen patches..for this..tried all helpful information..even i failed to get my page... my application is also very much activated in sicf.. -
How to navigate from webdynpro view to bsp page in the same window?
hi i want to call a page by its url.
i am using the "create_external_window" method.
but it is displying my url in a new window.
i want to display it in the same window.
the second page i want to call is a bsp page.
i tried also the portal manager and NAVIGATE_ABSOLUTE but nothing happens.
it displays nothing.
thanks for your hints.>
Achref zaidi wrote:
> hi i want to call a page by its url.
> i am using the "create_external_window" method.
> but it is displying my url in a new window.
>
> i want to display it in the same window.
> the second page i want to call is a bsp page.
>
> i tried also the portal manager and NAVIGATE_ABSOLUTE but nothing happens.
> it displays nothing.
>
> thanks for your hints.
Hi,
Navigate_absolute method has navigation mode. Can you please tell me what you mean by nothing happens ? This will work only in Portal environment.
So if you try with portal then remember to use Navigation_mode as inplace.
Maybe you are looking for
-
Downloading information from a filled from into excel
I have created a form using Adobe LiveCycle. I have added an e-mail submit button. The form looks great; however, when I test submitting the file, I get a .xml document. When I try to get the results into a single excel file using the "merge data fi
-
When i click on the itunes, it opens up and i can see all my music but as soon as i click the itunes store button to connect to the itunes store, i get a message that says: itunes has stopped working. A problem caused the program to stop working corr
-
Nokia asha 310 hotmail configuration
Hey, just bought a nokia asha 310 and must say not really impressed with it and need lot of help. 1. i want to make my hotmail work on the phone and it keeps saying wrong account or wrong password, try again, but i am using the correct hotmail and pa
-
Transfer emails with migration assistant.
My boss asked me to transfer all his old email from old macpro to his new one. Do i have to set up his email account on iMal first before i transfer them with migration assistant? Or will that set up autmatically while transfering?
-
Will LabVIEW 5.1 play ok with WindowsXP?
I have LabVIEW 5.1 running on a Windows98 Second Edition laptop. Things work ok. If I upgrade the laptop from Win98se to Windows XP Professional, will LabVIEW 5.1 still work on the WinXP operating system?