SAP Knowledge Base Article - Preview

3789946 - Accessing KSeF Response Data for Custom Reports and PDF Output — Poland eInvoice (KSeF B2B)

Symptom

After an electronic invoice is submitted to KSeF and accepted, unable to find the KSeF response data (KSeF reference number, QR code, acceptance timestamp, and verification link) in a standard SAP table that can be consumed by custom ABAP reports, custom PDF forms (e.g., via Adobe Forms or SAPscript), or downstream integrations such as Official Document Numbering (ODN).

Issues specifically reported:

  • The KSeF reference number is not available in standard billing/accounting document tables (VBRK, BKPF, etc.)
  • There is no documented API or table to read the KSeF reference number, QR code image, and verification URL for use in custom print outputs
  • PDF visualisation for outgoing KSeF invoices is needed but the source table for KSeF response data is not known

For incoming (supplier) invoices downloaded from KSeF, the KSeF reference number and session data are not found in standard MM/FI tables


Read more...

Environment

  • SAP ERP
  • SAP S/4HANA Cloud Private Edition
  • SAP S/4HANA Cloud Public Edition
  • SAP Document and Reporting Compliance
  • SAP Document and Reporting Compliance, Cloud Edition

Product

SAP Document and Reporting Compliance, cloud edition all versions ; SAP ERP all versions ; SAP S/4HANA Cloud Private Edition all versions ; SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA all versions

Keywords

KSeF 2.0, DRC, eDocument, Poland, PDF visualization, outgoing invoices, QR code, EDOPLINV, CL_EDOC_PL_KSEF_CINVC_ADDLDATA, QR_CODE_ACCEPTED, invoice hash, KSeF reference number, output management, form template, display PDF, EDOCUMENT, PDF output, custom report, FA(3), verification link, B2B, EDOC_COCKPIT, CA-GTF-CSC-EDO-PL  , KBA , CA-GTF-CSC-EDO-PL , Document Compliance Poland , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.