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: 

UPDATE EAN/UPC EAN11 TO MATERIAL MASTER

0 Kudos
1,036

I am trying to pass EAN11 field value using bapi_marm structure in BAPI_MATERIAL_SAVEDATA bapi by keeping

unitsofmeasure-ean_upc = ean11.

unitsofmeasure-alt_unit_iso = meins. unitsofmeasure-alt_unit = meins.

Append unitofmeasure.

unitsofmeasurex-ean_upc = 'X'.

unitsofmeasurex-alt_unit_iso = 'X'.

unitsofmeasurex-alt_unit = 'X'.

Append unitofmeasurex.

But EAN11 is not updating in material master through this BAPI.

After the Calling BAPI_MATERIAL_SAVEDATA I am calling BAPI_COMMIT as well.

Any other way for updating EAN/UPC value through any other bapi or fm please suggest me ASAP.

Thanks in advance.

Awaiting for the reply.


7 REPLIES 7

raymond_giuseppi
Active Contributor
0 Kudos
968
  • Convert SAP unit to ISO unit with FM UNIT_OF_MEASURE_SAP_TO_ISO to fill unitsofmeasure-alt_unit_iso.
  • Did you get any message in RETURN table

fedaros
Product and Topic Expert
Product and Topic Expert
0 Kudos
968

Hi Ishani,

Check if table INTERNATIONALARTNOS - International Article Numbers (EANs) works for you, it will update table MEAN.

Using structure unitsofmeasure you will update MARM table, more related to convertion units, of course you may have one EAN per different unit of measure.

Regards, Fernando Da Rós

0 Kudos
968

That also tried no luck.

0 Kudos
968

But If I am passing PC it is automatically converting into ST

fedaros
Product and Topic Expert
Product and Topic Expert
0 Kudos
968

Hi Ishani,

It is not working or not working as desired ?

The answer from raymond.giuseppi handle a conversion to insert in ISO format.

PC and ST are the same, ST is internal and PC is external.

Check on SE16, disable the conversion exit on settings and you will see MSEHI shown as ST, and flag it again you will see visible as PC.

Regards, Fernando Da Rós

0 Kudos
968

It is not at all working, I am passing only now data with mean structure with delete_flag =x and the BAPI_MATERIAL_SAVEDATA also not returning any error but the EAN/UPC field also not updating.

I Am using MEINS as ST

fedaros
Product and Topic Expert
Product and Topic Expert
0 Kudos
968

Hi Ishani, your questions is rolling through additional points. Are you deleting now ?

Please send the new code, what you expect that works and what is, or not, working.

BTW: How do you know that your first code not worked ? Where did you looked at ? Table ? Transaction (which tab) ?

Regards, Fernando Da Rós