cancel
Showing results for 
Search instead for 
Did you mean: 

Class Item with Alternative Values

Former Member
0 Kudos

Hi all,

I wonder if you know how to solve the following case for VC.

Situation:

I has a BOM item type K. The class 200 is properly assigned to several articles. (lets assume that only one characteristic is used = COLOR)

By using procedures, I read the values of the characteristics for matching and assigned to those that define the class 200. (So, class 300 do not used the characteristics used for class 200)

The values are properly found when matching. (this is working fine)

Problem:

When sales order is entered, lets assumed that the following two characteristics are entered: COLOR_1 and COLOR_2.

During BOM explosion, via procedures, I must used COLOR1 to search in the class 200 and only if no values exists then I need to used COLOR_2.

Settings:

Normally, I wrote two procedures, one that assign COLOR = COLOR_1 and another that assign COLOR = COLOR_2. But procedure 2 can only be used in case of procedure 1 do not find matching value.

Hoping you can give me some clues here,

Thanks a lot in advance.

PS: Is any way to know when I got a positive (or negative) result from a class 200 durinb BOM explosion. ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

I am a bit confused on what exactly you are looking for . Do you want the other procedure to be only run if the material has been found . Do you want the other class node to be searched in case the first one is not fulfilled ?

Thanks

Amber

Former Member
0 Kudos

Hi Amber,

In my process to find a solution to my problem, I tried both cases. Both cases can be usefull to deal with my challenge

Case 1

If the class node 0010 is not found then class 0020 is active. If class node 0010 is found, class node 0020 is not needed (class node 0020 will always have a matching, however not the preferred material)

Case 2

In the same class node 0010, I tried by having two procedures which the first one give characteristic A, and in the second procedure was giving characteristic B with and IF matnr was empty (using ref char)

In this second case, the material is always empty because it seems that material replacement happend after reading all the assigned procedures of the class node

Hoping you can give me some guidance s and thanks a lot for taking the time

Luis

Former Member
0 Kudos

Hi Enrique,

I have checked this internally and Unfortunately there is way to have procedure or selection based on the result of the class node. The only way was to read the reference characteristic but as you have already checked it that it doesnot work..The only thing I can think of is to may be make use of FM CLSC_SEARCH_OBJECTS in one of the variant functions. You can set a value to Y or N if this FM searches a material , and based on this Y or N the other procedure should be run. I am not too sure if this will work on that or if it can cause any issues so please test this before you make a final decision.This FM is used to search the class node so use it very carefully in the variant function,

Sorry about not giving you a concrete answer but what you are looking for is unfortunately not possible in standard.

Thanks

Amber