Auto number generation
hi experts,
I am working with smartforms .I want to generate numbers automatically for each form when it is executed.what shall i do .that number must be unique .
thanks
mani
Hi,
You need to pass the number range object name in "OBJECT" and also the interval in "NR_RANGE_NR" that you create using transaction SNRO.
Also Check this documentation for the FM.
The function module assigns the next free numbers of a number range. A number is assigned as a default if no larger number is demanded in the parameter QUANTITY. If more than one number is demanded and not enough numbers are available up to the interval limit, the numbers are only assigned up to the interval limit. If the last number was assigned, the first interval number is provided again during the next call.
The length of the number depends on the definition of the number range object. However, the length is not determined from the definition when allocating, but is calculated from the length of th from-number of the number range.
All exceptions are created with MESSAGE ... RAISING ... .
Example:
1. Object HUGO, not year-dependent, next free number searched for
DATA: RC LIKE INRI-RETURNCODE,
NUMBER(10) TYPE C.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING OBJECT = 'HUGO'
NR_RANGE_NR = '01'
IMPORTING RETURNCODE = RC
NUMBER = NUMBER.
CASE RC.
WHEN ' '.
everything o.k.
WHEN '1'.
the assigned number lies in the critical area.
WHEN '2'.
this was the last number, next time the first number
will be assigned
ENDCASE.
2. Object EGON, year-dependent, next 5 free numbers for 1992 in company code 0001 searched for.
DATA: RC LIKE INRI-RETURNCODE,
NUMBER(10) TYPE C,
YEAR LIKE INRI-TOYEAR,
QUAN LIKE INRI-QUANTITY.
YEAR = '1992'.
QUAN = 5.
T001-BUKRS = '0001'.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING OBJECT = 'EGON'
NR_RANGE_NR = '01'
SUBOBJECT = T001-BUKRS
TOYEAR = YEAR
IMPORTING RETURNCODE = RC
QUANTITY = QUAN
NUMBER = NUMBER.
the last assigned number is in NUMBER
the number of the assigned numbers is in QUANTITY
the first free number is calculated from:
NUMBER - QUANTITY + 1.
CASE RC.
WHEN ' '.
everything o.k.
WHEN '1'.
the assigned number lies in the critical area.
WHEN '2'.
this was the last number, next time the first number will be assigned
WHEN '3'.
more numbers are demanded than are available,
the number of the assigned numbers is in QUAN.
ENDCASE.
Message was edited by:
Seshatalpasai Madala
Similar Messages
-
Auto number generation in custom table
Hi,
Is it possible to auto generate number in custom table. My requirement is to generate the number once anyone makes entry in the table. I guess there is a way to put code in tables but I have no clue how that can be acheived. If anyone has such kind of experince please share with me.
Regards
RiaHi Ria Sen,
Please follow the steps as below,
1. Use Select single Max Query to select the latest maximum number
2. Check <variable> is initial or not.
3.if variable is initial assign the number which will start from your number range.
4.else increment the variable values by 1 and update the new range values.
Ex: Select Single Max ( Field for Number) from <table>
into <variable>.
if <variable> is initial .
<variable> = 'Starting number from your range'.
else.
<variable> = <variable> + 1.
Please let me know if you have any issues.
Regards,
Gurunath Kumar D -
Hi friends,
I have a question regarding the serial number generation.
1. In serial number generation do we have option of generating either when creating and releasing the production order or when doing the GR for the production order.
If yes, please let me know how we can do that.
2. If we have the serial number activiated for the material can we use auto goods receipt for the material?
Thanks and regards,
SatishDear Satish,
Go to OIS2 and create the serial number profile which will be later assigned to the material master.
Select the serial number profile and select serializing procedure
Here,select "PPAU Serial numbers in PP order" and enter the value as desired in serial number usage column.
Similarly you can try for order release.
We cannot activate auto GR for the items with serial numbers.
regards,
Joseph Charles Vaikathussery -
Custom Employee Number Generation Using Fast Formulas
Hi,
I have a requirement to generate custom employee numbers like "EMP100001". we have already created a business group with the setting of Employee number generation as Automatic. but we need to generate custom employee number as Format given above instead of automatic number generation.
I have created my own PL/SQL Package to generate custom employee number as per Person Type. Also created a Fast Formula Function with the following parameters -
Name = Get_Custom_Number
Data Type = Text
Class = External Funtion
Alias Name = NULL or what you want the alias to be
Description = Returns the next custom number value
Definition = CUSTOM_EMP_NUMBER_GENERATION.Get_Custom_Number (PL/SQL Function)
Proving the following Context usages and Parameters details to the Fast Formula Function -
Context usages:-
Number = 1
Context Name = BUSINESS_GROUP_ID
Data Type = Number
Parameters as defined in PL/SQL function
1 p_legislation_code Text Input Only
2 p_person_type Text Input Only
3 p_person_number Text Input Only
4 p_party_id Number Input Only
5 p_person_id Number Input Only
6 p_national_id Text Input Only
7 p_date_of_birth Date Input Only
Than i created a Fast Formula using the following navigation
Total Compensation > Basic > Write Formula
with following details -
Name = EMP_NUMBER_GENERATION
Type = Person Number Generation
Description = Returns next Employee number
and wrote my formula code.
When i created a Employee from Enter and Maintain People screen it is showing automatic number instead of my custom employee number.
I m not able to find where i m missing the logic or some parameters?
If anyone has come across such situation, please provide some pointers here.
Thanks
RenuWhat is the application release?
Please review these docs and see if it helps.
Is it Possible to Update Generate Employee Number Method From Automatic to Manual? [ID 393827.1]
Need To Change The Employee Numbering From Automatic To Manual [ID 291634.1]
Unable to Switch From Auto to Manual for Employee Number Generation in Shared Hr [ID 452044.1]
How to Prefix a Zero on Custom Employee Numbers [ID 822425.1]
How To Implement Custom Person Numbering Using FastFormula Based on User Person Type Instead of System Person Type [ID 372696.1]
Thanks,
Hussein -
Insert into table returning primary key (auto number) in resultset
Hi,
I'm connecting to Oracle 10g via JDBC (ojdbc14.jar).
My SQL statement is as follows:
INSERT into Student (studentName, phone, email, address) values ('Jason', '12345678', 'test', 'test');
SELECT Student_studentId_SEQ.NEXTVAL FROM DUAL;
Fyi -The Student table has a trigger to support the generation of a primary key (integer) based on a sequence when a new record is inserted.
What the above will do (from the Java app point of view) is to create a Student record and automatically select the student ID so that the student ID can be accessed via the resultset in Java.
I'm getting error "ORA-00911: invalid character". Can you please help?
Regards,
Jason
Edited by: user10394130 on Oct 13, 2008 2:40 AMYes, I'm referring to the studentId, which is generated via the Student table trigger on insert of a new record.
I've now verified that the following SQL works and it is "printing" the correct studentId.
DECLARE seqNbr_studentId NUMBER(12) := 0;
BEGIN
INSERT into Student (studentName, phone, email, address) values ('Jason', '12345678', 'test', 'test')
RETURNING studentId INTO seqNbr_studentId;
dbms_output.put_line(seqNbr_studentId);
END;
--> This prints the correct value of seqNbr_studentId that has been generated by the trigger. This is good.
However, I would like the studentId to be in a resultset (so that I can access this via Java Resultset.getInt(1) ), for example:
DECLARE seqNbr_studentId NUMBER(12) := 0;
BEGIN
INSERT into Student (studentName, phone, email, address) values ('Jason', '12345678', 'test', 'test')
RETURNING studentId INTO seqNbr_studentId;
SELECT seqNbr_studentId FROM DUMMYTABLE;
END;
Is this possible?
What I'm trying to do is to achieve the effect in SQL Server where I can simply do an SQL command "SELECT @@IDENTITY" where it returns the auto number from the newly inserted record.
Regards,
Jason
Edited by: user10394130 on Oct 13, 2008 2:08 AM
Edited by: user10394130 on Oct 13, 2008 2:56 AM -
Automatic employee number generation
Hi,
When installing Oracle HR, we had choosed manual employee number generation and then we changed to the automatical mode. Now, we need to return back the the manual mode.
I ask if there tips to do that?
best regards,
Mourad.Pl see MOS Doc 452044.1 (Unable to Switch From Auto to Manual for Employee Number Generation in Shared Hr)
HTH
Srini -
Employee number generation process
Hi All
Please guide me how to change an employee number generation process which is already set as automatic to manual and vice-e-versa ?
Please help.Welcome to the forums !
Pl post details of OS, database and EBS versions. Pl see if these MOS Docs can help
How to Change Employee Numbering from Manual to Automatic? (Doc ID 292257.1)
Is it Possible to Update Generate Employee Number Method From Automatic to Manual? (Doc ID 393827.1)
Unable to Switch From Auto to Manual for Employee Number Generation in Shared Hr (Doc ID 452044.1)
How to control automatic employee numbering? (Doc ID 473065.1)
Need To Change The Employee Numbering From Automatic To Manual (Doc ID 291634.1)
More information will be available in the HR Implementation Guides for your EBS version at http://www.oracle.com/technetwork/documentation/applications-167706.html
HTH
Srini -
How to file auto number in save for web ?
Hi All,
how to file auto number in save for web ?
I have make an action script in Photoshop cs5 that
change the image resolution and SaveForWeb...
(but at this point user need to supply the file name)
so, How to write the code/action such that when the
action button is click the image will save into the file
file2eMail_001,file2eMail_002,file2eMail_003,file2eMail_004
or to any unused number ?
thank for any help!You could also ask over in the Photoshop Scripting Forum, I’m pretty certain stuff like progressively numbered copies has been addressed there previously.
-
I've just completed my school report however I seem to be having difficulty with creating a header. I've managed to create the header for all pages in my document by however I also need to use APA style and insert page number on the top right hand corner of each page. I've chosen to auto number them and clicked on INSERT --AuTO PAGE NUMBERS however if I need to make changes to the page numbers, each change i make repeats on every page. Please help.
I also can't seem to rearrange my document. It's 10 pages long and i want to make page 10 page 1. I thought I could click on that page and drag it into page 1 position like in Keynote however it's not offering me that option. when i click on page 10 in my page thumbnails, all of my pages are highlighted yellow instead of that 1 particular page. what am I doing wrong? someone please helpYou can chose to make left and right headers different in:
Inspector > Layout > Section
To move material the best solution is always to copy and paste the content where you want it. You can move sections however so:
click at end of page 9 > Menu > Insert > Section Break
You will then have a separate yellow border around the page 10 thumbnail and can drag it to the beginning.
Peter -
What algorithm does Excel 2010 use for Pseudo Random Number Generation (MT19937?)
Does Excel 2010+ use the Mersenne Twister (MT19937) algorithm for Pseudo Random Number Generation (PRNG), implemented by the RAND() function?
This has been a nagging question for some time now, with "hints" that it indeed does. However, a relatively thorough search turns up no definitive documentation. The most direct indication is perhaps given by Guy Melard [Ref 9] where
he tests Excel 2010's RAND() function using the Crush battery of tests in TestU01 by L'Ecuyer & Simard. Melard references a "semi-official" indication that Microsoft did indeed implement MT19937 for the RAND() function in
Excel 2010, but this reference no longer seems to be available. http://office.microsoft.com/enus/excel-help/about-solver-HP005198368.aspx?pid=CH010004571033.
The other references below [Ref 1-10] document the history of the statistical suitability of the PRNG and probability distributions in various versions of Excel. This includes the Wichmann-Hill PRNG implementations supposedly (arguably) used in
Excel 2003 & 2007 for random number generation. But still, we have no answer as to which PRNG algorithm is used in
Excel 2010 (and 2013 for that matter).
Microsoft indicates that RAND() has been improved in Excel 2010; Microsoft states, "...and the RAND function now uses a new random number algorithm." (see https://support.office.com/en-ca/article/Whats-New-Changes-made-to-Excel-functions-355d08c8-8358-4ecb-b6eb-e2e443e98aac).
But no details are given on the actual algorithm. This is critical for Monte Carlo methods and many other applications.
Any help would be much appreciated. Thanks.
[Ref 1] B. McCullough, B. Wilson. On the Accuracy of Statistical Procedures in Microsoft Excel 97.
Computational Statistics & Data Analysis. Vol. 31 No. 1, pp 27-37. July 1999.
http://users.df.uba.ar/cobelli/LaboratoriosBasicos/excel97.pdf
[Ref 2]L. Knüsel. On the accuracy of the statistical distributions in Microsoft Excel 97. Computational Statistics & Data Analysis. Vol. 26 No. 3, pp 375-377. January 1998.
http://www.sciencedirect.com/science/article/pii/S0167947397817562
[Ref 3]B. McCullough, B. Wilson. On the Accuracy of Statistical Procedures in Microsoft Excel 2000 and Excel XP.
Computational Statistics & Data Analysis. Vol.40 No. 4, pp 713-721. October 2002.
https://www.researchgate.net/publication/222672996_On_the_accuracy_of_statistical_procedures_in_Microsoft_Excel_2000_and_Excel_XP/links/00b4951c314aac4702000000.pdf
[Ref 4] B. McCullough, B. Wilson. On the Accuracy of Statistical Procedures in Microsoft Excel 2003.
Computational Statistics & Data Analysis. Vol.49. No. 4, pp 1244-1252. June 2005.
http://www.pucrs.br/famat/viali/tic_literatura/artigos/planilhas/msexcel.pdf
[Ref 5] L. Knüsel. On the accuracy of statistical distributions in Microsoft Excel 2003. Computational Statistics & Data Analysis, Vol. 48, No. 3, pp 445-449. March 2005.
http://www.sciencedirect.com/science/article/pii/S0167947304000337
[Ref 6]B. McCullough, D.Heiser. On the Accuracy of Statistical Procedures in Microsoft Excel 2007.
Computational Statistics & Data Analysis. Vol.52. No. 10, pp 4570-4578. June 2008.
http://users.df.uba.ar/mricci/F1ByG2013/excel2007.pdf
[Ref 7] A. Yalta. The Accuracy of Statistical Distributions in Microsoft<sup>®</sup> Excel 2007. Computational Statistics & Data Anlaysis. Vol. 52 No. 10, pp 4579 – 4586. June 2008.
http://www.sciencedirect.com/science/article/pii/S0167947308001618
[Ref 8] B. McCullough. Microsoft Excel’s ‘Not The Wichmann-Hill’ Random Number Generators. Computational Statistics and Data Analysis. Vol.52. No. 10, pp 4587-4593. June 2008.
http://www.sciencedirect.com/science/article/pii/S016794730800162X
[Ref 9] G. Melard. On the Accuracy of Statistical Procedures in Microsoft Excel 2010. Computational Statistics. Vol.29 No. 5, pp 1095-1128. October 2014.
http://homepages.ulb.ac.be/~gmelard/rech/gmelard_csda23.pdf
[Ref 10] L. Knüsel. On the Accuracy of Statistical Distributions in Microsoft Excel 2010. Department of Statistics - University of Munich, Germany.
http://www.csdassn.org/software_reports/excel2011.pdfI found the same KB article:
https://support.microsoft.com/en-us/kb/828795
This was introduced (according to the article) in Excel 2003. Perhaps the references in notes 2 and 3 might help.
The article describes combining the results of 3 generators, each similar to a Multiply With Carry (MWC) generator, but with zero carry. MWC generators do very well on the Diehard battery of randomness tests (mentioned in your references), and have
very long periods. But using zero carry makes no sense to me.
Combining the three generators only helps if the periods of the 3 are relatively prime (despite what the article implies). Then the period of the result will be the product of the 3 periods. But without knowing the theory behind these generators, I have
no idea what the periods would be. The formulas for MWC generators fail here.
Richard Mueller - MVP Directory Services -
Number Generation Failure While Reversing Sub. Challan
hi all,
While reversing the sub contracting Challan, I am getting this Error "Number Generation Failure". Kindly guide where to maintain the Number range & Object.
regards
DhinakarHi Jeyakanthan,
Thanks for your response
I maintaned number range for object : J_1i57c in T.cde j1i9....
still it is showing the same error.....
hope to hear back from you......
Thanks&Regards,
Chand -
Process Order Batch number generation at the time of order creation
Dear All,
I m facing some issue at the time process order creation:
Current Settings:
1. Batch Number Creation at the time of order create.
Reason for this setting: Release of order is done by releasing operations one by one, therfore batch number will be generated on the final operation release, thats why we set up batch creation at the time of order create.
2. For FG batch number generation there is a program that copy the SFG(in Order BOM) Batch number to FG. ITs a industry requirement.
Problem:
when we create FG order system generate the error message at the time of order creation tht No batch could be determine.
Please suggest the solution
Thanks,Hi
Hope you have cretaed Batch serch strategy in COB1
U need to maintain it as per your strategy type. -
Problem on forms for serial number generation with last record next_record.
Hi Experts,
currently i'm facing one problem like :
i'm populating one receipt detail in Multi block , like when user key in one receipt number that time record should go in first record ,and if they key in second receipt number then record should go in second record . mean to say every time record go in last record ..but the problem is i want to generate Serial no correspondence to every last record ..
here is my approch :
cursor c1 is
select * from table
where cname =:blk_name.clm_name.
Last record;
next_record;
for v1 in c1 loop
processed record;
next_record;
end loop;
last_record;
go_block(___);
first_record;
:sno := system.cursor_record ;
next_reocrd;
end loop;
first_record;
And in block level i'm writing code for Serial number generation when user key in manual entry for receipt detail:
:blk_name.coulumn_name := :system. cursor_record;
so in this approach their is no problem it is working properly but the problem is that
when user fetch one receipt automatically and then after he want to enter next record manually and he decided to go in detail block ,
and once he reached in detail block that time block level trigger i firing .ans serial number 2 generated and then suddenly he came to know no i want to fetch next record automatically mean to say now user going again master block and fetching next receipt detail ,
but the problem is when user leaving seccond sr no and going in master block and population next receipt detail that time cursor going on 3 record
but logically have to replace the second Serial no and generate the again serial number 2 record population .mean to say its not refreshing last_record..
so i'm appreciating is anyone if came accoross this type of issue please corrrect my code and send updated code ..plsssssssssssssssssssssssssssssss
Thanks
Abhishek
[email protected]hi
I put this below code on when_new_record_instance on block level..
:blk_name.column_name :=system.cursor_record;
so can you please help me.....
Thanks
Abhishek -
Implementing Auto Contract Generation/Negotiation and Execution
Would love to hear from anyone that has implemented auto contract generation/negotiation and execution. Were there any lessons learned you could share during implementation? Were there things you found out - too late? Are you seeing adoption? How long did the implementation take? Pain points along the road? Things you would do differently? We are getting ready to take this trip ourselves and I have a feeling it will not be smooth sailing.
Hello Sravan
Your message isn't clear fo me
If you used import for new master data you can use automatic key generation ability for inbound port
The another way:
You can create special key field in MDM and
create simple workflow which fire when ADD record.
That worklflow call assignment which fill key field
Regards
Kanstantsin -
Auto Date field and Auto Number field
I am fairly new to this,
I have crated a form using the form wizard in Acrobat Pro 9.0 and I would like to make a field an Auto date field and another an Auto Numbering field. I have read a lot of the posts and there are a lot of recommendation to point the auto number to a database. This is fine but I do not know how to reference that field to an external database. PLEASE HELP!!!! Somebody GEEK me!!I am fairly new to this,
I have crated a form using the form wizard in Acrobat Pro 9.0 and I would like to make a field an Auto date field and another an Auto Numbering field. I have read a lot of the posts and there are a lot of recommendation to point the auto number to a database. This is fine but I do not know how to reference that field to an external database. PLEASE HELP!!!! Somebody GEEK me!!
Maybe you are looking for
-
Frequent lock ups of my P7N Diamond
Here are my system specs: Intel Core2 Quad Q9300 @2.50Ghz P7N Diamond Nvidia GeForce 9800GTX Creative X-fi Xtreme Audio(came with board) Hyundai Electronics Zion DDR2 800Mhz 2GB(1GBx2sticks) Corsair CMPSU-620HX PSU (620W) Segate Barracuda 500GB hard
-
Error while Installing Nw04S SR2 Developer Workplace - Import Java Dump
Hi All, Iam trying to install NW04S SR2 Developer Workplace.Iam getting error in 15 th step i.e Import Java Dump. I have gone thru SDN threads and check the basic things like Java Version,whether i can connect to database or not.. Iam using SQL Serve
-
I have a SharePoint 2010 production farm with a web application 'A' that I would like to replicate twice in a development farm. The restore and PowerShell Mount went fine for the first development site then I used the following PowerShell to mount th
-
Drive Upgrade: Sudden Motion Sensor & SMART
Greetings, I have a couple of technical questions regarding a Hitachi HD upgrade I am planning. I purchased the 5K500.B from Other World Computing (OWC) and had some concerns with the Apple Drive Utility when I went to format it. I also purchased an
-
Create a small list from a bigger list, on some criteria
I have a list of java objects, i want to create small list on some criteria for some calculation, so i dont have to loop through all the big list, but create a small list, what is the best way to do so, i can loop through the big list and then add ob