cancel
Showing results for 
Search instead for 
Did you mean: 

If condition in SAP Scripts?

Former Member
0 Kudos

Hi,

I have a SAP Script. In that i have one IF condition. I want to insert one more if condition in that IF condition.

If first IF condition is true then it has to check for second IF condition.

Can any one please help on this.syntax..

Thanks

Venkatesh P

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member196280
Active Contributor
0 Kudos

It is same way you use in your ABAP programming.

EX:

/: IF <CONDITION1>

/: IF <CONDITION2>

***Statement***

/: ENDIF.

/: ENDIF

Regards,

SaiRam

Former Member
0 Kudos

hi..

thanks for your replies...

we need to put "." (dot) after if statement or not?

please let me know..

thanks

Venkatesh P

Former Member
0 Kudos

no, not required

mahaboob_pathan
Contributor
0 Kudos

hi,

it's better to use

when case..

if u need if then

if(condition1).

...

...

if(condition2).

....

...

elseif(condition3)....

...

endif.

....

endif.

...

endif.