符号前置

Posted on 2023-05-26 21:48  Chris的博客  阅读(8)  评论(0编辑  收藏  举报
DATA:lt_sum TYPE string.                                     "定义合计
lt_sum = lt_sum + <lt_itab_out>-netwr1.
"负号前置
IF lt_sum < 0.
   CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
      CHANGING
        value = lt_sum.                        "lt_sum 必须是CHAR类型
ENDIF.