cancel
Showing results for 
Search instead for 
Did you mean: 

How to assign the same GTIN for different material?

MarcoK
Explorer
0 Kudos

Hi,

I've managed to install an internal number assignment for the GTIN / EAN in material master which works fine.

Now we need to assign the same GTIN to different material numbers. 

Since the defined number range is marked as internal I cannot use this number range as the external number range in spro -> Define Attributes of EANs/UPCs (number categories/EAN categories):

I cannot make an external number range with the same data as the internal one, since number ranges must not overlap.

So, here is the question again:

How can I achieve that 1. the GTIN is generated and 2. a GTIN, which is already assigned to another material, can be entered manually in the GTIN field?

Any advice is appreciated,

thanks,

Marco.

Accepted Solutions (1)

Accepted Solutions (1)

tomas_talpa
Active Contributor
0 Kudos

Hi Marco,

you can switch the EAN category to external number range, and then use the BADI_EAN_SYSTEMATIC "BAdI for Internal Control of EAN Logic" to:

  • either create the EAN number by custom logic, in case the user didn't specify the EAN manually (basically simulating the assignment from internal number range);
  • or, in case the user entered the EAN manually, check whether this EAN is already existing;

Kind Regards

TomT

MarcoK
Explorer
0 Kudos

Thanks Tomas for your reply.

When I read the documentation for "IF_EX_BADI_EAN_SYSTEMATIC" it reads:

"The system checks whether the EAN has already been assigned in each case." which irritates me, because I'd like to assign an already existing EAN number to different materials.

So, is this really the correct solution for my requirement?

Thanks,

Marco.

tomas_talpa
Active Contributor
0 Kudos

Hi Marco,

I'm really not sure what SAP meant with this sentence, but this BAdI definitely allows you to assign existing EAN to another material.

Kind Regards

TomT

MarcoK
Explorer
0 Kudos

Hi Tomas,

thank you for your efforts.

I implemented the mentioned BADI in our IDES System just for test purposes and it seems to allow the same GTIN number for different materials.

Now I have to think about how to generate the GTIN number (with correct checksum), if no number ist given...

Thanks,

Marco.

Answers (1)

Answers (1)

Former Member
0 Kudos

1. the GTIN is generated

This should be "external" number range only.

2. a GTIN, which is already assigned to another material, can be entered manually in the GTIN field?

We can enter manually or thru' upload during master data creation provided number range is "external"(refer point no.1 above)

Unable to understand that why you need same GTIN in two different articles?

Request to understand the business process once again as this leads to confusion reg. inventory, PDC and PoS dumping.

MarcoK
Explorer
0 Kudos

@Arul Murugan

"Unable to understand that why you need same GTIN in two different articles?!"

Actually it's the same article (same size, etc) with different material numbers. The only difference may be that one of them has passed a special test. Against all objections against this decission our process responsible decided to do it like that.

So I have the same article with two (or more) different material numbers. These materials need the same GTIN.

Thanks,

Marco.