RE:Web dynpro in ABAP -Diabling of button thru checkbox

Hi,
I have a requirement ie i have a button in a view .Also i have a check box in that view.Now my requirement is that if i check the checkbox then the button in the same view should be disabled.How to do this...................Screen shots will be helpful....
Thanks in ADVANCE,
ALEX.

hi ,
1 create 2  context attribute ca_attr1 and ca_attr2 of type WDY_BOOLEAN , bind with ur ENABLE property of Button UI
and enable property of checkbox
2 create a action for the  OnToggle Event of ur checkbox
3 in the OnactionMethod , check whether the CjeckBox is ticked using Get_attribute method
4 If check box is checked ( ir ca_attr is "ABAP_TRUE" or 'X'), disable ur button by setting ca_attr2 to "ABAP_FALSE"
DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
    DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
    DATA ls_cn_node TYPE wd_this->element_cn_node .
    DATA lv_attr2  LIKE ls_city-ca_attr2.
*   navigate from <CONTEXT> to <CN_VISIBLE> via lead selection
    lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr2).
*   get element via lead selection
    lo_el_cn_node = lo_nd_cn_node->get_element(  ).
*   get single attribute
    lo_el_cn_node->get_attribute(
      EXPORTING
        name =  `CA_ATTR2`
      IMPORTING
        value = lv_attr ).
// if lv_attr is 'X ' ( checked) , set ca_attr1 to ' '
IF lv_attr EQ ' X'.
DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
    DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
    DATA ls_cn_node TYPE wd_this->element_cn_node .
*   navigate from <CONTEXT> to <CN_VISIBLE> via lead selection
    lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr1).
*   get element via lead selection
    lo_el_cn_node = lo_nd_cn_node->get_element(  ).
*   set single attribute
    lo_el_cn_node->set_attribute(
      EXPORTING
        name =  `CA_ATTR1`
     value = ' '  ).
regards,
amit

