Copying number ranges in SAP FICO ECC

24
Copying Number Ranges FI & CO Use: One of the year-end activities is to copy the document number ranges, if these have been defined as fiscal-year dependent. You now copy these document numbers in Customizing. Procedure: 1. Call up the transaction as follows: Menu Path: Tools ® AcceleratedSAP ® Customizing ® Edit Project Transaction Code: SPRO, OBH2 2. Choose SAP Reference IMG. 3. Choose Financial Accounting ® Financial Accounting Global Settings ® Document ® Document Number Ranges 4. Choose Copy to Fiscal Year. If the First Steps in Customizing dialog box appears, choose Continue. If the Transport Number Range dialog box appears, choose . 5. Enter the following data: Field Data Company code 1000 To R300 Source fiscal year details To fiscal year 2000 Target fiscal year details To fiscal year 2004 6. Choose . 7. In the Copy Document Number Ranges dialog box, choose Yes. If the Change Request dialog box appears, choose . Enter a description, then choose . Confirm your entries with . 8. Choose until the overview tree appears. HOW TO COPY CO DOCUMENT NUMBER RANGES IN KANK. THIS QUESTION HAS BEEN ANSWERED. I need to Copy CO Document Number Ranges in KANK. I want to copy the existing group and elements from controlling area 0001 (provided in SAP) to my controlling area. But, there is an error message saying that my controlling area and the controlling area 0001 have different elements and thus can not be copied. Why is that? And, how to copy it so I can have the same groups, intervals, and elements with controlling area 0001? Answer: You should run (SE38) report RKTKA04C. https://scn.sap.com/thread/1373514#

description

Copying number ranges in SAP FICO ECC

Transcript of Copying number ranges in SAP FICO ECC

Page 1: Copying number ranges  in SAP FICO ECC

Copying Number Ranges FI & COUse: One of the year-end activities is to copy the document number ranges, if these have been defined as fiscal-year dependent. You now copy these document numbers in Customizing.Procedure:

1. Call up the transaction as follows:

Menu Path: Tools ® AcceleratedSAP ® Customizing ® Edit Project

Transaction Code: SPRO, OBH2

2. Choose   SAP Reference IMG.3. Choose Financial Accounting ® Financial Accounting Global

Settings ® Document ® Document Number Ranges4. Choose   Copy to Fiscal Year.

If the First Steps in Customizing dialog box appears, choose Continue.If the Transport Number Range dialog box appears, choose  .

5. Enter the following data:Field Data

Company code 1000

To R300

Source fiscal year details  

To fiscal year 2000

Target fiscal year details  

To fiscal year 2004

6. Choose  .7. In the Copy Document Number Ranges dialog box, choose Yes.

If the Change Request dialog box appears, choose  . Enter a description, then choose  . Confirm your entries with  .

8. Choose   until the overview tree appears.HOW TO COPY CO DOCUMENT NUMBER RANGES IN KANK.THIS QUESTION HAS BEEN ANSWERED.I need to Copy CO Document Number Ranges in KANK.I want to copy the existing group and elements from controlling area 0001 (provided in SAP) to my controlling area. But, there is an error message saying that my controlling area and the controlling area 0001 have different elements and thus can not be copied. Why is that?And, how to copy it so I can have the same groups, intervals, and elements with controlling area 0001?Answer: You should run (SE38) report RKTKA04C.https://scn.sap.com/thread/1373514#

How to Create you own Number Range ? (SNRO)Skip to end of metadata

Attachments:22 Added by surjith kumar, last edited by Ahmed HASSANE on Jan 13, 2011  (view change) show comment

Go to start of metadata

Page 2: Copying number ranges  in SAP FICO ECC

Number Range - SNROby P surjith kumar, Enteg Infotech, Bangalore, India.

Number Range Object - SNROIn an Invoice creation number range is the one which refer to unique invoice. This is vital to identify the specific invoice. The custom define Number Range Object can be create in the Transaction Code SNRO and the object has to be called in program with the help of a Function Module NUMBER_GET_NEXT.

