ABAP顾问
分类:
2010-05-11 10:28:13
REPORT z_barry_test NO STANDARD PAGE HEADING .
PARAMETERS: p_date TYPE sy-datum ,
p_bukrs LIKE t001-bukrs ,
p_str(10).
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
CASE screen-name.
WHEN 'P_DATE' OR 'P_BUKRS'.
screen-input = 0.
ENDCASE.
MODIFY SCREEN.
ENDLOOP.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_date. "方法一
CALL FUNCTION 'F4_DATE'
IMPORTING
select_date = p_date.
LEAVE SCREEN.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_bukrs. "方法二
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'T001'
fieldname = 'BUKRS'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'P_BUKRS'
display = 'F'. " <-- Force
chinaunix网友2010-07-21 11:00:23
感谢白哥哈,我原来使用F4IF_INT_TABLE_VALUE_REQUEST,但是参数display使用的是X,看到你的帖子换位F即解决了,谢了哈。