Call webdynpro from BSP (MVC)

Hi, gurus!
I have simple bsp created using MVC. I have my own component which includes MainWindow with controller class by default and a view with controller class and model class. Everything was created using Wizard.
I need to call webdynpro app from this BSP in WEB UI. I have a code that get WD url, then I'm trying to use navigation in DO_REQUEST method whih I redefine for a view controller class:
  data: l_wd_url type string.
  call method cl_wd_utilities=>construct_wd_url
    exporting application_name = 'Z_XR_BP_COURCES'
    importing out_absolute_url = l_wd_url .
    navigation->goto_page( l_wd_url ).
In test mode it's working fine, but when I call this BSP through WEB UI I recieve an error message:
"Business Server Page (BSP) error
What happened?
Calling the BSP page was terminated due to an error."
Sorry, if my question a little bit stupid =), but i'm new in BSP.
Could anyone help me?

Hi,
Please check in SDN before posting the questions.
Check with the following link [Webdynpro from BSP (MVC)|Call Webdynpro Application from BSP Application;
Hope this helps you.
Regards,
Rajani

Similar Messages

  • Call ITS from BSP Application

    i have created a ITS screen which in turn calls a Abap report
    I want to call this ITS screen from a BSP application .
    Could you please provide some sample code which is used to call ITS from BSP application..
    Useful answers will be rewarded
    Thanks

    Since it is related to both ITS and BSP i thought i can post it in both. and also i didnt get answers for the queries..... for a long time. Anyhow i will take your suggestion for my future query.
    i hv done using iframe to call my ITS application.
    I can able to call the Bsp application whichin turn calls its screen abap program.
    while executing ,  the selecting the directory from the file browse pop up doesnt work for downloading the file
    becos the client , they will not change the settings related to applet in the internet browser for security reasons.
    I hav to make it some how to make it work in the portal which calls this BSP application..
    at the moment i mapped this BSP application to the user role in the SUS Portal . but it appears in the SUS portal . but i m not able to click the application and also handsymbol is not seen while bringing the mouse to that area.
    Could you please tell me , how to use Action_id for that particular application, Authorisation profile settings.
    Kindly  give your suggestions asap.

  • Calling Webdynpro from a Portal service

    Hi,
    I am new to EP. I have a task where i have to write a Portal service which has to call a prewritten Webdynpro. Can someone guide me as to how I can call WebDynpros from Portal services.
    Thanks,
    Sudhir

    Hi Sudhir,
    That makes no sense. Portal Services are "faceless components", i.e. they have no user interface. WD is just all about UI. How should that kind of integration work / make sense?!?!
    Hope it helps nevertheless
    Detlev

  • Calling WDA from BSP

    Hi all,
    Is it possible to call WDA from a BSP via a hyperlink and pass parameters that the WDA would need? How could I go about doing this?

    Hi Alexander,
       You can't pass the information(Context Data) from WDA to BSP directly so you just store the information in some variables or internal tables use the normal user paramenters like EXPORT & IMPORT or SET and GET parameters. Thgoruhg this way only you can communicate the data between these 2 technologies otherwise you need to save the data in some ztable and use the same table in both technoloes.
    you can also use Server Side Cookies.
    Perhaps take a look into this blog from Koen Labie:
    /people/koen.labie2/blog/2006/11/29/eating-cookies-with-webdynpro-and-bsp
    The blog shows how to pass the data from BSP to WD.
    Transfering data between WD and BSP via Server side Cookies can also be used for your requirement.
    For that you have to set the Data Cookie in the WD and then get the Cookie in the BSP.
    Please keep in mind that if you mix two different technologies you will have to deal with integration. WD and BSP will run in two different sessions at the server. Handling data exchange, login, logoff, data transfer at the server and client, etc can be challenging. You might end up with recreating enterprise portal-like software. So depending on the scope of the project, it might be more advisable to stay within the BSP environment or to reuse the SAP enterprise portal to integrate these two technologies at the client.
    Hope this will help you.
    Cheers,
    Darshna.

  • CNTR_ERROR While calling BDC from BSP

    Hi ALL
    I am calling a RFC from BSP which in turn call a BDC for the transaction TP04.
    When i run the BSP in debugging mode its posting data and  working fine.
    But otherwise also it doesn't throw any error on browser. but when i check ST22 it throws exception CNTL_ERROR.
    My function is remote enabled and i am using destination 'NONE' as well.
    I have also checked the Blog by Brian.
    suggestions are welcome
    Naresh

    Hi
    Browser is not giving any error,Friendly HTTP is turned off.
    I am calling my own fucntion module like this
    CALL FUNCTION 'ZTM_FM_TP04' destination 'NONE'
              EXPORTING
                emplno  = employeeno
                STARTDATE   = strtripbegin
                STARTTIME   = strstarttime
                ENDDATE     = strtripend
                ENDTIME     = strendtime
                FIRSTDEST   = strfirstdest
                COUNTRY     = strcountry1
                REASON      = strreason
                CASHADVANCE = strcashadvance
                CASHCURR    = strcashcurr
                BANKADVANCE = strbankadvance
                BANKCURR    = strbankcurr
              TABLES
                ADDDEST     = adddest.
    and within the function module i am calling Call Transaction like this
    CALL TRANSACTION 'TP04' USING BDCDATA
                         MODE   'N'.
    But its not posting any data and while checking thru ST22 its giving following error
                                                                                    A RAISE statement in the program "CL_GUI_CUSTOM_CONTAINER=======CP " raised th 
    exception                                                                     
    condition "CNTL_ERROR".                                                        
    Since the exception was not intercepted by a superior program                  
    in the hierarchy, processing was terminated.

  • Call WebDynpro from ITS

    Hi,
    I have a Webdynpro application and I need to call this application from a ITS application, sending a value from ITS.
    How can I call a Webdynpro from ITS and how send a parameter?
    Thanks,
    Evandro.

    Bala,
    Try using dynp_okcode=shop
    I am not sure what this shop means, you may have to change this to right ok code used in your transaction. 
    According to this wiki using okcode to skip the initial screen is is obsolete.
    refer the [wiki|http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=22375]
    This post [Pass value from webdynpro ABAP to service "Sicf"|Pass value from webdynpro ABAP to service "Sicf"]
    Edited by: Baskaran Senthivel on Feb 28, 2011 3:19 PM

  • Call VB from BSP

    Hi,
    anyone know if it's posible to call a VB app from within a BSP...? Or even, more generally, executing Windows commands (including starting applications) from a BSP?
    trond

    Hi Trond,
    Microsoft provided the feature of starting desktop applications from within the IE for a while (without being aware of it). But people didn't really like it and were considering it as a security hole. How bad for us developers, isn't it?
    However, if you really want to scare your users, you can still do the following in your BSP app:
    1) create a string which looks like the command line of starting the windows app. This one here e.g. starts the SAP GUI and connects to system XXX with TA SE80:
    CONCATENATE 'cd Program FilesSAPFrontEndSAPgui' cl_abap_char_utilities=>newline
                  'sapshcut.exe -sid=XXX -clt=150  -cmd=SE80 type=Transaction -l=en' INTO lv_htm.
    2) create an url including a file name ending with a '.bat' extension
    3) create a response object and add the string as data, set header cdata/status etc. & upload everything into the server cache
    4) use the url as reference in a link element or something
    Now you just have to convince your users to push the 'Open' button on the download window after they have selected the link and the batch file is executed.
    Disclaimer: it wasn't me
    regards, Ulli

  • Calling DLL from BSP

    hi,
    Can anyone suggest me how to call a dll in a bsp. if you can help me with a sample code it'll be helpful.
    Thnx in Advance
    Vinodh

    What exactly do you mean by calling a DLL?  Do you want to host an ActiveX Control?  Do you want to call a DCom Object or a .Net Object?  Or perhaps you are wanting to call a WebService writting in .Net?
    For a Native DCom Object or .Net Object your would need the SAP DCom Connector or .Net Connector respectively.  For an ActiveX control, BSP is no different than any other Web environment - Client Side JavaScript or VBScript should do the trick.  I'm sure you can google many an example from the Web. 
    If I am off base here, just let me know.  Also this question might be better suited to the BSP forum instead of the ABAP one.

  • Calling Iview from BSP Iview

    Is it possible to call a transaction iview from a BSP iview .
    i want to trigger a transaction iview when i click a button in my BSP iview .
    thanks in advance .
    J

    hi,
    The URL that you get on previewing your Transaction iView is the one that needs to be used in your BSP as:
    <a href = "http://sgssmcepdv:52000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.hcl.FLD001!2fSiddharthaID!2fiViewsID!2fMisc!2fepcmID_0" >hello </a>
    Te get the url correctly,open the Transaction iView,in the properties look for the property PCD Location
    It will be something like
    portal_content/com.hcl.FLD001/SiddharthaID/iViewsID/Misc/epcmID_0
    Now in place of the '/' replace !2f .
    portal_content!2fcom.hcl.FLD001!2fSiddharthaID!2fiViewsID!2fMisc!2fepcmID_0
    Now the complete URL would be
    http://sgssmcepdv:52000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.hcl.FLD001!2fSiddharthaID!2fiViewsID!2fMisc!2fepcmID_0
    Ok.
    Then test the BSP Iview.
    Regards,
    Siddhartha

  • Calling a webdynpro URL in new window from BSP

    Hi experts,
      i am calling a URL from BSP application by creating a link and on the 'onclick'  event of the link ,using following code
    navigation->goto_page( URL = l_wd_url session = 'NEW' ).
    My problem is ,i have to open this page in a new window(the Page is basically a webdynpro URL) ,so far it is only opening in same window.I have tried different other options.
    navigation->next_page( URL = l_wd_url session = 'NEW' ).
    CALL METHOD runtime->server->response->redirect( url = l_wd_url ).
    navigation->call_application( URL = l_wd_url ).
    I tried using call_browser FM also but it is dumping.
    href tag will not work in my case as i have to capture the event and write some code inside  that event..
    Please suggest what i can do now?

    Hello Graham,
    I am trying to get the windows user id in webdynpro abap.
    I am unable to get,
    So I used BSP application to get the windows user id.
    I using java script to get that.
    After that I don,t know how to  assign that java variable to ABAP variable. the
    Insted of calling the WDA using the following way
    <a href="<%=l_wd_url%>" target="_blank">Click Here</a>
    is there any other way to call WDA from BSP based on some action.
    Regards
    Srini

  • How to call a Webdynpro view from BSP page (MVC) in a new window?

    Dear Experts,
    kindly advise how to call a webdynpro view from BSP application after performing an event (through button or hyper link).
    Regards,
    Sarat.

    Hi,
    This has been discussed many times in several forums.
    Please check the method CL_WD_UTILITIES=>CONSTRUCT_WD_URL, to create a runtime url for your WD Application and call this URL.
    Refer thread: Call Webdynpro Application from BSP Application
    Hope this will be useful!
    Regards,
    Meganadhan S

  • 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
    Karen

    Hi 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

  • Calling Z function module from BSP page

    hi,
      i am calling a z function module from BSP application ROS_SELF_REG ,The z function module is inside a z function group,It does not give any sytnax error..but while running BSP application ,it is going into dump saying that Z function module is not found..Any idea why this is happening???

    Hi,
    Check whether the Z function module is spelled correctly. Also try activating the whole function group and function module in se80 transaction.
    Check whether the BSP application is calling the Z FM from the correct server/client where it is available.
    Regards,
    Harish

  • Urgent: call ABAP program from BSP

    hi BSP experts,
    We just want to trigger an ABAP program to say "Hello World" in BSP and see the wording "Hello World" on web browser when running it from BSP.  One BSP expert Raj gave the answer by using the following in BSP:
    oninitialization:
    submit ('z_program_name') and return exporting list to memory.
      call function 'LIST_FROM_MEMORY'
           tables
                listobject = listobject.
      call function 'WWW_HTML_FROM_LISTOBJECT'
           exporting
                report_name = 'z_program_name'
           tables
                html        = html
                listobject  = listobject.
      clear output_str.
      loop at html into html_wa.
        concatenate output_str html_wa into output_str.
      endloop.
    layout code:
    <htmlb:content design="design2003">
    <htmlb:page title = " ">
    <htmlb:form>
    <%= output_str %>
    </htmlb:form>
    </htmlb:page>
    </htmlb:content>
    We put the above in our BSP and then activate them, but get the following error:
    Field "LISTOBJECT" is unknown. It's neither in one of the specified tables nor defined by a "DATA" statement. "DATA" statement."DATA" statement.
    And the error stopps here:
    submit ('z_program_name') and return exporting list to memory.
    call function 'LIST_FROM_MEMORY'
    tables
    listobject = listobject.
    Any idea? 
    We will give you reward points!

    hi Tanguy,
    Eventually, I have figured it out on how to make the code works by showing "Hello World!" on web browser. But actually we would like to run another ABAP program which open a new container on users' machines, download an Excel template stored on server to the opened container on users' machinese, and then dump SAP table data to the opened excel template. This program works very well through SAP GUI, but users would like to run it on web that we tried to run this program in BSP, but it doesn't work with your code! Any idea?
    Thanks alot!

  • Calling GuidedProcess from WebDynpro ABAP

    Hi all
    can anybody tell me that how to call GP from webdynpro ABAP.
    and what are the advantages and disadvantages in this scenario??
    if anyone reply then it would be the great help to me
    Regards
    Suresh babu

    Hey,
    You can call a GP from WD ABAP through by implementing a service call from a method that is embedded in your WD. You can refer this link for the same.
    http://help.sap.com/saphelp_nwce10/helpdata/en/44/58f9cc0d95311ce10000000a155369/frameset.htm
    But you should note here that Data exchange between ABAP WD and GP is not two way but its only one way.
    Cheers,
    Mandrake

Maybe you are looking for

  • Migrating from Tiger to Leopard Server

    Hi, I'm running two Mac Mini OS X Servers. One running Tiger and one running Leopard. All my virtual hosting is done on the Tiger server. I want to move everything over to the Leopard server, upgrade Tiger to Leopard (clean build) and then share acco

  • How do I get my contacts from my Cingular RAZR to my MacBook Pro?

    I did a quick search of the forum and did not find an answer to this specific question. I just switched over to Mac after being a long time PC user. Read many of the threads dealing with pairing the RAZR via bluetooth. I had no problem pairing my pho

  • HP Pavilion Elite m9070_it multimedia controller missing

    Installed W8.1 Pro all is ok but in device manager one driver is missing how can I resolve this problem? This question was solved. View Solution.

  • Solaris management console 2.1 error

    Hi All, Solaris 5.9 sparc I am trying to run Solaris management console 2.1 Toolboxes loaded successfully. But errors appear - There are no solaris management server running on server. LegacyAppTool.client.LaunchLegacyAppTool.

  • Standard Workflow for PR Release Multi-level

    Good day, I have a multi-level PR release strategy connected to workflow and using exit M06B0001 Structure is as follows Release Codes: A1 - first level A2 - first level (back-up) B1 - second level B2 - second level (back-up) Objective: (upon creatio