SAP Knowledge Base Article - Public

3458444 - Error When Printing Billing Document in Public Cloud – Digital Signature Cannot Be Generated Due to Document Number Gaps (Portugal)

Symptom

When attempting to print a billing document, the system raises the following error messages during form rendering:

  • Item '1': Rendering of document started.
  • Item '1': Rendering of document via service ADS failed.
  • Messages have been generated during form rendering.
  • Error when extracting data of entity
  • Print Character not assigned for billing document &

Environment

  • SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Open app 'Display Billing Documents'
  2. Enter billing document number -> Click Continue
  3. Go to 'Display output requests'
  4. Select print output
  5. Click on 'Display document' (F5)
  6. Error message displays

Digital Signature Apps for Portugal >> Maintain Document Number Gaps and Generate Digital Signature for Billing Documents(Maintain SD Document Number Gaps).

Cause

The issue occurs because there are gaps in the sequential numbering of billing documents. Due to these gaps, the system is unable to generate a digital signature for the affected billing document, which prevents printing.

Resolution

In Portugal, billing documents must be sequentially numbered without gaps to allow digital signature generation and printing.

If printing fails, identify whether the preceding billing document number is missing or does not have a digital signature. Any missing number in the sequence must be maintained as a gap in the app Maintain SD Document Number Gaps – Portugal.

For large number ranges, determine missing billing document numbers by comparing the expected sequential range with the billing documents that actually exist in the system. All missing or invalid preceding numbers must be maintained as gaps.

After maintaining the gaps, generate the digital signatures for the affected billing documents using the corresponding functionality in the Digital Signature Apps for Portugal.

Once the digital signature chain is restored, the billing documents can be printed successfully.

Example:

If billing document numbers are 10001, 10002, and 10001 was never created or has no digital signature, printing 10002 fails.
Maintain 10001 as a gap in Maintain SD Document Number Gaps – Portugal and generate the digital signature. Printing of 10002 then succeeds.

For more information to maintain entries in GAPS, Maintain Document Number Gaps and Generate Digital Signature for Billing Documents | SAP Help Portal 

Go through the Help Portal Link for Billing Documents with Digital Signatures | SAP Help Portal 

See Also

  • If using own layout For Example: YY1_XXXX, That means you are responsible, how they work.
  • The gateway service FDP_V3_BD_STANDARD_GLO_PT_SRV, in standard we designed to use with our form template: SIPT_CI_SDBIL. It can be used this also with clones of the same.

3410151 - Completed output item without a stored document cannot be previewed - S/4HANA Cloud 

Help Portal Link Additional Fields Available in Output Form Template for Billing Documents in Portugal
https://help.sap.com/docs/SAP_S4HANA_CLOUD/ee9ee0ca4c3942068ea584d2f929b5b1/a191a80fb6484b94aba832e16c1f1a82.html?locale=en-US

Keywords

Portugal, Billing Document, Digital Signature, Print Error, ADS Rendering Failed, Print Character Not Assigned, Document Number Gap, Sequential Numbering, GAPS App, Maintain SD Document Number Gaps, Generate Digital Signature, Output Management, Billing Print Failure, PT Legal Requirement , KBA , FI-LOC-SD-PT-BIL , Billing , FI-LOC-LO-PT , Portugal , FI-LOC-SD-PT , Portugal , XX-CSC-PT-BIL , use FI-LOC-SD-PT-BIL , FI-LOC-SD-PT-EIN , Transport Registration via Web Service , FI-LOC-FI-PT , Portugal , Problem

Product

SAP S/4HANA Cloud Public Edition all versions