cancel
Showing results for 
Search instead for 
Did you mean: 

Please validate IF condition in SE71 editor

Former Member
0 Kudos

In Se71 Editor,

Is below one is right ?

IF &kna1-xxxx& <> SPACE.

...

ELSE

...

ENDIF.

or

IF NOT &kna1-xxxx& IS INITIAL.

...

ELSE

...

ENDIF.

Which one is correct .

Pleasa correct me

Accepted Solutions (1)

Accepted Solutions (1)

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I have had trouble with these kinds of things before. You may want to use a literal instead

IF &kna1-xxxx& <> ' '.
...
ELSE
...
ENDIF.

Regards

RIch Heilman

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

Syntax:

/: IF Condition

:

/: ELSE

:

/: ENDIF

A multi-level case distinction is possible using the ELSEIF command.

Syntax:

/: IF Condition

:

/: ELSEIF Condition

:

/: ELSE

:

/: ENDIF

You can use as many ELSEIF commands as required. The specification of an ELSE command is optional in this case.

Regards,

Santosh

Former Member
0 Kudos

/: IF &kna1-xxxx& <> SPACE.

/: ...

/: ELSE

/: ...

/: ENDIF.

IS CORRECT