on 05-19-2015 11:50 PM
Hi, experts
There is an account ID that leads with letters then goes to numbers. such as YDEP00001148595.
How can I remove the Zeros before the 5. I am trying to do this through a conversion file but the javascript js:parseInt(%external%) and it does not work. I am working on BPC 10.1 NW
Use substring!
js:parseInt(%external%.toString().substring(5)).toString()
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
If number of zero's and length of ID is fixed then use
ACCOUNT=0GL_ACCOUNT(1:4)+0GL_ACCOUNT(9:15)
Shrikant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Is it a compounded info object?
try split the ID first, then parseInt the number part, then join again.
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
15 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.