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 validate the data in table maintaince generator

Former Member
0 Kudos

hi

how to validate the data in table maintaince generator.

that is

assume we have 3 fields

f1 f2 f3

f1 is the primary key.

for f2 if we want to give only x or y value.

how to validate that column?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Jyothsna,

You can validate the data in table maintenance generator using events.

For eg. If you want to validate your data, before saving it in database, you can use the event '01' and write your code in the form routine for the particular event.

Please refer the following link for more details:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-87652872...

Reward points for useful answers.

3 REPLIES 3

Former Member
0 Kudos

Hi,

It can be done using Events.

Check below link for details

http://help.sap.com/saphelp_nw04s/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm

Regards,

Atish

Former Member
0 Kudos

Hi Jyothsna,

You can validate the data in table maintenance generator using events.

For eg. If you want to validate your data, before saving it in database, you can use the event '01' and write your code in the form routine for the particular event.

Please refer the following link for more details:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-87652872...

Reward points for useful answers.

former_member195698
Active Contributor
0 Kudos

Hi Jyothsna,

Why do you want to go through events?

If the data for the fields is fixed, why don't you go ahead with giving a Value range to the domain.

In the domain for the field F2, give the values X and Y in the value range.

The user will be able to select only X and Y through a list box in the Maintenance.

Rewards points if useful.

Regards,

Abhishek Jolly