Application Development 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: 

how to restrict the records of Z table when using parameter transaction which uses SM31 update view?

Former Member
0 Kudos

Hi All,

I have just joined this community group and very new to this, so apologies if not asking the question right way..

I have a Z table (ZPRO) which  consists of some records which end user needs marking with X in one one of the table field 'processed' when they have done with the record whatever they need to do..

I have created a parameter transaction called ZPARK which opens ZPRO table in SM31 with maintenance allowed. So when end user runs this transaction they can see all the records of ZPRO table in SM31 mode and when they have actioned the record they put 'X' in one of the table field 'processed'.

My requirement is when they run the transaction ZPARK , they should only see the record where 'processed' field is not equal to 'X'.

This question is very similar to thread 1953184 but not sure how to achieve this? can someone please help?

Thanks,

Ash

1 REPLY 1

somnath
Active Participant
0 Kudos

Hi Ashok,

You have try with TMG - Event approach.

Step 1- SE11-> Utilities -> Table Maintenance Generator (TMG)

Step 2- Environment -> Modification ->Events

Step - 3 Create a new entry -> and use event 26

Step - 4 Create a new program (include with form ) beside the event

Step - 5 Capture the entries inside the form and put your logic to delete the entries which you don't need

I suggest deletion logic inside the form should be based on Authority object , as it might be needed to correct the entries for which the flag is 'X'

So if you don't have the authority to display the record then you delete else not, this will have a better control on records being maintained.

Let me know if this helps.

- Thanks , Somnath