Hi Varsha,
What is the difference is logic for ACCOUNT is BAS(D) in line 7 and 13 of your code below.
Line 7 : BAS(D) is not considering the FUNC_AREA, so will calculate for all FUNC_AREA ( including LMN)
Line 13: BAS(D) is considering the FUNC_AREA (LMN) - so repeating the same calculation for FUNC_AREA = LMN here.
- *WHEN ACCOUNT
- *IS BAS(A)
- *REC(EXPRESSION = %VALUE%,ACCOUNT = "X")
- *IS BAS(B),BAS(C),BAS(D),BAS(E)
- *REC(EXPRESSION = -%VALUE%,ACCOUNT = "X")
- *IS BAS(D)
- *WHEN FUNC_AREA
- *IS LMN
- *REC(EXPRESSION = -%VALUE%,ACCOUNT = "X")
- *ENDWHEN
- *ENDWHEN
Regards,
Bishwajit