2014 Aug 12 1:06 PM
Hi,
I would like to issue an error in table maintenace event without exiting the screen.
When I am going to save in table maintenace then i am getting error but at the same time it is exiting table maintenace screen. I want to stay on the same screen but only want to give error message. Please can you help me in this ?
Below is the code I have written in event:
DATA lwa_row TYPE ztemp.
LOOP AT total.
clear lwa_row.
if <vim_total_struc> is ASSIGNED.
MOVE-CORRESPONDING <vim_total_struc> to lwa_row.
endif.
if <action> NE 'D' and <action> is NOT INITIAL and <action> NE 'X'.
if lwa_row-hkont = ''.
MESSAGE 'Please enter GL?' TYPE 'E'.
vim_abort_saving = 'X'.
ELSEIF lwa_row-ind = ''.
MESSAGE 'Please enter indicator?' TYPE 'E'.
vim_abort_saving = 'X'.
endif.
endif.
ENDLOOP.
Many Thanks.
2014 Aug 12 1:21 PM
Hi,
What`s event you are using, '01' ?
And change your code to this: 'MESSAGE 'Please enter indicator?' TYPE 'S' DISPLAY LIKE 'E'.'?
regards,
Archer
2014 Aug 12 1:21 PM
Hi,
What`s event you are using, '01' ?
And change your code to this: 'MESSAGE 'Please enter indicator?' TYPE 'S' DISPLAY LIKE 'E'.'?
regards,
Archer
2014 Aug 12 1:40 PM
Hi,
Yes, I am using event '01'.
Tried with Type 'S' and Display like 'E'. It stays on the same page and displaying error but it is allowing entry to save. I don't want entry to save.
Many thanks for your reply.
2014 Aug 12 2:03 PM
Hi,
You could do your validation in the PAI module of Table maintenance screen.
2014 Aug 12 2:18 PM