Application Development 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: 

Dump in module pool at CURSOR statement

Former Member
0 Kudos

Hi,

I have placed an table control in one subscreen.

In PBO I have written something like this:

LOOP AT tab INTO wa

WITH CONTROL tab

CURSOR wa.

MODULE zorder_move.

ENDLOOP.

in PAI, I have written .

LOOP AT tab.

ENDLOOP.

Whenever I run this it is giving a dump stating that "curson value should be binary/hexadecimal type.

Could anybody diagonise this problem?

Regards,

Jeetu

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

LOOP AT tab INTO wa WITH CONTROL tab CURSOR <CURSOR>.

<CURSOR> has to be an integer number, if WA is a workarea for TAB, it can't be for the cursor too,

u can use the field CURRENT_LINE of the table control.

What's TAB? Is it an internal table or the table control?

If ITAB is the internal table with the data to be displayed and T_CTRL is the table control, it shoud be:

LOOP AT ITAB WITH CONTROL T_CTRL CURSOR T_CTRL-CURRENT_LINE.

Max

1 REPLY 1

Former Member
0 Kudos

Hi

LOOP AT tab INTO wa WITH CONTROL tab CURSOR <CURSOR>.

<CURSOR> has to be an integer number, if WA is a workarea for TAB, it can't be for the cursor too,

u can use the field CURRENT_LINE of the table control.

What's TAB? Is it an internal table or the table control?

If ITAB is the internal table with the data to be displayed and T_CTRL is the table control, it shoud be:

LOOP AT ITAB WITH CONTROL T_CTRL CURSOR T_CTRL-CURRENT_LINE.

Max