ABAP中的
PARAMETER ID 可以实现此功能,具体例子如下:
REPORT ZTEST_01.
SELECTION-SCREEN BEGIN OF BLOCK BK WITH FRAME TITLE text-001.
PARAMETERS: P_matnr like mara-matnr OBLIGATORY .
SELECTION-SCREEN END OF BLOCK BK.
INITIALIZATION.
GET PARAMETER ID 'Z01' FIELD P_matnr.
START-OF-SELECTION.
SET PARAMETER ID 'Z01' FIELD P_matnr.
END-OF-SELECTION.
阅读(491) | 评论(0) | 转发(1) |