Skip to Content

How to display the table control based on the value from the dropdown in module pool

Hi ,

I am trying to display the table control based on the value from the drop down in module pool program.

I have 2  values in the drop down list (eg : D1,D2).and 2 table controls (eg: tab1,tab2)

If I select first value from dropdown (ie D1).First table control should display (ie: tab1)

If I select second value from dropdown(ie D2).second table control should display.(ie: tab2)

I tried

loop at screen.

IF screen-name = 'table control name'.

screen-invisible = 1. " active field

         modify screen.

endif.

but here I am not able to get the table control name in the screen-name,I am getting only the column name of the table control.


Please suggest is it possible to achieve the requirement.



Thanks

Vivek

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Dec 23, 2014 at 10:18 PM

    Why dont you use editable ALV instead of table controls?

    Alternate options are,

    1. Use a subscreens and display the table controls within individual subscreen. Control the visibility of subscreen via program variables

    2. The best option would be to have multiple tabs instead of dropdown.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 23, 2014 at 04:53 PM

    Hi Vivek,

    I think each container have one method, similar with set_invisible(). So base on the drowdown list value, to set this container visible or not.

    regards,

    Archer

    Add comment
    10|10000 characters needed characters exceeded