Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Table View - Filtering by fields

Former Member
0 Likes
918

Hello experts!

I want to generate a popup window in sm30 before showing a table view. That popup window should ask for a field value, and, depending on that value, I want to show or hide a whole column in the table view. Can anyone help me with this?

Thanks in advance for your answers.

Best Regards,

Lameira

6 REPLIES 6
Read only

Kiran_Valluru
Active Contributor
0 Likes
840

Hi.,

Check this Article., [Dynamically Enable/Disable Fields in TMG|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80b077d7-5317-2e10-8db8-aaf6921ced4a?quicklink=index&overridelayout=true]

this will give you idea how to do this.,

hope this helps u.,

Thanks & Regards

Kiran

Read only

0 Likes
840

Hi. Thank you for your answer! It is almost it. In the popup I want to get a field value, and then show only the records in which the field has that value and plus not show a whole column of other field. I don't want to deactivate that column, I want to hide it. Any ideas?

Thanks again,

Lameira

Read only

0 Likes
840

Hi.,

instead of screen-input = 0., try using screen-active = 0 to hide the field.

hope this helps u.,

Thanks & Regards

Kiran

Read only

0 Likes
840

Hello! Thanks again for your answer. I really wanted the column to disappear. screen-active = 0, hides the content of the column, but the column remains in the table view. Is there a way to dynamically remove the column?

Best Regards,

Lameira

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
840

Why dont you go for a custom module pool program. There is a chance of TMG regeneration so better do it through a custom program.

You can also try with function module STC1_FULLSCREEN_TABLE_CONTROL wherein the table parameters FIELDDIF can be used for hiding the fields by passing NO_DISPLAY = 'X'. You can check function module WAF_VERSIONMANAGEMENT for example.

Read only

0 Likes
840

Thank you for your help .