Hi,
I'm using BAPI_MATERIAL_MAINTAINDATA_RT to create new materials. Everything was going fine until I added an EAN to the material, when it started giving the following error:
M3-535: First specify the main EAN for the unit PC
What this error says makes sense. But in structure MARM (parameter INTERNATIONALARTNOS) of this BAPI the field "main EAN" (HPEAN) is not available. So, how can I set it if it is not available?
I do see that in structure VENDOREAN has field main ean but I tried to set it and still nothing happened. Besides, I believe it doesnt make sense to set it from here since we don't need vendor data in order to add EANs to an article.
Having debugged I found the data flowing from INTERNATIONALARTNOS structure to internal table MEAN_ME_TAB which has a structure similar to MEAN and then the place where this internal table the existence of a main EAN is tested. Of course it always fails, since there is no way to fill that field from the BAPI.
Unless I'm missing something, I don't see how I can set the main EAN from the BAPI.
Please help.
Regards,
Nuno