cancel
Showing results for 
Search instead for 
Did you mean: 

Dependencies using user defined data types

Former Member
0 Kudos
58

Hi all,

I have created a dependency for one of the characteristics of a user-defined data type- I am working with the structure shown below:

CLASS X Type 022

A

A_1

A_2

A_3

B

C

D

D_1

D_2

D_3

A_1, A_2 and A_3 correspond to the user defined data type of A. I have created a procedure in A_1 which says:

$SELF.D_1 = $SELF.D_1 + $SELF.A_1 .

The procedure seems to be OK but the system does not calculate anything. If I use $SELF.D_1 = $SELF.B + $SELF.C . then the procedure works fine.

Is it possible to use subcharaceristics in a procedure?

Thanks a lot in advance, good points will be rewarded.

Accepted Solutions (0)

Answers (1)

Answers (1)

Ritz
Active Contributor
0 Kudos

Txema11 ,

I didnt understand, what you are refering as sub characterstic.

As per my knowledge its not working cause of data type as its not numeric, so if you desired to have result as sum then change your type to numeric and it will work fine.

It work fine with class 300.

Also , use MDATA as The expression MDATA refers to the quantity.

$SELF.D_1 = MDATA $SELF.D_1 + $SELF.A_1

hope it will work for you.

Thanks

Ritesh