How To create number range for custom BO
Dear All,
I have created a Custom Business Object and i have created its alternative key.. I want an Internal number range to be used against that alternative key.
How do i achieve this functionality?
Regards,
Dhruvin
Hi Dhruvin,
Find the below discussion where I answered to generate number.
Does anyone have sample code to auto generate Alternate key/ID field data
in this example number will start from 1, you can enter your own starting number.
If it help you or have any doubt, let me know.
regard
Sunil
Similar Messages
-
How to create number range for custom object
Hi all,
I want to create number range for custom object or custom tables
Thanks
HemalathaHi,
Thanks, I am able to create a number range for custom object through SNRO tcode.
Thanks
Hemalatha -
Hi All Sap Experts
Please tell me How to create Number Range
I tried with the Transaction Code " SNRO "
But Im getting The following error
Dialog box title : " Buffering Methods ".
Message in the Dialog box is :
-Numbers may be lost!
-Do not use for Financial accounting Documents!!
?. Do you want set this Buffering method?
And another error is :
Dialog box title : " Transport number range intervals "
Message in the Dialog box is :
The number range intervals are not included in automatic customizing changes.
Transport all changes made within range interval maintenance must be
triggered manually.
In the initial screen for range interval maintenance function
<b> Interval</b> --> <b>Transport</b>
Please note the information that you get when transporting intervals.
So please tell me the solution for this error.
Thank you
Basu
Another ishi,
Create number range object using OYSN.
Then call the following function modules.
FORM get_next_id CHANGING p_discrep.
DATA: last_id LIKE zrecaudit-discrep,
quant LIKE inri-quantity, "dummy
code LIKE inri-returncode. "returncode
CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'
EXPORTING
object = 'ZRECAUDIT'
EXCEPTIONS
foreign_lock = 1
object_not_found = 2
system_failure = 3
OTHERS = 4.
IF sy-subrc = 0.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'ZRECAUDIT'
IMPORTING
number = last_id
quantity = quant
returncode = code
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.
CALL FUNCTION 'NUMBER_RANGE_DEQUEUE'
EXPORTING
object = 'ZRECAUDIT'
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
ENDIF.
ENDFORM. " get_next_id
<u><i><b>refer the links</b></i></u>
http://www.sap-img.com/ge003.htm
http://www.sap-basis-abap.com/sapmm009.htm
http://www.erpgenie.com/abap/code/abap33.htm
http://www.kabai.com/abaps/z26.htm
Rgds
Anversha -
How to determine number range for billing document based on company code ..
Hi Friends!!
can anybody tell me how to determine number range for billing document based on company code & tax departure country if required??
Amit...plz help me!!Hi Amit,
1. Define different Billing Document number ranges in SPRO -> Sales & Dist -> Billing -> Define number ranges for billing docs. (VN01). Make sure that all are internal number ranges.
e.g.
NO. From number To Number Current number Ext
A1 0930000000 0930999999
A2 0940000000 0940999999
A3 0950000000 0950999999
2. Define a Ztable ZNUMB_RANGE as follows
Comp. Code | Tax departure country | Billing Doc Type | Number Range
100 IN F2 A1
200 IN F2 A2
200 US F2 A3
3. In user exit RV60AFZZ (USEREXIT_NUMBER_RANGE)
Read table ZNUMB_RANGE for Number Range with Comp. Code, Tax country and Billing Doc.
If found pass this number range value to us_range_intern.
us_range_intern is a standard SAP variable which tells program which number range use to create the current document which is under process.
Let me know if you are clear.
Thanks,
Mandar -
Create Number Ranges for Budgeting
Hello Experts,
Can you please tell me what is the significance of "Create Number Ranges for Budgeting" in Customizing view of PS->Costs->Budget. ? Also, where does it impact ?
Please help.
Regards ,
Ankur
Edited by: ankur_sau on Feb 17, 2012 7:11 AMHi,
It refers that you can define your own number for budget documents which will be created on aloocation, supplement, transfer, release etc.. for the project.
Plus for all types of budget transactions like allocation, supplement, transfer, release etc. range defined in 01 will be used.
External number is not possible in this case.
Impact is budget documents will be created with the defined number range in this step.
Regards,
Harsh. -
Not able to created Number Ranges for Asset Classes in AS08
Dear Friends,
I am not able create Number Ranges for Asset Classes in AS08.
It is giving me an error message as company code does not exist.
When I Check Consistency under path SPRO -> Financial Accounting -> Asset Accounting -> Preparing for Production Startup -> Check Consistency -> Overview Report: Company Codes. I am getting the following
RSOL Reliance Sealink One PLtd
CoCode no. alloc. NKTR
Fiscal Year Variant V3 Apr.- March, 4 special periods
Start 2nd half month 00
Transfer date 31.03.2006
Chart of dep. TOLL Chart of Depreciation - For Highway Projects
Net worth tax 01 Book depreciation as per Compinies Act 1956
Enter net book value
Status company code 2
Current fiscal year 2007
Doc. type dep. pstng AF Dep. postings
> Number range &1 in co.code &2 for doc.type &3 must be defined as internal
Calc.insur.value
Input tax exempt
If you see the above first two line you will find the difference is that Company code RSOL in the first line and NKTR company code in the second line.
Actually CoCode no. alloc. has been wrongly copied as NKTR while copying CoCode it should be RSOL and not NKTR.
I think because of this wrong allocation it is giving me an error in AS08. Also it is not showing me CoCode in drop down list in AS08.
Please help me to resolve the problem.
Thanks
Rahul JainLook in TC OAOB if the company code is assigned to a chart of depreciation
-
How to create number ranges with "OK60" transaction or any other.
Hello,
I need to create a new number range to asigne to a document type , using transaction OK60 ( the error says this transaction).
but I only can display with this transaction, and I would like to update.
Is there any other transaction to do this , or is there any way to do this with this transaction OK60?
Thank you very much.
Kind regards
OlgaHi,
OK60 indeed is used for creating number ranges for FI/CO earmarked funds transactions. You should press on 'Pencil' button and create an interval. If for some reasons, you cannot do this via this transaction, try using SNRO transaction, with IRW_BELEG parameter. If this also fails, then apply to BASIS team to check your authorizations.
Regards,
Eli -
How to setup number range for Material Documents created by goods movement
Hi Experts,
Good day!
Would you know what table or transaction code we could setup or configure the number range for Material Documents number created by goods movement?
Thanks. Have a wonderful day!
RockzHi,
Tcode - OMBT
Regards,
Vivek -
Dear Friends,
How sud I maintain number range for the customer?....Hi
No ranges are defined customers account groups in t code XN01 and
assigned to the respective account group in t code OBAR
Img-financial accounting (old/new both you can use)-accounts receivable and accounts payable--customer accounts-master data----preparations for creating customer master data
(The whole controls you can see here under this)
Here first you will define your account group (for field selection)
1. T code OBD2 define account groups with screen layout (customer accounts) activity
then you will define no ranges for your account group
2. T code XN01 define no ranges for customer account groups
then you will assign no ranges for your respective account group
3. T code OBAR assign no ranges for account group
You have to go to change intervals and define your pwn available intervals and then assign them to the respective account group
So while you create a customer in XD01 in the respective account group that no range will be automatically assigned if it is internal or we can give our no if it is external
Note if you define a new account group then you have to define partner functions also in img-sd-basic functions-setup partner determination---setup partner determination for CMR apart from the three major activities listed above
Regards
Raja -
How to change number range for document type ?
Dear All
Experts
How to change the number range for document types for entry view? I am trying to change the number range for all document type as per defined ranges in FBN1, but at the time of saving document type and number range the system is throwing error message as
Doc. type C1: Number range 07 is used for ledger L6 with doc. type AE
Message no. FAGL_LEDGER_CUST093
I have defined a leading ledger in system too with these settings
1) Define ledger for accounting.
2) Defining currencies for it.
3) Defining ledger group for the same.
4) Defining accounting principles
5) Assignment of principles to leading ledger.
Are there any extra settings required for leading ledger settings?
I have some doubts those are :-
How document types defined at ledger level?
How to define them at leading ledger level? (Like my case)
Focus on this will be appreciable.
Regards,
Sharvari Joshi.hi ,
The document numbers in the leading ledger and the non leading ledgers should be in sync, they should not have any differences, so incase you are trying to change the number range for C1, the number range 07 is already been assigned to doc type AE. i guess you have cant use 07 for C1. may be you can try out with an other number range. check this and let me know if you are able to do this.
coming to
1.How document types defined at ledger level?
2.How to define them at leading ledger level? (Like my case)
Ans 1. please try defining document types for entry view in a ledger.
path : SPRO- financial accounting new -financial accounting global settings new - document -document types -define document types for entry view in ledger.
upon prompt enter the ledger and go ahead creating the number ranges for the document types.
Hope this helps.
Regards
amrutha -
External Number Range for Customer Master
Hi,
If we give External Number Range for a Customer Account Group in SPRO, Can we let the System to generate the Customer Number(Internal)? Or always we should provide a Number for the customer?
Thanks,
Sekhar.JHi,
System will not consider two Number Range Assignment, simultaneously.
Here are few links:
http://help.sap.com/erp2005_ehp_03/helpdata/EN/01/a9b191455711d182b40000e829fbfe/frameset.htm
http://help.sap.com/erp2005_ehp_03/helpdata/EN/53/c9864aca3711d2b494006094b9114a/frameset.htm
http://help.sap.com/erp2005_ehp_03/helpdata/EN/ea/cffb3aebc63b61e10000000a11402f/frameset.htm
Best Regards,
Amit -
Create number range for Service Entry Sheet (SES)
I would like it is possible to configure the number range for Service Entry Sheet (SES) or it is fixed in the system? Besides, for my current configuration, the number only appear when SES is done but no reversal number if I reversed the SES, is this a correct setting? Or is there any way I can set the number for reversal document?
Hello,
Check below SAP link.
http://help.sap.com/saphelp_40b/helpdata/fr/77/e12c7dd435d1118b3f0060b03ca329/content.htm
Hope it will help. Revert back if anyfurther question/s.
Regards,
Anup -
Change from Internal to External Number range for customer account group
Hi,
We would like to change the number range assignment for a customer account group from internal to external. The external number range assignment check box is greyed out as a few numbers in the range have already been used up. We want to do the internal to external assignemnt change, create a customer of a specific number, and revert the range back to internal assignment. Is this possible?
Appreciate your help.
RamHi,
Please do the below steps:-
(1) Go to XDN1 and click on "Maintain status" button. Note down the current status and change the status to zero. Save.
(2) Again go to SDN1 and click on "Maintain No. Range" button, and change the no. range to external. Save. (if that number range is maintained for multiple years, then make it external for the first yer and for the subsequent years, it will become automatically.)
(3) Then create your customer with specific number.
(4) Then go to XDN1 and click on "Maintain No. Range" button, and change the no. range to internal. Save. (if that number range is maintained for multiple years, then make it internal for the first yer and for the subsequent years, it will become automatically.)
(5) Again go to XDN1 and click on "Maintain status" button. Maintain the current status as the number noted down in step (1) above. Save. (In case number created in step (4) is greater than the number notes in step (1), maintain the number of step (4) in current status.)
Regards,
Gaurav -
ALE/IDOC-How to create Change Pointers for Custom Infotype
Hi,
My requirement is to transfer custom OM infotype changes using IDOCs.
But its not creating any change pointers for that infotype.
The message used is a copy of standard message OM_HRMD_A.
Can any one please help me out in this issue.
Thanks,
SarikaHi Sarika,
How did you solve this issue? We are also facing a similar problem, it will be helpful if you could explain how you found out the solution.
Thanks
Anu. -
How to Create Transport Request For custom table
Hello All,
I have and requirement to create transport request automatically when and record inserted in to the custom table.
Actually FI whe people create or delete some bank account from DEV client the transport request creates automatically and they transport that request to Quality and Production system to delete or create that account from all the systems. but when they delete the account all the informations related to that bank accounts get deleted from all the standered customize tables . to keep the track of that deleted account I have created one z table which is of type customize table. this table is filled automatically when any account get deleted from DEV system. now I want to pass that record to Quality and Production systems using transport request.
how can i create transport request when record get inserted into my ztable automatically.
Thanks in advance.
VinodHello All,
This is a FAQ and has been answered many times before in the forum.
1. Maintain delivery class 'C' it will start asking for a TR: False. Delivery class has got nothing to do with the TR prompt. It determines how the data is to be transported. A delivery class 'C' will prompt for a customizing request, whereas a delivery 'A' will prompt for a workbench request.
2. For the system to automatically prompt for a TR you have to select the "Standard Recording Routine" in the table maintenance generator. This will prompt you for a TR every time you try to create / modify a record & save it to the DB.
Hope i am clear in my explanation.
If your table is filled automatically through some coding you have to add the entry to the TR programmatically. Check this link for details: [http://wiki.sdn.sap.com/wiki/display/ABAP/TransportingTableEntriesinABAPprogrammatically|http://wiki.sdn.sap.com/wiki/display/ABAP/TransportingTableEntriesinABAPprogrammatically]
BR,
Suhas
Edited by: Suhas Saha on Mar 31, 2010 11:22 AM
Maybe you are looking for
-
I am using Adobe 8 Professional and working on Windows XP. I have been facing an issue lately with opening files in a dual-monitor environment. All my Adobe Reader (PDF) files are opening only in the secondary monitor by default. There are times when
-
Applying adjustments to multiple photos
I have about 50 photos that need the same edit adjustments (temperature, contrast, etc.) The copy and paste function is great, but as far as I can tell, it can only be applied to one photos at a time. Is there a way to chose all 50 photos and paste t
-
IDoc - Get Segment Definition or Version in Code
I'm working on the ABAP-PI Port, created a FM based on FM OWN_FUNCTION now. In my FM, there is a call to a function CALL FUNCTION 'EDI_SEGMENTS_GET_ALL' that retrieves all the segment data for a particular IDoc number. However, it returns only the se
-
How to use NWDir.ocx in access2007 and win7
My application in Access2003/Winxp(using NWDir.ocx) works fine. In Access 2007/Win7 is stops working with a error Run time error 438 object doesn't support this property or method
-
N97 Problem - browser won't stay open
Another problem with my N97: Now when I try to open a page in the standard web browser it just closes down the application. Icheck in the running programs list and it's not there - it has completely closed the app. Is this a known bug?