Delete a table and rename using C/AL code. in navision.

Hi All users and developer of nav? There is a requirement in nav that I want to rename a table and delete the table using a report or codeunit.
If anyone has done it before please suggest the solution. Thanks in Advance.

http://anandnavconsultant.com

You mean you want to rename a table and then you want to delete that Table??

Have you tried taking a record variable of Object and then doing so.

It is not possible to rename a table name via the object table.

I don’t get, why you need this via c/al code, but it is possible to export the object to text via c/al, change the object name in the txt and then import the txt again.

I guess this is not what do you want to achieve. Can you please go more into detail? Do you mean rename and delete table records via c/al?