SAP has used FM /RPM/FIN_PLAN_SAVE_DB for financial planning update. I have to write a custom FM similar to it.
In /RPM/FIN_PLAN_SAVE_DB, SAP used some lines of code to reset the integration entries to zero.
Reset all integration entries to zero*
LOOP AT lt_rpm_finplan INTO ls_rpm_finplan.
READ TABLE lt_rpm_finview WITH KEY
fin_view = ls_rpm_finplan-plan_type
TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
IF ls_rpm_finplan-amount <> 0.
ls_rpm_finplan-amount = 0.
MODIFY lt_rpm_finplan FROM ls_rpm_finplan TRANSPORTING amount.
If i do not use these lines of code, what would be its impact?
Looking forward for your help.