
Inbound distribution enables methods to be included for processing incoming send orders according to their recipients and document classes.
You have to have created the exit class that is to be used to process the message. The class must have implemented the CREATE_INSTANCE and PROCESS_INBOUND methods of interface IF_INBOUND_EXIT_BCS. For more information, see Inbound Processing in the documentation on Business Communication Services. If there are several suitable exits, processing occurs according to call sequence.
You must be using the SMTP plug-in.
Call transaction SO50.
Make the following entries for the messages that are to be processed:
Communication method by which the messages are sent
Recipients to whom the messages are addressed (can be specified generically with * as a placeholder if all document types are requested)
Document class of messages
Class that is to process the incoming messages
Call sequence of the classes
The specified number determines the sequence in which exits are called if several suitable exits are found for one send order. Subsequent exits are then only called if the exit executed previously did not execute the delivery (that is, it returned the return code GC_CONTINUE).
The two exits CL_EXIT_1 and CL_EXIT_2 are entered for the document class XML and the recipient purchaseorder@company.com.
If the processing logic in the exits expects different DTD (Document Type Definition), only one of the two exits is executed. In this case, the call sequence is of no significance.
If both exits expect the same DTD, only the exit called first is executed. This exit executes the delivery and completes the processing. In this case, the call sequence determines which exit is called.
Save.