cancel
Showing results for 
Search instead for 
Did you mean: 

Overwriting a Char value set by the user using a procedure

Former Member
0 Kudos

I'm quite new to LO-VC.

I'm trying to replace a char value set by the user by a different value as a result of entering a value in another char.

In my example I have 2 char : SealSystem and Eurohole.

The Char SealSystem can contain 3 values : 1) 'HS'; 2) 'PHS'; 3) 'HS/PHS'

The Char Eurohole can contain also 3 values : 1) 'N.A.'; 2) 'NR_1'; 3) 'NR_2';

If Sealsystem contains the value PHS, then Eurohole must be value 'N.A.' The other 2 values (NR_1 and NR_2) are not allowed.

To achieve this I created 2 dependencies :

1) A precondition containing the following logic :

               ($Self.SealSystem in ('HS', 'HS/PHS')

                       and $Self.SealSystem Specified).

     This precondition I assigned to the Char values 'NR_1' and 'NR_2' in Char Eurohole.

2) A procedure containing the following logic :

               $self.Eurohole = 'N.A.' if $self.sealsystem = 'PHS'.

     This procedure I assigned to the configuration profile.

Both dependencies seem to be working fine with the exception that when I manually assign the value e.g. NR_1 to Char Eurohole and then assign the value 'PHS' to the char SealSystem, the procedure does not change the value in Char Eurohole to 'N.A.' but creates an inconsistency.

Is this standard SAP behaviour?

Can this be done differently?

Accepted Solutions (0)

Answers (1)

Answers (1)

Flavio
Active Contributor
0 Kudos

Hi Frank,

Yes, this is standard SAP behaviour: user entry has the priority with respect to the dependency, that is, this latter cannot overwrite the user entry.

However, as the user entry is violating the rule in the dependency, an inconsistency is generated.

To clear the inconsistency, the user shall delete the wrong entry, and let the dependency set it.

Hope this could help.

Thank you and bye,

Flavio