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: 

Problem in Number range Interval in VF02

reazuddin_md
Active Contributor
0 Kudos

Hi All,

I am using Number range USEREXIT for invoice creation- VF01.

So, while creating invoice, userexit will trigger, as per our logic provided,system generating numbers as expected.- which is working fine.

Where as, in VF02, transaction , i was trying to release invoice to Accounting,

system prompts with the below error message.

Fyi, in my invoice doc type: Number range- interval-19, which has numbers mentioned in the error message below:

am expecting, that when i release invoice to accounting from VF02 transaction, system triggering number range from invoice doc type,- But I dont understand, why it is triggering number range interval again, for which number is already createed in VF01

Error Message:

Incorrect doc.no.: 9003000002. Select document number between 0090000000 and 0094999999

Can someone, have any inputs??

Thanks in advance

3 REPLIES 3

Former Member
0 Kudos

you can write a code saying if sy-tocde = va01.

endif.

in between these lines place your code

Former Member
0 Kudos

Hi,

You can make use of exit userexit_number_range inside RV60AFZZ.

Regards,

Babul.

reazuddin_md
Active Contributor
0 Kudos

Problem occured bcoz of Accounting doc type RV, number range. its not bcoz of Userexit coding.