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: 

ASSIGN RANKS

Former Member
0 Kudos

Hi!!

I need to assign a rank for idoc created, but the number that is assigned to my object it does not respect transaction VOFA and it continues using by default.

Thanks.

6 REPLIES 6

Former Member
0 Kudos

Could you please explain a little more, what exactly do you mean by RANKS?

Regards,

Ravi

0 Kudos

In the transaction SNRO i create an object, which I indicate the number of this object in transaction VOFA, but it does not respect that new object, and

the numeration of the invoices does not initiate with the new rank, but that takes the one that this by default.

Former Member
0 Kudos

Hi,

In the transaction VOFA you can assign only the number range interval and not the number range object itself.

In the transaction SNRO give the object as RV_BELEG..

Then create a new interval and assign that interval in VOFA..

Thanks,

Naren

0 Kudos

ok, but always i will have that to use the object rv_beleg when it wants to assign a new interval or I can create my own object?

0 Kudos

I think you will have to use the same object with a new interval everytime you want a new number rage of documents.

Regars,

Ravi

Note - Please mark all the helpful answers and close the thread if the issue is resolved.

Former Member
0 Kudos

Hi,

The RV_BELEG is hard corded in the program..Which means you cannot create new number range object..But have to use only RV_BELEG

Check the FM RV_INVOICE_DOCUMENT_ADD

  • Neue Nummernvergabe außer im Simulationsmodus

IF NOT KOM-POSTING EQ 'H'.

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING

NR_RANGE_NR = DA_NUMKI

OBJECT = 'RV_BELEG'

IGNORE_BUFFER = NO_BUFFER

IMPORTING

RETURNCODE = LD_RETURNCODE

NUMBER = XVBRK-VBELN

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

OTHERS = 99.

Thanks,

Naren