Dump in module pool at CURSOR statement
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
in PAI, I have written .
LOOP AT tab.
Whenever I run this it is giving a dump stating that "curson value should be binary/hexadecimal type.
Could anybody diagonise this problem?
max bianchi replied
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.