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

SM30 table maint validation coding error...

Former Member
0 Likes
710

Creating a table maintenance generator for ztest99 table. I have given the function group name as ztest99. When i click on fn. Gr. Text button and then main program I can see the commented include file names in user defined include files. I uncommented the PAI module name LZTEST99I and duble click it I get warning message saying L type names are reserved for include files in function gr etc...

Then I get a popup asking create object , when i say yes , I get an error message saying 'unable to create include LZTEST99I in function group ZTEST99'. When I click on ? button of the popup , I get the explanation as "Include LZTEST99I does not logically belong to the function group ZTEST99 in which you wanted to create it. Instead, it belongs to function group ZTEST."

Note the function group its saying is different than what I have given it. I tried with different names every time it gives me different function group name than what I am giving what is the issue? Also extract has line structure , is there way to get individual field name for validation because I checked ztest99-field1 has no value.

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
678

Hello,

It is not encouraged to change the TMG code directly, you must use TMG events for this purpose.

You should read this SAP documentation:

[http://help.sap.com/saphelp_erp2004/helpdata/EN/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm|http://help.sap.com/saphelp_erp2004/helpdata/EN/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm]

BR,

Suhas

Edited by: Suhas Saha on Feb 17, 2010 1:01 PM

5 REPLIES 5
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
679

Hello,

It is not encouraged to change the TMG code directly, you must use TMG events for this purpose.

You should read this SAP documentation:

[http://help.sap.com/saphelp_erp2004/helpdata/EN/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm|http://help.sap.com/saphelp_erp2004/helpdata/EN/91/ca9f0ea9d111d1a5690000e82deaaa/frameset.htm]

BR,

Suhas

Edited by: Suhas Saha on Feb 17, 2010 1:01 PM

Read only

Former Member
0 Likes
678

You have to use ZTEST99I naming in order to append a new include for FG ZTEST99.

Read only

Former Member
0 Likes
678

Suhas ,

that was my first attempt. But for some reason the event 01 is not being triggered. What basically I am looking for is , I have 2 fields and I have put FK check, but it is still saving if one of the field is blank that I want to avoid. Can you pl let me know how I can do this?

Read only

Former Member
0 Likes
678

Ok I could get it now.

Thanks

Read only

Former Member
0 Likes
678

The functio gr has to be created for this.