Query on bsp
Hi experts..
i am new to BSP Application. Please any body guide me to terminate BPS page generation conditionally.
actually in BSP application i used abap coding to validate a field based on condition. my requirement is if field satisfy with condition terminate the bsp page otherwise it continue for further processing.
Thanks in advance..
I think you can try some more things (maybe you don't want to close the window as they suggested you):
In on initialization, where you make all you checks, can set a parameter indicating if all checks are right or not.
in the begining of layout, you check this parameter. If all is ok, write:
<s*cript>
document.location=url you want;
</s*cript>
Try with this in oninitializacion:
navigation->next_page( 'parameter you configure in BSP application configuration' ).
Similar Messages
-
Calling web query from BSP application: Session handling
I would like to call a BI 7.0 web query from a BSP application.
Therefore, I generate a link like http://<server>:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=CR_M_0001_SALESFORECAST_0&VARIABLE_SCREEN=X
Now, I have the problem that I have to log in again.
The BSP application is embedded in the portal. SingleSignOn works for the BSP application, but not for the following link to the query.
Anybody know how to execute the query w/o login again?i guess this is more related to ITS.
which ITS are you using?
integrated or standalone.
i checked in both (using standard webgui service) i dont see any problem using /n or /<transaction>
Regards
Raja -
Hi experts..
i am new to BSP Application. Please any body guide me to terminate BPS page generation conditionally.
Thanks in advance..The BSP pages need to be termintated by the portal. Try to post this question in EP forum. You might be able to get an answer.
-
Dear All,
I have a small clarification in BSP . I am creating a BSP application in which I have two buttons . When I click on the first button a page opens . When I click on the second button another page opens .
The call for the screens are mentioned in the "Event Handler " Tab under "OnInitialization" of the default.htm page . The code is as follows :
case event_id.
when 'select'.
navigation->set_parameter( 'authorlname' ).
navigation->set_parameter( 'authorfname' ).
navigation->next_page( 'toresults' ).
when 'authors'.
navigation->next_page( 'toauthors' ).
when others.
endcase.
Please tell me where to declare event_id.
Regards,
Vijaythis is the code you wold need to process the events..
DATA: lr_event TYPE REF TO if_htmlb_data.
* load htmlb_manager
CLASS cl_htmlb_manager DEFINITION LOAD.
lr_event = cl_htmlb_manager=>get_event( runtime->server->request ).
*try to get extended event
IF lr_event IS INITIAL.
lr_event = cl_htmlb_manager=>get_event_ex( runtime->server->request ).
ENDIF.
* EVENT processing ....
CASE lr_event->event_name.
WHEN 'button'.
CASE lr_event->event_id.
WHEN 'select'.
ENDCASE.
ENDCASE.
this should be it..
null -
Bex Query Filter Page in BSP - Urgent Please...
I have seen many threads about Bex query in BSP, but can any one tell me how can i display the default Bex Query Filter page in BSP.
I created a query in Bex Query Designer and added few filters and when i execute i get a popup where i can enter the input values for which the report would be generated, can i get the same functionality or similar functionality if i have the same Bex query in BSP.
Also apart from the filters specified in the Bex, all the columns displayed in the report appears in the filter section how can get the same functionality BSP.
Note: I do not want to use Bex Web Application Designer
Please tell me the steps for the same.
Atleast please give me the steps at a high level. Please...Hi,
1. Create a CKF, inside the CKF window create a new Formula Variable --> Right click in left side window on var and say create new Variable
2. Create new variable of replacement path type and reference Characteristic as the TO DATE value which you want to be max.
3. Now drag this new created var to CKF and save.
4. Now create condition with follwoing deatils:
Key Figure Operator Value
Max Date(CKF) TOP N 1
Save and execute your query. This will give you max value for the To Date field.
Hope it works .
Regards
Raj Rai -
Hello, I would like to know how to output the XML generated by a BSP (Business Server Page) to a file. We have a URL to execute a BW query using BSP...this outputs the report in XML to the Internet Explorer page... I am interested in knowing if there is a way to capture the output to a file when executing the BSP (not manually copying and pasting..).
Thanks.i use the following method:
leave the layout portion blank.
and in oninitialization :
prepare the data in xml format by hand or
use call transformation and then use
call method response->if_http_entity~set_cdata
exporting
data = xml_out. -
Hi All!
Can you please help me? We would like to refer to BW query from BSP application via link. The problem is, that we would like to start query only for 1 value of the characteristic that presents in query. For example, we open our BSP for partner u201CBobu201D, so we would like to open query only for partner u201CBobu201D. Of course, we can use variable for characteristic Partner. But we start a query, it is necessary to make selection again: Partner = u201CBobu201D. Is it possible to start query with parameter Partneru2019s variable = u201CBobu201D like defalt?
Of course, report should be start not only for Bob Every time, when we open new partner at BSP side, the BW report should start for new partner.
Regards, Iryna.Hi Iryna,
use URL commands to set filter of your query.
[http://help.sap.com/saphelp_nw04/helpdata/en/59/edfe395dd76846e10000000a114084/frameset.htm|http://help.sap.com/saphelp_nw04/helpdata/en/59/edfe395dd76846e10000000a114084/frameset.htm]
Hope it's helpful
Regards Sven -
How can I execute a query from a BSP application?
How can I execute a query from a BSP application?
I´m trying to execute a Query from intranet. I´ve been looking for examples, but the templates I´ve found doesn´t help me.
does anybody has an example?
Thanks.Hi
Have you designed the BSP application ?
design it first with one page
page will have layout and Event handlers
Design the layout with the fields
in the event handler there are events
in the event On Initiailization or ON inputprocessing write the select query similar to what we write in routine ABAp and fetch the data into ITAB and that has to be passed to the Layout
see the doc
BSP
To learn how to create Web applications with Business Server Pages, you can work through the simple tutorials that build on each other. You should be able to run through all of the steps described here in your own system.
If you want to develop Web applications with BSPs, your system must meet the following requirements: Prerequisites for Creating Web Applications.
The following tutorials are available:
· First Tutorial: First Steps with Business Server Pages
· Second tutorial: A Small BSP Application and A Small BSP Application with HTMLB
· Third tutorial: Our First Online Bookshop
· Fourth tutorial: Further Developing the Bookshop
· A small Tutorial is also available for your first steps with the Model View Controller design pattern.
· For a more complex MVC tutorial based on the third tutorial, see: Our Little Online Bookshop Using MVC and HTMLB
When creating BSP applications, note the browser dependencies described in Note 598860.
steps:
1) start the transaction RZ10.
2) now u u have to select Profile name, so select the INSTANCE Profile from the list of options given with the Profile parameter list.U may find multiple instance profile in the list, so select the profile in which ur server name is given.
3) u will also find three options in the same window.
Administrator data, Basic Maintenance, and Extended Maintenance. So select the last one from that.
4) Now click on change button.
5) here u will find parameter icm/host_name_full, so now set it as FQDN.
6) Now copy ur settings with new version number.
7) Activate that version.
8) And now please restart ur WAS.
So this will set ur FQDN, and also don't forget to login using Admin User.
Now u also check for following service are active in your ICF setting or not,( just start transaction code SICF)
/default_host/sap/bc/bsp/sap
/default_host/sap/bc/bsp/sap/system
/default_host/sap/bc/bsp/sap/public/bc
/def ault_host/sap/public/bc
/default_host/sap/public/bc/ur
/default_host/sap/public/bsp/sap/public
/default_host/sap/public/bsp/sap/public/bc
/defaul t_host/sap/public/bsp/sap/system
/default_host/sap/public/bsp/sap/htmlb
if not then activate all.
check this link
Read this weblog...
/people/brian.mckellar/blog/2003/09/25/bsp-in-depth-fully-qualified-domain-names
http://www.thespot4sap.com/articles/SAP_WAS_Creating_BSP_Apps.asp
it consists of screen shots also
Check it.
http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm
Regards
Anji -
Using RRW3_WEBRFC to insert BW query template into BSP: chart not visible
Hi people,
I've done a BSP page which calls a BW query template throught RRW3_WEBRFC function and inserts its code in the BSP. I've used the example code BW web reporting inside a BSP page. and all is OK but the charts.
Charts are not displayed. I change the "<img src..." of the dowloaded HTML and the chart is displayed in Firefox, but not in Internet Explorer. I've asked more people to test the BSP page with its Explorer, a no one can see the image.
Does anyone have an idea about whats happening? Maybe some system variable of the web server in SICF is distincting the Client Navigator?
Thank you very much!
Edited by: Sergi Marin on Feb 13, 2008 9:26 AMWhew! I figured out a really awesome solution, which has a
ton of uses.
First of all, as I should have realized, ANY variable in a
coldfusion tag is going to be figured out when the report is
called, NOT for every query result. In other words, query.xxx or
report.xxx or whatever is NEVER going to work correctly inside of a
tag, not even in a report function or the Advanced Query builder.
However, there is a straightforward way around this. Simply
make a report function with arguments, and in your field's
expression editor call the function and pass in the query or report
variables:
#report.yourFunction(query.field1, query.field2)#
You can do all sorts of Coldfusion function magic and return
whatever form of result you want.
For my particular example (dynamically creating a query
object for a chart to be inserted), I had to add a not-so-obvious
step: creating my query object with a shared scope (in this case,
the Request scope), otherwise the variable is trapped in the
function's scope. So this was my solution: I had a chart with the
"Print When" option calling my function "getChartQuery" (passing in
the query variables, of course). The function builds
"Request.ThisChartQuery" and returns True if there's something in
it (the "Print When" logic uses the boolean to decide whether to
show the chart or not). Then my chart is still query-based, but the
Advanced Query builder has NOTHING in it at all, except for the
variable containing the query object ("Request.ThisChartQuery").
There was another solution I found where the report function
makes the entire chart (using cfchart tags, etc) and saves it as a
PNG file, and then returns the path to the image. Then you simply
add an image field to the report, and you use the expression
builder to call the function. Well, hope this helped someone!
EDIT: references are "
http://www.adobe.com/go/ee54cc6"
and "
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:40786" -
Using BSP to fech BW query data
Hi all,
I wanted to create a BSP application which retrieves the data from BW and then it displays the data .
For that i have created a BSP(for selection screen using HTML and java script).
There is a BW query which retrieves the desired data from BW.
Now can anyone please tell me how to get data from that BW QUERY data from BSP??
I think there is a function module RRW3_GET_QUERY_VIEW_DATA for that.
But i dont know how to use that.
Please help me out.
Regards,
SumanthHi Durairaj ,
First of all let me tell u, that u r awesome....Your blogs were too good.
Initially i tried to use your function module, but there isnt a class called cl_rsr_query_variables.
So i tried using RRW3_GET_QUERY_VIEW_DATA.
But i am getting a dump saying "Exception condition "NO_APPLICABLE_DATA" raised. ".
Here is the code im using.
zparam-NAME = 'VAR_NAME_1'.
zparam-VALUE = '0RPA_BDD'.
append zparam to zparam2.
zparam-NAME = 'VAR_VALUE_EXT_1'.
zparam-VALUE = '20080220'.
append zparam to zparam2.
CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA'
EXPORTING
i_infoprovider = 'ZMC_POS_A'
i_query = 'REP_ZMC_POS_A_001_TEST'
i_t_parameter = zparam2
IMPORTING
e_axis_data = wa_axis_data
e_cell_data = wa_CELL_DATA.
Can you also tell me how to pass to i_t_parameter , if i want to use a date range.
Thanks in advance.
Regards,
Sumanth -
Hi,
i want to integrate a BW query in a BSP application. In a first step i want to show the results of the BW query as a table or diagram in the bps app.
as next step it should be possible to transfer parameters to the bw, to change the results of the query.
there are which possibilities to call bw queries from bsp?
thanks in advance.Hi Eddy,
i try the possibility from the blogs:
/people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-i
/people/durairaj.athavanraja/blog/2005/04/03/execute-bw-query-using-abap-part-ii
I must say, i am a newbie in BW also ABAP.
The following Code is implement in my BSP Controller-Class in the Do_Handle_Event.
I get the results of the query. Also tho conversion in <outtab> folds.
CALL FUNCTION 'Y_EXECUTE_QUERY' DESTINATION '********'
EXPORTING
query_name = 'TQU_ODS99'
IMPORTING
xml_out = xml_out
TABLES
* query_variables = var
return = breturn
meta = meta
EXCEPTIONS
bad_value_combination = 1
user_not_authorized = 2
unknown_error = 3
query_not_found = 4
OTHERS = 5.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = it_fieldcat
IMPORTING
ep_table = model->i_tab.
ASSIGN model->i_tab->* TO <outtab>.
ENDIF .
TRY .
CALL TRANSFORMATION (`Z_RFC_XSLT`)
SOURCE XML xml_out
RESULT outtab = <outtab>.
CATCH cx_xslt_exception INTO xslt_error.
xslt_message = xslt_error->get_text( ).
ENDTRY.
But how can i display the table in the bsp? i_tab is defined in my Model-Class as:
I_TAB Static Attribute Public Type Ref To DATA
The code in my htm:
<htmlb:tableView id = "tab01"
table = "<%= model->i_tab %>" />
throws exceptions.
Have anyone an idee? -
BSP to query Sql database?
Just curious to find out if this is an option..
We web AS 6.40, can we write in ABAP to query data from a SQL database?
Thanks in advance..
VinceYes.
if you can eloborate little more on what you are trying to do, we can be helpful.
Regards
Raja -
Hi All,
I have designed a basic BSP with 2 pages.one for the input and the output to be displayed on the second page.
In the first page i have the input fields and the button to transfer the control to the second page where the output will be displayed.
In my second page On Initialisation event I have written the selection of table based on my input.The internal table is filled correctly.
When the control goes to display(Layout) internal table contents gets cleared.I have declared the table in my page attributes also.Please let me know where am I going wrong?
Thanks in advance,
S.K.Hi Marcin,
I tried your suggestion but no help.I am attaching my code which will help you to identify where I am going wrong.
First page On input processing:
data w_event type ref to cl_htmlb_event.
call METHOD cl_htmlb_manager=>get_event
EXPORTING
request = runtime->server->request
RECEIVING
event = w_event.
if w_event->id eq input_field'.
navigation->set_parameter( from_field).
navigation->set_parameter( to_field).
navigation->goto_page('second.htm').
navigation->next_page( 'NEXT').
endif.
Second page has initialization event
call METHOD cl_htmlb_manager=>get_data
EXPORTING
request = runtime->server->request
name = 'inputfield'
id = from_field
RECEIVING
data = w_obj.
call METHOD cl_htmlb_manager=>get_data
EXPORTING
request = runtime->server->request
name = 'inputfield'
id = to_field
RECEIVING
data = w_obj.
select * from table into table t_itab
where zteam between from_field AND to_field.
I have defined the table t_itab in the attributes with auto checked.
Pls advise if anythig to be changed.
Thank you.
K.S -
Query regarding Button in a BSP Page
Hi All,
I want to add a button to a BSP Page which on clicking will open a Page Fragment.
Please guide me how to do this.
Thanks in advance.Hello Arnab,
I assume you are thinking about something like assigment blocks in CRM. fragments of which you switch on or off:
Here's a simple test app how to go there:
- create a page with flow logic as main page:
- on this page place a form with a button triggering an event. e.g toggle_fragment:
<form method="post">
<input type="submit" name="onInputProcessing(toggle_fragment)" value="toggle fragment on/off"/>
</form>
- create an attribute for your main page named fragment_status and type it as string. And activate the "Auto" Option.
- create the following sample code in your main page's onInputProcessing event:
case event_id.
when 'toggle_fragment'.
if fragment_status is initial.
fragment_status = 'ON'.
else.
if fragment_status = 'ON'.
fragment_status = 'OFF'.
else.
fragment_status = 'ON'.
endif.
endif.
endcase.
runtime->keep_context = 1.
- in your main page's layout code add some code for displaying the page fragment like this:
<%if fragment_status = 'ON'.%>
<%@include file="fragment1.htm" %>
<%endif.%>
- now create a page fragment containing any content and name it fragment1.htm for this sample.
- test and enjoy switching it on and off
regards -
Hi Group,
my question is:
I have seen in some example BSP in IDES that, some times the following is
being used for form begining(example):
<%= cl_htmlb=>form_begin( ) %>
and
I think <htmlb:form> also can be used for the same purpose.
Then, what is the difference b/w these 2 things and which is beneficial and which will be most often used?
Please kindly put your valuable suggestions/views.
Thanks in advance.
Regards,
Vishnu.Hi,
The class contains the code
concatenate '<form method="'
method
'" action="'
action
'" ID="'
form_id
into output.
if enc_type is supplied and enc_type is not initial.
concatenate output ' enctype="' enc_type '"' into output.
endif.
if target is supplied and target is not initial.
concatenate output ' target="' target '"' into output.
endif.
concatenate output '>' into output.
concatenate output '<input type="submit"'
' name="onInputProcessing"'
' style="display:none" value="">'
into output.
the htmlb variant contains the attributes
id
method
autoComplete
action
encodingType
target
language
doValidate
Autocomplete, language and doValidate aren't covered in cl_htmlb=>form_begin
Eddy
Pimp up the S(D)N site and earn points. Check this <a href="/people/eddy.declercq/blog/2007/02/01/pimp-up-the-jam log</a> for details
Maybe you are looking for
-
Creation of Reservation for planned order
Hi Team, Is it possible to create reservation for planned orders after MRP run? My opinion was the reservation can only be created with reference to production order after MRP. The reservation can not be created with reference to planne dorders after
-
Why is my iPod showing a no sign when i drag music into the itunes library and how do i fix it
when i go into itunes and in my desktops music library, i open itunes and click on on this ipod. when i want to drag my music it wont let me and show a red no sign. my sister has the same ipod but doesnt have this issue. please help me fix it, this h
-
HT204370 download issues Hd movie on ipad 1
Recently downloaded a HD movie on an ipad 1 and cannot watch it
-
U.S. Year End 2014
Hello community, This is our U.S. Year End 2014 Thread. If you have questions about 2014 Year-End reporting, you can post this on this thread. We will update this thread with tips and SAP Notes related to the subject. Thank you and Kind regards, Cass
-
初めまして.ちょっとした取り組みで LabVIEW と myRIO を使っているものです. その取り組みで2台のカメラを使うのですが.どうしても2台同時に使うことができないのです. 2つのカメラを交互に映すことも思いついたのですが.どうにも方法がわかりません. 一番いいのは同時に映せることなのですが・・・ どうか2台のカメラを同時にLabVIEWで動かし.静止画を撮影する方法を教えてもらえないでしょうか. 「同時は出来ない!」ということなら.上記した交互に映す方法でもまったく構いません. 一つの