Dynamic Printer Determination

Purpose

If you do not want to define your printer in the Customizing settings, it is possible to determine a printer dynamically by implementing the BAdI PRINTER_DETERM_PPF. You may want to do this in order to determine the printer on the basis of user master data or sales organization, for example.

The method GET_PRINTER_DATA of the BAdI PRINTER_DETERM_PPF has the following interface:

Parameter

Meaning

FLT_VAL

Trigger type

IO_CONTEXT

Application data

CP_PRINTER_DATA

Spool data including printer

Process Flow

You create an implementation of the BAdI PRINTER_DETERM_PPF using transaction SE19 (Business Add-Ins: Initial Implementation Maintenance Screen). You apply dynamic printer determination to all the relevant action definitions by assigning filter values. When assigning the filter values, you use the technical name of the action definition. You can also enter the start of the name and an asterisk (*) as a wildcard. For the filter value order_conf*, the implementation would apply to all action definitions that start with order_conf, such as order_confirmation_01, or order_confirm.

For more information, see the SAP Note 521529.

If you want to return the printer specified in the user master data, copy the program code of the BAdI implementation PRINTER_DET_SUSR_PPF into your implementation.