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: 

Exclude Material Master views in IDoc

Former Member
0 Kudos

Hi,

I am using the MATMAS04 IDoc to replicate material master data from one client to another (two clients in the same system). I need to exclude the MRP I-IV views and the Storage Location views - except for these views the data in all other views should be replicated in the target client. Is there a way to just disable the data for these views in the Idoc? I have checked the various segments, but was not able to find any flag/field to disable views selectively.

Please help.

thanks,

ram.

3 REPLIES 3

Former Member
0 Kudos

Hi Ram,

I am not familiar with Idoc type MATMAS04. I guess you are using a later version of R3.

However there is a segment filtering functionality for IDocs which you can use.

As an example , I will use IDoc Type MATMAS03. This idoc type has a segment E1MVKEM which stores the Sales View data for the material. This segment is not a mandatory segment and hence it can be filtered when sending the idoc downstream.

In BD64, for the distribution model, create a filter. The filter should be set to check the contents of Sales Org field. Then set the filter to a value which you are never expecting to find in VKORG field.

What happens is this: A master idoc will be created with all the views ( meaning all the segments ). During the filtering stage, the filters set up in BD64 will be checked. If the Sales Org in the idoc does not match the Sales Org in the Filter, the E1MVKEM segment will be deleted in the idoc.

A similar approach could be used for the MRP views and Storage Location views in your idoc.

Thanks,

Urmila

0 Kudos

Hi Urmila,

Thanks for the response. I will check this out. However, most of the MRP fields are in the segment E1MARCM which is also the segment for plant details and extending to multiple plants. There is no separate segment for MRP views. I guess I will have to clear the respective fields in the IDOC segments if nothing else works. I will check the filter option though. Thanks.

Ram.

Former Member
0 Kudos

Hi Ram,

The other option you have is to create a reduced idoc. For instance create a custom reduced message type using BD53. Here you will be prompted to give a reference message type - you can specify matmas.

From the structure that is shown you can either select or deselect segments. You can also select and deselect fields within a segment. I think that should serve your process.

Of course this method is used if you are sure you will never be sending those fields to the target system.

~Urmila