Search code examples
sql-servercrystal-reportsreport

SAP Reports(2013): Dynamic Page headers based from a parameter or database values


I am trying to figure out how to have a page header in SAP Reports 2013 which will automatically change based on the Month and Year of a parameter or date values from the database I'm linking it into (SQL Server 2008 R2), if possible.

I want the headers in bold below to be renamed based on a given Month and Year.

enter image description here


Solution

  • In your header take a formula field and write below code:

    "Sales_Amt_"&table.Month&Table.Year