BSP with MVC

Hi
Can any one send me the document that will help to understand the architecture of MVC with examples.
Regards
Amit
[email protected]

Hi,
For MVC, all the details can be found on the SAP Help page...
The link is <a href="http://help.sap.com/saphelp_nw04/helpdata/en/0f/ab3a3c9ca75402e10000000a114084/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/0f/ab3a3c9ca75402e10000000a114084/frameset.htm</a>
Hope this helps.
Also for a specific issue, you can refer to SDN..
<b><i>Do reward each useful answer..!</i></b>
Thanks,
Tatvagna.

Similar Messages

  • URL Link to BSP with MVC

    Hi,
    I have a BSP with MVC design.
    I assume that the URL link to the application is the URL I see when I go into the Controller page under the BSP in SE80.
    Is that correct?
    The problem is that when I take that URL and copy paste it into a web browser, I get the first view but when I click on any button, the controller class is not called.
    If I do a right click on the BSP and select the TEST option, all is working perfectly.
    Do you have any idea why this is happening or do I do something wrong?
    Thanks,
    Itay

    Hi Stefan,
    Same issue i have as well.
    My Understanding is, in NWBC desktop, if you open a non sap (eg: html) page, NWBC becomes an IE Browser.
    That means you are now out of SAP for that tab (with html page) and whenever you try to launch any SAP transaction (using the method from HTML) it will launch in a new window and ask for Login.
    May be Experts like Samuli Kaski & Melinda Ludanyi can put some light on it.
    But, I have one more solution for this which is partially working in my case. May be helpful in you case as well.
    Issue: From some SAP transaction in NWBC (say tab A), you are launching the html page (say tab B) and then want to launch another SAP transaction (Say tab C) from html.
    Solution: Embed the HTML in SAP using HTML Viewer class and launch SAP custom transaction using the interface IF_LSAPI. It will launch it in new tab as a sap transaction with your html page.
    Now if you want to launch the SAP transaction from your html page (Which is embedded in SAP custom transaction) you can use HTML Viewer class Events and you can pass parameters as well. Re use the same interface IF_LSAPI and launch it in new tab
    In my case i am facing problems as the web developer has so many things on java script and they are not working properly. He is working on it and i am hoping it will be fine.
    Regards,
    Nik

  • How to import and edit a 3D video made with Sony HDR-TD10E camcorder, with .MVC file?

    How to import and edit a 3D video made with Sony HDR-TD10E camcorder, with .MVC file?
    I have PremierePro-CS5 installed.
    This stereo 3D camcorder (Sony HDR-TD10E), output an .MVC (MultiViewCoding) file, coded in H.264 format.
    This format is already compatible with Bluray3D stereoscopic format.
    1) But, how to edit the .MVC in Premiere?
    2) What plugin should I use (if exists) for PremiereProCS5?
    3) Cineform Neo3D, can manage the .MVC format? Can convert it to Cineform format file, for import it into Premiere?
    4) What software should I use to convert an .MVC video to an AVCHD H.264 file, and import it into PremierePro CS5 or CS5.5 for editing?
    Thanks!
    Horsepower0171.

    Sorry, I am Italian, it is very difficult for me to understand what he says!
    I can just read the english text, or follow the actions of a videotutorial!
    Thus my question is the same:
    -What software can do that?
    -Sony Vegas 10 do the Bluray3D authoring?
    -For MVC editing, should I wait for Adobe CS6? Or is it planned an update for CS5.5?

  • PCUI - Open new url or bsp with a Toolbar Button

    Hi all,
       I have a PCUI custom application (CRM_BSP_FRAME)and i want open a new url or bsp with my button on the toolbar of result list. Important: Without modification of standard.
    Thx in Advance
    Regards.
    Manuel

    Hi Manuel,
    in the event you can enter an object link.
    Regards
    Thomas

  • Working with mvc model and cs5

    Hi all,
    Does anyone have some usefull suggestions on how Dreamweaver cs5 could benefit me in the development proces with a mvc website structure.
    Right now everything get's passed by the frontcontroller wich is initiated on the main index page.
    At least on the real server.
    I try to get the same page with a testserver, I installed xampp, but I don't get the same page result as I would get from the internetserver.
    Some off the css is messed up, etc.
    Any pointers on how to work with mvc would be helpfull.
    For example: To what extend is live view with xampp a helpfull tool to preview the pages that I want to make.
    Or should I preview the pages out off the context off mvc?
    thanks, Richard

    Some more information regarding my problem:
    It seems that the loadXML and saveXML does not like the data binding.
    When I don't use a data connection (and no binding), navigation works perfect and the data on the different pages is stored.
    When I use a data connection, the navigation still works, but the data is not stored anymore.
    When I use a data connection and a data binding, navigation does not work and also the data is not stored.
    By the way: I am using Lifecycle Designer 7.

  • BSP with SAP 4.7

    Hi,
       Currently we have a requirement for using BSP with SAP 4.7. Can any one please explain me the basic system( sap) requirement for using BSP and the BASIS settings and can we execute BSP without WAS server.
    please advice.
    Thanks,
    Anmol.

    Hi Anmol,
    It is the WAS which allows us to implement Web applications through BSP. WAS provides the Web Application Builder which supports development of BSP applications. Without WAS there is no BSP.
    To see the version of SAP WAS Kernel release, go to SM51, select the server and click 'release notes'. The 'SAP Kernel' entry shows the release of your system.
    Hope this helps.
    Regards,
    Bhavana

  • Calling a BSP application with MVC and send one start value

    Hi,
    I developed a BSP application with BSP. The application has a start page with one input field. The user gives a number and click the send button. The controller creates the modeler and gives the userinput as start parameter for the data search. After the data are read/found, the controller calls a view to show the data.
    This is very easy and does work.
    I have to call this simply application from another one: the caller application sends the start value.
    I don't know, if is better to send the start value in the URL or not. I tried it, but the controller cannot read it.
    How can I call the controller with a start value?
    Thank you!
    Bye
    Patrizia

    Hi ,
    what you need to do is
    1) for the "Send" button attach a java script.
    <htmlb:button id="myButton" text="Submit ...." onClick="sendRequestWrapper()"/>
    this javascript should take the inputfrom the field,
    then in the javascript create the URL.
    function sendReqeustWrapper(){
    sendRequest(InputField);
    function sendRequest(InputField)
    var URL;
    URL  = window.location.protocol + "//" ;
    URL += window.location.host ;
    <b>Note: its only Example link,</b>
    URL += "/sap/bc/bsp/sap/<BSPApplication>/controller.do";
    URL +="?InputFieldName=";
    URL +=InputFieldValue;
    <b>then use</b>
    Your URL will look like:
    http://ld0507.wdf.sap.corp:50007/sap/bc/bsp/sap/<bsp appl>/controller.do?InputFieldName=XXXXX
    window.open(URL,"_self","");
    so once this URL is triggered  you need to goto the respective controller and handle the input. You can see the reply from Mr. Akshaya Rao .
    regards,
    Vijaya Kumar M.
    Message was edited by: Vijaya Kumar

  • BSP with the link using MVC

    I need to call an another controller from a view using a htmlb:link
    Here is my code for example:
    <htmlb:link   id  = "<%= l_htable-id %>"
                  text = "<%= l_htable-data %>">
                  onClick   = "click">
    Here is my code in method DO_HANDLE_EVENT:
    if htmlb_event is bound and htmlb_event->server_event = 'click'.
          navigation->goto_page( 'temp.do' ).
    endif.
    But it doesn't works! It seems that this event never be catched. I tryed to set a breakpoint in this method and it never called.
    Could you please help me?
    (Sorry for my possible bad English)

    You can try the following.
    I dont know about htmlb:link
    but there is another option u can try.
    u can BSP: Call
    and pass your controller name in URL attribute
    and comp_id.

  • Pagination not working when RDL report is integrated with MVC web application using ascx control reportviewer

    I have the below code in my User control ASCX page.
    <form id="form1" runat="server">
        <asp:ScriptManager runat="server"></asp:ScriptManager>
        <table>
    <tr>
                <td>
                    <rsweb:ReportViewer ID="rvDracas" runat="server" Height="100%" Width="100%" ProcessingMode="Local"
                        DocumentMapCollapsed="true" SizeToReportContent="True" PromptAreaCollapsed="True"
                        ShowCredentialPrompts="false" ShowBackButton="False" ShowPrintButton="true"
                        AsyncRendering="false" ShowFindControls="false" ToolBarItemBorderStyle="None" ShowToolBar="true"
                        ShowReportBody="True" ShowPromptAreaButton="True" ShowRefreshButton="True" ShowZoomControl="False"
                        ShowParameterPrompts="False"  ViewStateMode="Enabled" OnLoad="rvDracas_Load" onclick="window.App.submitting
    = true;" style="margin-bottom: 0px" OnPageNavigation="rvDracas_Load"  >
                    </rsweb:ReportViewer>
                </td>
            </tr>
        </table>
    </form>
    In page load I am filling the RDL with the data source.
    When I click on Page navigation control it is throwing me the below error.
    "Unhandled exception at line 885, column 13
    0x800a139e - JavaScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.
    Please help...

    Hello,
    Welcome to MSDN forum.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because you are doing ASP.NET MVC app development, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Syntax error while activating BSP with OTR in htmlb element

    Hallo,
    I get a syntax error if I try to activate the BSP below with the lines commented out: "Statement concluding with "...%_O2_UTL_000" ended unexpectedly".
    I don't know what's going wrong. Have I to to any basis settings or to activate any more services etc? Or is it a bug? WAS620 SP53.
    Can anybody help?
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content>
      <htmlb:document>
        <%-- does not work
        <htmlb:documentHead title="<%=otr(SOTR_VOCABULARY_BASIC/ALL_ITEMS)%>" />
        --%>
        <htmlb:documentHead title="OK" />
        <htmlb:documentBody>
         <%=otr(SOTR_VOCABULARY_BASIC/ALL_ITEMS)%> <-- OK
         <%-- does not work
         <htmlb:textView id="t1" text = "<%=otr(SOTR_VOCABULARY_BASIC/ALL_ITEMS)%>" />
         --%>
         <htmlb:textView id="t1" text = "OK" />
         </htmlb:documentBody>
      </htmlb:document>
    </htmlb:content>
    Thank you
    Andreas

    Thank you for this note.
    I haven't found any one. The keywords 'OTR' or 'HTMLB' are not mentioned in the note...
    I have triggered the installation of SP54 and give feedback if the problem is solved.
    Andreas

  • MIME object download by BSP  with 'Save as' box

    hello ,
      i am trying to download a Excel file which is in MIME objects in my BSP application. From portal i want to download this with 'Save as' box . Currently excel file is opening and i have to save it manually on local drive.
       can u suggest me any solution to open 'Save as ' dialogue box to download the MIME object on my local hard-disk drive by using BSP application.
    Regards

    Hi there,
    I'm getting the same issue with the following code:
    header("Pragma: public");
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Cache-Control: private",false);
    header("Content-Type: application/force-download");
    header("Content-Disposition: attachment; filename=\"$newFileName\";");
    header("Content-Transfer-Encoding: binary");
    header("Content-Length: ". filesize($fileName) );
    echo $fileData;
    The only issue seems to be with the filename being set to that of the php script. The contents of the file are correct. Have you had any luck with this issue?
    Cheers,
    Jeremy

  • BSP with SQL insert statement

    Hi all,
    I'm creating a BSP page with 2 inputfields and 1 submit button...
    first inputfield should contain a table+field name and the second inputfield must contain a value that has to be written in the table of field1.
    When I press the submitbutton, I want the value from the second inputfield to be written into the corresponding field of inputfield 1.
    Currently I have the following:
    <htmlb:inputField id         = "field1"
                            type       = "string"
                            doValidate = "TRUE"
                            maxlength  = "50"
                            size      = "50"
                            value      = "<%= table_name %>" />
    <htmlb:inputField id         = "field2"
                            type       = "string"
                            doValidate = "TRUE"
                            maxlength  = "50"
                            value      = "<%= table_value %>" />
    <htmlb:button text    = "Save value"
                        id      = "submit"
                        onClick = "submit" />
    Now my question is the following: does anyone have e.g. sample code on how to process sql "oninputprocessing" so that the value from "field2" is inserted into table as entered in "field1" ?
    thanks a lot in advance,
    of course points will be rewarded ...

    Hi Joris,
       Go through this sample code which i am sending you by seeing your requirement. Hope it helps you...
    In OnInputprocessing
    class cl_htmlb_manager definition load.
    if event_id = cl_htmlb_manager=>event_id.
       data event type ref to cl_htmlb_event.
       event = cl_htmlb_manager=>get_event(
                    runtime->server->request ).
       if event->name = 'button' and event->event_type = 'click'.
           data data1 type ref to cl_htmlb_inputfield.
           data1 ?=  cl_htmlb_manager=>get_data(
                      request = runtime->server->request
                      name = 'inputfield'
                      id   = 'field'
           if data1 is not initial.
                v_field = data1->value.
               append v_field to it_mara1.
            endif.
        endif.
    layout
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = "first page ">
        <htmlb:form>
         <htmlb:tableView id="table" table="<%= it_mara1 %>"></htmlb:tableView>
         <htmlb:inputField  id="field" />
          <htmlb:button       text          = "Press Me"
                              onClick       = "myClickHandler" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Page attributes
    it_mara1     type    it_mara
    v_field      type    mara-matnr
    Type Definitions
    Types : begin of t_mara,
            matnr type matnr,
            end of t_mara.
    Types it_mara type table of t_mara.
    Regards,
    Azaz Ali.

  • Which is more in line with MVC architecture with Struts?

    Hello all
    When using the MVC Model 2 architecture, the JSP's are the view, servlets the control, and the beans are the model. If we say that a control method should represent a specific use case, then in theory, you should be able to call the control method from any interface to request that a specific use case be performed, whether it be over a simple socket connection receiving bytes, or using HTTP.
    However, when using jsp's/servlets, if thr servlet is the control, then it means that the interface must make the request using HTTP and contain a request/response object. But supposing you wanted to change the interface to request the same use case, but makes an http request but supplying XML (instead of several request parameters) which contains the request data, you cannot then simply use the same servlet use-case.
    So what is the solution? If you write another servlet to handle the different request format (XML) it copies a lot of the control code from the other servlet which is a bit messy. Or, would it be correct to write a seperate Controller class (standard Java class), which would contain a set of related use cases, and are called by the servlet. Each use case (which would be a method call in the controller class), would take in its parameter list the exact type and data it needs to complete the use case. In this case the servlets are simply pulling data from the HttpRequest object, converting them to the correct java type to be passed to the controller class you create.
    This introduces an extra layer; the servlet now sits between the request interface and control. It means that the control methods can be called from any type of interface, but is it the right way of doing things, and how would the new control objects be held in the servlet?
    Please could someone give their opinion on which they think is the best way of architecting this?
    Many thanks,
    Shaun.

    Shaun,
    I'm going through the same issues as I try to build my own MVC framework. Struts is useful, but does not cover everything. If you're interested, I've found that the book "Core J2EE Patterns - Best Practices and Design Strategies" by Alur, Crupi and Malks is very helpful. It contains design patterns for all the various tiers. It does not describe a framework, just a set of patterns from which you can pick and choose.
    In the example you describe, one of the applicable patterns is the "Session Facade" which is basically a high-level business interface. The goal is to hide the complexity of the entire business API from the client. The book recommends each facade to correspond to a related set of use cases. e.g. methods in one facade could include OpenAccount, CloseAccount, GetBalance etc. Implementation would be Java classes.
    This facade should be independent of the request protocol and could be used for HTTP, by a Java application, by a web service etc. Usually the facade classes would be located close to the business objects to minimize network delay and traffic.
    In your example, the controller servlet (Struts Action) would invoke services from the Session Facade.
    You're right about this introducing an extra layer. Depending on your present and future needs, you can end up with others such as abstracting the persistence layer. The trade-off is between up-front effort and future flexibility.
    You ask how to reference the new objects. In my case, the initialization servlet calls a factory class method to get references to the facades. These references are stored in an application-specific object that is added as a ServletContext attribute for use by other controller servlets.
    I know this doesn't fully answer your question, but hopefully it helps a little.

  • Problem BSP with Submit a Report:

    I want to submit an report with BSP to let ot work on a mobile device. But nothing happens. By running the report there should happen an booking in the backgroun via Batch-Input, but nothing happens:
    submit zb_aend_wabe_06 VIA SELECTION-SCREEN
    with p_tanum = tanum(10)
    with p_tapos = tanum+10(4)
    with p_lgnum = '101'
    with p_hell = 'N'.
    By debugging it holds on submit, but then if I put F5(next step), it doesn`t go into the report zb_aend_wabe_06...
    I tried to do a submit on a dummy report:
    The dummy-report works without Selection Screen does a delete on a database. That works.
    Can anybody help?

    Hi,
    you can do this, but you must using the webrfc service from the SICF-Node-Tree. That's the old fashioned ITS (Internet-Transaction-Server) functionalty, which is now in place.
    Best regards, Stefan

  • SQL Server Linked Server Issues with MVC 5

    I have 2 linked servers
    Server A = MYOB  ( custom 32 it ODBC Driver ) 
    Server B = SQL Server 64 Bit.
    They link fine using windows authentication - and I can run the following no problem in SQL Management tools ( as part of a stored proc ) . 
    DECLARE @MaxID varchar(100)DECLARE @Query varchar(MAX)
    -- Insert Sales
    SELECT @MaxID = MAX(SaleID) FROM [r2hserver\SQLexpress].artoo.dbo.MYOB_Sales
    SELECT @Query = 'INSERT [r2hserver\SQLexpress].artoo.dbo.MYOB_Sales SELECT * FROM OpenQuery(MYOB,''SELECT * FROM Sales WHERE SaleID > ' + @MaxID + ''')'
    EXEC(@Query)
    The problem is: Whenever execute the stored procedure from within a MVC 5 Web App ( EF6 )  - I get :
    Unable to start a nested transaction for OLE DB provider "SQLNCLI11" for linked server "myserver/SQLexpress". 
    A nested transaction was required because the XACT_ABORT option was set to OFF.
    and if I set XACT_ABORT ON  - I get :  Microsoft Distributed Transaction Coordinator (MS DTC) has stopped this transaction.
    I cannot figure out how to make it run!  I have turned firewalls off  and tried many different config.
    Ideas?

    Hi Marty,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • Can't see the wood for the trees!

    I can't seem to get this gridlayout of textfields to work for me! I have: void jbInit() throws Exception { panel1.setLayout(gridLayout1); panel1.setMinimumSize(new Dimension(400, 400)); panel1.setPreferredSize(new Dimension(400, 400)); getContentPane

  • Material creation query

    Hi , I want to create a single material which will have different packaging size. lets say  ; Product 'X' , which comes in size of 100ml , 250ml , 500ml and 1 Litre , and it will be sold in quantity say 1 , 2 . so when i create a sales order for this

  • Ovi Share - No details on SMS sent to invitees

    After uploading pictures or video to the folder, I use the share button to invite people/friends to view the content. The SMS form has input for invitees, subject and messages. However, all these details are not sent to the invitee. Only the share li

  • Making eDir and AD play nice

    Hi all: With the help of this forum, I have moved off of ZCM DLUs and roaming profiles and onto AD roaming profiles. Things seem to be working OK. I was wondering if you have any tips/tricks/advise to make eDir and AD work together? In my case, we us

  • Device constants search

    Hi everyone, I am currently running into this problem. I wants wondering if anyone can help me out. I am working with a Data graphing program. user select the file to graph. For instant, SN 10001.csv that file is located in folder \Data before we are