2008 Dec 08 8:23 PM
Hi,
How do you make something happen when pushing a button in dialog programming.
I have a button on my screen, and the following code.
However, when debugging, fcode isn't being filled with the Button name.
CASE FCODE.
WHEN 'BENT'.
PERFORM GET_LAST_UPDATE.
Endcase
Please help,
Thanks,
John
2008 Dec 08 8:27 PM
You need to define the field in the screen which is to handle the function code being passed to the program. This field in the screen is the OK_CODE field. Go to your screen and look at the element list, not the layout, you should have a field with the OK_CODE type, which is probably doesn't have a name assigned. Since you are using FCODE, put FCODE into this field as the name. Save and activate. Should work now.
Regards,
Rich Heilman
Edited by: Rich Heilman on Dec 8, 2008 3:27 PM
2008 Dec 08 8:27 PM
You need to define the field in the screen which is to handle the function code being passed to the program. This field in the screen is the OK_CODE field. Go to your screen and look at the element list, not the layout, you should have a field with the OK_CODE type, which is probably doesn't have a name assigned. Since you are using FCODE, put FCODE into this field as the name. Save and activate. Should work now.
Regards,
Rich Heilman
Edited by: Rich Heilman on Dec 8, 2008 3:27 PM