ScenarioIn an Organization for the custom defines applications like invoice generation, reimbursement or Expense payment, etc. needs auto generated number for reference, which is done through a Number Range object. The creation and the implementation of Number Range Object based on the Employee's Company code and the current Year is explained in this article.

Creating Number Range Step by Step

    The following steps are necessary to create a Number Range,

1. Log to Transaction Code SNRO.2. Number Range Object Creation.

3. Assigning Domain and the Sub-object for Number Range Object.

4. Assigning Sub-object for Number Range Object.

5. Assigning Number for the Number range Object

6. Implementation of Number range Object.

7. Execution and viewing the newly generated Number Range.

1) Log to Transaction Code SNRO                  

  Give a name for the Number Range Object.    2) Number Range Object Creation

Once the name given for the Number Range Object,

Page 3: Copying number ranges  in SAP FICO ECC

click the create icon to create the number range Object as shown below.

  3)  Assigning Domain and the Sub-object for Number Range Object

Once the create icon is clicked the below mentioned screen will appear.

Then the value has to enter in Subobject data element, Number length domain and Warning % as mention below.

Page 4: Copying number ranges  in SAP FICO ECC

Then Same Screen Explained in Detail below, 

a) Short and Long Description

  

a short and long description for the Number Range.  

b) Interval Characteristics  

Page 5: Copying number ranges  in SAP FICO ECC

   Subobject data element: This determines whether the number range intervals distinguish subobjects.

Enter the Company code data element "BUKRS" for the subject, like Company code Personnel area and other field can be entered as per the requirement.

To-year flag:  If the check box is selected this Flag will set and it determining, whether the number range intervals are distinguished according to the financial year.

Number length domain: Assign the (Domain) Data type and length for the Number range.

Enter the data type "NUM10" or as per the requirement.

No interval rolling:  If the check box is select the flag will set and it prevents the number range object intervals from automatically starting from the beginning at the upper limit.

c) Customizing Specifications

 Number range transaction:  Transaction code to call number range maintenance is assigned. And it Dependencies is this transaction code is automatically entered in the transaction code table.

Warning %:  This indicates the Percentage of numbers remaining in a number range, once the percentage is reached it will show a warning. For Examples if you have defined an interval from 1 to 100 and you want to issue a warning at the number 90, you have to enter 10 (%) here.

Enter the warning Percentage (%) "10". If the requirement is "15" or "5" assign the given value here.

Main memory buffering:  Selecting the flag determines whether the number intervals are buffered for assignments and checks.

Benefits:  

The number interval buffer is in the Shared Memory of the application server. Each buffer is used to store the external number intervals and a certain number (subinterval) of the internal number intervals. If the numbers of an internal number interval are used up, numbers are taken from the database via the number range server. The status of the number interval in the database is increased by the number of numbers fetched to the buffer.

Dependencies:

When buffering number intervals, gaps may result in number assignment. Buffering is therefore not possible for applications, which require continuous number assignment.

No. of numbers in buffer:  This number which you assign determines how many numbers are reserved in the application server buffer for the intervals.

Page 6: Copying number ranges  in SAP FICO ECC

d) Group Specification 

 Group table:  Name of the table for number range groups.

Benefits: Number range intervals are identified uniquely by a number range number. When numbers are assigned or checked, the number range group elements determine the number range interval via the number range number. Number range group elements are assigned in the group table.

Subobject field in group table:   It is Number range table subobject field name, the Field name of the group table containing the subobject if the group table takes subobjects into account.

Fld  NoRangeElement:  It is  Name of the number range element field, During assignment and checking of number range numbers, the number range group elements determine the number range interval via the number range number. For Example For the material master, the material type determines the number range interval. Here, the element field is the material type field.

Fields int./ext. no.range no.: Name of the number range field (in the group table), which contains the internal number range number.

