SAP Knowledge Base Article - Public

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

Symptom

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

Date2isinitiual.png

Environment

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

Reproducing the Issue

Prerequisites:

  • 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.

Cause

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

Resolution

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

Keywords

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

Product

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