0
我想總結一些價值觀,但它不斷給我奇怪的價值觀。我發佈代碼來幫助,併發布圖片。總和工作不正常abap
at end of kunnr.
soma-waers = <fs_main-waers.
soma-wrbtr = <fs_main-wrbtr.
soma-fwste = <fs_main-fwste.
soma-hwaer = <fs_main-hwaer.
soma-dmbtr = <fs_main-dmbtr.
soma-hwste = <fs_main-hwste.
APPEND soma TO it_soma.
LOOP AT it_soma INTO soma.
IF sy-tabix = 1.
FORMAT COLOR COL_TOTAL INTENSIFIED OFF.
SUM.
WRITE: "/ sy-uline(137),
/sy-vline NO-GAP,
'Subtotal' NO-GAP,
'-' NO-GAP,
soma-waers,
63 sy-vline NO-GAP,
64 soma-wrbtr NO-GAP,
sy-vline NO-GAP,
soma-fwste NO-GAP,
sy-vline NO-GAP,
soma-hwaer NO-GAP,
sy-vline NO-GAP,
soma-dmbtr NO-GAP,
sy-vline NO-GAP,
soma-hwste NO-GAP,
sy-vline NO-GAP,
/sy-uline(137).
ELSE.
ENDIF.
ENDLOOP.
ENDAT.