InputField in the MVC BSP app

Hi,
I am facing a weird problem with the Inputfield values in the BSP application which is developed using MVC architecture.
When i try to enter a value in the inputfield, the value is preceeded by a space. by default looks like the inputfield value is having a space. I tried all the possibilities to delete that but am not able to get rid of it. After reading the form fields, it shows me with a leading space.
am using a model->structure->field in the value attribute of the Inputfield and i have the inputfield in a gridlayout cell.
<htmlb:inputField id        = "sold_to_city"
                                    value     = " <%= model->gs_sec1-sold_to_city %>"
                                    disabled  = "<%= model->gv_disabled %>" />
Can you please help me if am missing something in the BSP?
Thanks!

Hi All..
nevermind i did solve the problem!!!
thanks!

Similar Messages

  • How to add the InputField to the Standard BSP

    Dear Experts, 
    How to add the Input field to the Standard BSP.Can anyone Expalin the Step by step procedure.
    Helpful answers will be rewarded.
    Regards,
    Ashok.

    Dear Ashok,
    You can create "Z" copies of both controller and View page in the standard BSP application itself and not by taking the "Z" copy of whole application, by right clicking on the standard application and click on "Create".
    You can design design your own page.
    Reward points if helpful.
    Thanks,
    Gokul.N

  • Multiple instances of the same BSP app for the same user

    Hi,
    I currently have a BSP application which has a main page which consists of three frames.  Each of the frames within the page is linked to its own controller, with one other controller controlling the whole page.
    due to the nature of the program i need to access information from one controller in another.  To do this I create a reference to the controller whose data I want within the controller that needs access to it.  This works fine under normal processing, however when the application is executed / called up twice by the same user, the controllers for the initial instance of the application are de-referenced...
    Does anybody know why this may be occurring...and how to get around it?
    Thanks
    Mike Law.

    Whenever you open a browser anew, then there is no session data that the browser can send in any way whatsoever, therefor a new session on the server is started.
    If you open a new window from within the first session this might not be the case, you can run multiple windows in the same session.
    Either way, I would recommend to search the forum, there have been discussion about this (or a similar) topic, e.g. accessing the same model instance - it would be best if you look for them, read them, and if you have any questions left come back for more
    Cheers,
    Max

  • BSP app WEBSERVICEBROWSER missing from SICF

    Hi! All,
    I'm trying to test the WEBSERVICEBROWSER BSP app from SE80 but am getting the "Service is not active" message in IE. When I went to SICF to activate it, it's not there in the tree. I've read that some users have activated it straight from SE80 and have tried that but still am getting the "Service is not active" message.
    Has anyone had the same issue on 620 and how did you resolve it?
    Thanks,
    Alan Tan

    Thanks everyone for taking so much interest in the issue that I'm having. I'm trying to do everything in R/3 so the wsadmin option wouldn't work for me; it doesn't exist.
    I can't create the node in SICF because the field length is too short.
    So what I was wondering yesterday, like Raja has pointed out, is if the "dependant/mandatory" service is running. Does anyone know how can I find out if it is running and if not, how to activate it?
    Thanks,
    Alan

  • MVC: Where to find the model and the table select in standard BSP apps?

    Hello!
    We are going to use MSS with the appraisal-application
    which is written in BSP and 'e-recruiting'. Both applications use the MVC-design pattern. We are going to do some modifications, but are struggling a bit since MVC is a new topic for us. How is the best way to get an overview of the controllers and views and call sequences in an existing application? We have done this by debugging, but are there other ways to find the 'starting controller', etc. ?
    Where can we find the model-code which reads the table-values into the internal table?
    We have read a lot about how nice MVC is - how the design gives you a better overview of the application. But without any docuemtation of the design we are quite lost. What are others experiences on this?
    regards Tine

    Hi Tine,
    let's see if I can answer your questions (at least partially).
    The main controller is the one you normally call directly in your browser (or after some introduction pages like login etc.). It's typically called start.do or main.do (but can differ). So if you call in the browser:
    http://myhost.domain:4711/sap/bc/bsp/sap/myappl/start.do,
    just call se80, choose the application myappl and double-click on start.do. There you can get the name of the controller class (just double-click on the class name).
    The standard model class is called CL_BSP_MODEL. The model classes from the application inherit from this class.
    For a complete documentation please have a look at the online docu:
    http://aiokeh.wdf.sap.corp:1080/SAPIKS2/contentShow.sap?_SCLASS=IWB_STRUCT&_SLOIO=EDBB153AAB4A0C0EE10000000A114084&TMP_IWB_TASK=PREVIEW2&RELEASE=640&LANGUAGE=DE&_SEQNUM=106&_LOIO=0FAB3A3C9CA75402E10000000A114084&_CLASS=IWB_EXTHLP
    There are also some weblogs written by Craig Cmehil where you can get examples.
    Hoping this helps a little bit.
    Regards,
    Rainer

  • How to create a simple app using the MVC approach?

    Hello gurus i'm trying to learn the SAPUI5 and i'm trying to create a simple app using the MVC i created the app and trying to add a lable to the view but there is nothing appear when i run it the code for the HTML page
    <!DOCTYPE HTML>
    <html>
      <head>
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
      <script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
      id="sap-ui-bootstrap"
      data-sap-ui-libs="sap.m"
      data-sap-ui-theme="sap_bluecrystal">
      </script>
      <!-- only load the mobile lib "sap.m" and the "sap_mvi" theme -->
      <script>
      sap.ui.localResources("mytestapp");
      var view = sap.ui.view({id:"idshell1", viewName:"mytestapp.shell", type:sap.ui.core.mvc.ViewType.JS});
      view.placeAt("content");
      </script>
      </head>
      <body class="sapUiBody" role="application">
      <div id="content"></div>
      </body>
    </html>
    the code for the view
    sap.ui.jsview("mytestapp.shell", {
      /** Specifies the Controller belonging to this View.
      * In the case that it is not implemented, or that "null" is returned, this View does not have a Controller.
      * @memberOf mytestapp.shell
      getControllerName : function() {
      return "mytestapp.shell";
      /** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed.
      * Since the Controller is given to this method, its event handlers can be attached right away.
      * @memberOf mytestapp.shell
      createContent : function(oController) {
      var oLabel = new sap.ui.commons.Label("l1");
      oLabel.setText("Test label");
      oLabel.placeAt("content");
    i dont know what is wrong or if i should use a container to display my controls
    any help will be appreciated
    thanks in advance

    Hi,
    Instead of   oLabel.placeAt("content"); use return oLabel;
    so it will as below,
    createContent : function(oController) {
      var oLabel = new sap.ui.commons.Label("l1");
      oLabel.setText("Test label");
      return oLable;
    Regards,
    Chandra

  • MVC BSP  hrrcf:formLayoutInputField

    Hi guys
    Can you help with the following trivial question:
    I have a MVC bsp which holds a few inputfields.
    How can I verify that the data entered by the user is valid without prsssing any
    button, only when he leaves one inputfield and jumps to the second one?
    Something like onChange event?
    thank you
    yuval

    Hi
    This is the code I have :
      <hrrcf:formLayoutInputField id        = "jobTitle"
                                    onValueHelp ="onTitleInput"
                                    label     = "<%= controller->job_title_label %>"
                                    size      = "80"
                                    maxLength = "80"
                                    value     = "<%= controller->current_job_info-jobtitle %>" />
    As far as I understand this should be an Inputfield within a form.
    My question: what javascript can be written to alert the user when the entry he has
    made is wrong (numbers instead of characters, for example).
    Thank you
    yuval

  • Unable to deploy the provider hosted app on sharepoint server !!!

    Hello,
    I have simply created the provider hosted app by assigning the issuer ID !
    Now, the SharePoint version of the app project is set as SharePoint Online.
    However, when I deploy this project to SharePoint site, it shows following error :
    Unknown SharePoint version: 16.0
    In order to resolve this I changed the SharePoint version as SharePoint 2013
    of the app project.
    Though , I am getting following error on deployment:
    The target version of the SharePoint site is 15.0.4569.1000, which is lower than the minimum supported SharePoint version of the app. To fix this, go to the SharePoint tab on the app for SharePoint project’s properties page, and change the Target
    SharePoint Version property to the version of the SharePoint site or lower.
    Would you please let me know how can I resolve this deployment error ?
    Note : I am using MVC web Application template for web project
    Thank you in advance.
    Kind Regards,
    Dipti Chhatrapati

    Not sure, but this is straight.
    Project type - apps for sharepoint --> Enter URL --> select type as provider hosted app -->  MVC --> Authentication Option.
    Now when publishing the project  - SP App to SharePoint/Office Store  and web portion to any web server ( i generally do it in Azure).
    Thanks, Ashish | Please mark a post helpful/answer if it is helpful or answer your query.

  • Trouble changing a class attribute in a STATEFULL bsp app - PLEASE HELP!!!!

    hello, i have some trouble changing the value of a class attribute, in certain point of the execution of a statefull bsp app. The scenario is: the bsp app is on a url iview in a portal; i have some link in the portal, that do a window.open (pop up) of that app. the question is: how can i change the class attribute of the bsp app when i close that pop up?, if when i first click the link that show me the pop up, its doesn't create another instance of the class...i mean it continuing working with the same instance of the url iview in the portal. ANY help it will well received. Thanx in advance

    hello Durairaj...yes indeed in the other thread thats the issue with the portal_version attribute, the person who create the iview dont want to change it...so i try to solve it with something else....thats bring me to another problem (posted in this thread). Now i have a question...in the url iview it calls a template that start the bsp app...i mean is not the url iview who calls the bsp app is a middle template...with this scenario can i pass the parameter sap-sessioncmd=open to the url iview or i have to pass it to the bsp app directly when in the middle template i call it??? another question when i pass that parameter via url, it create another instances (apart) of the class or restart the same instance that the app work with until that moment....tell me more about that parameter coz' i am new in bsp and i need help....i will give a lots of rewards point who help me!!! i promise....i am kind of desperade for sure....  thanx in advance

  • ***How to call BSP App when custom button event fired from toolbar group***

    Dear PCUI Experts,
       I have created one custom button for the transaction CRMD_BUS2000116.
    And my urgnet requirement is , I need to call BSP application which is used to   take data from custom fields and stores into BP table.
    How to call the BSP App. when i clicks on the button.
    Please help me..
    I will reward with great points.
    Regards,
    Stella.

    Hi Purushothaman,
                                 I have created a button in CRRM_ACCOUNT application.
    Now i want to call  a custom bsp application by clicking on that button.I have followed step given in this blog
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1646. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    But the event is not triggered.Do I have to create an iview for my bsp application?
    How to do that?Plz help.
    Regards,
    Ruby.

  • How to setup a BSP app for table maintenance

    Hi All,
    I want to create a BSP application to enable users to change some fields in the table and the remaining key fields will ne non-editiable.
    Also, I want the BSP application at the top to display a set of drop down boxes on the table fields which determine what is displayed in the BSP page.
    Can you kindly point me to some simple samples on this or share code that you might have for this kind of a application.
    Thanks
    Karen

    Hi Karen,
    There are sample applications are delivered in the system. The most important applications are listed below.
    SBSPEXT_HTMLB
    Examples of the HTML Business library
    SBSPEXT_XHTMLB
    Examples of the enhanced HTML Business library
    SBSPEXT_PHTMLB
    Examples of the pattern HTML Business Library
    BSP_MODEL (for advanced users)
    Example of the model connection as part of the MVC Design Pattern
    You can access the applications through transaction SE80.
    Regards,
    Sebastian

  • BSP App URL

    I have one bsp application. the app consists of one initial page(entry point) and any other pages.
    I wanna know the initial page's url as like 'http://xxx.xxx.xxxx:50000/sap/bc/bsp/sap/zhr_hap_018/index.htm' to call it from abap report program.
    I can't code the fixed url on the report.
    as you know the url(domain and port etc) is diffrent where the bsp app runs on(DEV, QAS and PRD).
    how can i get the information(domain and port etc)?
    i think there are function modules or util classes...
    plz. help..

    use the following method to build the url
    DATA: url1 TYPE string .
         page TYPE string .
        DATA:  params TYPE tihttpnvp.
    page = '<targetpage>.htm' .
    cl_http_ext_webapp=>create_url_for_bsp_application
          EXPORTING
            bsp_application      = '<BSP application name>'
            bsp_start_page       = page
            bsp_start_parameters = params
          IMPORTING
            local_url            = url1.
    params can be filled with any parameter you want to pass to that page.
    Hope this helps.
    Regards
    Raja

  • Loosing application attribute in a statefull bsp app

    Hello guys,
    i have a little problem. I got a statefull bsp app that contain an application attribute that is loose between the oninit and the oninput...any ideas that could solve my problem? Thanx in advance

    Hi Mariana,
    I got (perhaps ?) a very similar problem just few minutes ago.
    In my OnInitialization event handler, I have :
    DATA: ta_usr01  TYPE TABLE OF usr01.
    SELECT * FROM usr01 UP TO 100 ROWS
             INTO TABLE ta_usr01.
    GET REFERENCE OF ta_usr01 INTO ta_data.
    where
    ta_data is declared as a page attribute TYPE REF TO DATA. 
    When I tried to dislay the data in the Layout, I observed in Debud that ta_data was like this :
    FREED STACK:{A:2*TYPE=%_T00004S00000072O0000002784}
    And then "Eurêka !" 
    It is because
    ta_data is pointing on a local variable (ta_usr01) which has long gone (since the end of OnInitialization event handler) 
    Everything went fine once I had declared ta_usr01 as a Page attribute (which means declared globally)
    I guess you experience the same kind of problem.
    Best regards,
    Guillaume

  • Extend/Change the Standard Fiori App code

    Hi,
    We have implemented FIORI App in our SAP landscape.After implementation app is running fine.I want the change the standard FIORI App code for a specific app like change the label,change the Background Image,Change the Font style etc.I googled and made changes according to the article provided.
    Steps done to change the Standard app code.
    1)Downloaded the source code and uploaded in eclipse.
    2)Created a Extension Project and replaced the entire view with my new view.
    3)Shared the project and submitted the changes in gateway system.
    4)Created semantic object and other things required to show the custom app on launch pad.
    5)But when I click on custom app developed on the Launch pad it is navigating to a blank screen with no UI elements.But standard app is working fine.
    So please tell me the correct procedure to change the app and show it on Launch pad.
    Tags edited by: Michael Appleby

    Hi Ritesh,
    Following are the steps I followed in extending a Fiori App.
    I am trying to extend HCM_LR_APV(Approve Leave request ) app.
    So I downloaded HCM_LR_APV BSP Application.
    I uploaded in Eclipse IDE .I created an Extension Project(ZHCM_LR_APV) for this.
    For testing I tried to change the Icon in one of the view.
    So I replaced the S3 view by placing the Original Code same and changing the Icon only.
    In Component.js file I gave the path to the parent application in Load function.See the below code for your reference.
    jQuery.sap.declare("hcm.mgr.approve.leaverequests.CUST_HCM_LR_APV_EXT.Component");
    sap.ui.component.load({
      name: "hcm.mgr.approve.leaverequests",
      url:"/sap/bc/ui5_ui5/sap/hcm_lr_apv",
    hcm.mgr.approve.leaverequests.Component.extend("hcm.mgr.approve.leaverequests.CUST_HCM_LR_APV_EXT.Component", {
      metadata: {
      version : "1.0",
      config : {
      "sap.ca.i18Nconfigs": {
      "bundleName":"hcm.mgr.approve.leaverequests.CUST_HCM_LR_APV_EXT.i18n.i18n"
      customizing: {
      "sap.ui.viewReplacements": {
      "hcm.mgr.approve.leaverequests.view.S3": {
      viewName: "hcm.mgr.approve.leaverequests.CUST_HCM_LR_APV_EXT.view.S3Custom",
      type: "XML",
    Then I submitted the changes and tested the Custom BSP Application.But I am getting the error as below
    Error Message:
    Failed to load resource: the server responded with a status of 404 (NOT FOUND) http://sapfiorisrvr.domain.com:portno/sap/bc/ui5_ui5/sap/zhcm_lr_apv_ext/Component-preload.js
    Thanks&Regards,
    Akhil Das

  • MVC-BSP as a logical link

    Hi All,
    I have a MVC-BSP and Iu2019m looking for the information how can I link this BSP (like a logical link) in the crm2007.
    Can anybody help me?
    Thanks & Regards

    Hi,
    According to ur requirement u need to create a transaction launcher for ur BSP-MVC . Follow the bellow steps.
    1. Define URL parameters for transaction launcher for ur BSP application and pass ur main controller name and main page name like
    Application - MAIN.Do
    Page         - MAIN.HTM
    2. Create a transaction launcher of URL type and pass URL parameter id over there.
    3. After follow all steps for transaction launcher like logical link, assign logical link id to direct link group  and assign to navigation bar profile.
    4. In ur business role check the checkbox for this logical link from visible direct link.
    Now test ur transaction launcher. It will work.
    Regards
    Gaurav

Maybe you are looking for