Please plan your SCN wiki tasks accordingly.
This is a code sample which applies to SAP ABAP Code.
This Article has the code for the Calculation of the total amount of the GL Account Line items (FBL3N). That is when the transaction FBL3N is run, the standard SAP Report shows the Total Amount for the line items belonging to a particular GL account. Now sometimes in Custom Programs it would be necessary to have validation with this Total Amount. So in the Custom Program we can use this code for the calculation of the Total amount.
When the Standard SAP Report RFITEMGL (transaction FBL3N) is executed for a GL Account, it would display the Total Amount (does addition and subtraction of the line item's amount).