Do_handle_event

hi Experts,
              i have writen a select query on the  event of button click in do_handle_event.but ,it gets activated,but while executing it gives me an exception error on select query line.....
so where should i write the select query....
IF EVENT_ID EQ 'submit'.
select single fldate seatsocc into it_air from sflight
where CONNID = '0017'. " a_code.
navigation->goto_page('cont2.do').
plz suggest sumthng....
Message was edited by:
        vaishali rana

Hi Vaishali,
Check the below code.
TYPES: BEGIN OF T_FLIGHT,       
         FLDATE   TYPE SFLIGHT-FLDATE,
         SEATSOCC TYPE SFLIGHT-SEATSOCC,
       END OF T_FLIGHT. 
DATA: X_AIR TYPE T_FLIGHT.
SELECT SINGLE FLDATE
              SEATSOCC
         INTO X_AIR
         FROM SFLIGHT  
        WHERE CONNID = '0017'.
In your code IT_AIR must not be an internal table. It should be a structure or a work area. Because you are selecting a single record.
Your structure must have only two fields( FLDATE and SEATSOCC ) if you are selecting in the above mentioned way.
Please make sure that your structure is in propper format.
Please close the post if it solves your problem.
Thanks,
Sreekanth Gollamudi

Similar Messages

  • Pop Up Error using MVC method after Validation in  DO_HANDLE_EVENT Method

    Hi Experts,.
    I am rather new to BSP applications and I am working using MVC at the moment. I have a requirement which apparently is simple, but am yet to get that done successfully.
    I have a couple of buttons on my BSP View screen, on click of these buttons, the User Name would be verified with entries in a Custom table and if the User Name is not found, an error message would pop up stating, "You are not Authorized to use this option".
    On click of the button, the event which is triggered is handled in the DO_HANDLE_EVENT Method of the Controller for the view.
    The check is performed in that method. Thereafter the method DO_REQUEST follows automatically which loads the view yet again. I want to throw a pop up error message at this instance if the User Name was not the authorized one.
    I have used Java Script to throw pop up message but only in case of field content validation where I did not need to navigate away from the view for the validations. But how do I bo about for this example.
    Any help would be highly appreciated.
    Regards,
    Subhrangsu

    Hi
    1. You can call the view in pop-up because you will be calling the controller using open.window.
    Here is the sample code:
    method DO_REQUEST .
      data:
            li_vw           type ref to   if_bsp_page,
            lv_form_field   type          string,
            li_md           type ref to   zcl_model01.
      dispatch_input( ).
      li_md ?= get_model( 'm01' ).
      lv_form_field = request->get_form_field( 'invoice_create' ).
      if lv_form_field is initial.
    *------ Request to display main page
        li_vw = create_view( view_name = 'main.htm' ).
        li_vw->set_attribute( name = 'model' value = li_md ).
        call_view( li_vw ).
      elseif lv_form_field eq 'true'.
    *------ Request to display Invoice page in pop-up
        li_vw = create_view( view_name = 'invoice.htm' ).
        li_vw->set_attribute( name = 'model' value = li_md ).
        call_view( li_vw ).
      endif.
    endmethod.
    Layout :
       function do_Invoice()
          { var s=0; r=1; w=300; h=300; x=screen.width/2;
            x=x-w/2;
            var y=screen.height/4;
            y=y-h/2;
            popUp=window.open('main.do?invoice_create=true','win','width='+ w
            +',height='+ h +', left=' + x +',top='+ y +');
    Regards,
    G. Nikhil Kumar

  • Do_handle_data vs do_handle_event

    Hi experts ,
    can we explain differences b/w  Do_handle_data vs do_handle_event

    DO_HANDLE_DATA => This is the very first method that the runtime would come to after user has made inputs on the view or a user action has been triggered. This method has an importing parameter called FORM_FIELDS. You can check this see which field have been changed on the view.
    DO_HANDLE_EVENT=> This is the event handler of the controller. From here the controller is routed to the different event handler methods depending on the user actions triggered.
    Regards
    Kavindra

  • ICCMP_BT_FOUP - How to call meth. 'DO_HANDLE_EVENT other Component/View?

    Dear Experts,
    when changing the field CONC_KEY-BTN in view BTSHeader in component ICCMP_BTSHEAD (Interaction Record Component)
    the method DO_HANDLE_EVENT of the view controller is called.
    The standard coding of the method is:
    method DO_HANDLE_EVENT.
    * Eventhandler dispatching
        CASE htmlb_event_ex->event_server_name.
          WHEN others.
            global_event = super->do_handle_event( event           = event
                                                   htmlb_event     = htmlb_event
                                                   htmlb_event_ex  = htmlb_event_ex
                                                   global_messages = global_messages ).
        ENDCASE.
    endmethod.
    The component ICCMP_BTSHEAD is used in component ICCMP_BT_INR. Also visible in component ICCMP_BT_INR is the component ICCMP_BT_FOUP (View:CREATEFOLLOWUP) used to create Follow-Up Documents like Service Tickets.
    What I want to is that, if the value of the field CONC_KEY-BTN is '1', the fields of the view CREATEFOLLOWUP follow-up-document have to be not modifiable. If the value of field CONC_KEY-BTN is '2' the fields are modifiable and it is possible to create a Follow-Up Document. That is my basic requierement. Better would be if the view CREATEFOLLOWUP would not visible if the value of the field CONC_KEY-BTN is '1'. But that would be more difficult I think?
    To make the fields not modifiable, I think I have to modify the Get and Set Methods of the specific Atributes. But my problem is how can I modify the above mentioned method 'DO_HANDLE_EVENT' (View: BTSHeader) so that the event 'DO_HANDLE_EVENT' of the view controller of view CREATEFOLLOWUP is called at the same time (The problem is that the 'DO_HANDLE_METHOD of view CREATEFOLLOWUP is not called when changing the field CONC_KEY-BTN of the view BTSHeader ).
    Best Regards
    Oliver

    Hi Oliver,
    In my opinion, the logic is not to be controlled at the do_handle_event level. ICCMP_BT_FOUP is created as a component usage right? So  in the component ICCMP_BT_INR, there will be a navigation link defined with source as outbound plug of  ICCMP_BT_INR and  target as inbound plug of  ICCMP_BT_FOUP. In this outbound plug, you can fill the param IV_DATA_COLLECTION as follows:
    data: lr_current type ref to if_bol_bo_property_access,
                        lr_col      type ref to if_bol_bo_col.
      lr_current = me->typed_context->YOUR CONTEXT NODE->collection_wrapper->get_current( ).
      check lr_current is bound.
      create object lr_col
        type
          cl_crm_bol_bo_col.
      check lr_col is bound.
      lr_col->add( lr_current ).
    Now pass this collection to the target inbound plug.
    In the inbound plug of the target, you can control the logic based on the value of the attribute field in the collection.
    I think this should work.
    Regards,
    Nisha

  • Global_message in do_handle_event

    Hi experts,
    I think I have a pretty easy question:
    I use the global_message parameter in the do_handle_event of my controller.
    My question is:
    How can I access my messages in my views to put out error messages or systemmessages?
    I tried it with:
    1) page->messages->assert_message ...
    2) passing attribute messages of controller to view sideattribute ...
    but both did not work.
    Any suggestions?
    Best regards Volker
    **do_handle_event**
    * error handling
        if lv_errmsg is not initial.
          data lv_errmsg2 type string.
          concatenate 'Fehler:' htmlb_event->name ';' htmlb_event->server_event '; Nachricht:' lv_errmsg into lv_errmsg2 separated by space.
          global_messages->add_message( condition = 'user'
                                        message = lv_errmsg2
                                        severity = 1 ).
        endif.
    **user_view**
              <htmlb:textView text      = "<%= <b>page-></b>messages->assert_message( 'user' ) %>"
                              encode    = "true"
                              textColor = "red" />

    Hi Volker,
    I always use the MESSAGE attribute of the controller - that is automatically known in the page:
          me->message->add_message( condition = 'user'
                                        message = lv_errmsg2
                                        severity = 1 ).
    I never used the methods parameter but I would guess you can share messages between subcontroller whereas subcontrollers all point the same instance as main controller's attribute MESSAGE.
    Regards,
    Sebastian

  • MVC: DO_HANDLE_EVENT

    Ok this is a silly one and I'm just too close to it I think.
    I have a View/Controller: header.htm/header.do and one View/Controller: admin.htm/admin.do
    In my header I put a dropdownlist and I call header from inside my admin.do
    <bsp:call url="header.do" comp_id="hd" />
    But the DO_HANDLE_EVENT for header.do never activates when I select from the dropdownlist only DO_REQUEST,  dispatch_input( ) never goes into DO_HANDLE_EVENT??
    What am I doing wrong?

    OK I am calling ADMIN.DO via the URL
    ADMIN.DO loads the VIEW "admin/default.htm" which has a BSP call
    <%@page language="abap" %>
    <%@extension name="bsp" prefix="bsp" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="Solution Central" >
        <htmlb:form method = "POST"
                    id     = "frmDetail" >
          <bsp:call comp_id = "hd" />
          <htmlb:group id      = "myG"
                       design  = "sapcolor"
                       tooltip = "Input selection"
                       width   = "100%" >
            <htmlb:groupHeader>
              <htmlb:textView text   = "Administration Tasks"
                              design = "HEADER1" />
            </htmlb:groupHeader>
            <htmlb:groupBody>
            </htmlb:groupBody>
          </htmlb:group>
          <xhtmlb:protectDoubleSubmit text   = "Loading..."
                                      active = "true"
                                      title  = "Please Wait" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    The DO_INIT of ADMIN.DO (ZCL_C_ADMIN)
      model ?= create_model( class_name = 'ZSC_CL_M_MAIN'
                               model_id = 'mf' ).
      header_controller ?= create_controller( controller_name = 'header.do'
                                              controller_id   = 'hd' ).
    DO_REQUEST (ADMIN.DO)
    * Object definitions
      data: iterator TYPE REF TO ZSC_TABLE_ITERATOR_SYSTEMS.
    * Create objects
      CREATE OBJECT iterator TYPE ZSC_TABLE_ITERATOR_SYSTEMS.
    * Create pointer to model
      model ?= get_model( 'mf' ).
    * Data definitions
      data: default_view type ref to if_bsp_page.
    * Start event handling
      dispatch_input( ).
    * Create view
      default_view = create_view( view_name = 'admin/default.htm' ).
    * Call view
      call_view( default_view ).
    DO_REQUEST (HEADER.DO)
    * Data definitions
      data: default_view type ref to if_bsp_page.
    * Create view
      default_view = create_view( view_name = 'header.htm' ).
    * Set Attributes
      default_view->set_attribute( name = 'lv_name'
                                   value = m_usrname ).
      default_view->set_attribute( name = 'lv_fullname'
                                   value = m_usrfullname ).
      default_view->set_attribute( name = 'lv_lang'
                                   value = m_usrlang ).
      default_view->set_attribute( name = 'lv_lang_graphic'
                                   value = m_usrlang_graphic ).
      default_view->set_attribute( name = 'lv_id'
                                   value = m_usrid ).
      default_view->set_attribute( name = 'lv_dept'
                                   value = m_usrdept ).
      default_view->set_attribute( name = 'lv_global_menu'
                                   value = m_global_menu ).
    * Call view
      call_view( default_view ).
    My page displays wonderfully and I see everything with all my data.
    It's just not jumping in to process that dropdownlistBox
                          <phtmlb:comboBox id                 = "MyGlobalMenu"
                                           table              = "<%= lv_global_menu %>"
                                           nameOfKeyColumn    = "menu_id"
                                           nameOfValueColumn  = "menu_img"
                                           nameOfValue2Column = "menu_text"
                                           onSelect           = "MyGlobalMenuSelect" />
    Here the code is ComboBox but either way.  The DO_HANDLE_EVENT just doesn't fire.

  • Trigger DO_HANDLE_EVENT

    All,
    I have 2 BSP appl, one with flow logic say ZFL & another one MVC say ZMVC. When I execute the ZFL, I wanted to navigate to ZMVC & trigger particular event(DO_HANDLE_EVENT) of ZMVC & control should remain in ZMVC.
    Hope this is clear. How to achieve this?
    Pls guide me..
    Regards,
    BM

    Durai Raj,
    without any user action in ZFL/page ? --->Yes
    do you want to show the ZMVC page to user or automatically the ZMVC page should trigger DO_HANDLE_EVENT upon loading ZMVC page? --> I wanted to trigger the DO_HANDLE_EVENT automatically and outcome will be shown to user.
    And one more, I dont wanted to show any page from ZFL.
    Regards,
    BM

  • On press enter what function should call  for DO_HANDLE_EVENT

    hi
    I want to do operations on press enter so wat is the
    code for press enter?
    And how i get this event in ONINPUTPROCESSING .
    and i m using HTMLB
    Thnks

    Hi Prashant,
    What kind of operations..is it for an inputfield?If yes then you can use the attribute SubmitOnEnter of inputfield.
    or you can handle the enter key event using javascript.
    Have a look at
    [this thread|Re: Hitting the "Enter" Key] and [this thread|How to submit the page on hitting the enter key]
    Serach forum , there are lots of threads on this.
    Regards,
    Anubhav

  • Unable to capture onClick event of htmlb:image in a controller

    Hi,
    I am trying to capture onClick event of an htmlb:image (which is present in my view) in DO_HANDLE_EVENT method of my controller.
    Surprisingly, when I click the image, page does refreshes. But the event in not captured in do_handle_event method. Control never reaches that method. Whereas if I put onClick event of a button, it is easily captured in do_handle_event method.
    Ex. code in my view is:
    <%@page language="abap"%>
    <%@extension name="bsp" prefix="bsp" %>
    <%@extension name="htmlb" prefix="htmlb"%>
        <htmlb:image id      = "searchimg"
                     src     = "consvalue.jpg"
                     onClick = "search"  />
        <htmlb:button id="searchbutton" onClick="search"
                                     text="Event Test"/>
    Now, the button event is captured, but not the image event.
    Any idea why this might be happening?
    Regards,
    Kaushal

    Hi Kaushal,
    are image and button enclosed by <htmlb:form> ?
    Please post your of do_handle_event, where you look for the event.
    Regards,
    Sebastian

  • Issue with tableview data storing

    Hi,
    We are using MVC model, it has view-model-main controller and sub controller. I am displaying
    4 columns on the tableview where 2 columns are editable. when i click update button on the screen
    i have called do_handle_event method on sub controller, when i debug the code i am getting
    table as initial always. I am not sure what am i missing here..can any one help me ?
    Here is code
    method DO_HANDLE_EVENT
    data: o_event    type ref to cl_htmlb_event,
          visible_row type int4,
          visible_last_row type int4,
          visrow_count type int4 value 10,
          it_osha like line of it_mfgprf_osha,
          wa_osha type zpp1_mfgprf_osha,
          o_app  type ref to zcl_mfg_perf.
    o_event = cl_htmlb_manager=>get_event( request ).
        if o_event is not initial.
            if o_event->id = 'osha_update'.
                  data: tv type ref to cl_htmlb_tableview.
                  tv ?= cl_htmlb_manager=>get_data(
                              request      = runtime->server->request
                              name         = 'tableView'
                              id           = 'it_osha_history' ).
                    if tv is not initial.
                    data: tv_data type ref to cl_htmlb_event_tableview.
                    tv_data = tv->data.
                if it_mfgprf_osha is not initial.
                    visible_row = tv_data->visiblefirstrowindex.
                    visible_last_row = visrow_count + visible_row - 1.
                    loop at it_mfgprf_osha into it_osha
                          from visible_row to visible_last_row.
                    it_osha-zosha_ytd = tv_data->get_cell_value(
                                row_index    = sy-tabix column_index = 3 ).
                     endloop.
               endif.
                   endif.
                 endif.
         endif.
    view
                  <htmlb:tableView id              = "it_osha_history"
                                   table           = "<%=o_app->it_mfgprf_osha%>"
                                   iterator        = "<%=o_cont->osha_iterator%>"
                                   headerText      = "OSHA History"
                                   headerVisible   = "True"
                                   sort            = "SERVER"
                                   onHeaderClick   = "sort"
                                   visibleRowCount = "10"
                                   width           = "100%"
                                   design          = "ALTERNATING"
                                   allRowsEditable = "<%=o_app->ALLOW_RECORD_EDIT%>" />
    Thanks!
    Lakshmikandh

    Hi Guys,
    Thanks for valuable suggestion. Let me give you over view of application. We have sub-controller
    for all views, one controller and one model for those sub controllers and views.
    Hi Sebastian,
    Are you suggesting to use new model for all table view iterator ?
    If i use iterator on that one model i can't use
    that for other table view iterator..right ?
    Hi raju,
    If i get all the values on 'do_handle_data' method in the controller class, can i use that
    for other table view iterator if i create a new table view iterator?  can i have some
    outline(example coding) of passing those values to sub controller ?
    Thanks in advance.
    Lakshmikandh

  • Unable to create tickt in service desk - Solution manage.

    Hello,
    I have implemented service desk ( Solution manager) and It is working fine for most of the system but i am getting error while creating a ticket in service desk for one system.
    Due to some RFC connection problem i have regenerated the RFC ( trusted , Read and TMW) from Solman to Satellite system.
    and now I am not bale to create ticket for that system.
    Error message :
    The URL http://cismp.cargotec.com:8014/sap/bc/bsp/sap/dswpnotifcreate/msg_new.do was not called due to an error.
    Note
    The following error text was processed in the system SMP : Error SYSTEM_CORE_DUMPED occured. P1=11
    The error occurred on the application server cismp_SMP_14 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: MSG_SUBMIT of program CL_DSMOP_BSP_NOTI_MODEL=======CP
    Method: DO_HANDLE_EVENT of program CL_DSMOP_BSP_NOTI_CTRL========CP
    Method: DISPATCH_INPUT of program CL_BSP_CONTROLLER2============CP
    Method: DO_REQUEST of program CL_DSMOP_BSP_NOTI_CTRL========CP
    Method: DO_REQUEST of program CL_BSP_CTRL_ADAPTER===========CP
    Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_BSP===============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    Can any body guide me what should be done to resolve the issue.

    Hi Prakhar,
    As i mentioned workcenter is working fine for all other systems. and user have all roles same as in other  systems.
    BP is created and we are trying to create ticket from Solman itself  so there is no point to maintain bCOS_CUST table.
    but still we are not able to create ticket only for one system.
    Error Message :
    Error when processing your request
    What has happened?
    The URL http://cismp.cargotec.com:8014/sap/bc/bsp/sap/dswpnotifcreate/msg_new.do was not called due to an error.
    Note
    The following error text was processed in the system SMP : Error SYSTEM_CORE_DUMPED occured. P1=11
    The error occurred on the application server cismp_SMP_14 and in the work process 1 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: MSG_SUBMIT of program CL_DSMOP_BSP_NOTI_MODEL=======CP
    Method: DO_HANDLE_EVENT of program CL_DSMOP_BSP_NOTI_CTRL========CP
    Method: DISPATCH_INPUT of program CL_BSP_CONTROLLER2============CP
    Method: DO_REQUEST of program CL_DSMOP_BSP_NOTI_CTRL========CP
    Method: DO_REQUEST of program CL_BSP_CTRL_ADAPTER===========CP
    Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_BSP===============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system SMP in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server cismp_SMP_14 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 1 in transaction ST11 on the application server cismp_SMP_14 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 011 -u: XABHYABH -l: E -s: SMP -i: cismp_SMP_14 -w: 1 -d: 20091006 -t: 141511 -v: RABAX_STATE -e: SYSTEM_CORE_DUMPED
    Regards,
    Bhavesh

  • Creating a new method in an enhanced component class implemetation

    Hello Experts,
    I am trying to create a new method in the enhanced component(BT115IT_SLSO) implementation class ( ZL_BT115IT__ITEMS_IMPL)to run our custom functionality. But somehow when I put a breakpoint and debug while I add a product to the sales order the method doesnt get trigerred.
    Is there some thing which I have to do  get this trigerred ? I just added a ned method and placed some custom code in it. Do I have to invoke it anywhere ?
    Pls help me out. I am new to Web UI.
    Thanks

    Hi Mavrick,
    As you are performing some action like item addition , there you need a method called as " event handler " to handle the event and perform the required actions.
    Place a break point in DO_HANDLE_EVENT method , and you will know the exact event handler method which is getting triggered . or if you are defining a new event ( by adding any new button) you should create a event handler method using wizard giving the same name which is defined on_click field of the button as it is case sensitive.
    Regards,
    Nithish

  • Data validation at the UI level

    Hi
    I have a requirement like i need to validate the input data at the UI level.
    If the data is valid ,only then it should be allowed to be saved.
    If someone knows how to do the same.
    I have seen a method DO_VALIDATE_INPUT method in View controller (IMPL) class.No clue on how it is being used.
    Regards
    Leon

    Hi Leon,
    Are you talking about the Webclient as UI or something else??
    There are 2 options:
    1) You use the Get and Set methods of your context node attributes (The ...CN01 etc classes) (to be found under your IMPL class --> attributes TYPED_CONTEXT(...CTXT class) and in there you should have some ...CN01, CN02, etc. classes. Here are all the GET and SET methods. (you could also go via the views' attributes, this is the shortest way).
    Within the Get (put the value in the model) and Set (get the value from the model)methods you could do some checks and show an error.
    2) Use the Do_handle_data method of your IMPL class. Once data is entered in the screen, this method is always called when another action is performed (pressing a button). Here you can easily check the content of fields.
    3) Use the Do_handle_event method of your IMPL class. This method is called when there is an event that is being triggered (save button is pressed). You can redefine this method and before really saving the data you can perform your checks.
    Hope this helps.
    Kind regards,
    Micha

  • Want to read Field value set by Value help

    Hello,
    I have BSP View which is using Value help extensions for one of the input. The search help is based on the Elementary Search Help which is further based on Z-Table. In my BSP view [IE] I am able to popup the Search help and able to select the Value from list of choice. The selected value gets reflected in the Input field of browser. The problem is I am not able to capture the selected value in Event handler. I need to capture this value and get the related data in other input fields [which are display only]. How to do this?
    I even tried getting the value in the Javascript, but unable to assign the Javascript variable to my BSP View attribute or Controller attribute.
    Thanks in advance.

    >Do I have to trap it in DO_HANDLE_Event by doing Get_Form_Fields??
    If you are using MVC and data binding you don't have to do anything.  The field values will be brought in automatically for you.
    However in any MVC application, the highest level controller should always contain a small block of code in the redefinition of the DO_REQUEST method.  It is:
    if input is available, dispatch this input to subcomponent.
    * this call is only necessary for toplevel controllers.
    * ( if this is not a toplevel controller or no input is present,
    *   this call returns without any action)
      dispatch_input( ).
    * if any of the controllers has requested a navigation,
    * do not try to display, but leave current processing
      IF is_navigation_requested( ) IS NOT INITIAL.
        RETURN.
      ENDIF.
    This code is critical for properly dispatching events through the controllers.  It is also the code that triggers the MVC runtime to restore input values into the model.
    Also to eliminate the possibility with a problem in the implementation of the value help, why don't you temporarily switch out this element with just a plain htmlb:inputField.  This way you test to make sure that data binding works correctly with the standard field.

  • Assign a Javascript variable value to a ABAP variable

    Hi,
       I wish to assign a javascript variable value to  a ABAP variable. Any ideas how to do that?
        Many thanks.
    Rgds,
    Bernice

    Here's another suggestion for you.
    BSP Application: SBSPEXT_HTMLB
    Check out the radionbuttongroup.bsp
    So then instead of using a standard HTML radio buttons you can use the HTMLB element with the parameter for onClick set then in your DO_HANDLE_EVENT you can read the value.
    VIEW
    <htmlb:radioButtonGroup id="radio">
      <htmlb:radioButton id="id_link"
                       text="Link"
                    onClick="myClickHandler"/>
      <htmlb:radioButton id="id_unlink"
                       text="Unlink"
                    onClick="myClickHandler"/>
    </htmlb:radioButtonGroup>
    DO_HANDLE_EVENT
      DATA:   lt_event        TYPE REF TO if_htmlb_data.
      lt_event = cl_htmlb_manager=>get_event_ex( request ).
      if lt_event IS NOT INITIAL.
        if  lt_event->event_name = htmlb_events=>radiobutton.
           case lt_event->event_id.
            when 'control_id_link'.
              schalter = ' '..
            when 'control_id_unlink'.
              schalter = '1'.
           endcase.
        endif.
      endif.
    There is an example of how to use it and read it in the DO_HANDLE_EVENT you then just have to pass the variable around (in this example the variable name is schalter and is defined as char1 in the class)

