on 09-21-2012 11:08 AM
My Function is not getting triggered in dependency, when no value is assigned to Characteristic D1 which is numeric.
I am trying to give a value 0 if the value of D1 is not specfied, as given below
$SELF.D1 = 0 IF ( NOT SPECIFIED $SELF.D1 ),
FUNCTION ZSD_NONSTD_DETERMINATION
( PRODUCT = $SELF.PRODUCT,
D1 = $SELF.D1).
But it gives the follwing error. Pl suggest on how to tackle this issue.
E28021 Error: remaining part of expression cannot be interpreted
Pl help
Sunke.
Sunke,
seems there is error in syntax , and thats why you are getting this message.
please check where exactly the cusor is pointing with "E28021 Error: remaining part of expression cannot be interpreted".
there may be a unveven space between words , please check carefully ,
also try to use below syntax.
$SELF.D1 = '0' IF NOT SPECIFIED $SELF.D1,
FUNCTION ZSD_NONSTD_DETERMINATION
( PRODUCT = $SELF.PRODUCT,
D1 = $SELF.D1).
also you can make default value directly in characterstic value tab of characterstic, go to CT04 , open characterstic D1 in change mode and if you have assigned values 0 , put a tick mark in default value , so with this 0 will be defaulted to this characterstic.
Hope it may help you.
Thanks
Ritesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I didnt understand what doesnt work?
the way i asked to set default using characterstic maintainace in CT04 ?
please explain step by step what you are doing with the function ? and before this function is gettig trigger , what you are expecting from user to set values?
if in your case D1 is a important parameter , please create a mandatory characterstic for it so that user cant go ahead without setting its value, if its a option characterstic do not use it in Variant Tables or function as without a value itw ill not work.
so now , reply what exactly is your expectations from this dependency and possible share the bussiness process.
Thanks
Ritesh
I would suggest that you set 0 as the default-value for the characteristic D1 using
$SET_DEFAULT($SELF, D1, 0)
this way it is set to 0 by default but it is still changeable.
alternatively, you can use the syntax
$SELF.D1 ?= 0
best regards,
eric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Moved from SAP ERP SD Sales to SAP ERP PLM - Classification and Variant Configuration
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Sunke,
I hope following links might help you:-
1. http://scn.sap.com/thread/1788018
2. http://scn.sap.com/thread/1677864
3. http://www.sapfans.com/forums/viewtopic.php?f=9&t=346674
Regards,
Sambit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.