Dear all,
I am facing a problem with alignment in one classical report.
Requirement is debit ,credit amount's sum will at end of every g/l as new line.
Text will be closing balance - then amount.
My amount & text is coming ,but not properly.
All document will come & then closing balance will come as new line with ULINE.
Code part is: -
SORT it_bsas by hkont.
LOOP AT it_bsas INTO wa_bsas.
if wa_bsas-shkzg = 'H'.
WA_OUT-DMBTR = WA_BSaS-DMBTR.
WRITE : wa_out-dmbtr UNDER f LEFT-JUSTIFIED.
lv_sum1 = lv_sum1 + wa_out-dmbtr.
ELSEIF wa_bsas-shkzg = 'S'.
WA_OUT-DMBTR1 = WA_BSaS-DMBTR.
WRITE : wa_out-dmbtr1 UNDER g LEFT-JUSTIFIED.
lv_sum2 = lv_sum2 + wa_out-dmbtr1.
endif.
at END OF hkont.
ULINE at /93(50).
WRITE : /93 'Closing balance' ,
109 lv_sum1,
127 lv_sum2.
ULINE at /93(50).
CLEAR lv_sum1.
CLEAR lv_sum2.
endat.
Any help in this?
