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: 

Overflow during arithmetic operation rutime error occured while excecuting Smartform

former_member612655
Participant
0 Kudos
218

Hi,

when i am run the Smartform i getting runtime error as "overflow during an arithmetic operation (type p)". After that i started debugging where run time error shown at this loop " LOOP AT IT_VBAP INTO WA_VBAP FROM 9000015084 TO 9000015092" after that i deleted that loop and created a new loop even though the error was shown in previous loop which i was deleted .Can you please help me to find out this .

Regards,

1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos
115

This ABAP code

LOOP AT IT_VBAP INTO WA_VBAP FROM 9000015084 TO 9000015092.

means that you loop from line number 9,000,015,084 to line number 9,000,015,092.

It's virtually impossible because an internal table may contain a maximum of 2,148,000,000 lines (approximately), hence the run time error.

Probably you want to use:

LOOP AT IT_VBAP INTO WA_VBAP
    WHERE vbeln BETWEEN '9000015084' AND '9000015092'.