2023 Jun 12 2:59 PM
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.
2023 Jun 12 3:54 PM
2023 Jun 12 4:11 PM
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
2023 Jun 12 4:57 PM
2023 Jun 12 4:59 PM
But If I am passing PC it is automatically converting into ST
2023 Jun 12 6:37 PM
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
2023 Jun 13 2:50 AM
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
2023 Jun 13 10:11 AM
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