SAP Knowledge Base Article - Public

2831798 - Error Message: "Importing parameter DATE2 is initial"


You receive the Error Message "Importing parameter DATE2 is initial" in the UI while making changes on a Business Object.



  • SAP Cloud Application Studio
  • SAP Cloud for Customer
  • SAP Business ByDesign 

Reproducing the Issue


  • You have created a Solution in the Cloud Application Studio.
  • You have created a Custom Business Object or Extension Business Object.
  • You have created a Script File for your Business Object.


You are using a Standard SAP Function that expects a "Date" Data Type as a Parameter. However, the Parameter provided has not been initialised. For example, for cdate = this.ADate.Delta(this.BDate, true), the Error Message "Importing parameter DATE2 is initial" tells us that this.BDate is initial.

BDate Initial.png


Please modify your Custom Code Logic and ensure that "Date" Data Type has been initialised before using in a Function.


Date, Datatype, Data, Type, absl, After, Modify, AfterModify, BeforeSave, Before, Save, AfterLoading, Loading, ValidationOnSave, Validation, OnSave, Script, BO, XBO, Function, Method, blank, empty, Delta, PDI, SDK, Solution, Scripting, Custom, Code, Logic , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , Problem


SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions