Problem with BSP MVC

Hi all,
I had a bsp application which is now running live in the organization. Recently, I got a problem report back from user, which is causing data loss.
After the support team check the problem and found out the source of the problem. Let me briefly state the problem here. The application is using bsp mvc and it is stateful.
First, when a user open the application in IE, it is a timesheet entry application, first page will display the time entry of that user for current month. let say the default selected month is September. then if the user wan to compare the entry with previous month, then he will open a new window (ctrl + N) or new tab (ctrl + T), then open the application again. Because of using SSO, the application will not prompt user to login again and will directly lead user to the time entry page. then the user change the month to August for the second new page.
after the user change the month to august, it will refresh the model that hold the data of the month. means the model now carry August calendar. then the user go back to the first window or the first tab with september time entry, he try to add in new data into that time entry, and save. when it is saved, the september data will go into the August data not go into the September data. this causing data loss in September.
If I tried this again with not using (ctrl + N) or (ctrl + T) but is open another new IE broswer instance, then it wont give this problem at all. because it create another new model to hold the calendar data. It work fine as long as the user not open two or more windows or tab in a same IE instances.
Does anyone here meet this problem before or could provide any suggestion to solve this kind of problem? I cant simply changed the application to stateless because it already using worldwide and it will cause a lot of problem. Sorry if my question here was not clear enough.
Thanks you. (reward point will be given for helpful answer.)

Is there anyone can understand my problem?
Thanks you.

