此博客为原创博客,都是个人工作经历所得,转载请注明出处

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.

     

posted @ 2019-11-04 16:57  Rainystuday  阅读(176)  评论(0编辑  收藏  举报