I have one Main GTIN assigned and I need to flip back HPEAN flag (which is indicator for main GTIN) to other GTIN in the same article.
I know manually it's possible in MM42 transaction but I do not see any option to do this step in BAPI_MATERIAL_MAINTAINDATA_RT or any other way to do in mass.
Example
Article 9997665072 has GTIN assigned with category 'Z1' and that is main GTIN which has HPEAN flagged as 'X'.
There is another GTIN with category 'ZC' assigned in the same article.
I need a way to remove HPEAN flag from 'Z1' and then put it to 'ZC' which will make 'ZC' as main GTIN instead of 'Z1'.