美文网首页
2018-06-22

2018-06-22

作者: 阿努比斯1117 | 来源:发表于2018-06-22 14:01 被阅读0次

    将一指派金额更新至屏幕

      DATA:LT_DYNPREAD TYPE STANDARD TABLE OF DYNPREAD,
           LS_DYNPREAD TYPE DYNPREAD.
    
      LS_DYNPREAD-FIELDNAME = 'GS_PZHEAD-ZYZPJE'.
      LS_DYNPREAD-FIELDVALUE = GS_PZHEAD-ZYZPJE.
      APPEND LS_DYNPREAD TO LT_DYNPREAD.
    
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          DYNAME                     = SY-REPID
          DYNUMB                     = SY-DYNNR
        TABLES
          DYNPFIELDS                 = LT_DYNPREAD
    *   EXCEPTIONS
    *     INVALID_ABAPWORKAREA       = 1
    *     INVALID_DYNPROFIELD        = 2
    *     INVALID_DYNPRONAME         = 3
    *     INVALID_DYNPRONUMMER       = 4
    *     INVALID_REQUEST            = 5
    *     NO_FIELDDESCRIPTION        = 6
    *     UNDEFIND_ERROR             = 7
    *     OTHERS                     = 8
                .
      IF SY-SUBRC <> 0.
    * Implement suitable error handling here
      ENDIF.
    

    相关文章

      网友评论

          本文标题:2018-06-22

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