POPUP_GET_VALUES 金額字段不可編輯

轉自:https://blog.csdn.net/huanglin6/article/details/102733845函數

  1. 當在POPUP_GET_VALUES函數中參考的字段是個貨幣或者金額字段的話,會在顯示時候表現爲不可編輯的狀態,此時只需再加一個
     
    參考代碼
    CLEAR:FIELDS.
    FIELDS-TABNAME    = 'EKPO'.
    FIELDS-FIELDNAME  = 'NETPR'.
    FIELDS-FIELDTEXT  = '含稅單價'.
    APPEND FIELDS.
    
    CLEAR:FIELDS.
    FIELDS-TABNAME    = 'EKKO'.
    FIELDS-FIELDNAME  = 'WAERS'.
    FIELDS-FIELD_ATTR = '04'  .
    APPEND FIELDS.
    
    CALL FUNCTION 'POPUP_GET_VALUES'
      EXPORTING
     *  NO_VALUE_CHECK        = ' '
          POPUP_TITLE           = '批量賦值'
    *   START_COLUMN          = '5'
    *   START_ROW             = '5'
     IMPORTING
        RETURNCODE            = L_RETURN_CODE
      TABLES
        FIELDS                     = FIELDS
     EXCEPTIONS
       ERROR_IN_FIELDS   = 1
       OTHERS                   = 2.
相關文章
相關標籤/搜索