Skip to Content
0
Former Member
May 09, 2008 at 08:03 AM

If condition

19 Views

below is my logic

IF sa30-yygpreisbi <= hgvabbv_30-yygpreisab.

fehler_vertrag = 1.

IF xscreen = space.

syst-msgno = '442'.

syst-msgid = 'YS'.

syst-msgty = 'W'.

PERFORM protokollausgabe.

ELSE.

MESSAGE e442.

ENDIF.

Now i want that if

IF sa30-yygpreisbi conatins any value like ### it sholud not go inside to check further if condition.

what i have done is

IF sa30-yygpreisbi NS '#'.

IF sa30-yygpreisbi <= hgvabbv_30-yygpreisab.

fehler_vertrag = 1.

IF xscreen = space.

syst-msgno = '442'.

syst-msgid = 'YS'.

syst-msgty = 'W'.

PERFORM protokollausgabe.

ELSE.

MESSAGE e442.

ENDIF.

  • return_code = 4.

ENDIF.

ELSE.

EXIT.

ENDIF.

But ths is not wrkng?

PLease help