Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Elseif... Condition problem

Former Member
0 Likes
592

Hi All,

I'm facing some problem with the if..elseif.. else statement.

Can i write the elseif condition at the another new line in sapscript as the conditions are too long.

IF &EKKO-BUKRS& = 'DE10' OR &EKKO-BUKRS& = 'DE50'

Write: 'Company name AAA'.

ELSEIF &EKKO-BUKRS& = 'PL10' OR &EKKO-BUKRS& = 'PL20

OR &EKKO-BUKRS& = 'PL50' (Can I write another condition at new line?)

Write: 'Company name BBB'.

ELSE

Write: 'Company name XXX'.

ENDIF

Thanks,

Alice

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
520

Hi,

Change the editor to word like editor & write your condition their as you wanted.

To change editor From menu Goto->change editor.

Regards,

S.Senthilkumar.

2 REPLIES 2
Read only

Former Member
0 Likes
520

Hi Alice,

instead of going next line better you can press Shift+f8 the sapscript editor will extend their you can write the condition.

Regards,

Dhina..

Read only

Former Member
0 Likes
521

Hi,

Change the editor to word like editor & write your condition their as you wanted.

To change editor From menu Goto->change editor.

Regards,

S.Senthilkumar.