cancel
Showing results for 
Search instead for 
Did you mean: 

How can we implement multiple views of a single table based on one of the field's value?

atulmittal07
Explorer
0 Kudos

Hello Experts,

I am having one requirement wherein I need to display/maintain certain fields of a table based on different Key-Value pairs. For Example, let's say we have 11 fields in a table, out of which 1 is a key field and 10 are non-key fields. Now the requirement is when I give a certain value to the Key field then the corresponding 5 non-key fields appear on the screen(SM30) and when I give a different value to that, then the other non-key fields appear on the screen. Is there any way we can achieve it wither through creating multiple views or a single view of a table?

Thanks in advance,

Atul Mittal

Accepted Solutions (0)

Answers (1)

Answers (1)

DoanManhQuynh
Active Contributor
0 Kudos

you have to write that logic in table maintenance event:

https://wiki.scn.sap.com/wiki/display/ABAP/TABLE+MAINTENANCE+GENERATOR+and+ITS+EVENTS