2 Replies Latest reply: Feb 23, 2012 8:34 AM by Jyoti Yadav RSS

Updating financial details

Jyoti Yadav
Currently Being Moderated

Hi,

 

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.

      ENDIF.

   ENDIF.

 

If i do not use these lines of code, what would be its impact?

Looking forward for your help.

 

Thanks.

Actions