Doubt in IC BSP pages.
Hai,
I have tried to modify the CRM_IC BSP application. In the View "BuPaMoreContactView.htm", I want to change some fileds.
I copied view and Controller class into my application. While i try to chech syntax errors it gives the following Dump:
The following syntax error was found in the program
CL_CRM_IC_TABLEVIEW===========CP :
"In the "PUBLIC SECTION" of a class, you may only refer to global types"
What can i do for this.
Thanks,
Tamil.
Hi,
In this BSP(CRM_IC) you are executing the which initial bsp?
Please run the default.do and check the FQDN.
Or.
Check the parameters in controller(default.do) page
Status:
Unchanged
Stateless from Now On
Statefull from Now On
Lifetime 2 Session
Thnx
Suriya.
Similar Messages
-
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. -
Collect Error Message from SAP program to BSP Page
Hi Experts,
I am displaying an error message in the form of pop-up Message in a Screen based on a condition using BADI on R/3 screen , but when i am calling the screen from Portal (BSP PAge) I am unable to see the Error Message which is being displayed as a pop-up in r/3..
How to catch the error and display in BSP Page.....
I have searched the forum but didnt find any suitable replies....
Plz help
Regards,
SrikarHi Srikar,
It depends.
Generally though you display a message in SAPGUI it does not display automatically in BSP.
Some times you have to manually write some code to populate and display a message in BSP.
First you need to find the BSP page and write some code to display error messages in the same..
Regards,
Sreekanth
Maybe you are looking for
-
The Web Dynpro application 'UWL' has expired
Hi ALL, We are using Enterprise portal 7.0. and backend SRM server When the user login into portal it will take him to the UWL page in that the user click for any "Approve shopping cart" the error message showing " The web dynpro application *'UWL' h
-
Handoff not working with Yosemite and iOS 8
I have three Macbook Pros in my household. Two are mid 2012 models and the other a late 2012 model. Each is supposed to support the handoff feature of Yosemite and ios8. Everything seems to work properly between my daughter's late 2012 MBP and her
-
I place the memory card in the slot and the computer does not read de card which is " memory pro duo" I need to download the pictures that are in the card , please any body can help me with this problem
-
New version of iTunes can't sync or see my iPod Touch
I have been using my iPod Touch with iTunes for a few years (PC Windows) then I updated my computer and got the latest version of iTunes. Now, I can't add or delete songs to my iPod Touch. When I try to sync the iPod Touch, songs I've added to the iT
-
Any Suitable exit for CNMASS Transaction
Dear All, Could any one tell me the user exits for CNMASS transaction. This transaction is used to mass update the records for a particular project. or is there any way that we can add some of the user fields to that transaction. Thank You, Regard