How to append 0 to any number to make it of specific length

Hi,
I have a requiement. There is a textfield it is of max length 3, if user enters any number like '1' or '5' then it should be automatically appended with '0' to make it of length 3 that is if user enter '3' then it should become '003'.
Please helpme in implementing this.
Thanks,
Vikram

Thanks for ur reply..
Ya we can use that infact right now I am using lpad only but is there any formatter class which we can set in our bean so that it will automatically format it in desired way.
Thanks,
Vikram Singh

Similar Messages

  • How to append calling and called number with translation rules?

    Hello,
    I have one question about digit manipulations.
    How to append calling number and called number with IOS commands?
    For example, when 123 dials 45678, translations have to be performed and the new called number to be 12345678.
    Thank you,
    I will vote this conversation.

    It is not possible with translation rules.
    However, you can do that with a TCL/IVR script.

  • How to add spaces to the column value to make it up specifi length string please

    Hello There,
    Could you please guide me here to solve this issue,
    in my column (named as State) contains values as below
    California
    Washington
    Utah
    Connecticut
    Massachusets
    in the output how can i add a spaces to make up every column values as 15 length (for ex, Utah is 4 length then need to add 11 spaces, California is 10 would like to add 5 spaces)
    i tried below but no use in Sql 2008 R2
    SELECT  distinct state
       state
    +SPACE(35-len(state)),
    len(state+SPACE(35-len(state)))
    FROM dbo.ordersInfo
    Thank you in advance
    Milan

    Fixed length CHAR(n) data in SQL is automatically padded with spaces. Either change the column's data type or cast to it. Also, the ISO-11179 rules are that the column should be "state_name" and not just the root attribute "state" -- state_code, state_population,
    etc are a few of the confusions you created. 
    Another rule of RDBMS is that we do not do display formatting in the data. That is what presentation layers do. Why are you trying to fake COBOL in SQL? 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • How to create rownum or auto number

    Hi All,
    I got some problem in create rownum or auto number in following table condition.
    eg.
    MeasID PosID Desc
    ==== ====== ===
    P01 1 Abc
    P01 1 Cde
    P01 2 Abc
    P01 2 Efg
    P01 2 Xyz
    in select statement, I would like to make it look like:
    Num MeasID PosID Desc
    === ==== ====== ===
    1 P01 1 Abc
    2 P01 1 Cde
    1 P01 2 Abc
    2 P01 2 Efg
    3 P01 2 Xyz
    How can I create a running number and make like some short like group by PosID?

    Use analytic row_number:
    with t as (
               select 'P01' MeasID,'1' PosID,'Abc' Descr from dual union all
               select 'P01','1','Cde' from dual union all
               select 'P01','2','Abc' from dual union all
               select 'P01','2','Efg' from dual union all
               select 'P01','2','Xyz' from dual
    select  row_number() over(partition by MeasID,PosID order by Descr) num,
            MeasID,
            PosID,
            Descr
      from  t
      order by MeasID,
               PosID,
               Descr
           NUM MEA P DES
             1 P01 1 Abc
             2 P01 1 Cde
             1 P01 2 Abc
             2 P01 2 Efg
             3 P01 2 Xyz
    SQL> SY.

  • Report Script - How to get the total on the any number of rows selected

    Hi,<BR>I am using Essase and report script for the reporting purpose. In this i would like to know how to get the sum of all the rows selected. I know we can use the calculate row, but it has to be done with print row to display the newly created row. But i am using alphablox where this print row is not working. Is there any other alternative is there to get the sum of any number of rows, and displaying them??<BR>Please help me.<BR><BR>Regards<BR>R.Prasanna

    Pls check the structure and index.
    EMP_ID NUMBER(9) NOT NULL,
    EMP_CD           NUMBER(3),
    EMP_NO VARCHAR2(250 BYTE) NOT NULL,
    FROM_EFF_DT DATE NOT NULL,
    TO_EFF_DT DATE,
    CREATE INDEX IDX_EMP_NO ON EMP
    (EMP_NO)
    NOLOGGING
    TABLESPACE INDEXES
    PCTFREE 20
    INITRANS 10
    MAXTRANS 255
    STORAGE (
    INITIAL 56K
    NEXT 1784K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    FREELISTS 4
    FREELIST GROUPS 1
    BUFFER_POOL DEFAULT
    NOPARALLEL;

  • How to find out the Idoc number triggered for any material transfer frm SAP

    Hi Folks,
    Can any body let me know How to find out the Idoc number triggered for any material transfer frm SAP?
    Do we have any navigation for that in MM03?
    Thanks,
    SPMD.

    Hi Shabbirmdpasha,
    If you know the user name then you can find the idoc numbers created by that user. But the problem here is it not only gives the material it gives all the idocs created by that user. Go to SE16 --> table name EDIDS --> here you can fill the approximate date and in UNAME give the userid and execute. This will give all the idocs created by that user. I know it is only a partial solution.
    Also would suggest to post the same in abap forums for more answers:
    ABAP Development
    Regards,
    ---Satish

  • HT200164 How can i find the serial number of a Logic Pro  downloaded from AppStore. (Without any booklet)

    How can i find the serial number of a Logic Pro  downloaded from AppStore. (Without any booklet)

    Hi
    The Appstore version does not require a serial number
    CCT

  • I've purchased two numbers Skype How do I know an incoming call to any number of digits?

    I've purchased two numbers Skype How do I know an incoming call to any number of digits?

    You can get the past 18 months' worth of call logs via your MyVerizon account by viewing past bills.  For those older than 18 months, you'd need to talk to Customer Service; I believe they charge $5 per bill to send them to you.
    Customer Service:
    Dial *611 from a cell phone
    (800) 922-0204
    Monday - Sunday 6 am - 11 pm

  • How to search in Pages for any number or any character, using wildcards

    Is it possible in Pages to use wildcards to search for any instance of any number? For example, I want to find all occurrences of any one or two digits followed by a colon, such as 8: or 37:
    If I can't use wildcards, is there any other way to search, other than tediously searching for every instance of 1, every instance of 2, etc.?
    Thanks!
    Sue

    Hello
    Here is an enhanced version.
    --[SCRIPT highlight_ digitspluscolon]
    Enregistrer le script en tant que Script : highlight_ digitspluscolon.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Pages:
    Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.
    Ouvrir un document traitement de textes Pages
    aller au menu Scripts , choisir Pages puis choisir highlight_ digitspluscolon
    Dans les éléments de texte, l'arrière plan des groupes de chiffres
    suivis d'un caractère deux points sera mis en rouge.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    --=====
    Save the script as a Script: highlight_ digitspluscolon.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
    Maybe you would have to create the folder Pages and even the folder Applications by yourself.
    Open a Pages word processor document.
    go to the Scripts Menu, choose Pages, then choose "highlight_ digitspluscolon"
    In the text objects, the background of groups of digits
    with a trailing colon will be set to red.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2010/07/17 -- enhanced to treat also text boxes and shapes
    --=====
    on run
    local en_liste, le_dernier, un_groupe, le_premier, recul
    local les_boites, une_boite, les_formes, une_forme
    Try to treat the main text layer
    tell application "Pages"
    try
    set le_document to name of document 1
    tell document 1 to set le_texte to body text
    on error
    set le_texte to ""
    end try
    end tell -- Pages
    if le_texte > "" then
    set en_liste to my decoupe(le_texte, ":")
    set le_dernier to 0
    tell application "Pages" to tell document le_document
    repeat with i from 1 to count of en_liste
    set un_groupe to item i of en_liste
    set le_dernier to le_dernier + 1 + (count of un_groupe)
    set recul to 0
    repeat with j from 1 to 10
    if character -j of un_groupe is in "0123456789" then
    set recul to -j
    else
    exit repeat
    end if
    end repeat -- with j
    if recul < 0 then
    set le_premier to le_dernier + recul
    set character background color of characters le_premier thru le_dernier to {65535, 0, 0}
    end if -- recul < 0
    end repeat -- with i
    end tell -- Pages…
    end if -- le_texte > ""
    Try to treat text boxes
    try
    tell application "Pages" to tell document le_document to set les_boites to every graphic whose class is text box
    on error
    set les_boites to {}
    end try
    if les_boites is not {} then
    repeat with une_boite in les_boites
    tell application "Pages" to tell document 1
    tell une_boite to set le_texte to object text
    end tell -- Pages…
    my highlight(le_document, une_boite, le_texte)
    end repeat
    end if -- with f
    Try to treat shapes
    try
    tell application "Pages" to tell document 1 to set les_formes to every graphic whose class is shape
    on error
    set les_formes to {}
    end try
    if les_formes is not {} then
    repeat with f from 1 to count of les_formes
    I know that using whose is more efficient than using an index but, in Pages '09, whose doesn't apply to shapes. *)
    tell application "Pages" to tell document 1
    set une_forme to item f of les_formes
    tell une_forme to set le_texte to object text
    end tell -- Pages
    my highlight(le_document, une_forme, le_texte)
    end repeat -- with f
    end if
    end run
    --=====
    on highlight(un_document, un_contenant, son_Texte)
    local en_liste, le_dernier, un_groupe, recul, le_premier
    set en_liste to my decoupe(son_Texte, ":")
    set le_dernier to 0
    tell application "Pages" to tell document un_document to tell un_contenant to tell object text
    repeat with i from 1 to count of en_liste
    set un_groupe to item i of en_liste
    set le_dernier to le_dernier + 1 + (count of un_groupe)
    set recul to 0
    try (*
    Useful if a shape was erroneously pasted in a text box. *)
    repeat with j from 1 to 10
    if character -j of un_groupe is in "0123456789" then
    set recul to -j
    else
    exit repeat
    end if
    end repeat
    end try
    if recul < 0 then
    set le_premier to le_dernier + recul
    set character background color of characters le_premier thru le_dernier to {65535, 0, 0}
    end if
    end repeat
    end tell -- Pages
    end highlight
    --=====
    on decoupe(t, d)
    local oTIDs, l
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to oTIDs
    return l
    end decoupe
    --=====
    --[/SCRIPT]
    It scans the main text layer in Word Processor documents.
    It scans text boxes and shape in Word Processor and Layout documents.
    Is it useful to scan :
    headers, footers, tables ?
    Yvan KOENIG (VALLAURIS, France) samedi 17 juillet 2010 21:07:04

  • How batch append cost center group to standard hierarchy by batch

    Hi Guys,
    Would you please tell how me how append cost center groups to standard hierarchy by batch, every time I have to do it one by one, is there  a convenient way? thanks.
    Best Regards
    FS

    Hi,
    You can create any number of cost center groups as per your requirement.
    But one thing is crucial. If you crin your eate the groups using the T Code:OKEON. those will effect  to the standard hierarchy.
    Cost centers created wil KSH1 will not effect to standard Hierarchy.
    Main point here is the main hierarchy should be maintained in OKEON. Later you can add any number of groups to that. LSMW will work, before that Hirarchy Area(Cost center group) should be maintained in the system for effective work of LSMW.
    Regards,
    Pavan Kumar Arvapally

  • How to append leading zeros

    Dear Friends,
    In a transparent table xyz I have one field 'Bill No.' which is of character type & length 10. when I insert data in this table the value for this field gets stored as '0000000001'.
    I am facing a problem when the user is giving  value of  Bill No. as '1'. It doesn't pick the data because the corresponding value in my table is '0000000001'.
    Once I have used the function CONVERSION_EXIT_ALPHA_OUTPUT' to remove the leading zeros but here I have to append the leading zeros.
    How to overcome this pls advise.
    Regards,
    Alok.

    Hi,
    Use the following FM:
    CONVERSION_EXIT_ALPHA_INPUT converts any number into a string fill with zeroes, with the number at the extreme right
    Example:
    input  = 123
    output = 0000000000000...000000000000123
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • How to append SAP instance in SAP MMC

    Hi,
    We had two instances running in one host.
    After a reboot one system is up and running and can be seen in MMC but the other instance niether starting nor appearing in MMC.
    Can any one tell me how to append the instance in MMC with the existing up & running Instance?
    Regads,
    Souren

    Hi,
    In the properties widow select the fixed tab and add the hosttname and the instance number and then press ADD.
    The SAP instance may not be listed in the MMC if the sapservices fails to start due to logon failure. Please check whether the services SAP<SID>_<Instance Number> has been started and if not please check whether the password for the user .\sapservice<SID> is valid.
    Regards,
    Varadhu

  • How to append recorded files.

    Two questions.
    I am using adobe dvrcast to record my live streams. the problem I am having is when I stop the encode during a live stream, a new file is not created, the existing stream is written over. How can I preventive this from occuring.
    Is there a way to have all vod files that are in one folder to roll over to the next file during play back.

    Thanks for the quick response. I am using FMLE 3 and FMS 3.5. I have changed the code per your suggestion. However, the file still does not append when i press the stop button in FMLE. After pressing stop, when I press start button in FMLE again, the file size starts at zero.
    here is my code: ExDVRStream.asc
    /*----------------------------------------------------------------------------+
    |       ___     _       _                                                    |
    |      /   |   | |     | |                                                   |
    |     / /| | __| | ___ | |__   ___                                           |
    |    / /_| |/ _  |/ _ \|  _ \ / _ \                                          |
    |   / ___  | (_| | (_) | |_) |  __/                                          |
    |  /_/   |_|\__,_|\___/|____/ \___|                                          |
    |                                                                            |
    |                                                                            |
    |  ADOBE CONFIDENTIAL                                                        |
    |  __________________                                                        |
    |                                                                            |
    |  Copyright (c) 2008, Adobe Systems Incorporated. All rights reserved.      |
    |                                                                            |
    |  NOTICE:  All information contained herein is, and remains the property    |
    |  of Adobe Systems Incorporated and its suppliers, if any. The intellectual |
    |  and technical concepts contained herein are proprietary to Adobe Systems  |
    |  Incorporated and its suppliers and may be covered by U.S. and Foreign     |
    |  Patents, patents in process, and are protected by trade secret or         |
    |  copyright law. Dissemination of this information or reproduction of this  |
    |  material is strictly forbidden unless prior written permission is         |
    |  obtained from Adobe Systems Incorporated.                                 |
    |                                                                            |
    |          Adobe Systems Incorporated       415.832.2000                     |
    |          601 Townsend Street              415.832.2020 fax                 |
    |          San Francisco, CA 94103                                           |
    |                                                                            |
    +----------------------------------------------------------------------------*/
    load("ExUtil.asc");
    * An example dvr stream class that handlings requests initiated from the
    * publisher and subscribers.
    * @param name    live streams name as visible to the client subscribers
    * @param numsubscriber  number of subscribers
    * @param subscribers  a map of subscribing client based on the client id
    * @param publisher   publishing client
    * @param streamInfo  holds default DVR stream info or stream info provided
    *       by the publisher
    * @param startRecTimer  Id returned by the scheduler to start recording
    * @param stopRecTimer  Id returned by the scheduler to stop recording
    * @param broadcastTimer Id returned by the scheduler to broadcast stream info
    *       to down stream servers
    * @param broadcastInterval how often to broadcast stream info
    function ExDVRStream( name ) {
    this.name = name;     // clients subscribe to this stream name
    this.numsubscriber = null;   // number of subscribers
    this.subscribers = new Object(); // map of current subscribers
    this.publisher = null;    // client publisher, this is only set in the origin
    this.streamInfo = null;    // streamInfo provided by the publisher
    this.startRecTimer = null;   // scheduler id to start recording
    this.stopRecTimer = null;   // scheduler id to stop recording
    this.broadcastTimer = null;   // scheduler id for broadcasting
    this.broadcastInterval = 5000;  // set the interval to 5 sec by default
    this.isRecording = false;   // flag to indicate if the stream is recording
    // Public interface
    * This function gets call when a client is added as a subcriber of the stream.
    * If the client is already a subscriber, it will be a no-op.
    ExDVRStream.prototype.addSubscriber = function( client )
    if (this.subscribers[client.id] == null)
      this.subscribers[client.id] = client;
      this.numsubscriber++;
    * Removes a client from the subscriber list. 
    ExDVRStream.prototype.removeSubscriber = function( client )
    if (this.subscribers[client.id])
      this.subscribers[client.id] = null;
      delete this.subscribers[client.id];
      this.numsubscriber--;
    * This function broadcast streamInfo to all the subscriber which
    * is acting as a server
    ExDVRStream.prototype.broadcastStreamInfo = function()
    debug("Inside ExDVRStream.broadcastStreamInfo - stream name: " +
      this.name);
    for (i in this.subscribers)
      subscriber = this.subscribers[i];
      if (subscriber.isProxyServer)
       subscriber.call("DVRSetStreamInfo", null, this.getStreamInfo());
    * Set the publishing client
    ExDVRStream.prototype.publish = function( client )
    this.publisher = client;
    * Clear the publishing client
    ExDVRStream.prototype.unpublish = function()
    this.publisher = null;
    * This function returns a boolean to indicate whether the stream is in use
    ExDVRStream.prototype.isInUse = function()
    if (this.numsubscriber > 0 || this.publisher)
      return true;
    return false;
    * This function cleans up all the resources used by this stream
    ExDVRStream.prototype.shutdown = function()
    debug("Inside ExDVRStream.shutdown");
    clearInterval(this.startRecTimer);
    clearInterval(this.stopRecTimer);
    clearInterval(this.broadcastTimer);
    this.startRecTimer = null;
    this.stopRecTimer = null;
    this.broadcastTimer = null;
    * Returns the default streamInfo if no streamInfo has been
    * set by the publisher
    ExDVRStream.prototype.getDefaultStreamInfo = function( DVRStreamInfo )
    //If server restarts and no publisher is coming in, we check
    //the length of the recorded stream and see if we should make
    //the dvr content available.  However, user can customize this
    //function and make an external call.
    streamLen = Stream.length(this.name);
    if (streamLen || this.publisher)
      //found a dvr stream, so return it
      DVRStreamInfo.code = "NetStream.DVRStreamInfo.Success";
      this.streamInfo = new Object();
      //setup default value
      this.streamInfo.streamName = this.name;
      this.streamInfo.callTime = new Date();
      this.streamInfo.startRec = new Date();
      this.streamInfo.stopRec = new Date();
      this.streamInfo.maxLen = Stream.length(this.name);
      this.streamInfo.begOffset = 0;
      this.streamInfo.endOffset = 0;
      this.streamInfo.append = false;
      this.streamInfo.offline = false;
      this.streamInfo.currLen = Stream.length(this.name);
      this.streamInfo.isRec = false;
      DVRStreamInfo.data = this.streamInfo;
    else
      DVRStreamInfo.code = "NetStream.DVRStreamInfo.Failed";
      DVRStreamInfo.data = null;
    * Get streamInfo and create a default one if no streamInfo
    * has been set.
    ExDVRStream.prototype.getStreamInfo = function()
    debug("Inside ExDVRStream.getStreamInfo");
    DVRStreamInfo = new Object();
    if (this.streamInfo == null)
      this.getDefaultStreamInfo(DVRStreamInfo);
    else if (this.streamInfo.offline)
      DVRStreamInfo.code = "NetStream.DVRStreamInfo.Failed";
      DVRStreamInfo.data = null;
    else
      DVRStreamInfo.code = "NetStream.DVRStreamInfo.Success";
      DVRStreamInfo.data = this.streamInfo;
      DVRStreamInfo.data.isRec = this.isRecording;
      DVRStreamInfo.data.currLen = Stream.length(this.name);
    return DVRStreamInfo;
    * Set streamInfo, also handleStreamInfo to start/stop a recording
    ExDVRStream.prototype.setStreamInfo = function( streamInfo )
    debug("Inside ExDVRStream.setStreamInfo");
    //Right now, this only get called from the FMLE when
    //the publisher start/stop a recording
    currDate = new Date();
    currTime = currDate.getTime();
    this.streamInfo = streamInfo;
    this.streamInfo.lastUpdate = currDate;
    startRecTime = 0;
    stopRecTime = 0;
    if (streamInfo.startRec == -1 || streamInfo.startRec == undefined)
      startRecTime = -1000;
    else if (streamInfo.startRec instanceof Date)
      startRecTime = streamInfo.startRec.getTime();
    else
      //invalid startRec format
      return;
    if (streamInfo.stopRec == -1 || streamInfo.stopRec == undefined)
      stopRecTime = -1000;
    else if (streamInfo.stopRec instanceof Date)
      stopRecTime = streamInfo.stopRec.getTime();
    else
      //invalid stopRec format
      return;
    if ( startRecTime == -1000 && stopRecTime == -1000 )
      //broadcast the change to all the downstream server
      this.broadcastStreamInfo(streamInfo);
      return;
    if (stopRecTime != -1000)
      //We are about to stop a recording, so clear the timer
      clearInterval(this.stopRecTimer);
      this.stopRecTimer = null;
      if (currTime < stopRecTime)
       timeDiff = stopRecTime - currTime;
       //we will broadcast the streamInfo to all the downstream server
       //when we actually stop the recording inside onStopRecord
       this.stopRecTimer = setInterval(this, "onStopRecord", timeDiff);
      else
       //stop recording immediately
       this.onStopRecord();
    if (startRecTime != -1000)
      //We are about to start a recording, so clear the timer
      clearInterval(this.startRecTimer);
      this.startRecTimer = null;
      if (currTime < startRecTime)
       timeDiff = startRecTime - currTime;
       //we will broadcast the streamInfo to all the downstream server
       //when we actually start the recording inside onStartRecord
       this.startRecTimer = setInterval(this, "onStartRecord", timeDiff);
      else
       //start recording immediately
       this.onStartRecord();
    * This is called when we are about to stop a recording
    ExDVRStream.prototype.onStopRecord = function()
    this.isRecording = false;
    clearInterval(this.stopRecTimer);
    this.stopRecTimer = null;
    s = Stream.get(this.name);
    s.record(false);
    //notify the downstream server immediately
    this.broadcastStreamInfo(this.streamInfo);
    //also stop the periodic broadcast because the stream is not growing
    this.stopStreamInfoBroadcast();
    * This is called when we are about to start a recording
    ExDVRStream.prototype.onStartRecord = function()
    debug("Inside ExDVRStream.onStartRecord");
    this.isRecording = true;
    clearInterval(this.startRecTimer);
    this.startRecTimer = null;
    s = Stream.get(this.name);
    if (this.streamInfo.append)
      s.record("append");
    else
      s.record("append");
    //notify the downstream server immediately
    this.broadcastStreamInfo(this.streamInfo);
    //also start the periodic broadcast because the stream is growing
    this.startStreamInfoBroadcast();
    * Stop the timer to broadcast streamInfo to downstream servers
    ExDVRStream.prototype.stopStreamInfoBroadcast = function()
    clearInterval(this.broadcastTimer);
    this.broadcastTimer = null;
    * Start the timer to broadcast streamInfo to downstream servers
    ExDVRStream.prototype.startStreamInfoBroadcast = function()
    debug("ExDVRStream.Inside startStreamInfoBroadcast");
    this.stopStreamInfoBroadcast();
    this.broadcastTimer = setInterval( this, "onStreamInfoBroadcast",
      this.broadcastInterval)
    * This is called by scheduler to broadcast streamInfo to the
    * downstream servers
    ExDVRStream.prototype.onStreamInfoBroadcast = function()
    debug("Inside ExDVRStream.onStreamInfoBroadcast");
    this.broadcastStreamInfo();

  • How to assign numbers in external number range?

    Dear experts,
    Since NUMBER_GET_NEXT can only be used to assign numbers in internal number range, how to assign numbers in external number range?
    So far, I only know the NUMBER_CHECK function module to deal with external number ranges and it only check a number whether it lies in any external number range or not, but it doesn't update any number range status. What I need is a function module like NUMBER_GET_NEXT that supports external number range.
    Thanks in advance.
    Regards,
    Haris
    Edited by: harissahlan on Oct 19, 2011 5:44 AM

    With external number range, there is no updating of the number range objectt. The only thing you need to know is whether the number you wish to assign is allowed according to the external number range. And also check if there isn't already an object/document with the same number in the database.

  • How to set up the maximum number of messages on a queue programmatically

    Hi,
    I am using IMQ 3.5 to implement a message layer for one of my projects. I created a "Job Status Queue", which receives job status report from a java application every minute. But I just want to keep the most current status report instead of all the job running history. How can I restrict the maximum number of messages to 1 programmatically?
    Any suggestion or help will be appreciated.
    Xiaoyun Tang

    You can't limit the destination size programmatically, but you can do it administratively and associate a behavior to occur when the limit is reached. In your case it sounds like you want a queue, 1 message deep, and to discard the oldest message when the queue is full. When you create the physical queue on the broker you can specify these attributes (you can also update them on an existing queue). For example:
    imqcmd create dst -t q -n StatusQ -o maxNumMsgs=1 -o limitBehavior=REMOVE_OLDESTFor more information see Chapter 6 of the Message Queue Administration Guide. In particular the "Managing Destinations" section:
    http://docs.sun.com/app/docs/coll/MessageQueue_35_SP1
    Joe

Maybe you are looking for

  • Trying to download OS X 10.9.2 from app store.

    Trying to download OS X 10.9.2 from app store. I am currently running 10.6.8 on a MAC Pro that meets required specs. Keep getting message that says.. The Application could not be downloaded..Check your Internet connection and try again. The Internet

  • "An iPod has been detected, but it could not be identified properly" error

    We have had five iPod Nano's installed via our home computer (Dell PC - Windows Vista): one 2nd generation (currently being used) one 3rd generation (not in use - was lost) one 4th generation (not in use - was stolen) two 5th generations (currently b

  • Migration and User Acct Short Name

    It took only 4 hours via an ethernet cable (probably at optimum speed) for Migration Assistant to nicely transfer my "entire universe" over from an old PowerMac G5. Unfortunately, I had my User Account Short Name starting with "G5" so my new blazingl

  • Spry Drop Down Problem in Internet Explorer

    I have built my spry drop down and it is working in all browsers except for IE.  I really need help with this. Attached is my code or you can view it at roemtech.com/menubarattempt.html.  It is rendering it vertically and stacking the buttons on top

  • Hwd -e does not list connected USB devices

    USB devices for audio in/out not recognized in hwd -e. Desired USB Items appear in KDE INFO CENTER: SOUND. KDE MIXER alternate...USB Mixer... shows OUTPUT  PCM icon but no INPUT device  is shown (thus, no device is connected). System has udev install