23

Client requirement               â€“ Item Id needs to increase from 20 char to 30 char.


Solution given by us              - We increased size of EDT’s (ItemIdBase and EcoResProductNumber ) from 20 to 30 char.

 

Testing  Scenarios                 - 1) Create one product with product category and enter item number manually, it is creating product successfully with 30 char.

                                                   2) Create one product with product category, number sequence setup is picked based on the product category. Product is not creating as expected. Below is the warning.


Error message: - The number sequence format string exceeds the limit of 20 characters. The number sequence format has been truncated. You must modify the segments before saving the number sequence.  


We debugged the code then we found that because of 20 is hard coded in below code, we are facing issue, this is the blocker.


Standard Code:


 public void updateFormat(container _segments = this.createSegmentsFromTable())

    {

      EventHandlerResult result = new EventHandlerResult();

      str annotatedFormat = NumberSeq::createAnnotatedFormatFromSegments(_segments);

      str format = NumberSeq::createAnnotatedFormatFromSegments(_segments, false);


      var length = strLen(format);

      if (ScaleUnit::instance().isScaleUnitFeatureEnabled())

      {

        // Account for scale unit mnemonic suffix.

        length += strLen(ScaleUnit::instance().scaleUnitMnemonicPlaceholder());

      }


      formatTruncated = length > 20;


      numberSequenceTable.AnnotatedFormat = annotatedFormat;

      numberSequenceTable.Format = format;

       

      element.updatingFormat(NumberSequenceTable_DS, _segments, numberSequenceTable);

      numberSequenceTable_Format.update();

    }


We tried to write CoC, It is not working. Could you please provide any solution for above number sequence scenario as it is hard coded in standard code itself.

   

STATUS DETAILS
Needs Votes
Ideas Administrator

Thanks for your input! If it gets voted, we will consider adding it to our long term roadmap. 

Sincerely, 

Beatriz Nebot Gracia

Product Manager, Microsoft

Comments

S

Was anyone able to find a solution to the 20 character limitation? We face the same issue - our system allows 23 chars today.

Category: Product Information Management

S

This is absolutely mandatory for our Global Customer

Category: Product Information Management