‎2011 Jan 04 12:59 PM
Hello everyone,
first of all, I am not sure, if this is a general question or UI programming...
I created a dynpro which has a table control. Everytime I click into that table control and use scrollbuttons or mousewheel my program crashes and I find myself in the SAP Easy Access menu...
I debugged and found out, that there is no ok-code set, while scrolling.
The table control was created with the wizard and I didn't change much.
I would like to post some code, but the program has about 3000 lines of code and I don't know what to post
Thanks for your help!!!
Best regards!!!
Patrick
‎2011 Jan 04 5:39 PM
Hello Patrick,
Did you get any dump?
Post the code of PAI and PBO and the code of functions are you invoking.
Regards!
Andrez
‎2011 Jan 05 7:41 AM
Hey,
I didn't get any dump. Meanwhile I fixed the problem, but I still don't know exactly, why the problem occurs.
Before I save the entries I inserted an if-clause.
if zae_abwerf-von is initial or zae_abwerf-bis is initial or zae_abwerf-abanart is initial.
if ok_code ne 'SAVE'.
leave to screen 100.
endif.
endif.
Best regards!
Patrick
‎2011 Jan 05 8:37 AM
Hi,
Please check if the statement "leave to screen 100" is creating any problem.
Every time you click on something this is triggered (except for SAVE). comment this or write any other condition.
Regards,
Srini.
‎2011 Jan 05 8:47 AM
Hey,
sorry, I didn't close this thread.
The
LEAVE TO SCREEN 100.
solved my problem.
Best regards!