03-19-2014 11:39 AM
HI All, Need to validate Table events when user put some wrong entry in table and press enter have to show error message.i have used 05 event and code also attached here plz correct me coz its not working. Thanks Sankil
03-19-2014 11:53 AM
Hi Sankil,
Please use the Event 21 or Event 5, it should work. I think in your case Event 21 should work.
I hope it works. Let us know if it works.
Regards,
Sachin
03-19-2014 12:07 PM
Hi Sankil,
Go to your z table in edit mode-->table maintenance generator--->Environment-->Modification-->Events.
Create new event by giving event type and supply subroutine name write your logic in Form routine that will be executed when the event will fire.
03-19-2014 12:32 PM
There might be some problem with assigning else the event 05 is the correct event for ENTER press.
03-19-2014 12:37 PM
HI Sankil,
There are two ways to deal with this:
1. Use events .. as you already saying you have used 05 try it with event 21 .
Second easy way.
2.
a. Go to the function group you have defined in the TMG.
b. Open Function group in SE80.
c. Go to the screen
d. Choose the SCreen PAI for the screen you want to make chenage in.
e. Inside CHAIN ENDCHAIN right after all validation Module check_field\
f. It will show a pop up to select include in which you want to save the module create your own Zinclude so that even if you delete the TMG for some reason you code will be intact there.
g. writhe the validation inside the module and will work excellent for all teh cases.
h. Define this procedure in You Detailed design specification so that if someone delete TMG in future he will be knowing what modification you have done in Function group.
Let me know if you need any help on this.
Thanks & Regards,
Rahul.
03-19-2014 12:42 PM