Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

if formula

Hi Experts,

I have below requirement wherein I want to discount % only if its less than 100 else word 'foc' should be printed, I tried below

if {Command.DiscPrcnt}= 100 then 'FOC'

else {Command.DiscPrcnt}

it gives message string is required.

Can you advise how to get number and text results in same if statement.

Thansk

Deepak

Former Member
replied

Hi Deepak,

You can't! You'll need to convert the number to string. Try this:

if {Command.DiscPrcnt} < 100 then ToText({Command.DiscPrcnt})

else

'FOC'

-Abhilash

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question