cancel
Showing results for 
Search instead for 
Did you mean: 

Material master creation error through LSMW

Former Member
0 Kudos

Hi,

I have a problem with creation material master through LSMW with object type BAPI. I use below import methods

Business Object BUS1001006

Method SAVEDATA

Message Type MATMAS_BAPI

Basic Type MATMAS_BAPI03

Material number is configured length of 12 with leading zeros.

In my text file material number is given as XXXXXXXXXXX which is 11 digits. When I start IDoc processing it issues an error message u201CMG019 the numeric material number & was transferred without leading zerosu201D.

Then I add 0 to material number in the file (it becomes 0XXXXXXXXXXX) and run IDOC processing it issues same error message again.

How I can resolve this issue?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

pankaj_singh9
Active Contributor
0 Kudos

Hi,

Material No. (MATNR) is of 18 digits so maintain material no in file as 0000000XXXXXXXXXXX (Complete 18 digit).

ashish_andani
Contributor
0 Kudos

hi...

by default material length is 18 ..

so 11 characters u have given...for remainaing places u have to give 7 zeros....

or change the mateial length to 11 digits..

hope it works

thanks

Former Member
0 Kudos

Hi,

Thanks for the replies.

I have added 0su2019 to the material number as you suggest and it is now 18 digits but when I start IDOC processing it now issues error message u201CMG046 Field & has been transferred inconsistently or is blanku201D although it is not blank and it is as 0000000XXXXXXXXXXX.

Regards

JL23
Active Contributor
0 Kudos

MG046 Field & has been transferred inconsistently or is blanku201D

what field is mentioned where you have the place holder &

are you still talking about material number?

Why dont you just post the number? do you think anybody can do anything with seeing a number here?

JL23
Active Contributor
0 Kudos

have a look into OSS Note 1439284 - MM17: Error MG 046 and MG 047 when you maintain tax data

As MM17 works with IDOC technique, if may also be the same error for your case.

Former Member
0 Kudos

Hi Jürgen,

Sorry, it was my mistake. The complete message is u201Cfield MATNR has been transferred inconsistently or is blanku201D.

The material number I am trying to create is 000000061200510978

I havenu2019t tried MM17 but I will let you know.

Regards

pankaj_singh9
Active Contributor
0 Kudos

Hi,

Refer SAP Notes;

685253 BAPI: Error for field MATNR - inconsistent for tax data

1439284 MM17: Error MG 046 and MG 047 when you maintain tax data

Former Member
0 Kudos

Hi,

Our SP level is SAPKH60405 so SAP Note 685253 is not applicable but I will look at SAP Note 1439284 if it ok or not.

Regards

Former Member
0 Kudos

Hi,

We have applied SAP Note 1439284 to our system but nothing has changed! Still I get error message MG046 (field MATNR has been transferred inconsistently or is blank) while creating material master through LSMW

Thanks

Former Member
0 Kudos

Just skimming the thread. In the Source field definition did you set it as Numeric ? If numeric try setting it to (18) character.

Former Member
0 Kudos

Hi Nick,

Yes it is defined as N(018) in source fields step

Former Member
0 Kudos

What I am saying is try setting the definition to Character (018) because that is what it is in SAP.

Former Member
0 Kudos

Hi Nick,

Yes I got your point and tried both ways of, N(018) and C(018),definition for MATNR but they all failed when I run IDOC processing, i.e., system issued error message u201Cfield MATNR has been transferredu2026u201D

Thanks

Former Member
0 Kudos

Hi,

Please check the below link...

and also check the OSS note 707602.

Hope it may help you.

Kuber

Edited by: kuberk on Aug 14, 2011 4:00 AM

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear colleagues,

Any comment will highly be appreciated on this issu.

Regards

JL23
Active Contributor
0 Kudos

where do you actually stuck?

Almost 3 months are gone since you opened this thread, do you really stuck at the very same step?

former_member187989
Active Contributor
0 Kudos

If problem is solved,please update status & close this thread.

Former Member
0 Kudos

Hi,

Can you try with formating the input file for the Matnr field and verify in the LSMW whether is it considering the same as in input file.

Regards,

BK