首页 > 其他 > 详细

ABAP f4帮助输入多个值

时间:2017-04-19 10:04:48      阅读:364      评论:0      收藏:0      [点我收藏+]
*----------------------------------------------------------------------
*  INITIALIZATION
*----------------------------------------------------------------------
INITIALIZATION.
* 初始化数据
  PERFORM frm_initial.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR: zw_laufd .
  PERFORM frm_f4_laufd USING zw_laufd .



*&---------------------------------------------------------------------*
*&      Form  FRM_F4_LAUFD
*&---------------------------------------------------------------------*
FORM frm_f4_laufd  USING  zw_laufd.
  DATA: BEGIN OF tlaufk OCCURS 1.
          INCLUDE STRUCTURE ilaufk.
  DATA: END OF tlaufk.

  REFRESH tlaufk.
  tlaufk-laufk = space.
  tlaufk-sign  = I.
  APPEND tlaufk.

  CALL FUNCTION F4_ZAHLLAUF
    EXPORTING
      f1typ            = D
      f2nme            = F110V-LAUFI
    IMPORTING
      laufd            = f110v-laufd
      laufi            = f110v-laufi
      nothing_selected = xf4_c1
    TABLES
      laufk            = tlaufk.
  zw_laufd = f110v-laufd.
  IF xf4_c1 IS INITIAL.

  ENDIF.

  DATA:lt_dynpread TYPE dynpread OCCURS 0 WITH HEADER LINE.

  lt_dynpread-fieldname = ZW_LAUFI.
  lt_dynpread-fieldvalue = f110v-laufi.
  APPEND lt_dynpread.

  CALL FUNCTION DYNP_VALUES_UPDATE
    EXPORTING
      dyname               = sy-cprog
      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.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDFORM.                    " FRM_F4_LAUFD

 

ABAP f4帮助输入多个值

原文:http://www.cnblogs.com/rainysblog/p/6731435.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!