‎2007 Jun 19 10:36 AM
Hi friends.
i am working in the Number Ranges which are setin SNRO to the Disctionary fields to do the upadet at each run. After setting all fields in SNRO and executing i am getting a message that:
1) "<b>NO MAY BE LOST..DO NOT USE FINANCIAL A/C DOCUMENTS
DO YOU WANT TO SET THIS BUFFRING METHOD".</b>PLZ tell me wat to do next this..
2) <b>plz let me know the steps to code number ranges and waht are the Function module used to call the in reports</b>.
3) <b>how to update the number rganges to set the field = initial.waht is the functional module used for the same..
plz help me</b>!!!!
MAHESH
‎2007 Jun 19 10:43 AM
Hi,
I think you may as well create a ranges table for the parameter rather than using it from SNRO.
The syntax is for e.g. Ranges: it_werks for eine-werks.
When you do so it_werks becomes a ranges internal table having the fields sign,option,low and high.
You can now use the table itself and fill in the values as your choice.
Hope it will be useful.
Thanks,
Sandeep.
‎2007 Jun 19 10:43 AM
Hi,
I think you may as well create a ranges table for the parameter rather than using it from SNRO.
The syntax is for e.g. Ranges: it_werks for eine-werks.
When you do so it_werks becomes a ranges internal table having the fields sign,option,low and high.
You can now use the table itself and fill in the values as your choice.
Hope it will be useful.
Thanks,
Sandeep.
‎2007 Jun 19 10:46 AM
The FM is to get the next number in the range is :
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
NR_RANGE_NR =
OBJECT =
QUANTITY = '1'
SUBOBJECT = ' '
TOYEAR = '0000'
IGNORE_BUFFER = ' '
IMPORTING
NUMBER =
QUANTITY =
RETURNCODE =
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
BUFFER_OVERFLOW = 7
OTHERS = 8
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
YOu can use this in your program.
The 'OBJECT' is the name of the number range object Name
and 'NR_RANGE_NR' is the interval eg.. 01, 02 ...
You will get the number returned by the FM in 'NUMBER' variable
You can set the number of numbers in the buffer to zero and <b>SAVE</b> the object and on the pop up Press '<b>YES</b>' to continue.
Message was edited by:
Anish Thomas
‎2007 Jun 19 11:04 AM
HI,
THANKS FOR THE REPLYE,,
CAN YOU PLZ TELL ME..about the error messages i mensioned in my erlier post..
how to initiale the same..
mahesh
‎2007 Jun 19 10:52 AM
Hi
Check the Tcode SNUM and SNRO for Number range object creation and maintaining the Number ranges
you can use the fun module
'NUMBER_GET_NEXT' in the code to get the numbers one after the other as per number range
Reward points for useful Answers
Regards
Anji