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 tablecontrol

Former Member
0 Kudos

friends,

i am displaying some data in a tablecontrol...it's working fine if the data that's displayed is in one page of the tablecontrol..now, i have created some additional records so that my first material alone has some 17 records and then i have records for another material...when i execute, it's going to dump stating that a conversion error occured...

008210 MODULE TBCTRL_GET_LINES OUTPUT.

008220 G_TBCTRL_LINES = sy-loopc.

-


> ENDMODULE. "TBCTRL_get_lines OUTPUT

should we do any checking for the lines of the tablecontrol, page down, etc. and things like that? i have created it using wizard...any responses will be highly appreciated

3 REPLIES 3

former_member583013
Active Contributor
0 Kudos

It should be....


MODULE TBCTRL_GET_LINES OUTPUT.
DATA: LINES TYPE I.
DESCRIBE TABLE YOUR_TABLE LINES LINES.
G_TBCTRL_LINES = LINES..
ENDMODULE. "TBCTRL_get_lines OUTPUT 

That way, you always assign the number of lines in your internal table to the Table Control.

Greetings,

Blag.

Former Member
0 Kudos

Hello,

In the PBO of the screen

U should use this line.

DESCRIBE TABLE YOUR_TABLE LINES LINES

Vasanth

Former Member
0 Kudos

Assign this way...

MODULE TBCTRL_GET_LINES OUTPUT.

DATA: LINES TYPE I.

DESCRIBE TABLE YOUR_TABLE LINES LINES.

G_TBCTRL_LINES = LINES..

ENDMODULE.