Use
You can use the test tool to generate an IDoc "manually" and send the IDoc for either inbound or outbound processing. You are not restricted to a specific port type. You can start with an IDoc type (an "empty" IDoc) or use an old IDoc as a template and edit the IDoc, that is to say, add segments or change data. This is a good way to test new IDoc types, in particular.
You can forward your new IDoc for standard inbound processing (checking partner profiles and so on). You can also call a function module directly. You can therefore test new function modules for new IDoc types.
Activities
You can choose IDoc types as a template, either directly or according to a specific message type. You can use the F4 Help for IDocs used as a template, which searches for IDocs by selection criteria, in the same way, for example, to
The IDoc is displayed as a tree structure. If you do not use a template to create the IDoc type, at least one more segment must be added.
You can cut, paste or copy individual segments or entire segment groups by positioning the cursor on the relevant segment and selecting the required action from the Edit menu.
In the case of the control record, only the fields which are relevant for standard inbound processing are displayed. Do not forget the required entries in the partner profiles if you want to send the IDoc for standard inbound processing! You can also change all of the control record data by choosing All fields in the edit screen.

In the editor screen All fields you must enter the non-language specific partner function (for example