Skip to Content

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

Two If statments

Hi Gurus,

Please check below conditon here two if statements are there

if a>b then Result = c - d

if c<=d then Result = 0

How to write if statement in Query designer



Former Member
Former Member replied


You need to include : (Infoobject C - InfoObject D) as well, then you will get difference.

Small Correction, multiply with (C - D) as shown below.

(if ( (if a>b)*(c-d) ) > 0) * (c-d)

Hope it Helps



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