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
bobbyp450
Explorer
0 Kudos

as per above answer using trim command for left side, one may use it to trim using right hand-side as well, for example

trim for 5 char: %=right($random$,5)%

trim for 4 char: %=right($random$,4)%