Configure Document Dispatch
For you to be able to send parameterized documents, the system administrator must have entered the necessary basic data.
On the SAP Easy Access
screen, choose to set the Sending Allowed
option on the Dialog Screen
tab page in the document category definition.
This indicator means that the pushbutton for sending is displayed in the document.
In addition, incorporate an include for document dispatch in the document category definition.
Generator Version 1:
On the Customer User Exits
tab page in the PAI (process after input) According to Standard
function the include N1DOKVERSAND
.
Generator Version 2:
On the User Exits
tab page in the Customer PAI (process after input)
function the include N1DOKVERSAND2
.
You must make the following enhancements in order to be able to automatically print the recipient's address on the document:
In the document you define a form window for the recipient.
As part of the print include you determine that the form window should be filled with the recipient from the document dispatch.
You define institution-specific recipient types (transaction SM30, table N1EMPFTYP). The recipient address is determined in document dispatch using the recipient types. The following recipient types are provided in the standard system:
Referrer (requesting OU)
Patient (patient master)
Referring physician (business partner)
Family physician (business partner)
External hospital (business partner)
Insurance (business partner)
Other address (entry)
Physician (business partner)
Customer-specific recipient type S
(entry)
You determine which internal recipient types are used in an institution and their name on the user interface. You can also determine that the recipient types are language-dependent.
Note
In table N1EMPFTYP2
(transaction SM30
) you can also determine for specific document categories (institution-specific) which recipient types the document should be sent to. The recipients are preset when document dispatch is called. If you use a main recipient, a recipient type can be selected here as the main recipient.
To enable dispatch by e-mail, you must manage a mail system with the corresponding domains in the table N1MAILSYSTEME
. You then also enter the mail system in the institution-specific system parameter N1MAILSY
.
For the recipient (for example, business partner), you enter an e-mail address in their master data or when entering the recipient whose domains match the domains in table N1MAILSYSTEME
.
Caution
Dispatch per e-mail is restricted to one e-mail domain. In document dispatch, the system will check whether the N1MAILSYSTEME
table matches the system parameter N1MAILSY
and the domain in the e-mail address of the recipient. If this is not the case, document dispatch by e-mail is not possible.
If you wish to prepare a document for dispatch by e-mail using the spooler, you enter a printer in the institution-specific system parameter N1MAILDV
, which could theoretically be used to print a document. The document will not be printed as it is sent by e-mail.
You must enter a fax number for the recipient (e.g. business partner) in order to dispatch as a fax.
Dispatch by fax is only possible using the spooler.
You maintain the necessary OU-related parameters.
You can use system parameter N1DOCPRE
to control whether the document should be displayed in the document display or in the print preview when data is for document dispatch.
For customer-specific enhancements, for example, changing the printer or recipient presetting, use the available User Exits and BAdIs.