SAP4 with if statements