cancel
Showing results for 
Search instead for 
Did you mean: 

Default Char's value in Class level

Former Member
0 Kudos

Hi Fnds,

Needs Default the Char's value.

1) I had written and assigned the procedure Dependency as below in the Char's value level . but, it didn't work.

$SET_DEFAULT($SELF, BABY_PRODUCT, 'No') if $SELF_SALES_ORDER_DATE > 20151405 ( FROM TODAY).


Here, My char is - BABY_PRODUCT.



Note:

I Can not write the procedure Dependency @ Configurable profile level , since the materials are 6000+.


I can not default ( Tick mark) in the char's value level. since, the Open orders are huge.



Please do needful.

Accepted Solutions (1)

Accepted Solutions (1)

Ritz
Active Contributor
0 Kudos

venky raj,

How you are deriving value for SALES_ORDER_DATE? is it a referance characterstic for sales order dates? and does it picking crrect date?

also i can see a _ in your syntex, replace it with . as shown below

$SET_DEFAULT($SELF, BABY_PRODUCT, 'No') if $SELF_SALES_ORDER_DATE > 20151405


Change it like

$SET_DEFAULT(($SELF, BABY_PRODUCT, 'No') if $SELF.SALES_ORDER_DATE > '20151405')

or

$SET_DEFAULT($SELF, BABY_PRODUCT, 'No') if ($SELF.SALES_ORDER_DATE > '20151405')

It may work, check syntex error and try to see which object is causing error.

Also , I didnt understand why you want to restrict it at a single date, as the date 20151405 will be invalid tomorrow?

It will be better if you provide more details on business requirement and you may get more favourable replies.

Please check and reply.

Thanks

Ritesh

Former Member
0 Kudos

Hi Ritesh,

Thanks for your information!!

I tried as per your info and assigned in Char's Value level.


$SET_DEFAULT(($SELF, BABY_PRODUCT, 'No') if $SELF.SALES_ORDER_DATE specified)

or

$SET_DEFAULT($SELF, BABY_PRODUCT, 'No') if ($SELF.SALES_ORDER_DATE specified)


But, it did not work. Please let me know if any other . - thank you so much for your time.

ravi_kumar204
Active Participant
0 Kudos

Hi Venky Raj,

Assign the procedure to Sales_order_date char and try.

Former Member
0 Kudos

Hi Ravi,

it worked...for me .  Thanks a lot.

Thanks,

Venky

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Senthil,

I tried as you provided the help; But, it didnt work.

Please share if any - thanks.

former_member184627
Active Contributor
0 Kudos

Hi Venky,

You can try with the below procedure.

$SELF.BABY_PRODUCT ='No' if $SELF_SALES_ORDER_DATE > 20151405


Assign this to the characteristic BABY_PRODUCT.


Regards,

Senthilkumar SD