# n*tree

## How to enter the general data in a n*tree structure

| ### What to do:
| Select Manager > Tools > N*tree. The form N*Tree definition is opened.
| Change to Insert mode and enter the structure name, e.g. ITEM-COMPLETE.
| As the structure ITEM-COMPLETE is a higher structure to be execute, a mask name shall be entered. (See Userexit documentation xntree_wlk)
| Enter the mask name in the field mask name of the mask to be started by the function n*tree, e.g. EDB-ART-SLI
| Enter the userexit in the field Pre-structure processing which is to be processed before other structures are to be processed. In this example the data is reserved by the LogiView Userexit EP_NTREE/ExportRecord for the loader file.
| Fill in the field post-mask userexit. This userexit is processed before the mask is closed.
| Please remember that the LogiView userexit is called with the instruction lgv_nosel_run("Logic model/Decision table") . In this example this instruction is lgv_nosel_un("EP_NTREE/FinishExport") which asks for the name of the loader file.
| Repeat the above steps to create the following subordinated structures. Please fill in the specified fields. The field Memo can contain any comment.
Field name: | Entry:
Structure name: | ITEM-STRUCTURE
Start Userexit: | iwf_lis_ref("EDB-ARTICLE STR")
Pre-structure processing: | EP_NTREE/ExportRecord
Field name: | Entry:
Structure name: | ITEM-PROJECT-STRUCTURE
Start Userexit: | iwf_lis_agg("EDB-PROJECT STR")
Pre-structure processing: | EP_NTREE/ExportRecord
| #### Editing a part tree n*tree aborts the processing of a branch if the userexit specified in the pre-structure processing returns an error message. (Demanded/Defined cancel condition in the userexit).