
Determining Notification Recipients
Use
If a warning or error occurs during processing of an incoming document by Electronic Data Interchange (EDI), the system determines the employee responsible, or agent, and sends a
workitem by electronic mail. The system first tries to determine a notification recipient at the sales document level. Because sales documents in scheduling agreement processing normally contain only one material, you can also consider this a search at the material level. If the system fails to determine a recipient this way, it carries out a more general search at the customer level.
Features
When you receive an incoming EDI document, the system searches for the reference sales document. If it finds one, it looks for partner function ED in the document header. This is a special partner function that has been specifically developed for notification recipients in incoming EDI processing for component suppliers. You can enter it manually in documents in the Partner screen, or the system copies it to sales and shipping documents from the sold-to party master record.
If the system finds this partner function, it sends an electronic mail to the partner using the personnel number that you have assigned.

In sales documents, you cannot process recipients according to work center, job, organizational unit, position, or user. You can only work with personnel numbers, partner type PE. The system only allows one personnel number each in the sales document and customer master.
If an error occurs in processing before the system has found a sales document, or the initial search is unsuccessful, for example because the partner does not have the required partner function, the system uses the standard method of finding a recipient with the customer number defined in the
partner profile.
There is another method, different from the above standard, to specify a notification recipient for an incoming document that you have just processed. With user exit EXIT_SAPLVED4_004, you can use the IDoc message type as import parameter, or the IDoc control record and data record as table parameters.
Transmit a user type in export variable E_USRTYP and a user name, or number, in export variable E_USRKEY. If you do not maintain both export parameters, the system does not take the user exit results into account.
Integration
This function is available for all documents associated with scheduling agreements:
For self-billing documents, the system takes the personnel number from the delivery header instead of the sales document header.
The recipient determination function is not available for self-billing with invoice creation. This is because the customer can send several deliveries in one EDI document, resulting in some cases in the system determining several personnel numbers for one item. Workflow, however, only allows you to send a notification to one person.