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: 

how to extend Material to sales org view using Idoc matmas05

Former Member
0 Kudos

Hello team,

I am creatinge a material in MDG system using Idoc with Idoc type MATMAS05.

In this code I am passing all the Idoc segments E1MARAM , MARC,MVKE...etc.

Now I want to extend the material created using this process to a new sales organization.

I am trying to pass only the MVKE segment to Idoc and create the new sales org view.

I am doing this as the material already exists in the system.

when I do so I am getting an error

'THE BASE UNIT OF MEASURE CAN NOT BE DELETED'.

where as I am passing same base unit of measure and not trying to delete it.

Please tell me am I following the correct approach to extend the material using Idoc matmas05?

Is there any other way to extend the material?

first of all is it possible to create Idoc with only single or say 1 or 2 segments passed?

Regards,

Anagha.

1 ACCEPTED SOLUTION

JL23
Active Contributor
0 Kudos

The MATMAS Idoc has mandatory segments which are  E1MARAM and E1MAKTM

so you need to have those 2 plus your E1MVKEM.

for fields that shall not be updated you need to have a slash as value

example:  E1MARAM-MEINS = '/'.

7 REPLIES 7

JL23
Active Contributor
0 Kudos

The MATMAS Idoc has mandatory segments which are  E1MARAM and E1MAKTM

so you need to have those 2 plus your E1MVKEM.

for fields that shall not be updated you need to have a slash as value

example:  E1MARAM-MEINS = '/'.

Former Member
0 Kudos

hello Juergen,

Thanks for the reply.

Can we have something in Idoc which will identify on its own that the Idoc being generated is for

creating material or extending material or changing the data in the existing material ?

is there something extra to be passed to Idoc so that it will change or extend the material ?

because it gave an error saying

'/ can not be passed in base unit of measure'

when I tried same thing.

Am I missing something while creating idoc segments?

Anagha

JL23
Active Contributor
0 Kudos

the program that takes care about the Idoc posting does it by itself, it tries to create the material and if it is already there then it tries to change it.

Where do you get this message and what is the message number?

Former Member
0 Kudos

Ok.

I get this message when the material is uploaded to staging area in MDG.

When I try to move it to active area I am supposed to resolve this error then only can move the data to active area.

Error Message details

Class M3

Msge no. 837

Thanks for reply.

.

JL23
Active Contributor
0 Kudos

M3 837 is 'THE BASE UNIT OF MEASURE CAN NOT BE DELETED'.

that was the initial error, but you had just talked about '/ can not be passed in base unit of measure'

And I wanted to know where you get this error and what error message number this is.

Former Member
0 Kudos

Yes Juergen,

You are right there is no such error coming.

As u said it accepts / except the quantity fields like brgew.

I must have done some incorrect coding earlier.

Jelena
Active Contributor
0 Kudos

If this is resolved then kindly close the discussion, see this blog: http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why