SAP Knowledge Base Article - Public

3588356 - "Include Header in Subsequent Pages" Creates Blank Column in Form Template Table

Symptom

You have marked the option "Include Header in Subsequent Pages" on the header of a form template table (for example, the items table of Sales Quote items). However when generating the final document, in the subsequent pages the header shifts, leaving a column with blank header and making the data to not align with the table header.

Environment

SAP Business ByDesign

Cause

The issue happens since the table header definition contains fields which do not have data in the final document (meaning that the fields come as empty values from the XML used to generate the document).

In subsequent pages, these header columns end up being displayed as blank header properties with no data being shown in the rows below, hence causing the misalignment.

As an example, we will take the form template for Sales Quote, and the Items table.

In the standard SAP template, the Header of the Items table is defined as the following:

In case the fields "hdrKitParent" and "hdrKitProductID" do not have data to be shown, the table will hide these columns in the first page:

However in the subsequent pages, the space for these fields will still be allocated, causing the data to be misaligned:

Resolution

After marking the option in the table header, it is required to rearrange the fields of the table header as to prevent fields which will have no data from being part of the table.

In the example demonstrated above, the arrangement should be done as the following:

This way, the properties "hdrKitParent" and "hdrKitProductID" are displayed after the columns which will show data, causing the subsequent pages to show correctly.

Keywords

Template, shift, rows, XDP, XML, XSD , KBA , AP-RC-FF , Forms Flexibility , Problem

Product

SAP Business ByDesign all versions