SAP Knowledge Base Article - Public

2753100 - Counting the number of documents generated for a particular template


Is there a way to count the number of documents generated for a particular template?

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.


  • SAP SuccessFactors HXM Suite
  • SAP SuccessFactors Employee Central

Reproducing the Issue



There is no standard functionality to count the number of documents generated for a particular template. However, you can use sequence object, create a rule and map to the template. Follow the below steps to generate a document with the sequence number.

Step 1 - Create a template from Manage Document Template.


Step 2 - Map the tags used in Step 1 from Manage Document Template Mapping. Kindly use the rule based mapping type for the sequence number to get generated.


Step 3 - Configure the sequence object in Manage Data > Sequence.


Step 4 - Configure the rule from rule engine.


Step 5 - Generate the document from Generate Document.


This number will increment by 1 step whenever the document is generated.

Please Note: There is no guarantee that there will be no skipping of sequence values with the method highlighted above.

See Also


Document Generation sequence, track number of document generated, count documents, count, track, sequence , KBA , LOD-SF-EC-DOC , Document Generation , How To


SAP SuccessFactors HCM Core all versions