我在sap abap中创建了一个功能模块池。如何在用户按下时输入输入字段中的值不会消失?
state
我错过了什么。如果我删除了MODULE user_command_0200 INPUT.
CASE ok_code.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN 'BACK'.
CALL SCREEN 100.
WHEN 'DISPLAY' .
SELECT SINGLE * FROM ekpo
WHERE ebeln = ekpo-ebeln AND ebelp = ekpo-ebelp.
ssn = 400.
ENDCASE.
CLEAR: ekpo-ebeln ,ekpo-ebelp.
CLEAR ok_code.
ENDMODULE.
,即使我更改了屏幕,字段也会被填满。
如何保持字段中的值,即使用户按下输入也不会发生任何事情。
答案 0 :(得分:0)
在这里,伙计:
WHEN 'BACK'.
CLEAR: ekpo-ebeln ,ekpo-ebelp.
ssn = '500'.
答案 1 :(得分:0)
While the accepted answer solves the apparent problem in Dynpro 0200, this is not the best event to do it.
It appears to me you want to control the initial value of the fields for the next time dynpro 0200 appears.
Do clear/set the fields in the PAI of the Dynpro that calls Dynpro 0200. (sometimes PBO of Dynpro 0200 also is a good place, but probably not in your case).