05-03-2008 11:43 AM
hello friends,
I am working with module programming t-se80,
i have made a simple screen with some filed on it.Along with this i have made gui staus with 2 icons create and display and i have assiged text to them also , also they appear in screen when i run the t-code.
problem is that when i click on any of icon i am unable to debug my code and system prompts an information message
"NO FILED DEFINED FOR THE FUNCTION CODE ".
In the screen elements with elemnt ok if have assigned ok_code in the screen and also a data statement in the code.
Still i m unable to monitor the debuger.
when ever i run the t-code and on the debuger and when i click on the create icon nothing happens?/
kindly help me urgently
with thanks
sam
05-05-2008 8:51 AM
Hi,
Keep the Breakpoint in PAI At Case ok-code.
Check the FCode of Create Button in GUI Status.
Use that FCode in WHEN ' '.
Thanks,
Kishore
05-05-2008 8:57 AM
05-05-2008 10:11 AM
Have you defined your gui status correctly with function codes.If yes give ok_code in field element list after that
please code in the pai following
ok_code = sy-ucomm.
Case ok_code.
WHEN 'FUNCTION CODE'
instructions......
endcase.
05-05-2008 12:06 PM
Hi,
It seems you have not assigned Function codes to your buttons in GUI. Assign them d relevant fct codes in Screen Painter (if u've created 2 push buttons) or menu painter.
Hope this wil soleve your problem.
Reward points if helpful.
Thnx
Pradipta K Mishra
05-10-2008 12:20 PM