Hi Fellow Abapers,
I have a peculiar problem. I have done a Module pool program as below.
PROCESS AFTER INPUT.
CHAIN.
FIELD ztrsc_histh-trptr.
MODULE user_command_0100.
ENDCHAIN.
CHAIN.
FIELD ztrsc_fibld-fidocamt.
MODULE user_fidocamt ON CHAIN-REQUEST.
ENDCHAIN.
MODULE user_command_0100.
CASE sy-ucomm.
WHEN 'NEXT'.
CLEAR ztrsc_fibld-fidocamt.
GET NEXT RECORD AND DISPLAY.
ENDCASE..
ENDMODULE.
Input FIELD ztrsc_histh-trptr is display only after Transporter Code is entered and we press "ENTER" key.
Input FIELD ztrsc_fibld-fidocamt is enabled. I enter some value "10".
i have a button as next. When the next record is shown the next record shows but although I clear FIELD ztrsc_fibld-fidocamt, in the debug mode it clears THE FIELD VALUE ztrsc_fibld-fidocamt AND THEN GETS THE NEXT RECORD AND PUTS THE CORRECT NEXT AMOUNT OF THE NEXT RECORD INTO ztrsc_fibld-fidocamt, but when it appears on the Statement FIELD ztrsc_fibld-fidocamt as per the below code.
CHAIN.
FIELD ztrsc_fibld-fidocamt.
MODULE user_fidocamt ON CHAIN-REQUEST.
ENDCHAIN.
the old value of "10" re-appears although I had cleared it in the previous Module program. What could be the reason.
Regards
Yao Chhang