cancel
Showing results for 
Search instead for 
Did you mean: 

Logical Expression for alternative in smart forms

Former Member
0 Kudos

Hi gurus ,

i want to add logical expression in alternative of smart forms

my condtion is like as below

if ( ekko-bstyp = 'F' and ( ekko-bsart = 'zc9d' or ekko-bsart = 'zc91' or ekko-bsart = 'zc9u' ) )

if i use the or button it is taking as ekko-bstyp = f or any of the other conditons actually it should be

bstyp = f and any one of the condtions

when i tried to write condition it is not showing syntax chekc but it is giving dump

how to write the expression

regards

afzal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi..

Please try using the following in the conditions...it will work..

ekko-bstyp = 'F'

ekko-bsart = 'zc9d'

OR

ekko-bstyp = 'F'

ekko-bsart = 'zc91'

OR

ekko-bstyp = 'F'

ekko-bsart = 'zc9u'

Regards,

Karthik

Former Member
0 Kudos

Hi ,

In the alternative node conditions use like this

IF ( WA_EKKO-BSTYP EQ 'F'

AND WA_EKKO-BSART EQ 'ZSTO'

OR WA_EKKO-BSART EQ 'ZIMP'

OR WA_EKKO-BSART EQ 'ZSER'

OR WA_EKKO-BSART EQ ' ' ).

For this in the alternative node conditions

WA_EKKO-BSTYP = 'F'

WA_EKKO-BSART = 'ZSTO'

OR (By clicking the insert OR in the icons in the top )

WA_EKKO-BSART EQ 'ZIMP'

OR

WA_EKKO-BSART EQ 'ZSER'

OR

WA_EKKO-BSART EQ ' '

Let me know if any concerns.......

Regards,

Lokesh .

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Before the alternative take a program line and mention the conditions over there and set a flag variable.

Now check the flag in your alternative. This is the easiest way to do which i suggest

Thanks & Regards

Sarves.