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

Former Member
0 Likes
455

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
Read only

Former Member
0 Likes
413

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.

Read only

Former Member
0 Likes
413

Hi Gud,

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

Regards,

Amit Mishra

Read only

Former Member
0 Likes
413

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