Similar Messages

  • Close OVS Help via Button in Web Dynpro for ABAP

    Hello!
    Is it possible to use a close-button in a "ovs help popup"? I tried to fire a "Type-Exit Outbound-Plug" of window controller of the "ovs help window" but it didn't work.
    Thanks for help
    Joerg

    Hello Joerg,
    in Web Dynpro for ABAP there is currently no possibility to subscribe to the close event of the OVS popup.
    Regards, Ariane.

  • Pop up view in Web Dynpro for ABAP

    Hi,
    I am new in web dynpro for ABAP. Now I am facing a problem of how to make a view pop up.
    Since I had already create some table in this view. I just want to make it pop up after I click a button. But I had no idea to do it, could anyone tell me how to do it?
    Thanks!
    Edmond

    Hi Ho,
    For POp up view please follow the below steps.
    1. Create one view [Ex:popup_view] and design it as per your requirement.
    2. Create one window [Ex:popup_win] and embed the popview_view into pop up window.
    3. Then write the below code when ever you need a pop up window.
    data: l_cmp_api           type ref to if_wd_component,
            l_window_manager    type ref to if_wd_window_manager.
    l_cmp_api           = wd_comp_controller->wd_get_api( ).
      l_window_manager    = l_cmp_api->get_window_manager( ).
      if wd_this->m_popup1_1 is initial.
        wd_this->m_popup1_1 = l_window_manager->create_window(
                 window_name  = 'POPUP_WINDOW'
                 button_kind  = if_wd_window=>co_buttons_ok
                 message_type = if_wd_window=>CO_MSG_TYPE_STOPP ).
      endif.
      wd_this->m_popup1_1->open( ).
    Thanks.

  • Issues with portal integration of Web dynpro for ABAP application

    Hi,
    I have the following issues when i integrate a Web Dynpro for ABAP application with portal.
    1. the iview does not contain some images, such as table scroll button images, maximize and close buttons of popups etc.
    2. the iview loads properly, but there is an error in the status bar that says "Access denied"
    3. is it possible to do absolute navigation from
       role1->folder1->iview1 to role1->folder2->iview2?
       when i fire this navigation from the webdynpro
       application, the navigation does not happen in the
       portal.
    thanks,
    Kavitha

    >
    sridhar vadaga wrote:
    > Hi Experts,
    >
    >
    > CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
    >   EXPORTING
    >     text           = url
    >  IMPORTING
    >    BUFFER         = content .
    >
    >
    > Thanks & Regards
    > Sridhar
    I think you are overestimating the power of the SCM_STRING_TO_XSTRING function module.  By supplying a URL as the value of the input text, it isn't going to magically go read the content from the remote location and convert that to a binary string.  It is going to take whatever value you supply in th importing TEXT parameter convert that to binary.  In other words it is literally converting the string http://xxx/test.xls to binary.  You will need some other mechanism to read the content from the remote location into ABAP memory before you can process it.  You will need to use the CL_HTTP_CLIENT class or call some sort of web service to retrive the content.

  • Issues witn portal integration of Web dynpro for ABAP application

    Hi,
    I have the following issues when i integrate a Web Dynpro for ABAP application with portal.
    1. the iview does not contain some images, such as table scroll button images, maximize and close buttons of popups etc.
    2. the iview loads properly, but there is an error in the status bar that says "Access denied"
    3. is it possible to do absolute navigation from
       role1->folder1->iview1 to role1->folder2->iview2?
       when i fire this navigation from the webdynpro
       application, the navigation does not happen in the
       portal.
    thanks,
    Kavitha

    Hi,
    Use a Transparaent container (TCO) inside it use the tabstrip and make it as matrixheader as per rootUI.
    You can also set the layout for TCO as matrix and do the necessary changes.
    Regards,
    Lekha.

  • How to Call Transaction iView that calls RRMXP from Web Dynpro for ABAP

    Dear Experts,,
    I'm developing an application in Web Dynpro for ABAP wherein I'm supposed to give a link that should open an SAP Transaction iView that calls  tcode = 'RRMXP' and I pass the application parameter as QUERY/WBID = <BI query/Workbook ID>.
    I tried calling com.sap.portal.appintegrator.sap.bwc.Transaction iView, but it asks for system/application and GUI type parameters. How to pass through the URL?
    Any help would be highly appreciated
    Regds,
    Srini

    Hi Wolfgang,,
    My problem was that I was supposed to call the BeX Web Analyser ( a BI excel based tool - client installation) on click of a button in my WD-ABAP application. I solved it as follows :
    In the portal pcd, I cam across a folder content provided by SAP. Here, you'll find standard template iViews that can be used to call applications ( for which you make iViews). I had to call an SAP TCode : RRMXP so as to call a BI Workbook/Query.
    So, I called the standard iView template for sap_transaction_iView as follows :
    irj/servlet/prt/portal/prtmode/preview/prtroot/'
               'pcd!3aportal_content!2fcom.sap.pct!2ftemplates'
               '!2fiviews!2fcom.sap.portal.sap_transaction_iview?'
               'sap-config-mode=true&System=BWR3System&TCode=RRMXP'
               '&GuiType=WinGui&OkCode=y&ApplicationParameter='  <appnm>  into url.
          l_popup =
             l_window_manager->create_external_window( url = url
                                          has_menubar = ' '
                                         has_statusbar = ' '
                                          has_toolbar = ' '
                                          has_location = ' ').
          l_popup->open( ).
    And , it worked.
    Any more help pls feel free to revert.
    Regds,
    Srini

  • Events on ALV in Web Dynpro for ABAP

    Hi
    On an ALV GRID in ABAP one can use the event handle_data_changed that is activated immediately at the time data is changed.
    Is there a similar event in ALV in Web Dynpro for ABAP?
    How would I know if any data was changed in an ALV grid in WDA?
    Regards

    Hi,
    To trigger the DATA_CHECK event on pressing enter, you need to use the set_data_check method. Use the following code:
    l_alv_model->if_salv_wd_table_settings~set_data_check( IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CELL_EVENT ).
    Now you can define the data check event handler and it will get triggered when you change something and press enter, or even if you click on another cell. The DATA_CHECK attribute will by default be set to be trigger only on clicking the 'check' button. This will change it.
    Regards
    Nithya

  • Integrating Web Dynpro for ABAP into ABAP Workflow

    We have a requirement to create a User Interface via Web Dynpro for ABAP, and use that information to start off a workflow, transferring the data from the Web Dynpro application into the container of the Workflow.
    Also later in the workflow, we would like an approval step to invoke a Web Dynpro that displayes the data, and an approve/reject button to be pressed that feeds that data back to the Workflow.
    Has anybody done this, or does anybody know how to do this? We do not have the possibilities to use CAF in this project yet.
    Kind Regards,
    Tony.

    Hi,
    This is of course possible. Starting the workflow with Web Dynpro or from classic ABAP dynpro doesn't really differ. Just build your web dynpro as you would build a transaction, and from the submitting/execution phase, you just launch the workflow. Launching the workflow can be done with couple of different techniques (=function modules) and it has been discussed many times here.
    Also the approval part shouldn't cause any problems. Just build an application which takes as a parameter for example the work item ID (or any other relevant parameter that you can imagine, which you can use to retrieve the needed data that you want to display). Then from the web dynpro application you can call for example a function module, which can complete the work item. Or another option is that you will raise an event (again with a function module), which your approval task is waiting for.
    Once again, it isn't really that different from classic dynpro (or any other technique) - the same approaches can be utilized.
    Regards,
    Karri

  • Web Dynpro for ABAP: Tutorial 2 - BAPI Usage

    Hi ,
    I am new in  WD for ABAP and i trying to finish tutorials from SDN. The  Second tutorial
    "Web Dynpro for ABAP: Tutorial 2 -BAPI Usage" is giving me headache .I was following the tutorial in a letter ,
    but the table is not filled d after I hit  "search" button. Does someone had same experience and possible solution.
    Thanks
    Chris

    Actually in this application the data that is required is flowing. So I have tried making the import parameters as the controller attributes in spite of context node in the service call. Then it passes the data into the import parameters as WD_THIS->KUNNR.
    But still when I am debugging the data is not coming. What could be the issue.

  • Web Dynpro for Abap - Tutorial 3 Navigation

    Hi,
    I did the exercise Web Dynpro for Abap: Tutorial 3 - Navigation, but when I test.
    The first screen It´s ok, but when I press the search button.
    This message shows me.
    How can I fix this?
    Error when processing your request
    What has happened?
    The URL http://gru-s-ecc-001.arinso.com.br:8000/sap/bc/webdynpro/sap/zz_bapinav_minoru/ was not called due to an error.
    Note
    The following error text was processed in the system ER1 : Lower-Level Node with Name FLIGHTLISTVIEW.flight_list Does Not Exist
    The error occurred on the application server gru-s-ecc-001_ER1_00 and in the work process 10 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: GET_CHILD_NODE_INTERNAL of program CL_WDR_CONTEXT_ELEMENT========CP
    Method: IF_WD_CONTEXT_ELEMENT~GET_CHILD_NODE of program CL_WDR_CONTEXT_ELEMENT========CP
    Method: IF_WD_CONTEXT_NODE~GET_CHILD_NODE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: ONACTIONGET_FLIGHTS of program /1BCWDY/34A63FKGEJ2MX3QE6HZM==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/34A63FKGEJ2MX3QE6HZM==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
    Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP
    Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
    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 ER1 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 gru-s-ecc-001_ER1_00 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 10 in transaction ST11 on the application server gru-s-ecc-001_ER1_00 . 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: 100 -u: JACOB -l: E -s: ER1 -i: gru-s-ecc-001_ER1_00 -w: 10 -d: 20080417 -t: 150647 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team

    did you check the short dump message in ST22, maybe gives you some additional information.
    But when looking at the message, I would say that in the FLIGHTLISTVIEW node flight_list is not created.
    Check if node is available, also check the name of the node. Maybe a typo  (fligth_list, or flight_lits, or...)somewhere.

  • How to debug Adobe form attached to Web Dynpro for ABAP

    Hi,
    My developer has created an adobe form and rendered inside a Web Dynpro page in the SAP Portal. It communicates with the Web Dynpro framework in the backend SAP system (Web Dynpro for ABAP).
    My question is, how would I know what infotype access this form requires, in the form of backend authorization role? Is there any way (not trace, ST01) to debug Abobe form on Portal or in backend SAP system?
    Thanks,
    Karan.

    Julius Bussche wrote:
    > I am not sure whether this will work in this case, but principally if your trace is recording a * value for a field in an authorization check, then it must be defined somewhere, and there is an option in the trace file to jump from the check to the source code location where it occurred.
    Yes, that's possible since the trace also records the information on the ABAP source code location where the AUTHORITY-CHECK statement (or other ABAP statements which internally trigger authorization checks) is executed. If I'm not wrong then there is a button (in ST05) which allows a direct source code navigation. Alternatively you might just click on the ABAP source code information displayed in the ST05 trace results (for recorded authorization checks).
    Cheers, Wolfgang

  • New to web dynpro for abap

    HI Team.
    I am new to web dynpro for abap .
    I am trying to develop a sample application using web dynpro for abap
    for that I am making use of SAP ECC 6.0 system.
    I created the the application by following steps in pdf.
    It is a program which makes use of BAPI_FILGHT_GETLIST
    I have created city from and city to two input fields once i enter the data and click on serach flights
    it must display all the filght details in a table format
    Problem i am facing is that data is not coming into the table.once i click the button.
    Do I need to perfrom any settings like rfc destinations ?
    I do not think so because I am trying to make use of the bapi which in the ecc 6.0 system
    please help me out
    thanks in advance

    Hi,
    You posted your question in the wrong forum. This forum is for Business intelligence.
    Did you activate your Web dynpro component? You can do it in the transaction SICF.
    In this transaction, you can expand according to the below path..
    /default_host/sap/bc/webdynpro/sap/<your webdynpro component>.
    Here you right click and YourWdComponent and select Activate.
    Regards
    Nages

  • Call back-end report from Web Dynpro for ABAP

    Hi Experts,
    I have an web dynpro for abap application, I put it into an iView. I also have a report which have selection screen and ALV display in back-end. Now I would like to call the report from the web dynpro application and display it in the web.
    What steps need to be done to do it?
    Thanks,
    Anthony

    Anthony,
    you can create a custom transaction for your report "for example ZREPORT" and then create an IVIEW for ZREPORT.
    in your webdynpro you can create a button or link and in the action behind you can call OBN and pass the IVIEW parameters for the OBN call.
    OBN can be found in the webdynpro wizard tool.
    thanks!
    Jason PV

  • N4S: Web Dynpro for ABAP layout editor not working

    Have problem in Layout editor in Web Dynpro for ABAP
    I have installed NW04S Testdrive on 64bit Linux and able to login.
    SE80 is working alright.
    Next I create a Web Dynpro Comp. / Intf. and create a component.
    I double click on the View name "V_Default" . The Layout editor opens on the right side. Change into Edit Mode.
    The "View Elements" panel on the left side of layout editor is missing. This is where we select the various elements like "Textview" etc.
    Even the right click on the "ROOTUIELEMENTCONTAINER" to insert elements using context menu does not work.
    In summary I am not able to add any element in WD4A Layout screen.
    Is there any special plugin required to be installed?
    How to solve this problem?

    you cannot develope Webdynpro for ABAP using ECC5
    This is available with netweaver 2004s (WAS7.0) for which ramp up is going on right now and the general availability is expected sometime around 1st quarter for 2006.
    Regards
    Raja

  • Import Data from Office Control (Web Dynpro for ABAP) into internal-Table

    Hello,
    I have a question concerning the Office Control UI-Eelement in Web Dynpro for ABAP:
    How can I import spreadsheet data from the Office Control into  a internal-table?
    I have an Excel-sheet (without any data) which is shown initially in the Office Control. First the empty Excel-Sheet will be loaded and in the second step data from an alvxml-transformation will be loaded into the Excel-sheet with the method 'activatexmlsource'. This works so far. When I change the loaded data in the Office Control and save it it will be stored as XLS-File. The problem is that I'm not able to use existing Upload-FM because every function module I tried uses GUI-functions and WebDynpro has no GUI-functionality. I always get the error that data from clipboard cannot be imported.
    So now the question is:
    How can I import changed data from the Office control into a internal-table staying in Web Dynpro application?
    Please give some advice, if you have some useful code or ideas.
    Thanks
    ram
    Edited by: Ramakullay Challa on Sep 24, 2009 9:05 AM
    Edited by: Ramakullay Challa on Sep 24, 2009 9:07 AM

    Hi,
    Once you save to desktop again you have made some changes to that file, this file you want to upload it right.
    Then in that case you need to use the FILEUPLOAD UI element right.
    Regards,
    Lekha.

