Generating the Number

Hi
I want to generate a number for Vendor such that it is conactenation of the Region and a SequenceNumber.
Ex: For North & range 1-1000-----> N0001,N002....N0999
      For South & range 1-1000-----> S0001,S0002....S0999
Similarly for East and West E0001 & W0001.
Can anyone help me in this issue.
Regards
Nagalakshmi.

The short answer is you can technically achieve this by means of an assignment.  You would have an Auto ID field and a table that stores the different ranges.  You then sum the values of the auto ID field to the range (or concat, based on what field type you define). 
However, this may not be the best approach because then your number ranges are going to have gaps in them.  For example, if you have three ranges:
1000-1999
2000-2999
3000-3999
And you have one Auto ID field that increments every time you create a new record.  Your assignment will add the value of the auto id field to the range when you create a new record.  However, there is a problem that I will demonstrate below.
1.  You create the first record and it's supposed to use range number 1.  The number looks like this: 1001.
2.  You create a second record and it uses range number 2.  The number looks like this: 2002.
3.  You create a third record and it uses range number 3.  The number looks like this: 3003.
4.  You now create a fourth record using range number 1.  The number looks like this: 1004. 
As you can see there is a gap of three numbers between 1001 and 1004.  This is because the Auto ID field will increment regardless of what range you are using.  This is a problem if you design your ranges to be small, because you may run out of numbers.  If you are going to use this approach, then you should design your ranges to be very large.
Otherwise you need another approach.  At one of my clients we solved this problem by building a custom iView in the portals which used the Java API to generate the number.  We have three tables (account group, number range, number range map).  The range was dependant upon the account group that was selected.  Number range table stored all of the ranges.  And number range map allowed you to select an account group and the corresponding number range.  So when the user created a new record in the iView, our java api program would first lookup the number range mapping table and find out based on the account group which range to select from the range table (by using a key).  It would then go into the range table, increment the range value and then assign that value to the number field.
That's one way of doing it.  But honestly, I would recommend having your remote systems generate the number when MDM pushes the record out, and then interface the number back to MDM and store it in the key mappings.

