Hi All,
We are working with a scenario where we willl use some characteristics and dependencies.
We have been able to fill out values in one characteristic depending on another value.
But we would also like to switch a characterstic from Display to Open if a specific value is given to another characteristic.
Does anyone know how this should be written or where i can find documentation about how to this.
Thanks in Advance!
BR
Mikael
Hi,
You can use Variant Configuration to describe complex products that can exist in several variants, such as cars. All variants are represented in one variant product. This variant product has a super BOM containing all possible components, and a super task list containing all possible operations.
When you assign a class to the variant product, you link the product to the characteristics that describe a specific variant.
You use object dependencies to control that the right components and operations from the super BOM and the super task list are selected.
Hope this helps.
Regards,
Deepak Kori
Dear Mikael ,
Can please elaborate with an exmple what you want to achive using Object dependency.
With Warm Rgards
Mangesh Pande
Hi and thanks for your answer.
The scenario is the following:
I have a characteristic, char1 ,with a list of values: A, B, C & D
If I choose valuea A,B or D I want characteristics char2 and char3 to stay in display, ie so that the user can't enter any information.
But if they select C I want the the two characteristics to be open for input.
Kind Regards
Mikael
Dear Mikael ,
Thanks for your detail inputs. I cannot tell whether it can be done with object dependencies.
But you can try this method.
Char 1 - Values A, B, C, D
Char 2 - Insert function module for entering values in characteristics CT04 .
This function moldule will check if values in char1 are A,B,D the it not allow to enter any value in Char2 with message pop up.
This is just an Idea. You need to actually sit with ABAP guy and try it.
I had done for enetring date by assigning Function module which gives me pop up to select date from calender.
Hope this helps you.
With warm Regards
Mangesh Pande
Hi,
Please try the following steps to achieve your task
1) Create a reference char (Lets say REF_CHAR ) in CT04 with Table SCREEN_DEP and Field NO_INPUT and tick Multiple value
2) Add this Reference char in the 300 class
3) Create a Procedure with coding shown below and assign it in Config profile and place it in a proper sequence.
$Self.REF_CHAR = 'CHAR2' if CHAR1 in ('A','B','D'),
$Self.REF_CHAR = 'CHAR3' if CHAR1 in ('A','B','D')
Hope this will resolve your issue
Regards,
Brahmaji D
Thanks Brahmaji,
I think this is correct way to go,
but I have some issues with my dependency.
I get these messages:
E28049 Characteristic REF_CHAR is not restrictable
E28054 'Char 2' is not a multiple-value characteristic
E28075 Character string required in inverted commas
E28039 Alphanumeric expression required
E28053 REF_CHAR is not a single-value characteristic
E28024 Syntax error in simple action/procedure
Any idea how I should solve this?
I have three additional questions:
-For me it would make sense to do other way around,
ie $Self.'Char2' = REF_CHAR if...
Or this is wrong way of thinking?
-What do you mean with assigning it to config profile?
-What dependency type should be selected?
(for the moment I have action)
BR
Mikael
Edited by: Mikael Lindstrom on Dec 6, 2011 2:23 PM
Mikael ,
I am not agree with Bramhaji ,
its seems with this syntex,
$Self.REF_CHAR = 'CHAR2' if CHAR1 in ('A','B','D'),
$Self.REF_CHAR = 'CHAR3' if CHAR1 in ('A','B','D')
value from CHAR 2and 3 will be copied to Rferance characretrstic as values , but it will not hide them.
forgive me if i am wrong,
-
I think using precondtion can also help you out.
create a dependency with type precondition
syntax could be $self.CHAR1 = "c"
so now , CHAR 2 qand CHAR 3 will be visible only when CHAR1 have value C
when CHAR1 will haver value A , B or D this CHAR 2 and CHAR 3 will be not visible and user cant assign value to it.
and assign this dependency to charactertsic CHAR 2 and CHAR 3 in class of type 300.
you can also check sap help for same.
http://help.sap.com/saphelp_erp60_sp/helpdata/en/92/58d455417011d189ec0000e81ddfac/frameset.htm
Thanks
Ritesh
Thanks Ritesh,
This was actually not what I was thinking about from the beginning, ie that the field should be hidden instead of in display,
but it's working better and now I don't need to use ref char.
But, I still have a small issue with the dependency.
Char 2 and Char 3 are shown initially when Char1 is empty.
Ie, first when I choose a value for Char1 are Char2 and Char3 correctly hidden.
Why doesn't the dependency work when no value is choosen for CHAR1?
BR
Mikael
Mikael ,
it can be fix, you just need to add word SPECIFIED at the end of dependency and it will not hide CHAR2 and CHAR3 untill CHAR1 have value C specified.
syntax could be $SELF.CHAR1 = "C" and Specified $SELF.CHAR1
Try out and reply.
Thanks
Ritesh
Thanks Ritesh,
It works fine now!
BR
Mikael