Extending Function Module Assignments (Direct
Inbound)
Here you specify that your extended function module may process your extended basic type with a specific message. This involves enhancing the ALE registration of the function module.
You must have completed the required steps for outbound processing in Extending an IDoc Type .
...
1.
Choose SAP Menu →
Tools
→
Idoc Interface/ALE →
Development ®
IDoc ® Inbound Processing
®
Function
Module → Assign IDoc and Message Type (WE57), then
and then
New Entries. Assign the relevant function module
(type F) to the basic type, to your new extension and to your message type and
select the application object as in a non-extended case.
2. Enter direction 2 (inbound). Save your entries.

In the example, the following objects are assigned to each other when you have made your entries:
Module |
IDOC_INPUT_ORDERS |
Basic type |
ORDERS01 |
Enhancement |
Z1ORDERS |
Message type |
ORDERS |
Object type |
BUS2032 (sales order) |