2006 Dec 19 11:24 AM
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
2006 Dec 20 1:55 PM
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.
2006 Dec 20 1:56 PM
Hello,
In the PBO of the screen
U should use this line.
DESCRIBE TABLE YOUR_TABLE LINES LINES
Vasanth
2006 Dec 20 1:56 PM
Assign this way...
MODULE TBCTRL_GET_LINES OUTPUT.
DATA: LINES TYPE I.
DESCRIBE TABLE YOUR_TABLE LINES LINES.
G_TBCTRL_LINES = LINES..
ENDMODULE.