How to add unique Serial number to a text string/text key with more than 60 characters
Hi All,
I have a transaction level file coming from SAP with Actual records containing more than 50 columns in a module. As per business requirement I have to create a text key line item in that module with more than 30 columns which makes key larger than 60 characters so unable to import it as code in any list weather general or numbered.
Can anyone help me a way out to add unique serial number as a new line item in same module for each transaction record of that key with duplicate key to retain same serial number.
I tried with Rank formula but that doesn't work in above scenario with key being in text format.
Answers
-
Hey, whats the issue with rank ? You can convert the rank number to a text using TEXT function ?
0 -
Hi @Ronak123
I assume that these 30 columns are list formatted line items in the module. If you're considering all 30 columns individually to create code, it'll definitely get more than 60 chars.
I'd suggest grouping 2-4 dimensions in one module and creating separate code for them. Use Alphabets for one list instead of numbers. Using alphabets will take only one char for 26 numbers.
The idea may work but using 30 columns to create unique codes is still a tough task. Even if I assume that these lists have 5 items on average, the possible unique key needed are 5^30. That's 9.3132257e+20 unique codes. 🤯
Thanks!
0