Similar Messages

  • Generating Symbolic Number at the time of Syndication

    Hi! All
    I have the following user requirement:
    The Material number in one of the client system is in the following format-
    70000-00001, which is a symbolic number. There are already 54000 records in that particular system. These records needs to be cleaned by MDM and then syndicated back to the respective system with the number being generated in the same format ie. symbolic number and also if any record is added further, it should  generate the number in the ascending order. For Eg. 70000-00001, 70000-00002, 70000-003, etc.
    Please suggest me the best possible solution. Thanks in advance for the same.
    With Best Regards,
    Devendra Pandey

    hi,
    if you have AUTO ID field in the main table. It will generate number for each record in the ascending order only.
    for example:
    700000-00001 for this record the auto id is  001 .
    when ever you are syndicating, you can use Cust Items property in the syndicator ( concatenation of two fields).
    you can set custom delimiter for custom items.
    EX:
    1.create a custom item( ex: custom number ), in that custom tab, you can create the formula, click on that formula,
    2.select the fields, you want to concatinate, ( in our example: material number and auto ID,), this custom filed you find in the source items.
    3.map this Concatinated field to Destination item.
    4.and you can synicate
    hope this may help you,
    Regards,
    Srinivas

  • Modify the process of generating Requisition number in iProcurement

    We have a requirement to generate the Requisition number based on some of the information entered in iProc ( Using DFF) .Since iProc always use the sequence number to generate the number, we will be modifying the out of box functionality to generate the custom Req. Number.
    I have to identify all the objects that i need to modify in iProc ( VO, EO or controller classes ..etc), I was wondering if any one has this information?.
    I got the names of all the objects from 'About page' link and downloading these objects to my client and de compiling them to JAVA files to understand the flow, but this is very time confusing. I was wondering is there is a faster way to get this information.
    Thanks

    You can disable the image sizing portion of the UI and use the updateExportSettings() function on your export service provider to force the image size to your desired size. (This function is not well documented. It takes a single parameter, exportSettings, which you may modify in place before the export starts.) For example (this would go inside your export service provider declaration):
    updateExportSettings = function( exportSettings )
        exportSettings.LR_size_resizeType = 'wh'  -- specific width and height
        exportSettings.LR_maxHeight = 3600
        exportSettings.LR_maxWidth = 5400
    end,
    hideSections = { 'imageSettings' },  -- hide the sizing panel
    However, there is not a way to get Lightroom to render a file that is cropped to a specific aspect ratio. Whatever sizing parameters are specified, we will always honor the aspect ratio of the source file. In your processRenderedFiles function, you could use a third-party tool like Mogrify to regenerate the output file with the fill necessary to satisfy the desired aspect ratio.

  • Reset the Current Number in the Number Ranges

    Hello Friends,
    Is it possible to change the current number in the number range based on a condition?
    My requirement is,  I have generated the number using the Function Module NUMBER_GET_NEXT.  If the user clicks on Save then the number generated is saved. But if the user doesnt click on save, the number is not saved but the number is wasted. Now if I create a new number that will be the next number in the sequence. I want that if the user has not clicked on save then the same number should be generated again, so that the numbers are not wasted.
    regards,
    Raju.

    Hi
    I don't hink it is possible with the number ranges.
    Yes, as you said some numbers will be wasted in between.
    But in real PRoduction we don't click just like that on SAVe button wasting the numbers.
    Check the Tcodes SNUM and SNRO.
    Reward points if useful
    Regards
    Anji

  • How to use JavaBeans when the number of inputs is variable

    I have a problem. The number of textboxes in a HTML form is read from a database. How can I avoid reentry from users? Is it possible to use JavaBeans or may be there is some other way? Thanks in advance.

    Well, I meant that when a Jsp page is generated the number of textboxes is read from the database. So it it is apriory unknown. But I have found a solution to this problem: create a bean of String type for each textbox. Thanks.

  • How to find the number of idocs generated for a customer on the basis of his purchase order in a day ?

    How to find the number of idocs generated for a customer on the basis of his purchase order in a day ?

    Dear Friends,
    I am absolutely agree with your answer .
    But my question is,
    Lets say.....
    One customer sending X number of purchase orders in a day , so how many IDocs generated on that specific day for that specific customer .
    So, Question is , How can we find the no of sales orders(IDocs) generated for the customers on the specific day ?
    Hope you all understood my requirement .
    Thanks & Regards,
    Aditya

  • Generate numbers in incremental order, the number of times condition met?

    I have tried explaining my problem here also.
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=31&t=007531&p=1
    But trying to put in other words now.
    I have a NO tag which appears many times in xml. and alwyas have some random numbers displaying.
    output looks something similar to this
    something......<NO>1</NO>
    something......<NO>1</NO>
    something......<NO>2</NO>
    something......<NO>1</NO>
    something......<NO>3</NO>
    something......<NO>1</NO>
    something......<NO>5</NO>
    something......<NO>1</NO>
    something......<NO>1</NO>
    something...... & so on.
    Now instead of these numbers coming in this order i prefer to display in final output file as
    1 2 3 4 5 .................... n
    Is it possible in any ways using xslt.
    DO we need to ignore the values given in input file and then generate output values for same.
    it can be like the number of times NO tag appears in xml, it should start from 1 and keep increasing value by 1, until NO tag finishes appearance.
    But next time when other xml transforms it again should be able to start from 1 till n.
    is there a possibility of using java code for this situation or xslt is capaable enough to handle this.
    Thanks
    VJ

    I'm guessing you are looking for something like this. I used a pull approach but it could be done with a push (xsl:for-each).
    Sample XML
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
         <NO>1</NO>
         <NO>1</NO>
         <NO>2</NO>
         <NO>1</NO>
         <NO>3</NO>
         <NO>1</NO>
         <NO>5</NO>
         <NO>1</NO>
         <NO>1</NO>
    </root>
    Sample XSLT
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="xml" version="1.0" omit-xml-declaration="yes" encoding="UTF-8" indent="yes"/>
         <xsl:template match="root">
              <output>
                   <xsl:apply-templates select="NO"/>
              </output>
         </xsl:template>
         <xsl:template match="NO">
              <row>
                   <xsl:value-of select="position()"/>
              </row>
         </xsl:template>
    </xsl:stylesheet>
    Sample Output
    <output>
         <row>1</row>
         <row>2</row>
         <row>3</row>
         <row>4</row>
         <row>5</row>
         <row>6</row>
         <row>7</row>
         <row>8</row>
         <row>9</row>
    </output>

  • How to find out the number of fields in generated proxy structure?

    Hi All,
    Can anybody help me to find out the number of fields in generated proxy structure in back end system along with controller fields.
    i know how to get number of fields in XI system but i want the number of fields in back end system when we generate proxy including automatically generated controller fields.
    Thanks in advance.
    Regards,
    Ujwalkumar

    U mean u want to know at runtime?
    Get the output from ur proxy as a string, count the number of "<" characters and divide it by 2. :-P
    Of course, you'll have to treat the header fields separately.
    Regards,
    Henrique.

  • Total number of pages before generating the PDF - OMR

    Dear all,
    We are facing the following problem. We want to apply OMR (optical mark recognition) barcoding on a batch of invoices.
    Basically there are two steps in the proces:
    - Fetch the batch of invoices created during the day, let's say 1000 invoices.
    - Calculate for this batch of invoices the total number of pages per customer. 1 customer can have multiple invoices per day.
    - If the number of pages per customer > 12, remove the invoices from the total batch (1000 invoices become then 800 for example).
    - Apply OMR logic on the remaining 800.
    My question is regarding step 2. The calculation of the total number of pages per customer. Is it possible to get the total number of pages before generating the PDF? Or do we have to 'simulate' the PDF to get to this number?
    Another question I have, does anybody have experience implementing OMR using adobe forms? Any experience to share?
    Thanks for your feedback
    Simon

    Hi Philippe,
    we can only determine the page size when its already loaded with data and its published/sent by ADS.
    i.e., the no of pages increases based on the data you feed to the form which mean by the time the form/script determines the number of pages it has published dynamically data is already there. so your requirement cannot be solved in that approach.
    the next approach which I can think of is as follows.
    lets say you display the invoices data as a table in the form.
    so then lets specify the row height to .5" which mean in a form with content area size of 15" we can display 30 records.
    so in the interface or the source program count the number of records per customer if they are < (12pages X 30 records = 360) leave them as they are else remove them for the list and process the data for other customers.
    As per your other query of having OMR on the form I have no Idea, I never worked on that but if its just any other type of barcode that shouldn't have any problem.
    Hope this helps you,
    Cheers,
    Sai

  • How to generate the batch number for group of records

    Hi All,
    requirement: i have created one sequence to generate the batch numbers.i have to get the nextval of the sequence for batch number (this column is not part of the table. its dynamic column/alias column) only for every 50000 records of a table.
    detail description:
    for example, if i have 10 records in a table. And, if i want to generate the batch number for every 2 records, then the output should look like belo.
    batch-number qty
    1 10
    1 20
    2 30
    2 40
    3 50
    3 60
    4 70
    4 80
    5 90
    5 100
    Please help me on this. Please let me know if you need more info.

    one more update on the above request. this has to be done using SQL query only.

  • Count the number of Pluses Generated

    we are using the pxi-6602(counter/IO) along with SCB-68.
    the problem we are encountering is that,we want count the
    number of pulses generated.
    we are using the counter0 and generating the
    pluse, using the example VI Genrate Finite pulse(TIO).VI
    which we are able to capure at the CTR0-out.
    we want to count the number of pulses generated at
    CTR0, so we have connected to the gate of CTR1
    and we are running the example vi Measure Pluse NI(TIO)
    we are not able to count back the number of pulses generated.
    can any one guide us ....
    are we heading in the right
    1)is it possiblt to count and measure the number of pulse generated.
    2)is it neccessary to specify the PFI line in the measuring/counting.
    3)output of one counter is connected to gate of the other counter to measure. is it right
    4)since this is the first time we are using counter/timers, please guide us, about connecting the
      out and source and gate in scb-68.
    thanking you
    rags

    I'm not at a LV PC now, so I can't look at the examples you mentioned.  However, the primary problem is that when you generate a finite pulse train on Ctr0, the DAQ driver makes use of Ctr1 to control the # of pulses generated by Ctr0.
    Because you have a 6602, you can simply measure the # of pulses with any of the other 6 counters on board.  Ctr1, the one you might naturally think to use, is the only one that won't work.
    The method will depend on whether you're using traditional NI-DAQ or DAQmx.  The example names sound like traditional NI-DAQ, so the simplest thing is to actually wire from Ctr0 output to your measurement Ctr's Source input.  Each of the Ctr's has a different PFI pin as its (default) Source input.   Summarizing your questions:
    1. Yes it's possible to measure # of counts generated by Ctr0 with any Ctr EXCEPT Ctr1.  (Note that if you generated continuous pulses with Ctr0, you could then use Ctr1 to count them).
    2. It's possible to specify the PFI line for counting pulses.  If you physically wire to the default Source input, it won't be necessary.
    3. Output of one counter should be connected to the SOURCE of another counter.
    4. Ctr0 Out should be wired to, say, Ctr2 Source.  Don't have hw here to be able to identify pin #'s.
    Final note: under DAQmx, you wouldn't need any wiring.  You can programmatically tell any measuring counter to count the edges on any other pulse-generating counter.
    -Kevin P.

  • Generating next number from the SQL database using java

    Hi friends, I have a problem and need your help. I am working on a project about submitting claims form through the adobe PDF file and SQL database. I have problem working on a web service (written in java) that will generate the next Invoice Number from the SQL Database table. The field type for the column is text(var char). *Example: I first need to get into the table and search for the last Invoice number in the table and if the last invoice number in the table from the database is 3, i would want to generate the next number which is 4 and filled it up in the PDF file through web service that i am implementing. Can you all provide me some guidelines on how to implement this method in my web service?
    Thanks a lot. I need it by today. Hope someone can reply this as soon as possible.
    Lim89
    Edited by: LIM89 on Apr 2, 2008 7:10 PM

    far simpler to use a sequence generator, which most databases support.
    Suggested method to get the max value in the column is NOT secure, unless you lock the entire table for update before you do so, which is a severe performance penalty.

  • Unable to determine the number of SMSs generated by the message

    In JES5, I tested the SMS logging with two options; standard and xml.
    In both cases, I was unable to determine the number of SMSs generated by the message.
    However, such information can be found in the debug log;
    If i enable the debug logging, the desired information is available:
    10:15:41.59: 2-fragment(2250): The message will be sent as 4 SMS messages
    Nevertheless, Debug logging cannot be enabled all the time since it is pretty verbose.
    It was said that XML based logging released in JES5 will include the number of messages in the mail.log_current.
    But i dont find such information in it.
    Would anyone please tell me if this is applicable?
    what parameters should be changed or modified in order to make such
    information appear in the mail.log file?
    Thanks!

    I've not examined the doc, but I suspect that at least one of the option logging settings will do that for you. Please do have a look at the "channel option files" and the logging levels.

  • _dynSessConf - How to tweak logic to generate the random number.

    Hi,
    Can someone please let me know how we can tweak the logic when the random session confirmation number is generated and added as _dynSessConf.
    We have a requirement where this random number needs to be a bit longer than the currently generated default value.
    Regards,
    Saurav

    The session confirmation number used for _dynSessConf is already a randomly generated cryptographic number of long type which is hard to guess. Anyways, if you want to further modify it here is one of the approach that I can suggest.
    You can probably start with the component /atg/dynamo/servlet/sessiontracking/SessionIdGenerator in the component browser. In its details you will find it has a uniqueIdGenerator property which points to /atg/dynamo/servlet/sessiontracking/UniqueIdGenerator. Following on further it would eventually lead you to the components /atg/dynamo/service/random/SecureRandom and /atg/dynamo/service/random/SecureRandomConfiguration. Look at the service configurations of these components and see if you can get something which you can change or customize to meet your requirements.

  • How to generate the request number for the changed  script

    Hi guys
        I am having a reqirement, to modify the script which was already transported to production server. I changed the script, but while saving it is not asking any request number.
        On which request number it is getting saved?
        Or is there any methods to generate the <b>request number for the changed script</b>
         Kindly suggest me the procedure with step by step operation.

    Goto Se03 Transaction : 
    select change object directy entries ->execute->select one empty check box ->FORM-> your form name -Execute->

Maybe you are looking for

  • STO for Configurable material

    Dear All, We require to configure the STO process for a configurable material, but as per the present system configurable material production in supplying plant triggers by sales order. this resulting in non availability of material to dispatch again

  • Feedback on dark colours when I share video out

    When I share my video out to either iTunes or my desktop there is some feedback or a grainy looking contrast on some of the lower light or darker colours in the movie. It does not matter what size or how I export it out, the feedback still appears. D

  • Call from Java Plsql Procedure with VArray as Out Parameter

    Hi, I have a Java web application(Tomcat server) that call a plsql procedure with Varray as OUT parameter. The Plsql code is perfectly compiled. When i run the application, I get the following error msg in my Tomcat window: java.sql.SQLException: ORA

  • Cannot print pdf with update to 29

    Only getting blank pages since the update to 29. I print many International eBay postage labels daily that are pdf format. Very disappointed in mozilla. Been printing these for a few years, this should not happen....now back to Explorer. May not come

  • How to Administrate iCloud and Itunes

    While connecting my iphone in my new Mac Book Pro (i5, 4GB RAM 500 HD), I choosed backup using icloud, After that, some things were strange (At least by me): 1. Apps previously downloaded in my itunes account are not available in my mac Library, even