07-06-2004 4:49 AM
Hi to everybody,
I have one BSP(Business Server pages)application.I want to call that application from report.How to call BSp from report.
07-06-2004 9:16 AM
Not sure if this will help in you current requirments but one way could be to create an web link within a screen container to the BSP web reference(http://sd.co.uk:/sap/bc/bsp/sap/ztestbsp/index.htm). I know this is not in a report and it will not go there without the user clicking on the link so may not be of any use. But you could perhaps have a screen call from your report which displays the link to the bsp.
regards
mart
07-06-2004 10:34 AM
Hi,
You can try to do something like this:
CALL METHOD cl_gui_frontend_services=>execute
EXPORTING
document = url_of_bsp_appl
EXCEPTIONS
OTHERS = 1.
Probably this is what you need.
Regards,
Mikhail
08-24-2004 4:33 PM
Alternatively you can call function module CALL_BROWSER with the Url of the BSP application. Same effect.
08-24-2004 10:55 PM
The SAPGui HTML control is great way to show a BSP page. You can create the HTML control (CL_GUI_HTML_VIEWER) in a full screen or subscreen (anywhere you can insert a container controll). Best yet you can activate SSO for the HTML control so that the user doesn't get prompted for credentials. The following is some code samples:
CREATE OBJECT custom_container
EXPORTING
container_name = 'CUSTOM_CONTAINER'.
CREATE OBJECT html
EXPORTING
parent = custom_container.
CALL METHOD html->enable_sapsso
EXPORTING
enabled = 'x'.
DATA: url TYPE string.
DATA: url1 TYPE url.
DATA: l_appl TYPE string,
l_page TYPE string.
l_appl = bsp_appl.
l_page = page.
CALL METHOD cl_http_ext_webapp=>create_url_for_bsp_application
EXPORTING
bsp_application = l_appl
bsp_start_page = l_page
bsp_start_parameters = params
IMPORTING
abs_url = url.
url1 = url.
CALL METHOD html->show_url
EXPORTING
url = url1.
12-02-2005 12:38 PM
Dear Thomas ,
I m new to BSP and also ABAP Objects ..
I have a similar requirement to call a BSP page from ABAP .. I found ur code working .. except the create object (Custom container ) .. can u please tell me in detail what is custom_container object .
its very urgent ..
12-02-2005 1:13 PM
custom_container is an object of type ref to CL_GUI_CUSTOM_CONTAINER. This is connected to an area that you draw on the screen using the screen painter. However you can place this control in any GUI Container (splitter, dialog box, etc).
There are tons of information and samples in the system and the online help on Controls Technology (since it has been around since the introduction of 4.6X).
http://help.sap.com/saphelp_nw04s/helpdata/en/7d/fe9f698af411d3805e00c04f99fbf0/frameset.htm