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

Table Validation using event in TMG

Former Member
0 Likes
1,254

Hi All,
I have requirement in Validation for a table.
I have a table with 10 fields and out of which one is primary key.
let when i choose the primary key as XXX then field 3 and field 4 should be greyed out and other 7 fields should be editable
similarly when i choose the primary key as YYY then field 4 and 5 should be greyed out.

This is possible if i put the validation under PBO in TAble maintainence generator but i have the requirement to do it in events.
kindly advice me which event should i use .

i have already used event 01 and 05 with the same code as i used under PBO section.

1 ACCEPTED SOLUTION
Read only

Azeemquadri
Contributor
0 Likes
625

http://wiki.sdn.sap.com/wiki/display/ABAP/The+Events+in+Table+Maintenance+Generator+SM30

Please check the above link for table maintenance events.

2 REPLIES 2
Read only

Azeemquadri
Contributor
0 Likes
626

http://wiki.sdn.sap.com/wiki/display/ABAP/The+Events+in+Table+Maintenance+Generator+SM30

Please check the above link for table maintenance events.

Read only

0 Likes
625

Hi Praveen,

Event 05 (creating new entry) would fit your requirement.

Please paste the code you tried.

PFB link for sample code:

http://scn.sap.com/docs/DOC-10427

In the example above, you wouldn't need the code for pop-up screen.

Instead can hardcode the 2 specific fields that needs to be disabled.

Regards,
Nisha Vengal.