Skip to Content
0
Former Member
Jul 19, 2008 at 07:26 PM

Can a conditional statement be validated dynamically?

281 Views

I have an additional question.

I'm allowing the User to maintain the Logic for assignments.

However, these do not go into the SQL Statement but should be checked as if they were a IF .....ENDIF statement.

I have assigned the field symbols that can fetch the value from the Work Area that has the entries to be compared.

RID		PAR1	ANDOR	FIELD	OPER	VALUE	PAR2
R111		(		FSH_L3	=	FS22500	
R111			AND					
R111		(		AUART	=	ZCS1	
R111			OR	AUART	=	ZCS2	)
R111							)

say,  FSH_L3 = FS22500 and AUART = ZCS1

This is how the condition string would look like

LF_STRING-COND =  (   'FS22500' = 'FS22500'   AND      (   'ZCS1' = 'ZCS1'   OR  'ZCS1' = 'ZCS2' )       )

and the RID corresponding to it.

LF_STRING-RID = R111

But i'm unable to use the If statement with a Dynamic logical expression.

IF (lf_string-cond).
  RLID = LF_STRING-RID.
ENDIF.

So, is there anyway that i can validate the expression in my lf_string-cond to be true dynamically?

Thanks in advance,

RK.