Custom number ranges
hi
i have one problem regarding creating custom number ranges. i want to create custom number range . i know that number_get_next is used for that but i dont know which tcodes are used for updating objects and number ranges in(NRIV ) table
Hi,
you can maintain number ranges in transaction SNRO. But maybe you should start with [SAP documentation|http://help.sap.com/saphelp_nw04/helpdata/en/1f/8310df4bc511d189750000e8322d00/frameset.htm].
Cheers
Similar Messages
-
Customer Master data creation with customized number range
Dear all,
Can somebody know how to create the customized number range for customers like first 2 digits represents Sales organization and next 2 digit should represent circle,next 2 distribution chaneel and last 4 digits shold be the running number.
Looking for solution..
Thanks & Regards,
Murali.Hi,
In your case you need to define as following
Step No: 01.
01.Sales Orgination with 0001 to 0099.
02.Regions with 00 to 99.
03.Distribustion Channel with 00 to 99
Step No:02.
Define PDP with the diffrent account groups defined for diffrent Sales Org, Regions & DC's.
Step : No: 03.
As per the above configs go to TCode for Number range for accounts groups in XDN1. Say Example as
XX--- From:1010100000 to: 1010109999. Note the possiable numbers are 0000 to 9999 only.
10 is sales Org, 10 is Region & 10 is DC's.
This is one of the way to do. The other way is to develo Z table and to use the user exit / new progarme to identify the requried number range with reference to Sales Org, Regions & DC's
Hope this is fine with your requrment.
Bye & enjoy SAP.
Koganti. -
Hi SAP Gurus
We have been reviewing our customer master data and noticed that a series of GAP in our customer number range.
Please could anyone advise on what is reponsible for this and how it can be fixed.
Thanks, FelixHello Felix,
There are a number of reasons why gaps in invoice numbers may occur:
1. Object RV_BELEG is buffered. In this case the performace is improved
but this gaps are produced.
2. Update terminate/shortdump occures while billing document update.
- the number is set in to the invoice at the beggining of the program
If an interruption of the process happens after the assignation of
this number, the number has run in the range and cannot be recovered.
Update terminations in transaction VF01 and VF04. The billing
document number is reserved prior to the update. After a possible
update termination, it cannot be used again. Update terminations are
displayed in transaction SM13. At present, there is no possible
solution.
3. Incorrect userexit, eg.in Program RV60AFZZ, USEREXIT_NUMBER_RANGE.
Please check the following notes in order to solve this incidence:
175047 Causes for FI document number gaps (RF_BELEG)
19050 Gaps in document number sequence for billing docmt
23835 Buffering RV_BELEG / Number assignment in SD
As you might need to answer to the auditor on the gap of the invoices,
report RFBNUM00 from note 175047 will help you to display
document number gaps to the auditor if in your country the FI document
numbers must be assigned continuously. You use this report to document
the number gaps and the auditor will accept it.
We know that in different countries you have to explain document gaps
to Legal Authorities. For this reason there is report RFVBER00 to
document gaps occured due to an update termination.
As I already stated above report RFVBER00 does only list update
terminations that are not older than 50 days (or according to what time
is maintained in your system). So it could be that this log has already
been cleaned up. It is necessary that these update terminations are
documented before the 50 days expire.
Or a second possibility is that the gaps occured NOT due to an update
termination. Gaps without update terminations be (easily) explained.
They can be (only) detected via report RFBNUM00. Report RFBNUM00 display
these document number gaps for the number range object RF_BELEG.
Thanks,
Alex -
Hi
I have following requirment in customer number range,
While doing conversion from legacy to SAP, Sold to number is 1234 and bill to number is B1234, how can we do this, are there any user exit for this. let me know the solution please
regards
SatishHi,
suggestion -1
I guess in standard SAP its not Possible,
Actually the internal number are assigned through Number Range Objects defined through tcodes SNRO and SNUM.
You have to change the number range assignments SNUM, but remember these number ranges defined are not transportable. They have to manually defined in each client/system.
Check transaction VN01
suggestion -2
Even if I would not recommend that you implement such process, you can still have a look to BAdI CUSTOMER_ADD_DATA.
There is a method to implement your own numbering.
Regards,
Raj -
Custom number range to sales orders
HI Gurus
I have a requirement to keep a custom number range to sales orders. The number range should start with X.The next two characters should be based on the user name. The remaning part is the sequence number. Please advice the best way to do it.HI Seshu
If we need to use that user exit we should assign the number range as internal. From here you can select a number range but not the number. If we assign any number in the user exit then the vbeln is refreshed. I am thinking of creating externel number range and write some code in the field exit of vbak-vbelen. Will it have any side effects. And is there any number range object in SAP. I know in oracle we can create a number (counter). Please advice -
Customer number range enhancement
hi all,
i have a problem on customer no. range.
in sap we have int or ext no. range of 10 digits only.
if we want a 11 digit no. range EXT and i.e DEFH0000034 THEN HOW TO DO THIS ENHANCEMENT.
PL SUGGEST.
BADLY NEED A SOLUTION FOR IT
REGARDS2.1.1 Account Group
2.1.1.1 Maintain Number Range for Account Group
Use
The purpose of this activity is to control number range of Account Group.
Procedure
Access the activity using one of the following navigation options:
IMG --> Financial Accounting (New) --> Accounts Receivable and Accounts Payable --> Customer Accounts --> Master Data --> Preparations for Creating Customer Master Data --> Create Number Ranges for Customer Accounts --> Select the Icon to maintain Number Range
Transaction Code: SPRO
Data to be maintained:
No | From | To | Current No | Ext (Tick in Check Box)
01 | 0000000001 | 0000099999 | 0 | No
02 | 0000100000 | 0000299999 | 0 | No
XX | A | ZZZZZZZZZZ | Yes
2.1.1.2 Assign Number Range to Account Group
Use
The purpose of this activity is to maintain number range of Account Group.
Procedure
Access the activity using one of the following navigation options:
IMG > Financial Accounting (New) > Accounts Receivable and Accounts Payable > Customer Accounts > Master Data > Preparations for Creating Customer Master Data > Assign Number Ranges to Customer Account Groups
Transaction Code : SPRO
Data to be maintained:
Group | Name | Number Range
0001 | Sold-to party | XX
0002 | Goods recipient | XX
0003 | Payer | XX
0004 | Bill-to party | XX
2.1.1.3 Define Account Groups with Screen Layout (Customers)
Use
In this step, you determine the account group of the customer.
Procedure
Access the activity using one of the following navigation options:
IMG > Financial Accounting (New) > Accounts Receivable and Accounts Payable > Customer Accounts > Master Data > Preparations for Creating Customer Master Data > Define Account Groups with Screen Layout (Customers)
Transaction Code : SPRO
The groups indicated below are a few examples. There are many groups in Standard SAP & if we require additional Group, it can be copied from appropriate group & maintained.
Group | Name
0001 | Sold-to party
0002 | Goods recipient
0003 | Payer
0004 | Bill-to party
0005 | Prospective customer
0006 | Competitor
Select Sold-to-party > go to Details > Double Click on General data / Company code data / Sales data. It will take to next screen which details Tab Pages of General data / Company code data / Sales data. Double Click on Tab Page for example: Address, Control, Marketing & so on. Here you can maintain whether the field is to be Suppress, Req. Entry, Opt. entry or Display
Regards,
Rajesh Banka -
Transporting Custom Number range Objects
Dear SRMers
System Information: ECC 6.0,
We created Z Number range objects for Eforms in ECC system A , created a Transport Request with the tasks containing the individual Number range objects and, released the transports in SE10 and transported them to ECC System B (with Basis Admin help).
After the moving the transports, we see the individual custom objects in System B, but the number ranges defined are missing for each object. The Basis admin tried couple of approaches but was not successful.
If any one has come across, this problem, please advice.
Points will be rewarded for answers.
Thanks in advance,
Best Regards,
BobHi,
In transaction SNRO enter the Z number range.
Press the "Number Range" button (F7)
Press Interval-->Transport.
That should create a transport for you.
Cheers
Rob -
/RPM/ITEM_MODIFY is not taking custom number range for external ID during creation
Hi Experts,
I face an issue in trying to create projects through file using /RPM/ITEM_MODIFY.
I have been successfully able to create both item and project but it somehow is not taking the external number range for project ID that we had defined for the item type. It takes the SAP standard number for Project ID (external ID). I want the FM to create using the external number range that we use.
Can someone help me with this?
Regards,
AmitIt is not through PS project. No linkage as we have not integrated this with PS. It is through item.. check the code. This is just to check how to create from backend. This is where we don't get our custom project id. it takes sap project id.
DATA : ls_item_context type /RPM/TS_ITEM_CONTEXT.
DATA : ls_attributes type /rpm/ts_item_d_api.
data : ls_GUID Type /RPM/TT_GUID .
data : ls_detail_guid type /RPM/TT_GUID.
data : l_rc type i.
data : lT_ATTRIBUTES TYPE /RPM/TT_ITEM_D_API.
data : LV_NRLEVEL type NRLEVEL.
data : Lv_NRLEV type char20.
ls_item_context-CREATE_CPROJECT = 'X'.
ls_item_context-CPRO_TEMPLATE = '45A24B95FB43010200000000837FF54C'.
ls_attributes-portfolio_GUID = '456C418E3AED018800000000837FF54C'.
*ls_attributes-EXTERNAL_ID = '102680'.
*ls_attributes-parent_GUID = '4576F8DCF90B01F800000000837FF54C'.
ls_attributes-parent_GUID = '4717C6437A8D010A00000000837FF54C'.
ls_attributes-Proj_description = 'NEW TEST'.
ls_attributes-item_type = 'ZPEP_PT_31'.
*Select single NRLEVEL into lv_nrlevel from NRIV where OBJECT = 'ZPEP_NPO'.
*lv_NRLEVEL = Lv_NRLEVEL + 1.
*lv_NRLEV = lv_NRLEVEL.
*ls_attributes-EXTERNAL_ID = lv_NRLEV.
APPEND ls_attributes to lt_attributes.
CALL FUNCTION '/RPM/ITEM_MODIFY'
EXPORTING
IV_LANGUAGE = 'EN'
IV_CHANGE_MODE = 'C'
* IV_COMMENTS =
* IV_SHORT_TEXTS =
IS_MODIFY_CONTEXT = ls_item_context
IMPORTING
EV_RC = l_rc
TABLES
IT_ATTRIBUTES = lt_attributes
* IT_ACLS =
* ET_MSG =
ET_GUID = ls_GUID
ET_DETAIL_GUID = ls_detail_guid
If sy-subrc = 0.
CALL FUNCTION '/RPM/SAVE_CHANGES'
* EXPORTING
* IV_CHECK_ONLY = /RPM/CL_CO=>SC_FALSE
* IV_REMOVE_OBJECTS =
* IMPORTING
* EV_RC =
* ET_MSG =
if sy-subrc = 0.
endif.
endif. -
Hi All,
When ever i create a service order,i want the system to give the number with the year and serial number.
i.e lets say i am creating a service order in the year 2009 or 2010,then the number of the order should be
92009001 , 92010001.
9 should be unique to all service orders.
Please let me know how do i achive this requirement.
thanks
SamHi Sam
Try this:
Tcode: SNRO
Object: CRM_SERVIC
There is a checkbox for "To-year flag" which has the following help text:
Flag, whether number range object is to-year relevant
ID determining whether the number range intervals are distinguished according to To-fiscals.
Hopefully this flag might give you an option to select the validity of your number range. Also you'll need a 10 digit number range since your format 92009001 will only allow you 999 service orders in one year.
Hope this helps
Rupesh -
Sequential numbers in non-buffered number range object
I need some help pointing in the right direction to analyze and prevent a problem with a NON-BUFFERED custom number range object.
This process works well. Once or twice however, sequences have been created with an apparent delay and are out of order. I don't know why, or where to look to diagnose the timing, etc. It's very difficult to recreate.
We have a custom number range object; ZFSEQ in SNRO that is responsible for assigning a sequential number to a series of flat files produced by number of different interfaces. Those interfaces all use the FM 'NUMBER_GET_NEXT' and then they build a file name with that sequence number. That object is not buffered.
During heavy volume of updates (where lots of these sequences are being called and created by different interfaces, the table NRIV is locked and released by each interface. During this time of heavy updates, we have an infrequent problem that has occurred where a standard sales order create created a sequence number that is greater than the sequence number generated by the delivery create. (The delivery was created a couple of minutes later than the order, yet the order created a flat file sequence number greater than that of the delivery.
I hypothesize that the flat file call for the order (using the FM 'NUMBER_GET_NEXT') was somehow delayed(because of heavy lock/usage of NRIV). The actual order document and delivery document were created normally. I also am thinking that buffering on the object would prevent this. I cannot at this time implement buffering on the object, but we are working towards that.
The order create originates from our e-commerce system through a webserive, and in SAP, flows like this:
Main webservice RFC: Z_ORDER_CREATE
Call Z_create_order_bgd IN BACKGROUND TASK
Call BAPI_SALESORDER_CREATEFROMDAT2 )
MV45AFZZ--> userexit_save_document.
call Z_FUNCTION_TO_GET_SEQUENCE
CALL FM 'NUMBER_GET_NEXT' <---- order create sequential file created
commit work.
The delivery sequential file is created in
MV50AFZ1 (the Delivery User Exit)
Where can I look to conclusively see what happened to delay our sales order sequence? What could be done to prevent it?
Thanks
Jeremy H.Just want to post the answer that we found to this issue and close it, though more comments are always welcome!
We are going to move forward with buffering the Z object for the range as studies have shown and all other consulting input seems to be that buffering will solve this problem. -
Number Range for Contact persons in SAP CRM
Hi Experts,
Can anyone brief me about the contact persons concept in CRM and ERP?
How and where the the no. ranges are maintained , config settings, link between ERP and CRM?
Standard Account group for contact persons in ERP and CRM?
I would appreciate and points would be awarded .
Best Regards
SuchhiContact persons can be maintained on both sides. In our case, we mantain contact persons mainly for needs of sales department, so we set master on CRM.
How and where the the no. ranges are maintained , config settings, link between ERP and CRM?
To define number ranges on crm side go to IMG>Cross-Application Components>SAP Business Partner>Business Partner> Basic Settings>Number Ranges and Groupings>Define Number Ranges
For number range created you have to create grouping. This grouping has to be assigned manually or automatically when creating a business partner. The business partner gets a number from the number range that is assigned to the grouping.
This can be defined under IMG>Cross-Application Components>SAP Business Partner >Business Partner>Basic Settings> Number Ranges and Groupings>Define Grouping and Assign Number Ranges
For number range created inCRM system you have to define a corresponding number range in the ERP. This is necessary to ensure that business partners created in CRM system get the same ID when they are replicated to ERP.
Go to IMG>Logistics>General >Business Partner>Customers>Control>Define and Assign Customer Number Ranges
Next define account groups under IMG>Logistics>General>Business Partner>Customers>Control>Define Account Groups and Field Selection for Customer
For each of CRM business partner classifications you have to define a mapping to an ERP account group. Run transaction code PIDE and do the mapping.
And of course your middleware settings must also be in order.
Standard Account group for contact persons in ERP and CRM?
There are no predelivered account groups for contact persons.
Regards. -
Number Range Object maintained programatically
Hi,
I have custom number range object. I need to maintain this by programatically and NOT using transaction code SNRO. (ie create new instance, maintain Maximum number , delete instance etc)
Anybody having a piece of code or info on this ?
Your help will be appreciated.
Thanks
Sa_Rhi Sa_R,
u can try using the "ABAP Debugger",
this transaction use the program "SAPMSNUM", go to SE80 and Display the Program, it's using the Function to show / edit the range's.
CALL FUNCTION 'NUMBER_RANGE_UPDATE_INIT'
EXPORTING
OBJECT = OBJECT
EXCEPTIONS
OBJECT_NOT_FOUND = 1.
IF SY-SUBRC NE 0.
MESSAGE A010 WITH OBJECT.
maybe it can help u.
Regards
Allan Cristian -
Transport Number range intervals
Hi,
I have created a custom number range with intervals (from & to number range values) i need to transport this to production and unit testing boxes. how to create a transport for this.
and also it is advisable to transport number ranges?
Thanks
Sa_RHi,
Thanks for your reply.
But my doubt is , the number range is newly created. have 250 subjects inside , User already maintained the intervals in the config box. So i need to transport this higher box. If i am transport this , whether all other number ranges get deleted? including SAP standard also?
Thanks
Sa_R -
Dear Experts,
Am having a problem in generation of are1 number range.
Am having 3 series groups for exports, for a one plant. Where as we will maintain number range for are1 wrt Series group.
but here the client requirement is they want only one continuation number range for a plant. they dont want wrt series group.
For creation of excise invoice they want 3 series group but for creation of ARE1 they want only one series group. Pls let me know how to habdle this or is there any user exit is there for are1 number range generation.
And one more problem am facing is i have to attach 2 excise invoice to one are1 form in that system is not allowing me to attach because two excise invoice are belongs to different series group. Pls let me know how to handle this series group issue in ARE1 Generation.
Regards
NageshHi,
You can make use of the user exit J_1I7_USEREXIT_EXCISE_BEF_SAVE..
You need to maintain a custom number range with single series group through SNRO T.code .
Call function Number_get_next Fm to get the new number from the defined number range object.
overwrite the excise invoice number with new excise number in the above mentioned user exit.
Regards,
Sai -
Number range object reset daily
We would like to generate a unique numeric value to represent an external invoice number. This number begins with the current date e.g. 20110905 followed by the next number in the sequence 0-9999. The sequence needs to also be reset to one at the start of each day.
We currently use a program to select and update a database table which stores the date and next number in the sequence and reset and finally reset the number at the start of each day. Unfortunately we sometime experience duplications of the invoice numbers.
I've tried using a SAP number range object (transaction SNRO) but I can't find a function to reset the number.
Is there a function to reset a SAP number range object or an alternate method to obtain the required results?Dear Nicholas,
Have you use locking mechanism on your custom number range table ? (using enqueue/dequeue or else)
or you may want to check this function : NUMBER_RANGE_INTERVAL_UPDATE.
Regards,
Oki
Maybe you are looking for
-
USER (ospid: 2268): terminating the instance due to error 12853
Good morning all. I have a tricky situation going on around here.... My Oracle DB was working fine till 5 minutes ago. Once we bounced the server, It stopped working. Here are some details: ORACLE RDBMS Version: 11.1.0.6.0 C:\Documents and Settings\A
-
New HD, can't install OS x
Installed a new 640 GB hard drive in my mid 2010 core 2 duo, 2.4ghz , macbook pro 13", Macbook Pro 7,1 Boots fine with install disk, 10.6.7 (not original that came with computer) After selecting the language to install, it says "can't install Mac OS
-
File to IDOC: mesage mapping
Hi! I am implementing File to Idoc scenario. I use in file a element "createdate". The same one does exist on Idoc side and hase type "xsd:string". Which type should have the element in data type? a) xsd:string b) xsd: date c) it does no matter Thank
-
hi all, i'm trying to configure a few 3650s for PVLAN but it seems it doesn't support it. it's already configured for VTP transparent mode. i thought 'newer' switches should already have this feature. anyone can advise if i need to upgrade IOS or is
-
Webdynpro J2ee engine ping failed
i am not able to ping the J2EE engine from Netweaver. the server responds if i ping from the windows command prompt