We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!



PERFORM Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Customer-specific COBRA Letters: Preparing the Print Output

Opening a print request for outputting one or more COBRA letters using the SAP spool system is subroutine OPEN_NEW_SPOOL_JOB in the SAP standard system.

The function exit EXIT_RPUCOB02_001 enables you to access this mechanism according to your requirements. In this way, you can divert the print output from the SAP spool system to an external word processing tool, such as MS Word, if you need to do so.

When processing a qualifying event, you can completely do without the output of COBRA correspondence. In this case, you must activate the event PCOB0001, you do not, however, need to implement any code in Function exit EXIT_RPUCOB02_001.

The default entries are transferred for the subroutine OPEN_NEW_SPOOL_JOB as the input parameters of the function exit:

  • OUTPUT_DEVICE Device type
  • OUTPUT_DIALOG Indicator: Dialog for print options
  • OUTPUT_LANGUAGE Language variant of form
  • OUTPUT_OPTIONS Print options

As Output parameters you can return:

  • OUTPUT_RESULT Print options (Return value)

You can also indicate two Exceptions in standard coding:

  • STANDARD_PROCEDURE Access standard procedure
  • CUSTOMER_ERROR Error in function exit

Use the first exception if you want to leave opening and closing print requests to the SAP System. To do this, you simply have to enter the following line of code in the function exit:


For more information on entering your own code and data declarations in a function exit, see the online documentation for Project Administration of SAP Enhancements.

PERFORM Short Reference   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 2166 Date: 20210125 Time: 215305     sap01-206 ( 33 ms )