Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Program Crash after Table Control Scrolling

Former Member
0 Likes
637

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

4 REPLIES 4
Read only

Former Member
0 Likes
575

Hello Patrick,

Did you get any dump?

Post the code of PAI and PBO and the code of functions are you invoking.

Regards!

Andrez

Read only

0 Likes
575

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

Read only

0 Likes
575

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.

Read only

0 Likes
575

Hey,

sorry, I didn't close this thread.

The

LEAVE TO SCREEN 100.

solved my problem.

Best regards!