Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dump in module pool at CURSOR statement

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

replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question