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

Swap Standard Element Definition at run time

Hi,

I have one standard component in which i got one element with Input Field.

I want to change this field to Drop down by enhancing the standard component and overwriting the method WDDOMODIFYVIEW

Pleas suggest me how we can achieve this.

Regards,

NSK

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2013 at 01:34 PM

    Hi Shashikanth,

    I think you can directly swap the UI element & bind the dropdown context to an internal table containing drop down values. You can set the values in WDDOINIT.

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 20, 2013 at 06:22 PM

    Make use to Cell Variants to replace the cell at runtime.

    However, its a feature supported only in tables. Refer: WebDynpro for ABAP Cell Variants - Web Dynpro ABAP - SCN Wiki

    If your requirement is to replace a input field defined at runtime with a dropdown, try the option of attaching help for the field.

    Refer the thread: SVS, EVS, and OVS, Value Help and Search Help | SCN

    Regards,

    Sharath

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 20, 2013 at 06:28 PM

    one small and easy way to achieve this.. You can hide your input field and make visible your drop-down in modified view by using some flag or can do this on some action also.

    This is an alternate for your requirement..

    BR

    ChanS..

    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.