Previous Topic: SAP InterfaceNext Topic: SAPSPEX


SAPSPEI

The SAPSPEI print initialization exit validates the primary destination. This is done by using the CA Spool ESFSTAT application programming interface. If this call accepts the printer destination as a valid printer, the exit creates parameter lists for the printing exit SAPSPEX, and returns to SAP. If the printer is considered invalid, the exit sets return code=4, and exits to SAP. This forces SAP to use the SAP spool.

Two SAP tables are read to provide further information for the ESFOPEN parameter list. Table 022B is read to find the printer type for the output. If it is indicated as IPDS, table 022I is read. This table provides the FORMDEF, PAGEDEF, and CHARS information for the ESFOPEN parameter list.