on 10-03-2014 10:49 AM
Hi
I'm trying to create a procedure to dynamicly create a string for my BOM
I have created 2 chareteristics to help me with this:
STPO_SORTF wich is a Reference to a table field
AUX_CHAR10 a help char to hold parts of concatenation
my procedure is as follows
Working
$self.AUX_CHAR10 = 'FOO' || 'BA',
$self.STPO_SORTF = $self.AUX_CHAR10
IF($Parent.SPC_RP = 5)
NOT working
$self.AUX_CHAR10 = 'FOO' || $self.STPO_SORTF,
$self.STPO_SORTF = $self.AUX_CHAR10
IF($Parent.SPC_RP = 5)
It seems as if every time I try to mix in the STPO_SORTF it just ignores my procedure, I have tried to see if this is because there is at type difference between chars but STPO_SORTF = DB field SORTF in STPO(also inherits this) = AUX_CHAR10
I have tried to force longer string than 10 wich produces a 10 char string even if concat is > 10 fx. 'FOO' || 'BAAAAAAAAAAAA' results in FOOBAAAAAA
Does anyhere have a suggestion to what I am doing wrong?
Hi,
Just a question to better understand: when it is not working, is the characteristic STPO_SORTF getting the value 'FOO'? Or is it empty?
Thank you and bye,
Flavio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No the value is not touched, and the result is whatever is already set in BOM so if value is 'G1234'
It will remain the same and not being concatnated. It is the same if I try using 2 help chars
$self.AUX_CHAR10 = 'G',
$self.AUX_CHAR102 = '1234' || $self.STPO_SORTF,
$self.STPO_SORTF = $self.AUX_CHAR10 || $self.AUX_CHAR102
It seems like it completly ignores the Procedure when I try to get the value $self.STPO_SORTF into a string.
User | Count |
---|---|
88 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.