SAP for Retail Discussions
Join conversations about personalization, omnichannel strategies, and operational excellence in retail using SAP for Retail software.
cancel
Showing results for 
Search instead for 
Did you mean: 

No entry in key field of table MARM

Former Member
0 Kudos

Hi,

I am trying to import and create a Article Master using LSMW with IDoc method. ARTMAS IDoc is getting generated but it is showing error as No entry in Key field MARC, MVKE, etc etc and now finally stuck in No entry in key field of table MARM even after filling all possible data.

Function Module used here is BAPI_MATERIAL_MAINTAINDATA_RT. I don't know any technical aspects here to look into.

Kindly help me out with the information on what could have gone wrong here and what are the possible solutions?

Thanks & Regards,

Sudhanva Joshi

8 REPLIES 8

Former Member
0 Kudos

Hello Sudhanva Joshi,

Please verify whether you have populated table parameters  UNITSOFMEASURE and  UNITSOFMEASUREX before calling the BAPI.

Thanks,

Venu

0 Kudos

Hi Venu,

I have entered the values in Field UNIT & UNIT_ISO in the segment E1BPE1MARMRT but these fields are not present in E1BPE1MARMRTX for checkbox selection. do you think that this would be the cause of the problem? if yes, then how to resolve the same?

Regards,

Sudhanva Joshi

0 Kudos

Hello Sudhavana Joshi,

I am able to see these fields UNIT_DIM & UNIT_DIM_ISO in both segments E1BPE1MARMRT & E1BPE1MARMRTX.  They need to be populated in both segments.

Thanks,

Venu

0 Kudos

Hi Venu,

Now i am stuck in somewhat a deadlock situation. and this is in MARM segment. below are the issues,

1. If I provide an entry in Alternate UOM field in MARM, Ex: EA is base unit and PC is ALT unit, I am getting an error as ' The Alternative unit of measure is same as Base unit of measure'

2. And, If i don't give an entry in ALT_UOM field (which SAP suggests, in case there is no other units than Base unit, leave the ALT-UOM field as blank), I am getting an error as "No entry in key field of table MARM"

Can you please assist in resolving this issue.

Thanks & Regards,

Sudhanva Joshi

0 Kudos

Hello Sudhanva Joshi,

Please check your base unit in MARA-MEINS. If you do not have an alternate unit, you can enter base unit = alternate unit = EA (MARA-MEINS) for MARM record.

Hope this helps.

Thanks,

Venu

0 Kudos

Hi Venu,

In that case, I get an error saying ' The Alternative unit of measure is same as Base unit of measure'

Thanks,

Sudhanva

0 Kudos

Hello,

Not sure about the reason for the message. You need an entry in MARM table for the base unit. Can you please create an article using MM41 and see whether you are able to do this?

Thanks,

Venu

r_soares
Explorer
0 Kudos

Hi

Execute transaction BD10 to create the ARTMAS IDOC for an existing article with multiple units of measure. You can then look at this IDOC data structure in WE02 to see how it is populated and make sure you populate your IDOC in a similar way fill in the segments correctly.

Regards,