cancel
Showing results for 
Search instead for 
Did you mean: 

If condition in standard text in so10

Former Member
0 Kudos

Hi,

Im using a standard text where ive written an IF condition but its not working.Im calling that text in my program using READ_TEXT, TEXT_CONTROL_REPLACE and TEXT_SYMBOL_REPLACE function modules.Im not using sapscript or smartform.All my dynamic variables are working fine but for my IF condition what is happening is IF statement is also true and ELSEIF is also true.The statement under if is also getting printed and statement under elseif is also getting printed.

Could anyone help please.

Regards,

Nidhi.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member212854
Participant
0 Kudos

Standard text " if conditions " dont work other than scripts and smartforms.

to my surprise, if conditions have not worked even when I used them as includes in ADOBE forms.

Please handle the conditions in your program itself.

<< Moderator message - Point begging removed >>

Edited by: Rob Burbank on Sep 30, 2011 2:49 PM

Former Member
0 Kudos

I hope you are using command line (/:) for the IF condition line.

If not, please go to the old editor and change the line from your default/paragraph format to command line. It should work.

Former Member
0 Kudos

Yes, im using command line (/:) for IF condition, but still its not working.

Former Member
0 Kudos

Hi,

Elseif will not be work in SO10 transaction. Beeter to use IF....ENDIF and IF.....ENDIF instead of ELSEIF. surely It will work fine.

Ram.