Maybe you are looking for

  • Unresponsive keyboard/trackpad and intermittent Bluetooth on MacBook...possible internal USB problem?

    I have a mid-2010 polycarbonate/white MacBook (model A1342) running OS X 10.6.8. My machine has been having issues with the internal Bluetooth and keyboard/trackpad randomly ceasing to function. Bluetooth issue As of recently (the past month or two),

  • IPhoto won't display thumbnails

    I performed a clean install of OS X, and when I copied over the pictures I had backed up iPhoto wouldn't display thumbnails. Old photos have no thumbnails at all, new photos will show thumbnails if I scroll around quickly, but return to blanks if I s

  • Insert a new record in the middle of a tabular form

    Hi, I have a tabular form. Pressing "Add Row" button opens a new, empty row at the bottom of the page or - if I use pagination - jumps to the page with the last record and creates a new record there. Is it possible to open a new line in the middle of

  • With Firefox 3.16 I could logIn to corporate website - why not with Firefox 5.0?

    I am a Real Estate agent. With the earlier version of Firefox I was using (I think it was 3.16) , I was able to successfully 'log-in' to my company's national web site (http://www.21online.com/public/login ). When I upgraded to Firefox 5.0, the web s

  • Netpoint report issue

    I am using the below query as the data selection to one of our netpoint reports. SELECT SalesPersonId, Type, Status, CompanyName, FirstName, LastName,AddDate, Source, Industry, TrackingNo FROM Prospects Where Status = 'D' AND SalesPersonId = cast(('