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

Step 1: Maintain Billing Document Number Gaps

  • Open Maintain SD Document Number Gaps – Portugal app
  • Enter: Number range (No)
  • Missing billing document number(s) in Billing Doc.
  • For intervals, use From–To fields
  • Click Save

⚠️ Ensure only truly missing numbers are maintained. Maintaining incorrect or existing numbers will break compliance.

Step 2: Generate Digital Signatures

  • Open Generate Digital Signature SD – Portugal app
  • Enter: Company Code, Number Range
  • Click Execute

Example: Billing documents from 10001 to 10005 in number range XX

  • 10001, 10002 → Signed
  • 10003 → Missing
  • 10004 → Exists but not signed
  • Maintain 10003 as gap
  • Run Generate Digital Signature SD – Portugal for the number range to sign 10004

Result: Sequence becomes valid → Printing of subsequent documents 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