1C: Enterprise How to create a process that copies all elements and groups from one directory to another directory?



The author posted a question in Programming

1C: Enterprise How to create a process that copies all elements and groups from one directory to another directory? and got a better answer

Response from

Response from 0[+++++]
1. make a bypass of one directory 2. create items in a new directory

Response from 0[+++++]
Make a query on the first directory with totals on the parent, selecting thus only the fields of requisites which are in the second directory. Next, bypass the result of the query with two loops: the first by groupings - parents, nested by subordinate elements. At each step of the first cycle, we create a new element - a group, at each step of the nested - the element with the group as a parent from the first cycle. And we fill in the appropriate requisites.

 

To answer the question:

Name*

E-mail:*

Reply text:*
Verification code (enter 22):*