Skip to Content
author's profile photo Former Member
Former Member

Default Char's value in Class level

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on May 15, 2015 at 05:01 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 15, 2015 at 12:34 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 15, 2015 at 04:52 PM

    Hi Senthil,

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

    Please share if any - thanks.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.