Fld. NoRangeNo: Field name of the group table, which contains the number range number.

Display element text:  Mention the Short text for number range object maximum 20 characters.Once the SubObject name, Domain (Length & Data type) and warning % is entered save the changes. 

 After saving, a message window will appear as below and Click yes. 

   Then the same screen will appear as shown below.  

4)  Assigning Sub-object for Number Range Object. 

Page 7: Copying number ranges  in SAP FICO ECC

  

 

Then a new screen will appear as shown below.

Page 8: Copying number ranges  in SAP FICO ECC

 Enter the Company "IN01" and Click the Intervals.                   

5) Assigning Number for the Number range Object

  Then a new screen will appear as below.

Page 9: Copying number ranges  in SAP FICO ECC

 

Page 10: Copying number ranges  in SAP FICO ECC

 

Page 11: Copying number ranges  in SAP FICO ECC

 Once the numbers assigned then Press Enter.  

 And the below screen will appear.  

Page 12: Copying number ranges  in SAP FICO ECC

 Then save it a message widow will appear as mentioned below. 

Page 13: Copying number ranges  in SAP FICO ECC

 Then click the Tick Mark.  

Page 14: Copying number ranges  in SAP FICO ECC

 Then the number range object can be used your application. If any changes need to madeThen the Number range Object is called inside the Program or function module or Inside the method of Webdynpro Component, etc. 

6) Implementation of Number range Object.    

  Number range with Sub-Object and Year Dependency used in the program is explained below.     

 a) Go to Transaction Code - SE38 

Page 15: Copying number ranges  in SAP FICO ECC

   Enter the Title of the Program. 

Page 16: Copying number ranges  in SAP FICO ECC

 Save and write the below Program to get the Number range 

Page 17: Copying number ranges  in SAP FICO ECC

  b) Call the Number Range Object in the Program using the Function Module "NUMBER_GET_NEXT".

*&---------------------------------------------------------------------**& Report  YSURJITH_NORANGE*&---------------------------------------------------------------------** Created by: P SURJITH KUMAR, Enteg Infotech, Bangalore* Version   :  1.0* Purpose   : Number Range for Invoice Generation*&---------------------------------------------------------------------*REPORT  YSURJITH_NORANGE.

DATA:

lv_number_range(10) TYPE n,    "-- Variable to hold Newly generated Number Rangelv_year TYPE inri-toyear,              "-- Variable to hold Yearlv_subobject TYPE  t001-bukrs,     "-- Variable to hold Company Codelv_rc TYPE inri-returncode.            "-- Variable to hold the Return Code

Page 18: Copying number ranges  in SAP FICO ECC

lv_year = '2008'.         "--- Assign Current Yearlv_subobject = 'IN01'.  "--- Assign the Company Code

CALL FUNCTION 'NUMBER_GET_NEXT'  EXPORTING    nr_range_nr            = '01'                "-- This hold the Newly generated Number    object                    = 'YINVNUM'       "---- Passing the Number Range Object    subobject               = lv_subobject    "-- Pass the Company code    toyear                   = lv_year            "-- Pass the Year  IMPORTING    number                  = lv_number_range "-- Newly generated Number     returncode              = lv_rc                   "-- The Return Code Number  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.

WRITE : / 'The New Number is  :'(001), lv_number_range,       /  'The Return Code is :'(002), lv_rc. 

*&--- End of Report  YSURJITH_NORANGE -----&* 

Then Save and Activate the Program, then execute it. 

Return Code (lv_rc)

1) lv_rc =  ' ' , Everything is working fine

2) lv_rc = '1', The assigned number lies in the critical area.       

3) lv_rc =  '2',  This was the last number, next time the first number will be assigned           

7) Execution and viewing the newly generated Number

Then Execute and get the output as below,

   The same Program you can assign in your application as per your Requirement.http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=50004015

