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: 

Buffer Overflow when calling function NUMBER_GET_NEXT

Former Member
0 Kudos

Good Morning,

When using function NUMBER_GET_NEXT to get the next number in a range created by us (Z3_REGARAN) the system can't get the next number.

The problem is that, when performing module LOCAL_BUFFER inside function NUMBER_GET_NEXT and when calling function (inside perform LOCAL_BUFFER):

CALL 'ThNoGet' ID 'BNRIV' FIELD BNRIV

ID 'NO' FIELD G_NOIVBUFFER

ID 'QUAN' FIELD P_QUANTITY

ID 'PERCENT' FIELD TNRO-PERCENTAGE

ID 'NONRSWAP' FIELD TNRO-NONRSWAP.

the sy-subrc generated is 11 (Buffer Overflow).

How can i solve this, the Number Range Object seems ok...

Regards,

Pedro Gaspar

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

I think this is due to SAP buffer is too small to hold the number ranges in buffer,

Try to reduce the "No. of numbers in buffer" or make it 0 in the SNRO

that will resolve this issue

2 REPLIES 2

former_member194669
Active Contributor
0 Kudos

I think this is due to SAP buffer is too small to hold the number ranges in buffer,

Try to reduce the "No. of numbers in buffer" or make it 0 in the SNRO

that will resolve this issue

0 Kudos

a®s ,

Thank you for your help.

Best Regards,

Pedro Gaspar