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: 

TABLE

Former Member
0 Kudos

Hi,

I am facing following issue , if anyone can suggest me something.

I have to create one custom table ,in which one field is of matnr , but issue is i have to restrict entries in this field for particular material type only .what i have done is the field's check table mentioned as mara , but how i can restrict it for mtart.

thanks in advance.

3 REPLIES 3

Former Member
0 Kudos

Hi gud,

1. One way is to create a new view

with the required filterations for MTART.

2. Then use this view as a CHECK TABLE

in your field MATNR for your z table.

regards,

amit m.

former_member927251
Active Contributor
0 Kudos

Hi Gud,

You can goto the TABLE maintenance generator and write the code there to retrict the entry as you want.

Regards,

Amit Mishra

Former Member
0 Kudos

Hi,

You can create a field 'ZMTART' , data element 'ZZMTART'.

data element ZZMTART, data type, domain : ZZMTART.

In that give the value range:

Fixed value and short text.

The restrictions can also be handled using the events in table maintenance generator.

pls have a look at this link for moreinfo on this:

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

Hope you got the point.

Regards,

Anjali