cancel
Showing results for 
Search instead for 
Did you mean: 

newly assign Number range not picking for Billing document?

Former Member
0 Kudos

Hi Experts,

I have newly assigned number ranges for the all the billing documents for the fiscal year 2010-11.

The newly generated billing documents are picking the newly assigned number ranges except one billing document typa.

for tha particular billing document type,the no.ranges are picking from the previous year(old) no.ranges.

I have checked in VOFA that "No.range int.assgt. is V5 and no.ranges also created for V5.

What may be the reason so that the newly assigned no. range is not working for particular one billing document type?

Please suggest.

Regards,

Sumeya Offrin

Accepted Solutions (0)

Answers (1)

Answers (1)

ivano_raimondi
Active Contributor
0 Kudos

Hello,

notice that in SD, the numer range does not depend on the Fiscal year, but only on Billing type.

So I suspect you implemented the userexit USEREXIT_NUMBER_RANGE in program RV60AFZZ to set number range according to combination that includes Fiscal year.

Please check that userexit.

Best regards,

Ivano.

Former Member
0 Kudos

Hi Ivano,

Thank you for the response.

I have not created the number range fiscal year wise.I have created the new no.range as the previous assigned

number range is about to finish.its working for all the billing document types except one billing document type.

what may be the reason as the newly assigned no.range is not working?

Best Regards,

Sumeya Offrin

ivano_raimondi
Active Contributor
0 Kudos

Hello,

did you check if the userexit is implemented ?

The relevant source code is

da_numki = tvfk-numki. < get number range from customizing in DA_NUMKI

IF xvbrk-numki = tvfk-numki.

PERFORM userexit_number_range USING da_numki. < call userexit evenutally changing DA_NUMKI

IF da_numki NE tvfk-numki.

PERFORM tvfkd_lesen USING da_numki.

IF NOT tvfkd-fkdat IS INITIAL AND

xvbrk-fkdat NE tvfkd-fkdat.

MESSAGE a145 WITH xvbrk-fkdat da_numki.

ENDIF.

ENDIF.

ELSE.

  • number_range changed in userexit number_range_inv_date

da_numki = xvbrk-numki.

ENDIF.

  • Neue Nummernvergabe außer im Simulationsmodus

IF NOT kom-posting EQ 'H'.

CALL FUNCTION 'NUMBER_GET_NEXT' < get number from number range in DA_NUMKI

EXPORTING

nr_range_nr = da_numki

object = 'RV_BELEG'

ignore_buffer = no_buffer

IMPORTING

returncode = ld_returncode

number = xvbrk-vbeln > billing number

Best regards,

Ivano.