Need to Disable a link when a condition is failed in Web dynpro ABAP

HI Gurus,
  I have an requirement, I am displaying one form, above the form I am displaying the link as  Overview. if some conditions failed and the form is not displayed, I want to disable that link ' OVERVIEW" should be in disable mode.
Please provide the code how to approach this.
Thanks
Rahul

Hi Radhika,
Thanks for the Response.
I wrote the below code for making the link disable.
data lv_link_disable like ls_context-link_disable.
get element via lead selection
    lo_el_context = wd_context->get_element(  ).
get element via lead selection
    lo_el_context = wd_context->get_element( ).
fill attribute
    lv_link_disable = abap_false.
set single attribute
    lo_el_context->set_attribute(
    name = `LINK_DISABLE`
    value = lv_link_disable ).
But unfortunately its not wokring.
Can you please let me know what I need to add to this.
Thanks
Rahul

Similar Messages

  • Web Dynpro Java timesheet to Web Dynpro ABAP timesheet  what changes needs to be done from EP side

    Hi All,
    We are moving Web Dynpro Java timesheet to Web Dynpro ABAP timesheet.
    what changes needs to be done from EP side?
    I have made Web Dynpro ABAP iView calling Web Dynpro ABAP timesheet and linked it with page.
    But It is showing an error 'Web Dynpro Application CATDATARECORD does not exist'.
    Please suggest what other changes needs to be done.

    Hi Anurag,
    I have added new Web Dynpro ABAP iView to the same page in which Web Dynpro JAVA iview was added and made ABAP iview visible.
    And this page is already assigned to role.
    How should I link this ABAP iview so that it get replace by the Web Dynpro JAVA iview.
    And the  application name (CATDATARECORD) is correct and Web Dynpro JAVA is using the same application.
    But now we want new time timesheet for that what changes needs to be done?
    Please suggest.

  • Integrating Flex/Flash in Web Dynpro ABAP(Netweaver 7.0) need info!

    Hi all,
            I need to embed a flash or a flex object inside a web dynpro abap application.I am working in Netweaver 7.0 and i don't have enhancement pack 1 installed.Is it possible ?   If it is possible can anyone please provide me the coding and configuration details.
    Thanks,
    Saikat

    I'm afraid that the SAP supplied integration technology - call FlashIslands - is only available from NetWeaver 7.01 and forward.  You could perhaps do some simple integration (very little data transfer) with the iFrame UI element - although the iFrame is deprecated in 7.0 and 7.01, but does return to full support in 7.02.  The other option would be to use the NetWeaver Portal or NetWeaver Business Client and have two iViews within the page. One iView would have WDA and the other some external technology (BSP, JSP, etc) to host the Flash/Flex content.  Not tight integration, but you could potentially use Portal Eventing to at least communicate events.

  • Web DynPro ABAP - Disable a entire row in the Table of the output.

    Hi Web Dynpro Experts,
    Need ur Help.!
    I have a requirement to disable the one row of the table in web dynpro ABAP
    For example . my table is like
    Field1   Field2
    A           Success
    B            Failure
    C            Failure
    I need to allow the User to select the record only if its status is Success,if status is Failure then i should not the allow user to select.
    This enabling and disabling of the rows should be done before displaying on to the Screen.
    Please suggest me ASAP.
    Thanks,
    Akila

    Hi Akila,
    please try this.
    Create a node (Eg: TEST) of type 0-n and 0-1. Take attributes attr1, attr2, flag (of type BOOLEAN). Create a table and give the TEST node as datasource. Now using "Create Binding" create columns for attr1 and atte2. Now, bind the read-only property of the columns with flag attribute.
    Now, in the INIT method, set the table values like this:
    For examle, if you want to disable row having test2,
    ls_test-attr1 = 'A'.
    ls_test-attr1 = 'TEST1'.
    ls_test-flag = ' '.
    append ls_test to lt_test.
    clear ls_test.
    ls_test-attr1 = 'B'.
    ls_test-attr1 = 'TEST2'.
    ls_test-flag = 'X'.
    append ls_test to lt_test.
    clear ls_test.
    ls_test-attr1 = 'C'.
    ls_test-attr1 = 'TEST1'.
    ls_test-flag = ' '.
    append ls_test to lt_test.
    clear ls_test.
    lo_test->bind_table( lt_test ).
    By doing this, 2nd row gets disabled.
    Also, if you already have the internal table with values, based on some condition you can change the value of flag and bind the table to node.
    Hope this helps you, Please let me know in case of any queries.
    Regards,
    Manogna

  • Opening External Window in Web Dynpro ABAP with URL disabled or Hidden

    Hi Experts, I have a requirement where-in we want to open the Web Dynpro ABAP application using tcode WDYID (by passing the application name  and startmode), but the URL of the newly opened explorer should be disabled or hidden. To achieve the same, I have created a component (lets name it PARENT) and inside that in DOMODIFY/DOINIT method have written code to invoke the required WDA (lets name it CHILD) in external window (by using lo_window_manager->CREATE_EXTERNAL_WINDOW) and is successfully able to open the application with URL disable using different parameter of method CREATE_EXTERNAL_WINDOW. But in this case there are 2 window which opens, one is for PARENT view and other is for CHILD. Now I only want to keep the second view (CHILD) to be opened and want to close the PARENT view. When I used EXIT_PLUG to close the PARENT window, it closes both the window. Need your inputs on my approach or if you have any. Regards, Harish

    Hi,
    If you open the popup, it opens as Modal Window, originating from Parent window. Without external window( where you can pass has_location = abap_false ), you cannot hide the URL/Address bar.
    If you want to partially hide the URL( if you dont want to show the full URL with application path), you can create an Alias for the service in SICF.
    Go to SICF, and create an alias for your WDA application; say original URL: domain:port/sap/bc/webdynpro/sap/<ZAPPLICATION_NAME>
    This URL you can convert( partially hide) as, domain:port/sap/<ANY_NAME>
    Refer creating Alias in this help: http://help.sap.com/saphelp_sem320bw/helpdata/en/55/361a3c9c004866e10000000a11402f/content.htm
    Hope this helps u,
    Regards,
    Kiran

  • Web Dynpro ABAP: Documentation and help link

    Hi,
    I'm in the process of creating a Web Dynpro ABAP application and was wondering whether you can maintain Documentation for the application, as you would a standard ABAP report? I see the Documentation option in the Goto menu of the workbench, but it is inactive.
    Also, i notice you can maintain a 'Help Link' for the application. Does anyone have any information on this as I can't find anything on the SAP Help website.
    Thanks,
    Nick

    Hi Nick,
    here's the link to the corresponding documentation:
    http://help.sap.com/saphelp_nw04s/helpdata/en/54/bad1d244b2754bac09ae1558c15984/frameset.htm
    If you choose the Change/Edit button at the right side of the input field, you can navigate to the info object to which you want to set the link in the Knowledge Warehouse. 
    Of course, you need an info object in the correct context in the KW for this as well as a correctly maintained RFC destination to the Knowledge Warehouse system.
    Regards, Heidi

  • Need I the JAVA Addin for Web dynpro ABAP

    Hello Experts,
    have I to install the JAVA-Addin for using Web dynpro ABAP?
    Best regards
    Heike

    No you don't, but when you want to use your application in Portal, you. Or if you want to use Adobe Interactive Forms, than too you need java.

  • Web Dynpro ABAP application's link in UWL.

    Hi Experts,
                     As per my project requirement i need to send the web dynpro abap application's link for another SAP user by using UWL concept.
    My requirements are :
               After triggering the workflow i am getting the tasks inside my SAP inbox ( in SBWP tcode ).But those tasks are not appearing in Portal UWL.
             (ii) After triggering the workflow how to send the link of web dynpro application to portal UWL.
    Please help me !
    Thanks & Regards,
    Gowtham.A

    Hi Gowtham.A,
    Did you set up the system object in the System Landscape Directory on the portal?  Then did you configure the webflow connector in the UWL Administration?
    Please see the following help documentation:
    For the setup in the Universal Worklist you will need the following:
    http://help.sap.com/saphelp_nw70/helpdata/EN/e5/fc550f79ed4131a63c540cddbfe7be/content.htm
    You will need this for the Abap Webdynpro Action Handlers setup...ensure you read the area about SWFVISU setup:
    http://help.sap.com/saphelp_nw70/helpdata/EN/19/bff5c18ba44da4a4ca68cf572dabda/content.htm
    Best Regards,
    Beth Maben
    EP - Senior Support Consultant II
    SAP Active Global Support
    Global Support Centre Ireland
    **SDN Forum Moderator:
    SAP Enterprise Portal: Application Integration
    **SDN Universal Worklist Wiki:
    http://wiki.sdn.sap.com/wiki/x/ehU

  • Error occurred when trying to access DC in web dynpro

    Hi,
    Have everyone ever encountered an error saying <b>"Unhandled exception caught in event loop"</b> when trying to access DCs in web dynpro?  I tried to add a new action to my main compnent after a used web dynpro component (DC) was added but the web dynpro would shut down automatically.  The web dynpro would shut down accidentally and automatically even when I clicked the interface controller.  Some times, the error log would repport "<b>org.eclipse.swt.SWTError: No more handles</b>"...it has driven me crazy.  I could not go further.  Can someone tell me what I have done wrong to get these errors?!!
    thanks,
    Zita

    Dear Zita,
    I error is related tot he message which you get "No more handles".
    This definitelly means that there is a bug and old files are not closed , thus the number of handles on OS level is exceeded.
    The exact way to debug the "handles" leak is with applying SAP JVM Profiler, using the I/O Analysis feature.
    http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/a0a67d7d-36e9-2a10-3a99-94fc8caaea0e
    Best Regards,
    Sylvia

  • I need information about Web dynpro ABAP Exception : ICF Service Node

    I need information about Web dynpro ABAP Exception :
    ICF Service Node "/sap/bc/webdynpro/sap/abcd/undefined" does not exist.
    Here abcd is application name.
    ICF Service Node exists and activated but kindly let me know from where "undefined" is coming .
    Please let me know your comments /views about  this.

    Hi,
    I think ur webdynpro service is not active after upgradation.
    You have manually activate it.
    Go go Tcode SICF,Execute the Initial screen,
    and in this new screen give service  as your application name and click on filter.
    You will get your service below which will be ur application name .
    right-Click on the deactivate and activate it or just activate it,.
    This shd work

  • Web Dynpro ABAP application users need a backend su01 account?

    Hello Experts
    i have been searching the forums trying to determine if all Web Dynpro  ABAP application users need a backend su01 account?
    thank you for assisting,
    regards,
    Thabiso

    Solved

  • Pass Parameters to an external appl when launched from web dynpro ABAP .

    I want to Pass Paramaters to an external application when launced from Web dynpro ABAP . I have successfully launched an .exe file ( Notepad / eViewHSEditor ) from Web dynpro using the logic from Standard WD_TEST_APPL_ACFEXECUTE component  But I am unable to Pass paramters to the .exe file .
    example :-  I would like to pass parameters  text1 text2 in the arugement list and I expect it opens an untitled notepad and in the file it will have parameters text1 text2 . But it is behaving in a different way . Below are the detailed steps of what I have done .
    The steps that I followed :-
    1)  Right now I have created the white list Configuration for Notepad.exe
    2) I have created 1 and 2 postions both of type string and permission Legal .
    3) The Paramter Value is * for both 1 and 2 .
    4) I activated the whitelist and it generated an .XML file
    5)
              application = 'C:
    WINDOWS
    system32
    notepad.exe'.
              argument = 'text1 text2' .
              co_element :- I am reading the element from the conrtext .
          co_element = wd_context->get_lead_selection( ).
          co_element_stru-attribute_name = 'ERROR'.
          co_element_stru-element = co_element.
          wd_this->acf_method_handler->if_wd_acfexecute~execute( application =  application
                                                                 argumentlist = argument
                                                                 errorinformation = co_element_stru ).
    when i execute  the application , it is trying to launch a notepad with file  'text1  text2.txt'  and it doesn't have one , it is asking do you want to create .  If You yes, it will open notepad with name 'text1 text2.txt' . If you Pass abcd in the arugement list , if the file with name abcd.txt exists , it opens the notepad with that file name .

    You try to open notepad from your PC with the same command, you will the same result.
    start->run->notepad "test1 test2". You get the popup saying that "test1 test2" file is not existing. You can google it to find a way to pass the text while opening notepad and try to fit that in your WebDynpro argument. I doubt if it is possible though.

  • Exception occured when deploying in Visual Composer with web dynpro mode

    Hi,All
    when I deploy application in visual composer with web dynpro mode, exception occured as following, please help me.
    Thanks.
    best regards
    Jiande Ding
    The initial exception that caused the request to fail, was:
       com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to prepare application sap.com/tcwd4vcengineconfigstd for startup. Reason= Clusterwide exception: Failed to start application sap.com/tcwd4vcengineconfigstd: The referenced application sap.com/tcwd4vccorestdinfoactors cannot be started. Check the causing exception for details. Hint: Is the referenced application deployed correctly on the server?
        at com.sap.engine.services.webdynpro.WebDynproContainer.prepareStart(WebDynproContainer.java:1494)
        at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:223)
        at com.sap.engine.services.deploy.server.application.StartTransaction.prepareLocal(StartTransaction.java:176)
        at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:365)
        at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:132)
        ... 8 more
    Edited by: Jiande Ding on Nov 4, 2008 1:08 PM

    Hi
    Check out this link
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/7c/9ce742bdab5604e10000000a155106/frameset.htm
    Thanks

  • How to enable/disable the input fields based on the data entered/user action in the web dynpro abap?

    How to enable/disable the input fields based on the data entered in the web dynpro application abap?  If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.

    Hi,
    Try this code.
    First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
    Next go to Init method.
    Set the readonly value as 'X'.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
         DATA ls_context TYPE wd_this->element_context.
         DATA lv_visible TYPE wd_this->element_context-visible.
    *   get element via lead selection
         lo_el_context = wd_context->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_context IS INITIAL.
         ENDIF.
    *   @TODO fill attribute
    *   lv_visible = 1.
    *   set single attribute
         lo_el_context->set_attribute(
           name =  `READONLY`
           value = 'X').
    After that Go to the Action  ENTER.
    First read the input field ( first input field, which is value entered field) , next give a condition
    if input value is not initial  then set the readonly value is '  '.
    DATA lo_nd_input TYPE REF TO if_wd_context_node.
         DATA lo_el_input TYPE REF TO if_wd_context_element.
         DATA ls_input TYPE wd_this->element_input.
         DATA lv_vbeln TYPE wd_this->element_input-vbeln.
    *   navigate from <CONTEXT> to <INPUT> via lead selection
         lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
    *   @TODO handle non existant child
    *   IF lo_nd_input IS INITIAL.
    *   ENDIF.
    *   get element via lead selection
         lo_el_input = lo_nd_input->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_input IS INITIAL.
         ENDIF.
    *   get single attribute
         lo_el_input->get_attribute(
           EXPORTING
             name =  `VBELN`
           IMPORTING
             value = lv_vbeln ).
    if lv_vbeln IS not INITIAL.
        DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->element_context.
        DATA lv_visible TYPE wd_this->element_context-visible.
    *  get element via lead selection
        lo_el_context = wd_context->get_element( ).
    *  @TODO handle not set lead selection
        IF lo_el_context IS INITIAL.
        ENDIF.
    *  @TODO fill attribute
    *  lv_visible = 1.
    *  set single attribute
        lo_el_context->set_attribute(
          name =  `READONLY`
          value = ' ' ).

  • How to get the Response Code when a URL is launched from Web Dynpro

    Hello Experts,
    I have a Web Dynpro Application in which in one of its views i have an IFrame UI element in which i will show a resource stored somewhere ..
    But before showing it i want to check if the resource actually exists. For this i have to check the HTTP Response code from Web Dynpro Application without setting it in the Iframe..
    I am using the following code to get the Response Code:
    try{
    URL url = new URL("Some Url");
    HttpURLConnection.setFollowRedirects(false);
    HttpURLConnection connection = (HttpURLConnection) url.openConnection();
    connection.connect();
    wdComponentAPI.getMessageManager().reportSuccess("Response code ="+connection.getResponseCode());
    }catch(Exception e){
    wdComponentAPI.getMessageManager().reportSuccess("Exception");
    Now the Problem is whatever response Code occurs 403 (for No Proper Authorization), 404 (for Resource not found) etc..
    i always get Response Code=  500 (which is for Internal Server Error) shown in the messgae i have printed.
    Please let me know the correct way of getting the Response Code from Web Dynpro.
    Also my resource is lying on a SAP Portal 6.4
    Best Regards
    Sundeep
    Edited by: Sundeep Sethi on Feb 18, 2008 9:07 AM
    Edited by: Sundeep Sethi on Feb 18, 2008 10:23 AM

    Hi,
      Check this code from /thread/5242768 [original link is broken] if it works.
    try{
    URL myurl = new URL("http://calendar.google.com");
    URLConnection connection = myurl.openConnection();
    if(connection instanceof HttpURLConnection) {
    HttpURLConnection httpConnection = (HttpURLConnection) connection;
    HttpURLConnection.setFollowRedirects(true);
    httpConnection.setRequestMethod("HEAD");
    httpConnection.connect();
    System.out.println("Response = "+httpConnection.getResponseCode());
    catch(Exception e) {
    // print exception
    Regards,
    Harini S

Maybe you are looking for