Application Development and Automation 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: 
Read only

call function within rfc

former_member182371
Active Contributor
0 Likes
687

Hi,

i´ve developed an RFC FM and within this FM i use

CALL FUNCTION '

NUMBER_GET_NEXT

'
in order to get a sequential number each time the FM is called.

When this RFC FM is called from XI
i get exception 1 (

INTERVAL_NOT_FOUND

)

Why is this happening?

How can i solve this problem?

Best regards.

1 ACCEPTED SOLUTION
Read only

former_member182371
Active Contributor
0 Likes
650

Hi,

i just do this:

DATA: l_number(15) TYPE C.

IF l_number IS INITIAL.

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING

NR_RANGE_NR = '00'

OBJECT = 'ZVLBSOLICI'

IMPORTING

NUMBER = l_number

EXCEPTIONS

INTERVAL_NOT_FOUND = 1

NUMBER_RANGE_NOT_INTERN = 2

OBJECT_NOT_FOUND = 3

QUANTITY_IS_0 = 4

QUANTITY_IS_NOT_1 = 5

INTERVAL_OVERFLOW = 6

BUFFER_OVERFLOW = 7

OTHERS = 8.

...............................

ENDIF.

Best regards.

4 REPLIES 4
Read only

Former Member
0 Likes
650

Hi,

what do you give to the Interface-Parameter (of NUMBER_GET_NEXT) NR_RANGE_NR?

And Which Object do you use?

Martin

Read only

former_member182371
Active Contributor
0 Likes
651

Hi,

i just do this:

DATA: l_number(15) TYPE C.

IF l_number IS INITIAL.

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING

NR_RANGE_NR = '00'

OBJECT = 'ZVLBSOLICI'

IMPORTING

NUMBER = l_number

EXCEPTIONS

INTERVAL_NOT_FOUND = 1

NUMBER_RANGE_NOT_INTERN = 2

OBJECT_NOT_FOUND = 3

QUANTITY_IS_0 = 4

QUANTITY_IS_NOT_1 = 5

INTERVAL_OVERFLOW = 6

BUFFER_OVERFLOW = 7

OTHERS = 8.

...............................

ENDIF.

Best regards.

Read only

0 Likes
650

Hi,

that's like I normally do.

Did you check that the Intervall '00' really exist?

Try transaction SNRO with your Object ZVLBSOLICI.

Press Number ranges (Nummernkreise) and check the Intervalls.

If your Intervall '00' doesn't exist you should create it!

Martin

Read only

former_member194669
Active Contributor
0 Likes
650

Please check fm NUMBER_GET_NEXT thru in SE37, after giving values

aRs