I have a task to modify the No. field in the G/L Account table using Cal Code . I should not do it manually.
I want to change the No. (Data type is Code) value, For example 00100 to 0000. So in every record I should remove the third figure.
And finally update all the records in the G/L Account table.
I really request to help me out. I was trying to use a report, so that as I print I do the modifications and update the data item, But it has not worked.
Thanks
mpmaurice
0
Comments
can you show us?
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
regards
Christian
And use enough checks to make sure you don't rename the same record twice. (like 12345->1245->125)
|To-Increase|
Position:=3;
Length:=1;
"StringNo." := "No.";
mycode := DELSTR("StringNo.",Position,Length);
"No." := mycode;
RENAME("StringNo.");
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
So what happens if you have
00100
00200
00300
etc..
do you want them all to become 0000?
Do you just not "like" the numers being used or does it have a business purpose?
http://www.BiloBeauty.com
http://www.autismspeaks.org
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book