2006 Sep 14 5:17 AM
Hi All....
1) Could anyone please explain the difference between external and internal number ranges.
As well as the significance of the exporting and importing parameters in the function modules used for the above.
2)Also Could anyone please explain to me how customization can be done at the client side on implementation.
Regards,
Simy..
2006 Sep 14 5:30 AM
Hi,
1) Internal number assignment
In this case, a number within the number range interval allowed is assigned by the SAP R/3 System.
External number assignment
Here, the user assigns a number within the number range interval allowed. You can define the intervals for external number assignment numerically and alphanumerically.
Thanks,
Naren
Hi All....
1) Could anyone please explain the difference between external and internal number ranges.
As well as the significance of the exporting and importing parameters in the function modules used for the above.
2)Also Could anyone please explain to me how customization can be done at the client side on implementation.
Regards,
Simy..
2006 Sep 14 5:30 AM
Hi,
1) Internal number assignment
In this case, a number within the number range interval allowed is assigned by the SAP R/3 System.
External number assignment
Here, the user assigns a number within the number range interval allowed. You can define the intervals for external number assignment numerically and alphanumerically.
Thanks,
Naren
2006 Sep 14 5:34 AM
Hello,
A number range contains a number range interval with a defined character set. The number range interval consists of numeric or alpha-numeric characters (only for external number ranges) and is delimited by the fields From number and To number. Either one interval, or several if financial years are to be distinguished, is assigned to a number range.
<b>Number ranges can be external (number to be assigned manually by the user) or internal (number assigned automatically by the system).</b>
A commercial object can either have only one number range (external or internal) or two number ranges (external and internal).
For function modules related to this refer to function group SNR2 and SNR3.
Reward points if helps.
Thanks,
Krishnakumar
2006 Sep 14 5:36 AM
hi simi,
1. A range of numbers that are laid down per file for the assignment of document numbers. It can be internal (carried out automatically by the system) or external (carried out manually by the user).
In the 4.6x environment, SAP have included a number range generation
program just like those used for Purchase Order, Sales Order etc.
*
This SAP number range generation is an include program.
*
INCLUDE ZRANGENO.
*
Always have to be included in the main program data declaration
*
data: wnorange like INRI-NRRANGENR, "number range,
wsubobj like inri-SUBOBJECT, "sub object
wdocno(12).
*
Steps :-
1. Number range Sub Object must be maintain in table ZSGRP
You can used transaction SE16 to create a table entries.
2. Maintain number range and intervals in transaction code SNUM
*
Written by : SAP Basis, ABAP Programming and Other IMG Stuff
*
call function 'NUMBER_RANGE_ENQUEUE'
exporting
object = 'ZOWNNO' "Create with SNUM
exceptions
foreign_lock = 1
object_not_found = 2
system_failure = 3
others = 4.
if sy-subrc ne 0.
message e086 with 'Lock error' sy-subrc.
endif.
call function 'NUMBER_GET_NEXT'
exporting
nr_range_nr = wnorange
object = 'ZOWNNO'
subobject = wsubobj
importing
number = wdocno "Number generated by SAP
exceptions
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
internal_overflow = 6
others = 7.
if sy-subrc ne 0.
message e086 with 'Number Range' sy-subrc.
endif.
call function 'NUMBER_RANGE_DEQUEUE'
exporting
object = 'ZOWNNO'.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
2. the second question, i am not that much xperienced to answer. sorry.
rgds
anver
if hlped rwrd points
2006 Sep 14 5:36 AM
Hi Simy,
In a number range, a set of characters or numbers is defined. Number ranges can either be internally or externally defined. Internally defined means that the system automatically defines the number range.
Externally means that the numbers are assigned manually by a user. For each number range, there is a number range number. Number range objects are used to represent specific objects with number ranges. For example,
the number range object EINKBELEG is the number range object for purchasing documents. Each number range object can be defined, and then, more than one number range can be assigned to it. The number range object contains all definitions (such as the warning percentage, at which the user is warned that numbers are running out) which are needed for the number assignment for the commercial object.
Regards,
Sunil.M