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: 

Avoiding deleting data in a table maintanance

Former Member
0 Kudos
467

Hi Folks,

          Based on some condition we need to restrict data in a table maintenance generator.

          If i keep a error message, still its deleting after showing the message.

          Please suggest me a way to do it.  Thanks.

Shyam.

1 ACCEPTED SOLUTION

former_member213851
Active Contributor
0 Kudos
242

Hi Shyam,

In Table maintenance generator, on menue path  select Environment->Modifications->Events->New Entry .

Create new entry and  choose particular event say 03 (before deleting the data displayed) and click on Editor .

Now after displaying the error message set gv_flag to X, write EXIT stmt so that control will not delete values inside Editor .

Eg:

IF GV_FLAG EQ 'X'.

EXIT.

ENDIF.

Best Reagrds,

Sachin

2 REPLIES 2

former_member213851
Active Contributor
0 Kudos
243

Hi Shyam,

In Table maintenance generator, on menue path  select Environment->Modifications->Events->New Entry .

Create new entry and  choose particular event say 03 (before deleting the data displayed) and click on Editor .

Now after displaying the error message set gv_flag to X, write EXIT stmt so that control will not delete values inside Editor .

Eg:

IF GV_FLAG EQ 'X'.

EXIT.

ENDIF.

Best Reagrds,

Sachin

0 Kudos
242

Thanks Sachin, Its working.. Closing the Thread **