Skip to Content
author's profile photo Former Member
Former Member

Web Dynpro- Making Tabstrip Fields Editable at runtime

Hi Team,

We have a requirement in SAP SNC which is WEBUI based where we need to make some field editable in a TAB strip. Could you please guide me how can we do this. Any code snippet would also help. Thanks for your support. The fields which we need to make editable is on 3rd tab. Just wondering how can I navigate to UI elements of a TABSTRIP.

Thanks,

Varun

WebUI.JPG (119.7 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2013 at 12:43 PM

    Hi Sankar,

    Making field editable, I have already done. Now we are facing trouble that data back to context node.

    Thanks,

    Varun.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Done by assigning the post correct answer 😉

      Glad to ear you managed to solve your problem!!

      A nice thing to do could be to explain (briefly) how you did it so that other persons looking for the same solution will find it directly (and probably you'll have points too!! 😊 )

  • Posted on Nov 19, 2013 at 08:59 AM

    Hi Varun,

    Do tell us first whether it is a Custom application or Standard one ?

    Yo don't need to worry about navigating to UI element within a Tab Strip.

    Thanks & Regards.

    Priyesh Shah

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2013 at 10:17 AM

    Hi!

    Another question : is this a SAP Web Gui transaction? Because if it is it's not at all related to Web Dynpro but with your standard transaction. You will have to change the behavior of the field probably by customizing or BADI/User exit.

    If it is actually a web dynpro then Priyesh is right : with an enhancement in wddomodifyview of the view you will have sufficient stuff to change the field behavior. Just search with F1 and technical information for the path to your field (for example : view1.container1.container2.fieldname) and then change it's readonly property.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 22, 2013 at 11:52 AM

    Hi Varun,

    As per my knowledge,

    1. Enhance the view

    2. Add an attribute 'READ_ONLY' type 'WDY_BOOELAN'

    3. Bind the attribute to the input field

    4. I am not sure on what condition you need to make editable the field, for an idea giving this eg

    in case if you want to enable the field based on the onselect of the tab, then there is an event onselect of the tabstrip UI element,

    sample code:

    lo_el_read_only->set_attribute( name = 'READ_ONLY' value = abap_false ).

    Thanks & Regards,

    Sankar Gelivi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.