cancel
Showing results for 
Search instead for 
Did you mean: 

Conditions in Script

former_member216668
Participant
0 Kudos

Hi experts,

I need to work based on if condition in script layout.

Based on a PO modified date & year i have to change condition.

Now i need to know if we have to use only IF statements, like i have done

or can a CASE statement be used in a script?

All input will be appreciated.

Cheers!!

K

Accepted Solutions (1)

Accepted Solutions (1)

former_member181995
Active Contributor
0 Kudos

Ken,

/: IF &variable& EQ ......
P1 your text.
/: ENDIF.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ken,

Check this one with example:

[IF condition in SapScript|http://www.howforge.com/if-command-in-sapscript]

http://sap.niraj.tripod.com/id18.html

Regards,

Chandra Sekhar

former_member216668
Participant
0 Kudos

Thanks guys!!! it worked like a dandy!!

Rgds,

K

Former Member
0 Kudos

Hi,

You can go with either if -- endif or even case -- endcase.

/: if <var> eq value

logic

/: endif

/: case <var>

/: when 'value'

logic

/: when 'value'.

logic

/: when 'others'

logic

/: endcase.

regards

padma