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

Scripts

former_member778253
Active Participant
0 Likes
414

Hi,

can we use "if" in sapscript?

3 REPLIES 3
Read only

Former Member
0 Likes
394

Hi,

Yes you can use the IF statment in the Scripts.

/: IF &Field1& EQ '1'.

/: ELSEIF ...

/: ELSEIF ....

/: ENDIF.

Regards

Sudheer

Read only

Former Member
0 Likes
394

Hi.

Yes, u can use if.

Reward all helpful answers

Read only

Former Member
0 Likes
394

Hi,

We can use if condition in scripts but we need to follow the below syntax.

Syn1:- IF &Fieldname& EQ <condition>.

Syn2:- IF &Fieldname& <> <condition>.

Ex:- /: IF &Field1& EQ '1'.

/: ELSEIF...

/: ELSEIF....

/: ENDIF.

Reward points if useful.

Thanks & Regards,

Vasudeva Rao