Page 19: Copying number ranges  in SAP FICO ECC

Maintain Number Ranges for Controlling Documents

In this IMG activity you create number ranges for business transactions in Controlling or change existing transaction configurations.

For every posting in CO the R/3 System creates a numbered document. The document numbers are unique to each controlling area since each number is assigned only once.

In CO, there are no fixed requirements for a continuous assignment of document numbers. To improve performance, after each restart of an application server, a maximum of 100 document numbers for each number range are not assigned.

Every transaction that you carry out on the controlling area level has to be assigned to a number range group.

A number range group, in turn, includes two document number intervals:

An internal interval for all documents to which the user did not explicitly assign a document number;

An external interval for all documents where the document numbers were assigned by the user, or which are brought into the R/3 System from a non-SAP system (for example, through batch input) and the original document numbers are to be retained.

If no external document number is given during posting, the R/3 System uses the next open number from the internal number interval of the transaction it belongs to.

Requirements

You have system authorization for maintaining number ranges. (authorization object S_NUMBER).

Complete the IMG activity

Maintain Controlling Area .

Note

You define the document number range in CO independently from the fiscal year.

Page 20: Copying number ranges  in SAP FICO ECC

Standard settings

The R/3 System includes standard assignments for controlling area 0001. You can copy these assignments to other controlling areas. You need to maintain the number range groups only if you require other assignments or other number range groups.

Recommendation1. SAP recommends that you create separate document number ranges for plan and actual cost transactions so that, when reorganization programs run separately for plan and actual data, the number ranges can also be reset separately.2. For transactions seldom used, such as repostings at period-end closing, you should not create individual number range groups. Otherwise, note that no more than 100 document numbers are assigned for system performance reasons on each day that such a transaction is started.3. If you work with several controlling areas which are to use the same number range intervals, it is easiest to carry out the definition for one controlling area only. Use Copy to transfer your settings to other controlling areas.

Activities1. Check whether the standard settings for controlling area 0001 satisfy your requirements.If you are not going to work with controlling area 0001, you can transfer the number ranges with the function Copy to your controlling area2. Create, if necessary, new number range groups.3. Maintain the respective number intervals for the number range groups you created.Be careful that the number intervals do not overlap with those of other groups.4. Assign the transactions that you wish to use to the respective number range groups.

Note on transport

To ensure data consistency, you should not transport number ranges for CO documents, but rather create them anew in the target system.

The transactions for number range maintenance are generated with the program TKA04C.

Further notes

Page 21: Copying number ranges  in SAP FICO ECC

For more information, see the R/3 Library under "AC Financials -> CO Controlling -> General Controlling -> Number Ranges".

Defining Number Ranges 

Purpose

The SAP system creates a numbered document for each posting in Controlling. The document numbers are unique in every controlling area as each number is only used once.

Prerequisites

You define number ranges in Customizing under Controlling: General ® Organization ®   Maintain Number Ranges for CO Documents.

You can:

Create business transaction groups Assign business transactions to business transaction groups

Maintain number range intervals for individual business transaction groups

Maintain number range intervals and number range statuses in the controlling area

Process Flow

You define number ranges in two steps:

1. You create individual business transaction groups for each controlling area.

You can, for example, group all planning transactions into a business transaction group and then assign it to a number range interval.

You can also create a business transaction group for each business transaction if you require a greater level of detail for the number assignment. If this is the case, you make assignments to the number range on the business transaction level.

2. Assign the business transaction groups to number range intervals.

This enables you to combine similar or related business transactions into one number range.

If all planning transactions are grouped together, the system processes all the business transactions connected with planning in one number range.

Page 22: Copying number ranges  in SAP FICO ECC

The SAP system includes standard default assignments of business transactions to number ranges for controlling area 0001. You can copy these assignments to other controlling areas if you wish. You then only need to maintain the number ranges if you require other assignments or other number range groups.

The following graphic illustrates the steps required for defining number ranges.