2020 Oct 31 9:37 AM
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,
2020 Oct 31 2:24 PM
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'.