Similar Messages

  • Problem with BSP Application

    Hi all,
    We have three BSP applications running on Production Environment, but after applying Support Patches only two are running , and the third one is not running. But all three applications are running fine in Development, and Consolidation. Here are some inputs which we figure out while trying to fix this problem:
    1) When we point the Production Server to Test Server's Web Dispatcher all three applications executed well, and when we point the test server to Production Server's Web Dispatcher, two applications which were running fine executed, but the third one failed. So this excercise gave us a conculsion that problem is with Web Dispatcher of Production . but we couldn't figure what.
    2) After debugging both successful applicationa and failed application both are indeed passing some basic URL to HTML Viewer, here are the URL's
    Successful Application : https://sun109.pseg.com:443/sap/bc/bsp/sap/zhr_ta
    Failed Application :
    https://sun109.pseg.com:443/sap/bc/bsp/sap/zhr_poe
    (sun109 is host for Production Web Dispatchure)..
    and following are the URL's which i have got after i did right click on the HTML viewer when the application is pulled up.(In case of failed application i am getting blank page).
    SuccessFul Application:
    https://sun109.pseg.com/sap(bD1lbiZjPTEwMCZ0PVpQU0VHJnc9NjE1NzcyMCs=)/bc/bsp/sap/zhr_ta/ta_intro.htm?sap-htmlb-design=
    Failed Application:
    https://sun109.pseg.com/sap/bc/bsp/sap/zhr_poe
    One more point when i took the URL of successful application and changed the application name like this, and pasted it on browser :
    https://sun109.pseg.com/sap(bD1lbiZjPTEwMCZ0PVpQU0VHJnc9NjE1NzcyMCs=)/bc/bsp/sap/zhr_poe/default.htm
    it worked.
    So i think if we compare the URL's ( both input to Web Dispatcher and on properties) of both successful and failed ,  we notice somepart of URL is missing (some kind of encryption) is missing in failed application.
    I want to know why this conversion of URL is happenning , where and how can i fix this problem.
    Regards,
    Akash
    PS: It's very urgent.

    Hi,
    https://sun109.pseg.com:443/sap/bc/bsp/sap/zhr_poe
    is the url of the failed application and under SAPGui we are opening applications in HTML viewer control.This is the url which is passed to the HTML viewer control.
    Contrary, this is the URL of successful application
    https://sun109.pseg.com:443/sap/bc/bsp/sap/zhr_ta
    I have checked this URL while debugging, and this URL is getting passed to HTML Viewer control.
    Also, please let me know how to close the thread.
    Regards,
    Akash Modi

  • Problem with Bsp URL !!

    This is the first time that i create an Bsp and i have some problems.
    I created a new Bsp with one  Controller , one View and One Page with logic of control.
    In these pages I scribed little rows of codice . Then these operations I have created an extern alias and I have associated to it my Bsp (Services).
    Now I have some questions:
    The First is:
    1) How can i associate an URL to BSP and set an First page to Bsp?
    Another Questions I'll explicate after to resolve this one.
    Sorry for my English and I'll hope that Anyone will answer me.
    Thank You BP.

    HI BP,
    can you please elaborate more on what exactly you need.
    here is link for <a href="http://help.sap.com/saphelp_nw70/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm">BSP</a> help.
    regards
    -Kedar Kulkarni

  • Problems with BSP application using HTTPS in EP6.0

    We developed a custom BSP which uses HTTPS protocol and HTMLB tags.  The BSP page has a date field (htmlb inputfield of type date..which allows the user to pick a date).  If I run this BSP in its own browser window, clicking on the date field will display a calendar.  However, if I run this BSP as an iView in the portal (we use EP6.0) and click on the date, I see a Javascript error message (in the browser status area) that says "access is denied" and the calendar isn't displayed.                           
    Also, this BSP is a stateful application with the portal integration flag checked.  However the DSM terminator is not invoked when I close the iView.                                                                 
    If I change the BSP settings to use HTTP, I can run it as a portal iView without any such problems.  Has anyone experienced this and/or know how to resolve it?  Any feedback would be greatly appreciated? Thanks,                         
    Pradeep

    Hi Pradeep,
    You replied that you have "I fixed the date dropdown issue by specifying the theme in iView definition", could you please let us know where to specify the theme because when i ty to create the BSP iView i never get the option for specifying the theme,your assistance would be highly appreciated,do we have any Note on this issue.
    Regards,
    Rohit Pathak

  • House Bank number problem with BSP import

    Hi,
    I have a problem when i import an bank statement that i get an error that the house banknumber is not the same as in de import file. I believe the problem is that in de house bank definition in SAP there are dots (.) between the housebank number like 12.56.58.789 and in the import file on row :25 there are no dots between the number 125658789. Does anybody know how to solve this problem ? i tried something with the add-on format definition and find out that the field "AccountInfo" need some changes.
    The expression that is used in the bfp file is      (?<=:25:)[^\r\n]*(?=\r\n)
    Can somebody help me?
    THANKS
    Mark

    Hi Mark,
    The rule for importing data from a bank statement is that house bank account defined in B1 and the data filled into account number field should match bit by bit. So in your case there are two options:
    1. change the account number definition in B1 to remove all the dots.
    2. if that's impossible, you have to change the BFP file via Format Definition add-on to insert the dots into the pure digit series. that could be done by assigning a mapping method to the account number field.
    use concat() function and substring() function together. about the usage of the function ,you can refer to the online help of the tool.
    Cheers,
    Tedy

  • Problem with bank statement processing

    Hello,
    I have problem with BSP. When I try to add file formats to bank statement I have error - "You are not authorized to change the folder path [message 10003520-34]". I try to add file SAPBPESIB_CSB43.bfp from SAP portal. Path to file is C:\Program Files\SAP\SAP Business One\Attachments\. I have full permissions to group "Everyone" to that folder.
    Do you have any idea what can it be?
    Regards,
    Bartek
    Edited by: Darius Heydarian on Mar 28, 2008 11:22 AM.

    Hi, I have the same problem when working with local Sap B1 client and DB on the local computer (and connecting as a superuser). Can anyone help?
    May be this additional info will help to determine the problem:
    when working with SAP-client on the terminal server via remote desktop (and DB is on another server) and when I try to update FormatFilePath (in File Formats Setup window), SAP-clinet hangs on (for approximately 10 minutes ) and then I see that no changes were saved (I see button "Update" again, while expect to see "OK", and no changes were saved to DB). There are no error or warning messages..
    When I am updating FileFormat without setting FormatFilePath-column - everything is ok. (info about FileFormat is updated)
    Regards,
    Katrine

  • Problem with CIC0 transaction OK codes

    Hi Experts,
    We are using CIC0 transaction in CRM 3.1 system. As you know there is a button "Reset all fields" ( the one with a crooked arrow sign ) which is used to reset all the fields before entering the next business partner. This button is not working consistently. In my system, I am getting an OK CODE of "%_GC 117 1" when I click this button. But, when the actual user ( who is in a geographically different location ) clicks this button, he gets an OK CODE of "CSEARCH_DELETE". As a reslut I am not able to provide some functionality the user asked for. I checked the SAP GUI version, Patch Level, OS Version, and IE version and settings. There is no difference in these between my PC and user's PC. What could be the problem ? Is it due to some problem with BSP ? Please advise.
    Regards,
    Sameej T.K.

    OK CODE? Hmmmm... are you sure that BSP even in sight of transaction CICO, the one with the crooked behaviour? No ideas. This does not sound like BSP.
    But if you feel like experimenting, check whether it is language dependent (EN vs DE). This is just wild shot over my shoulder as I exit stage right.

  • Problem with index of numbers in BSP Front end

    Hello All,
    I am facing the below problem. Request your help.
    Scenario: When I am trying to add the projects in the Front end , I am facing the problem with the index of numbering of the projects.
    Example: If I am adding 6 projects ( at the max only 4 on each page i-e there are 2 pages ), then the index is wrongly numbered and the arrow (for direction of the pages) are wrongly displayed. The direction of the arrow is pointed to the next page rather pointing to the previous page and the index of numbering of the pages is wrong.
    Request you to please suggest if this is any code fault in the table maintainance activity in the backend (BSP).

    Hi Irina,
    If you mean the number range is skipping 10 numbers in between runs then its because of the buffering in the number range.
    To avoid the buffer influencing the number range, pass
    'X' to the function module parameter: IGNORE_BUFFER.
    This should resolve the problem.
    Cheers,
    Aditya

  • MVC Problem with getter method of table attribute in model class

    Hi,
    I am on 620 SP34. I am writing a bsp application with mvc. One of the model classes has an attribute of type table. I use this attribute in a htmlb-tableview and '//MODEL/ZMY_TAB' for data binding. If I try to activate a getter method for this attribute, the application dumps with exception <i>BSP exception: Structure component with name "ZMY_TAB" does not exist</i>. I find the SAP source, that raising this exception (see below). The source code looks like: <i>"I don't support getter methods for tables in attribute path"</i>! The setter method works fine, so I am at a loss. Has anyone of you wrote a getter method for an table attribute in bsp-mvc? Have I to consider anything special?
    Thanks,
    Carsten
    Main Program CL_BSP_MODEL==================CP
    Source code of CL_BSP_MODEL==================CM00Z
    METHOD IF_BSP_MODEL_BINDING~GET_ATTRIBUTE_DATA_REF
           * check if attribute exists for binding!                                   
             if exists_attribute( l_name ) is initial.                                
               return.                                                                
             endif.                                                                               
    * setter or getter defined? Not supported for DATA REF requests            
             if get_getter( attribute_name = l_name ) is not initial.                 
               raise exception type cx_bsp_inv_component                              
                 exporting name = l_name.                                             
             endif.                                                   

    You have two options:
    1. Make your attributes public. It should work fine.
    2. If you need to process the attribute values before it is used, you can make the attribute private but will need three methods
    GET_T_ZMY_TAB that returns the table
    SET_T_ZMY_TAB that sets the values
    GET_M_T_ZMY_TAB that returns DDIC information about the attribute. The same holds good for structures(Change to GET_S_ and GET_M_S_ ) and simple attributes(Change to GET_ and GET_M_).
    The set and get methods are kind of documented at http://help.sap.com/saphelp_nw04/helpdata/en/fb/fbb84c20df274aa52a0b0833769057/content.htm but there is no mention of the GET_M_ methods. I could not find one single document on the Model part MVC.
    Once I added the GET_M_XYZ methods to my attributes, my BSPs started to work fine.
    Cheers
    Sreekanth

  • BSP MVC with multiple components approaches

    Hello,
    I have developed in BSP with follows MVC. The BSP application had multiple subcontroller and one main controller. I had one model for each controller,
    but the models were "stored" on the level of the main
    controller.
    Is this the right way? Are there are other approaches?
    Regards & Thanks,
    Guido

    Hi,
    Do you mean to say that u have instantiated the subcontroller models in the main controller using the model data and assigning them to the views in ur subcontroller do_request method?If so it will work however a better approach is to instantiate one main model class (make different method in the model class to access the records from database)in the main controller and use it to assign to the view in the do_request method of the subcontroller.
    Hope this helps.
    Reward useful answers.
    Regards,
    Shrita.

  • Problem with iterator in tableview

    Hi, Im having a problem with an iterator in a tableview. Sometime ago I use an iterator in a BSP with flow logic, I created the class fill the methods GET_COLUMN_DEFINITIONS and RENDER_CELL_START. And worked fine.
    Now, Im working in another BSP and this time I wanted to use MVC, so I have been reading but cant figure it out what Im missing out.
    In the controller of my page I add the Interface IF_HTMLB_TABLEVIEW_ITERATOR
    I ridefine the methods GET_COLUMN_DEFINITIONS and RENDER_CELL_START (I think that you dont have to redifine GET_COLUMN_DEFINITIONS but did it anyway just in case).
    This is my RENDER_CELL_START
      IF NOT ( p_column_key = 'ICON' ).
        RETURN.
      ENDIF.
      FIELD-SYMBOLS: <row> TYPE ANY, <col> TYPE ANY.
      DATA: ti_results TYPE ZBSPREP_VEND_T,
                 wa_results TYPE ZBSPREP_VEND.
      ASSIGN p_row_data_ref->* TO <row>.
      ASSIGN COMPONENT p_column_key OF STRUCTURE <row> TO <col>.
      wa_results = <col>.
      DATA: html_bee TYPE REF TO CL_BSP_BEE_HTML.
      CREATE OBJECT html_bee.
      LOOP AT it_results INTO wa_results.
        icon = CL_BSP_MIMES=>SAP_ICON( id = 'ICON_GREEN_LIGHT' ).
      ENDLOOP.
      p_replacement_bee = CL_HTMLB_IMAGE=>FACTORY( id = p_cell_id src = icon ).
    In my table view the column ICON doesnt show anything and the rare part is if I put breakpoint in the method and execute the page doesnt stop.
    So I dont know if Im missing something.
    My tableview layout is this:
    <htmlb:tableView id             = "Monitor"
                                     selectionMode  = "SINGLESELECT"
                                     onRowSelection = "rowSelection"
                                     table          = "<%= it_results %>"
                                     iterator        = "<%= iterator  %>"
                                     design         = "ALTERNATING"
                                     filter         = "SERVER"
                                     sort           = "SERVER"
                                     headerVisible  = "FALSE"
                                     footerVisible  = "FALSE">
    I declare a attribute iterator TYPE IF_HTMLB_TABLEVIEW_ITERATOR.
    Someone could give a hand ?

    Solved, I forget to set the attribute of the view in the REQUEST Method.
    result_view->set_attribute( name = 'iterator' value = me ).

  • Problems with F4 Value Help in NW2004s Portal

    Hello,
    we are having some troubles with the F4 ValueHelp Extension from the Advanced BSP Programming book (and the blogs of course).
    We've implemented the solution on a 4.7 backend and portal 6.0. No problems there, everything was working fine.
    We now moved to erp2005 (WebAS 700) and NW2004s Portal (7.0).
    The popup shows and I can select entries from the list. But when clicking the ok icon a javascript error is thrown stating that 'parent.document.getElementById(...)' is null or no object.
    I think the problem is, that by making a call to 'parent' we are searching in the portal frame and not the BSP. There (in the portal frame) the element is not known so the error is thrown.
    I allready changed from the dialog_ie6.js provided on the BookCD to the one delivered by SAP. Did nothing regarding the error.
    I also tried changing ZCL_BSP_M_INPUT_HELP->BUILD_ACCEPT_SELECTION_SCRIPT. I changed all the "parent.document.get..." "to document.get...". The error message was still the same, 'parent.document.getElementById(...)' is null or no object.
    So now I'm kind of stuck. If I try the example outside the portal everything works as expected. So this clearly seems to be a problem with the portal integration. All involved BSP-Apps are marked as "supports portal integration".
    Any ideas on this topic?
    Thanks and kind regards,
    Alexander Sperling

    I have a working solution to the problem.  It isn't the nicest solution because it will probably require some modifications to the application that hosts the value help, but we will get to that in a second.
    I tried many different ways to come up with a solution that would still work via JavaScript. The portal is now loading the popup javascript in the master frame.  It registers event handlers so that if any application triggers a popup internally it "hi-jacks" the event.  So regardless of what I change in the BSP javascript library, it gets overriden by the portal one. The portal also now even enforeces its theme on the inner page in the popup.  Truly the portal takes complete control over the inner html of the popup.
    To make things worse the popop has not path to reach the source that triggered it.  The source objects are tracked in the javascript, but because the master frame takes over; the popup window only has access and visibility to the master frame and the navigation frame.  In essence in the DOM it is now higher in the stack than the object that actually triggered it. 
    Web Dynpro gets around this because it doesn't use any client side mechanisms to communicate it results back to the source frame. Web Dynpro has the luxury of always being stateful and therefore can make certain assumptions that would never work in BSP.  The hi-jacking is an excellent solution for Web Dynpro.  The portal can then override the functionality of Web Dynpro - providing the new functionality of floating the dialog box over the entire portal - without having to make any changes to the Web Dynpro Framework.  However they never had our little BSP solution in bind obviously.
    It might be possible to completely rewrite the popup_ie.js and popup_ns.js to use all different event, method and variable names.  This separate version could then provide complete separation from the portal script. However this is just a theory. I'm afraid that I wouldn't have the bandwidth to rewrite the entire script right now so I focused on a quicker solution.
    The only approach that I could come up was to follow the Web Dynpro approach and return to the server with the value. To do that I used Portal Eventing.  Portal Eventing allows us to pass a value to the source frame regaurdless of our relative positions in the DOM. 
    In my inner BSP application for the value help (ZES_VALUEHELP), I made the following change in the model method BUILD_ACCEPT_SEL_SCRIPT_V2.  At line 141 I changed the logic.  Instead of using JavaScript to write the selected value back into the source element, we will just trigger a Portal Event:
    ****With an InputField we write the contents directly back into the element
          ELSE.
            CONCATENATE me->js_close1
            `portalFireEvent('com.sap','`
            me->element_id
            `',"`
            key
            `");`
             INTO me->js_close1.
            EXIT.
    The other change is within the Element handler class for inputHelpV2 - ZCL_ES_BSP_ELMNT_INPUT_HELP_V2.  We need to register the listener for the Portal Event. Therefore in DO_AT_BEGINNING we will add the follwing at line 23 (right after we place the Element Id into the URL Parameters Table.
      data: portal_event type ref to cl_portal_event.
      portal_event = cl_portal_event=>factory(
        name = <wa_params>-value
        namespace = 'com.sap' ).
      while m_page_context->element_process( element = portal_event ) = co_element_continue.
      endwhile. "End portalEvent Render
    Overally using the portal eventing actually is an intersting approach.  There is only one drawback, now we have a server side event.  That being the case, our application now needs some event logic to process this event and populate the value. Depending upon if you are using MVC, Data Binding, or Flow Logic this could vary - and would have to handled by each application. The nice thing about the old approach was that it all happened via JavaScript on the Frontend and didn't require the application programmer to do anything - that was obviously its weakness as well.

  • Problem with server side cookie

    Hi, I have a problem with a server side cookie. I'm trying to store a cookie trough the  cl_bsp_server_side_cookie=>set_server_cookie method in the OnInitialitation event handler of a bsp (my bsp application is non mvc) and then to retrieve this cookie trough the  cl_bsp_server_side_cookie=>get_server_cookie method in the OnInputProcessing event handler of the same bsp. In this cookie i'm storing a internal table but i'm not getting it when i invoke the get_server_cookie method.
    This is the source code that i'm implementing:
    OnInitialitation:
    wa_comunnication_data-mobile = wa-mobile.
              wa_comunnication_data-telefono = wa-tel_number.
              wa_comunnication_data-email = wa-email.
              APPEND wa_comunnication_data to comunnication_data.
               cl_bsp_server_side_cookie=>set_server_cookie(
                  EXPORTING
                   name = 'cook_comunnication_data'
                   application_namespace = 'NONE'
                   application_name = 'NONE'
                   username = 'NONE'
                   session_id = runtime->session_id
                   data_value = comunnication_data
                   data_name = 'comunnication_data'
                   expiry_time_rel = 720 ).
    OnInputProcessing:
    cl_bsp_server_side_cookie=>get_server_cookie(
          EXPORTING
           name = 'cook_comunnication_data'
           application_namespace = 'NONE'
           application_name = 'NONE'
           username = 'NONE'
           session_id = runtime->session_id
           data_name = 'comunnication_data'
          CHANGING
           data_value = comunnication_data ).
         READ TABLE comunnication_data INDEX 1 INTO wa_comunnication_data.
    regards, marcel.

    Why do you need to use cookies in the same BSP Application?
    Try to use below:
        username              = sy-uname
        application_name      = runtime->application_name
        application_namespace = runtime->application_namespace
    <i>*reward each useful answer</i>
    Raja T
    Message was edited by:
            Raja Thangamani

  • Rendering problem with Internet Explorer

    Hi all,
    i have a BSP with MVC, HTMLB and Design2003.
    The table rendering in the IE requires 15sec.
    With Firefox the rendering requires only 1sec.
    The table has 100rows and Buttons in it.
    has anyone an idea what's the problem with the IE-rendering?
    greetings,
    Markus

    Hi,
    - the IE Version is 6.0 SP2 on WinXP
    - before and after the table are some buttons only.
    - i use no htmlb:gridlayout or phtmlb:matrix
    - the table is realized with <htmlb:tableView>
    in IE, I see that the response is finish but the IE displays for maybe 15sec. a grey screen and after that time I see my page. In Firefox I see my page immediately!
    greetings,
    markus

  • Problem with roles in CRM 5.0 PC-UI

    Hi everybody!
    I have a problem with CRM 5.0 PC-UI.
    When I have user profile SAP_ALL, BSP's are showed correctly.
    When I'm using restricted profile (for example role 'Account manager'), for some BSP's I'm receiving this error:
    Exception Class CX_CRM_BSP_NOAUTH
    Error name
    Program name CL_CRM_BSP_FRAME_MAIN=========CP
    Include CL_CRM_BSP_FRAME_MAIN=========CM003
    ABAP Class CL_CRM_BSP_FRAME_MAIN
    Method DO_INIT
    Row 170
    Long Text --
    I've explored the role SAP_PCC_ACCOUNT_MANAGER in pfcg transaction, and realized:
    on tab 'Menu' in section 'Portal Roles'
    when I click on service: HS PC-UI PC-UI_CRMD_MKTSEG
    In section 'External Service'
    There are only '?????????' in the field 'Type of Ext. Service' instead of 'PC-UI'
    and strange chars in the field 'Service'.
    But for example service: HS PC-UI PC-UI_CRMM_CONTACT is OK, and I'm receiving BSP.
    I think, that something important is missing.
    Do you have any idea how to solve this problem?
    Thanks
    Radka

    I am not sure whether you resolveed this issue already..
    Under Portal Roles  you find PCUI external services which refers to auth objects in order to access PCUI application.
    Read thru the section "Tracing Authority Objects of Blueprint Applications" under PCUI cook book .
    Thanks,
    Thirumala.

Maybe you are looking for

  • How can I enter the data from the recordset into your insert query

    Hi i would like to know how I can enter the data from the recordset into your insert query without using a  hidden field. thanks ------------------------------------------------------------------------------------Below is the code--------------------

  • I cant open my .CR2 files with photoshop verion CS5.1

    Hi i recently photographed an event and I used the Canon Rebel T3i. I also stored all the Images with using RAW format. When I went to edit my photos i could not open them with Photoshop. I could open the JIP files but not the RAW camera files that w

  • VAT for FINLAND

    Hi all, when i create an invoice by VF01, i can't view VAT (VBRK-STCEG is blank) for finland customers. I try with note 91109 and 1015818 but nothing. Any ideas? Thanks

  • Trusted Recon

    Hi, For trusted recon Where exactly i need to changes in OIM for the first time recon.

  • HitTestObject with a movieCLip child

    Hey all I've been banging my head around this since yesterday and I can't really understand what's the problem... 1. I have created on stage three movieclip from the library called Eve, Sta, and Act... If Eve or Act touch Sta they each snap ina speci