cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Object Dependency Procedure

Mohamed_Mukhtar
Active Contributor
0 Kudos
165

Hi Experts,

I have created a procedure using CU01 and am attempting to clear a characteristic value of the 'Date Format' data type.The following is the OD code, which is currently producing a syntax error. The error disappears if I remove t line# 2. Could you please help me resolve this issue?

 

 

 $SELF.DELTA_FLAG ?= 'N' IF $SELF.REF_DELTA_TEMP EQ ' ',
 $SELF.CHANGE_EFFECTIVE_START_DATE ?= ' 'IF $SELF.REF_DELTA_TEMP EQ ' ',
 $SELF.REF_DELTA_TEMP = 'X' IF $SELF.REF_DELTA_TEMP EQ ' '.

 

 

Regards,

Mukhtar

SAP Variant Configuration and PricingPLM Variant Configuration

View Entire Topic
a__engfehr
Active Participant
0 Kudos

Hello @Mohamed_Mukhtar , Date type characteristics are treated similar to NUM type characteristics. You cannot set a value using single quotes as you are trying with this statement. Also, trying to reference a blank or empty value it is typically more correct to use the SPECIFIED or NOT SPECIFIED syntax. 

$SELF.CHANGE_EFFECTIVE_START_DATE ?= ' '

You may want to consider revising it to something like this:

$SELF.CHANGE_EFFECTIVE_START_DATE = 0 IF NOT SPECIFIED $SELF.REF_DELTA_TEMP,