Application Development and Automation 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: 
Read only

Validations in MAintainance View

lijisusan_mathews
Active Contributor
0 Likes
424

HI all,

I have assigned a Tcode to a maintainance view..So when i insert a new record , i want to check if a primary key field is left blank while saving or if all fields are blank while saving. In these cases it should not save. So what do i do? another validation requires to check if the start date is lesser than the end date.. IS this possible without having to create a new module pool or anything similar? if so how? Is it possible using Events in table maintance generator? CAn u please give me the detailed steps?

thanx,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
407

>Is it possible using Events in table maintance generator? CAn >u please give me the detailed steps?

yes it is possible, check the event 01 which triggers before saving the Data, So here you check and do the Validations.

3 REPLIES 3
Read only

Former Member
0 Likes
408

>Is it possible using Events in table maintance generator? CAn >u please give me the detailed steps?

yes it is possible, check the event 01 which triggers before saving the Data, So here you check and do the Validations.

Read only

0 Likes
407

But can u please give me the detailed steps to add code into it? When i try to add events in the table maintainance generator of the view, it is comin only in display mode. Or shud i try to add it right at the table level and then create he maintainance view? In this case, once i create an event and write the form for it, then i cannot access the events button again or change or recreate or do anything to the generator. the message that is deiplayed is that i cannot process the function group.

Read only

0 Likes
407

Hi

Check below link:

Its step by step guide for using Events in SM30.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20im...

Thanks

Praveen