Enable screen field in WebDynpro ABAP

i,
I have WebDynpro ABAP screen where I have defined a read-only input field. Now I want to make this field input enable based on certain logic during run time.
  CALL METHOD lo_el->set_attribute_property
    EXPORTING
      attribute_name = 'SP'
      property       = lo_el->e_property-read_only
      value          = ''.
I have written following code in method "WDDOMODIFYVIEW",
but somehow this is not working. Any Idea what is going wrong.
Regards,,,
Sunil Joyous

Manas,
You said,
You need to bind the read only poperty of input field with an attribute of type WDY_BOOLEAN, then based on your logic you can set the bound attribute to true or false in any method.
how do I do this ? Now I have done following
  DATA : lv_wdy_boolean TYPE wdy_boolean.
  lv_wdy_boolean = ''.
  CALL METHOD lo_el->set_attribute_property
    EXPORTING
      attribute_name = 'SP'
      property       = lo_el_credit_note->e_property-read_only
      value          = lv_wdy_boolean.
but still it is not working.

Similar Messages

  • How to insert the image or logo into the table as a field in webdynpro abap

    Hi Friends,
    Please tell me how to insert the image or logo into the table as a field in webdynpro abap.........

    Hi Alagappan ,
          In your view layout you take table UI element and then you bind it with some context nodes.
    The attributes of your nodes comes as a field.
    Now in these fields you can set various properties and image is one of them.
    Go to ->
    1. View Layout -> Right Click on ROOTUIELEMENTCONTAINER -> INSERT ELEMENT -> TABLE
    2. Right click on table -> Create Binding.
       Here you have to bind it with the appropriate context node.
    You will get two properties here
    a- Standard Cell Editor :- ( make it image )
    b- Standard properties :- ( If required set image properties ).
    3. If you want put image from out side then import it as a mime object and set the source of your table field ( used as a image )
    also have a look :-
    [Image Properties|http://help.sap.com/saphelp_nw04/helpdata/en/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm]
    Hope this will solve your problem.
    Reply if any case of any issue.
    Thanks & Regards,
    Monishankar C

  • F4 help for Time field in webdynpro abap

    Hi Guru's,
    how to get f4 help for time field in webdynpro abap.
    thanks in advance,
    narendra

    Hi Narendra,
    Check this link:
    Re: Time Search Help
    Also few more links here:
    http://forumsa.sdn.sap.com/search.jspa?forumID=249&threadID=&q=time+help&objID=f249&dateRange=lastyear&numResults=15&rankBy=10001
    Also check if this example helps you: WDR_TEST_HELP
    If your query is not yet answered then its advisable to post in webdynpro for abap (Web Dynpro ABAP). You may get some quick repliy.
    Regards,
    Swarna Munukoti.

  • Change dropdown values for a field in webdynpro abap

    Hi All ,
    I need to change dropdown values for a particular field ( Tax code ) in webdynpro component (FITE_VC_RECEIPTS) when selecting expense type.  Right now Tax code values are coming with respect to a company code but i need tax code with respect to other company code for two personel numbers .
    How can i change dropdown values for this taxcode in webdynpro abap . Please suggest.
    Thanks in advance.
    Regards,
    Sijin K P.

    Hi All ,
    Thanks for reply .
    In production taxcodes are coming fine but wrong in dev and quality . ( Australian taxcodes are coming in production for dropdown values but new zealand tax codes in dev and quality )
    I have not started doing any changes . Is there any configuration part to change tax codes that can reflect in expense claim portal . Please help ..
    Thanks in advance.
    Regards ,
    Sijin K P.

  • How to fetch screen field in HR abap

    hi friend,
      I need to fetch a screen field q0128-tdline. And the field should be included in payslip. Is there any user exit to proceed with this.Please reply ASAP.
    Thanks and Regards
    K.karthikeyan.

    hi,
    Use the user exit PBAS0001.
    you need to write the code in include ZXPADU02 to get that field.

  • Enabling screen field

    Hi Friends,
    I am validating value of a field and showing an error message in an user exit. When the error message appears all the screen fiedls are disabling for input. I want to enable the checked field for input.
    Please note the error message code is in vendor master user exit before saving. As of my knowledge we can use loop at screen for a field at PAI of dialogue program. How to handle this in the exit.
    Regards.

    hello
    what you need to do is write the module for validation along with the keyword field < fieldname> like :
    field <fieldname >  module validation.
    write your code in this module.
    if any error comes in this module,the field which is mentioned here will remain open for input and others will be disabled. but if you want other fields also to be open for input when any error message comes the use the varios field name in between chain and endchain like :
    chain 
    field <field1>
    field <field2>
    field <field3>
    field <field4>
    module validation.
    endchain.
    now if any error comes in this module,the fields which are
    mentioned here will remain open for input and others will be disabled.
    hope this helps.
    regards
    geeta gupta

  • How to create hyper link to normal table field in webdynpro ABAP

    HI Experts,
    I am working on one Webdynpro Application where I am displaying Vendor information in normal table.
    But I wanted to make LIFNR field of the table as Hyper Link and when I click on that particular LIFNR  I wanted navigate that to XK03 transaction. Please help me out from this...
    When I searched in SDN I am geeting examples to create Hyper Links in ALV but I wanted to create that for normal table field.
    Thanks
    Basanagouda

    Hi,
    As you kept the Link to action.. Go to the Outline of the view and navigate to the to the newly inserted Link to action UI element in the View. Now see the properties window. In the properties you will find the category Events and in this you will have OnAction. You can create a new on action by clikcing on the button which is next to the input filed.
    This will create a method and in this implementaion you can write the logic to navigate to the Transaction.
    Regards,
    Raju Bonagiri

  • Get screen resolution in WebDynpro ABAP

    Hi,
    is there is a possibility to get the current screen resolution of the frontend in a Web Dynpro ABAP application?
    I found the following class and method: cl_gui_frontend_services => registry_get_value.
    I found the Screen Resolution in WIN XP at:
    SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Control\VIDEO\{23A77BF7-ED96-40EC-AF06-9B1F4867732A}\0000\.....
    As expected, this method only works in the SAP GUI and not in Internet Explorer. In IE it triggers the exception CNTL_ERROR.
    Is there another solution?
    Regards.

    I guess the root question is why do you need the screen resolution?  Web Dynpro isn't design to be screen resolution specific. That is why it is flow layout based and not pixel coordinate based. Generally the use of % based width/height parameters will allow the content to adjust to the screen size.  Even if you had the screen size, what you reall need is the browser window size.  This can change even the user resizes the browser. Even if you could get this value via ACFExecute or something like that, you wouldn't have an event to let you know when the browser was resized.

  • How to hide a transparent container and its fields in webdynpro abap

    Hello Friends,
    I am trying to create a view where i want to show some fields based on some other field.
    What i exactly need is When i enter some data in 1 input field .
    Corresponding to that input field few text fields wud be opened automatically in the same view.
    No Pop-ups allowed.
    What i am doing is !!
    i have created another Transparent container for my  text view fields.
    But i  am unable to hide this fields..
    Kindly help..
    At the runtime..
    After entering the value in the input field..
    This transparent container should become visible with the textview fields...
    Gaur Mayank

    Hi,
    Create A Context Attribute (Say  Visible_Hide )of Type WDUI_VISIBILITY with initial value as 01.
    Goto your Container, Bind the Visible Property with Above Created Attribute(Visible_Hide).
    In the Input Field,Use the OnEnter Event and Set the Value to Visible_Hide as 02.
    Then the Container will be Visible.
    Thaks.
    Uma

  • Enabling custom field in screen after error msg

    HI experts,
    I m facing problem in enabling screen field in infotype screen. That is, i have added a custom field in std infotype screen and this is shown in enable mode by default. In PA30, im enterig values for all fields in the infotype and press SAVE.
    At that time, an error message is thrown by the system. Becoz of this error message, my custom field is changed to disable mode and also gets shrinked.
    Can anyone suggest me how to enable my own field in screen even after the error msg returned by the system?

    There are two ways to cater such a kind of problem.
    either you can enable custom field manually by writing code or
    you can change field group.

  • Dynamic screen field layout - ABAP webdynpro

    Hi,
    I am rather quite new to ABAP webdynpro - one of my requirements is that based on a Custom table (so to say a custom built customizing table) I need to display fields - the Customizing table could say that for region America - we need the following fields to be supressed, the same set of fields for Japan could be Mandatory, and for Latin America could just be display only.
    Is there anyway this could be acheived in Webdynpro (ABAP) - I presume that the supressed fields for America region will not be displayed but instead the common fields for America and Japan would be out of sync as far as screen layout is concerned. An ideas or guidance on how to accomplish this would be greatly appreciated.
    Regards....

    Hi,
    you can loop on your table which gathers all the fields in it, add an attribute to your
    table stating the required or not parameter and adding it to the 'state' parameter in
    the new_inputfield method.
    In the Wiki I added a page for dynamic UIelement creation based on DDIC properties
    (wiki is down, so i don't have a link to it)
    or you can visit these logs by Thomas Szues:
    <a href="/people/thomas.szcs/blog/2005/12/28/dynamic-programming-in-web-dynpro-abap--introduction-and-part-i-understanding-ui-elements:///people/thomas.szcs/blog/2005/12/28/dynamic-programming-in-web-dynpro-abap--introduction-and-part-i-understanding-ui-elements
    <a href="/people/thomas.szcs/blog/2006/01/03/dynamic-programming-in-web-dynpro-abap--part-ii-handling-viewelements:///people/thomas.szcs/blog/2006/01/03/dynamic-programming-in-web-dynpro-abap--part-ii-handling-viewelements
    grtz
    Koen

  • Upload from clipboard option in webdynpro abap selection screen

    Hello Gurus,
    We have a requirement in select-options in webdynpro.i have implimented select-options successfully using
    WDR_SELECT_OPTIONS used component.now i need to impliment 'upload from clipboard' option when ever i click on advance options arrow mark. this option we can get in normal abp from selection screen.in selection screen against select-option field we have multiple options arrow mark.when ever we click this arrow mark we can able to see the upload from clipboard button at lowe level.exact same option how can we impliment in webdynpro abap selection screen.
    Could anyone please suggest solutions?
    if possible could you send me the sample code or relevent links for the same.
    Thanks in Advance for your replies.
    Regards,
    babu

    Hi,
    Which server version are you working on...Is it ECC6 or nwetweaver 7..
    I guess that option is avaialbel in Netweaver 7.0..Need to check there is an option for Clipboard in select-options..
    Regards,
    Lekha.

  • Validation of login screen in WebDynpro ABAP

    Dear All,
    I have created a login screen using WebDynpro ABAP, but am not able to validate user name and password.
    Please help in this with coding and if possible with samll example.
    Thanks & Regards,
    Tazeer KS.

    Hi Tazeer, i have posted on scribd this document, step by step webdynpro login application,
    pls go through the following link
    http://www.scribd.com/doc/50261280/Login-Application-in-webdynpro
    Step1:
    Create 1 node in component controller and bind the attributes of dictionary structure USR02
    Step 2: Select the required fields, bname and bcode,
    Step3: Create Main View as shown, and bind the context view and component  node and bind the input fields. 
    Step4:
    Create second view for navigation.
    Note:
    First main view is outbound.
    Second view is inbound.
    method ONACTIONLOGIN .
      TYPES : BEGIN OF ty_usr02,
                bname TYPE USR02-bname,
                bcode TYPE USR02-BCODE,
              END OF ty_usr02.
      DATA it_usr02 TYPE TABLE OF ty_usr02.
      DATA lo_nd_login TYPE REF TO if_wd_context_node.
      DATA lo_el_login TYPE REF TO if_wd_context_element.
      DATA ls_login TYPE wd_this->Element_login.
      DATA lv_bname TYPE wd_this->Element_login-bname.
      DATA lv_bcode TYPE wd_this->Element_login-bcode.
    navigate from <CONTEXT> to <LOGIN> via lead selection
      lo_nd_login = wd_context->get_child_node( name = wd_this->wdctx_login ).
    @TODO handle non existant child
    IF lo_nd_login IS INITIAL.
    ENDIF.
    get element via lead selection
      lo_el_login = lo_nd_login->get_element( ).
    alternative access  via index
    lo_el_login = lo_nd_login->get_element( index = 1 ).
    @TODO handle not set lead selection
      IF lo_el_login IS INITIAL.
      ENDIF.
    get single attribute
      lo_el_login->get_attribute(
        EXPORTING
          name =  `BNAME`
        IMPORTING
          value = lv_bname ).
    get single attribute
      lo_el_login->get_attribute(
        EXPORTING
          name =  `BCODE`
        IMPORTING
          value = lv_bcode ).
    IF lv_bname is INITIAL and lv_bcode is INITIAL.
      else.
    SELECT bname bcode from usr02 INTO TABLE it_usr02 WHERE bname = lv_bname
                                                      and bcode = lv_bcode.
    ENDIF.
      wd_this->fire_out1_plg(
    endmethod.
    Hope it might help you,
    Get back to me if your issue is not solved.
    Thank you

  • F4 help for Time field in Webdynpro Screen

    Hi Experts,
    I'm using TIMS data type for my Time field. In ECC we will have F4 function for the same data element, but in Webdynpro screen, am not getting the F4 help.
    I got some information from SCN that I need to go for some custom search help. But with which reference to the table, am I want to create it.
    Please let me know, is there any other possible way to create F4 for time field for webdynpro.
    Even I tried to use some standard search help, but am getting an error as 'Sending of dynpro ' ' not possible. No window system type specified'.
    Expecting valuable information from you experts.
    With Regards,
    RAM.

    Hi RAM,
    For time field, there is no SAP delivered search help in WDA , so we need to go for freely programmed search help.
    Please refer the below link, in which Mr. Thomas, has provided the links for search help document you can follow and create new search help component
    and also nugget of the component which can be imported using ZSAPLINK program.
    search help for time
    Regards,
    Rama

  • How to make screen field enable when table control gives an error

    Hi,
        I had a scneario like when table control data wrong then one parameter of the screen should be enabled for the input, i knew that screen-name will not work since it will have always table control fields only when table control gives an error.
    How to make the other parameter enable when table control throws an error.
    Regards,
    Jaya

    Hi Gobi,
         Thanks for your response, but issue is - how to make other screen fields enable when there was an error in the table control data.
    For table control - lets say we will use the code as i mentioned above.i am sure that we cant write the code for field enable in between loop & endloop.
    as you said if we right outside the loop-endloop, the module wont be triggered when table control throws an error, because that statement was not there in the loop-endloop.
    please let me know if you need any more information on the issue. I hope there is alternative for this in SAP.
    Thanks
    Jaya

Maybe you are looking for

  • Airplay/Mirroring for video on VLC Player

    I am expecting my mid-2013 27" iMac in the mail shortly but my question is can I watch VLC player via airplay/display mirroring on my TV?  I will be running the latest version of Yosemite. Is this possible with the Apple TV (sound included), or is th

  • Help with Air Print!

    What exactly is air print ? I just got a new printer and my goal is to be able to print from my phone but when I try it says: "no air printers found." I have a Brother Printer/Copier/Scanner. It is not running on wifi...it is connected to my MAC via

  • What is the latest version of Final Cut Pro or Express for PPC G5

    I think I am to the point that iDVD and iMovie don't help. Do I have any FCP options available?

  • "Getting ready to install this application..." then crashes

    I recently installed AIR 2.0.4, but at the end of the installation, and during installation of the app I need, I get an error message. Within seconds of initiating the install for the app, I get the message that "Adobe AIR Application Installer has e

  • Can I Stream just the video and Sync everything else?

    Does anyone have any solid solutions for having full access to a 500+ GB iTunes Library on the TV ? I have 500 GB of video on an external drive and ~50 GB of music and photos on my internal drive. In other words, my iTunes library is not consolidate