11-13-2006 10:48 PM
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.
11-13-2006 10:50 PM
Could you please explain a little more, what exactly do you mean by RANKS?
Regards,
Ravi
11-13-2006 11:00 PM
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.
11-13-2006 11:07 PM
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
11-13-2006 11:19 PM
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?
11-13-2006 11:26 PM
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.
11-13-2006 11:35 PM
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