cancel
Showing results for 
Search instead for 
Did you mean: 

Different digit amount for CBTA %random% token?

Former Member
0 Kudos

Hey there,

I'm automating a test case with CBTA and I need to randomize a value, wich is 5 characters long only, and the %random% token will make a 6 digit number.

How do I customize it to bring only the 5 digits number I need?

Is it possible?

As you can see in the image attached, we were able to figure out a way to customize dates to the SAP format (the default date token, %today%, brings up your PC's date format), but we can't seem to be able to figure out the %random% token.

Your help will be greatly appreciated!

If you want to reply privately my e-mail is lionel.lerner@gmail.com

Cheers, Lionel.

View Entire Topic
Former Member

I found the answer with a colleague, in case anybody in the future comes across this silly problem, the answer is as silly:

%=left($random$,5)%

There you go. A 5 digit random number.

Thanks me! You're welcome.