美文网首页
ALV报表去掉小数

ALV报表去掉小数

作者: SmalltalkVoice | 来源:发表于2015-01-16 09:36 被阅读38次
    DEFINE fill.
      afield-col_pos = l_pos.
      afield-fieldname = &1.
      afield-seltext_l = &2.
      afield-no_zero   = &3.
      afield-key       = &4.
      afield-edit      = &5.
    
     IF afield-fieldname = 'LFIMG'.
        afield-DECIMALS_O = '0'.         "去掉小数点后边0
      ENDIF.
    
      append afield to fieldcat.
      clear afield.
      l_pos = l_pos + 1.
    END-OF-DEFINITION.
    
      wa_fieldcat-fieldname = 'BDMNG'.
      wa_fieldcat-scrtext_m =   '需求量'.
      wa_fieldcat-no_zero = 'X'.
      wa_fieldcat-qfieldname = 'MEINS'.
      wa_fieldcat-inttype = 'X'.
      wa_fieldcat-col_pos     = 13.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
    

    相关文章

      网友评论

          本文标题:ALV报表去掉小数

          本文链接:https://www.haomeiwen.com/subject/urpcxttx.html