SAP Knowledge Base Article - Public

3757894 - How to Print SAP21 Correspondence Form for Migrated or Interface-created Customer Invoices – SAP S/4HANA Cloud Public Edition

Symptom

  • Not able to print FI Customer Invoice correspondence (SAP21) for documents created via data migration or interface.
  • The error message in Create Correspondence app: "You can only print documents posted from app Create Outgoing Invoices or app Upload Customer Open Items."

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Open the Create Correspondences app (App ID F0744A).
  2. Enter company code and select correspondence type SAP21 (FI Customer Invoice).
  3. Choose a document created via migration or interface (for example, journal entry type UE).
  4. Start the print preview.
  5. Observe the error: "You can only print documents posted from app Create Outgoing Invoices or app Upload Customer Open Items."

Cause

Standard SAP21 correspondence generation enforces check rules, including verification that the document was posted via specific transactions or applications, such as Create Outgoing Invoices or Upload Customer Open Items apps. Migrated or interface-posted documents do not meet this transaction-origin check, so by design, SAP21 printing is not supported for these documents.

Resolution

Implement BAdI FICUS_INV_ADJUST_FILTER with own checks to control whether correspondence type SAP21 can be generated for a document.

This BAdI involves 3 standard checks:

  1. A check to determine if the document contains a customer line item
  2. A check to determine if this is a sales-related document (BSEG-XUMSW field contains X)
  3. A check to determine if the document was posted with a related transaction code (BKPF-TCODE field must contain FB70, FBDC_P020, or FBDC_P021)

For detailed information about usability of the BAdI, see the BAdI-specific documentation following below path:

Open Fiori app Custom Logic  à  Click Create button à search for BAdI FICUS_INV_ADJUST_FILTER à View Documentation.

See Also

  • Creating implementations
  • KBA 3557212 - Error occurs when previewing Customer Invoices in Financial Accounting (correspondence type SAP21)
  • KBA 3523491 - Errors when previewing PDF document for SAP21 FI Customer Invoices - SAP S/4HANA Cloud Public Edition
  • KBA 3283519 - Print functionality for customer invoice - FI Document - SAP S/4HANA Cloud Public Edition

Keywords

SAP21, FI Customer Invoice, Create Correspondence, migrated invoices, interface documents, print preview error, posting origin check, transaction code check, BKPF-TCODE, UE journal entry, correspondence printing, output control, BAdI FICUS_INV_ADJUST_FILTER, S/4HANA Cloud Public Edition , KBA , FI-AR-AR-CR-2CL , Correspondence (Public Cloud) , How To

Product

SAP S/4HANA Cloud Public Edition all versions