Maybe you are looking for

  • Link to tabs in spry collapsible panel work in IE-8; not Firefox or Safari

    I have little experience with Spry. I've asked my question on the user forum in Dreamweaver several times with no response. I am hoping that someone somewhere in the Adobe community can help me resolve this issue. I created links from the top of a pa

  • After installing latest version of ITunes, can't access ITunes Store

    I've recently downloaded the latest version of Itunes (9.2.1.5) as since doing so I cannot access the ITunes Store. Prior to downloading this laterst version, I had no trouble with access. I've tried deleting the download and re-installing it, and I'

  • ITunes suddenly not recognizing my iPod Touch 4g

    I got a new 32gb iPod Touch, 4th Generation, last week. Everything's been working fine. Then, this morning, I went to sync my iPod and iTunes didn't open automatically. I opened it manually and it hung for a few seconds then worked again but my iPod

  • Explorer/Safari launch and then quit immediately after Tiger

    Hi Apple Boards: Newbie question: i installed OS-X on my daughters iBook and all is well except under her logon IE and Safari will not launch and work. They launch and immediately quit. Log from console is below... Not sure if this is a keychain prob

  • What is the necessity of emca

    What would be the reason one would use the below command? emca -config dbcontrol db why anyone wants to rebuild the dbcontrol anyway? Smith