Before display/selection of data in SM30...
I have created a custom table X1 which I can display/maintain using SM30. There is a field called ID field in that custom table. Now that key field called ID field may have different values like:
The status of the fields values is maintained in some other custom table. DEMO1 in ID field can be in active status or both DEMO1 and TEST1 can be in active status in other cusom tbake.
Now my requirement is when I display or change the custom table X1 via SM30, I need some way of displaying/selecting only those ID fields which are active in another custom table.
why dont you try writing a report(assigned to a tcode) for this.
The selection screen should have the following options:
Display ( as radiobutton)
Maintenance ( as radiobutton)
Write your logic of what data you want to show/change for the custom table and depending on that you can call FM 'VIEW_MAINTENANCE_CALL' to display/change the data that you want.
Hope this helps.