Play leading zero in generated prompt`

UCCX 7.0
Collecting ABA/Routing number from customer and reading back to them in a generated prompt:
generator type - number
constructor type - number, play full (false)
It is then read to the customer via an Explicit Confirmation.  However the playback is dropping the leading zero.  Need to have that zero read back to the customer.  Any help is appreciated.  Thanks.

Andrew,
can you please make sure the ANI information really contains the leading zero (did you try to do some reactive script debugging)?
Also, if we are talking about non-system prompts, make sure the prompt (wave) file exists and its format is correct (can you see any exceptions perhaps in the MIVR*.log files)?
Could you attach a screenshot of your script? It would help us understand the way the prompt is being generated.
Thanks.
G.

Similar Messages

  • Generic counter with leading zeros

    Good evening everybody,
    I was searching the code of a generic counter with leading zeros, but I did not found anything over the Internet. Therefore, I code it all by myself.
    I give you the code, it will maybe helps someone.
    Only needed leading zeros are generated, which means the following sequences :
    0 - 1 - 2 - ... - 7 for a max of 7,or
    00 - 01 - 02 - ... - 23 - 24 - ... - 89 for a max of 89, or
    000 - 001 - 002 - ... - 432 for a max of 432.
    public class LeadingZerosCounter {
      public String[] counters = null;
      public LeadingZerosCounter(int maximum) {
        this.counters = new String[maximum];
      public String[] init() {
        int maxLeadingZeros = 1;
        int index0 = this.counters.length;
        while ((index0 /= 10) >= 10) {
          maxLeadingZeros += 1;
        int counter = 0;
        for (int index1 = 0; index1 < maxLeadingZeros + 1; index1++) {
          while (counter < java.lang.Math.pow(10, index1 + 1)) {
            String stringCounter = new String("");
            for(int index2 = 0; index2 < (maxLeadingZeros - index1); index2++) {
              stringCounter = stringCounter.concat("0");
            stringCounter = stringCounter.concat(new Integer(counter).toString());
            this.counters[counter] = stringCounter;
            System.out.println(this.counters[counter]);
            if (++counter == this.counters.length) {
              return(this.counters);
            else {
              // no action
        return(this.counters);
      public static void main(String[] args) {
        new LeadingZerosCounter(100).init();
    NOTE : the two return are mandatory.
    Try maximum raised to a power of 10 and maximum raised to a power of 10 + constant in [1; 9] to understand.
    If you find any solution to make it faster, please let me know.
    Have a nice day,
    Christophe

    I like Jos' idea better than mine (go figure - he's a better Javanista)....
    public class Counter {   
        private String pattern;
        private int count;
        private int max;
        public Counter(int max) throws IllegalArgumentException {
            if (max < 0) {
              throw new IllegalArgumentException("Max (" + max + ") must be a positive number");
            this.max = max;
            int len = String.valueOf(max).length();
            this.pattern = "%1$0" + len + "d";
        public boolean hasNext() {
            return count <= max;
        public String next() {
            String result = String.format(pattern, count);
            count++;
            return result;
        public static void main(String[] args) {
            // for demo purposes only;
            // replace with command-line arg parsing, if desired...
            String prefix = "picture_";
            String suffix = ".jpg";
            Counter c = new Counter(99);
            while (c.hasNext()) {
                System.out.println(prefix + c.next() + suffix);
            try {
                new Counter(-1);
            } catch (IllegalArgumentException e) {
                System.out.println("test: " + e.getMessage());
    }

  • UCCX 7 generated prompt, female to male

    Hi,
    we are using the Create Generated Prompt step in our script, getting the Position in queue and Avg Wait time integers played as a number generated prompt.
    The issue that we have is that the generated prompt is played in female voice, while the rest of the prompts that we concatenate the final prompt with are recorded by the customer as male voice.
    We tried setting the gender variable in the step properties to 1, according to the step editor guide that should be male but no luck. it does have a note in the guide saying: "If the language associated with the call does not behave differently based on gender, then this parameter is ignored."
    What does that mean and any ideas how we can make this work?
    Thanks,
    Vedran

    Jonathan,
    sorry about the last question, it was more my frustration about Cisco not answering this in the right way in the documentation.
    I do realise you cannot really give me the answers I am looking for
    Thanks for your help so far,
    Vedran

  • Generated Prompt Does Not Play

                       I have a script that is set to play a generated prompt and it does not play.  I have a variable named balance that is an integer populated with the number 500.  The goal is to have the system play back "five hundred dollars" but right now I am just trying to get it to play back "Five hundred or Five zero zero"  I am using the create generated prompt step to read the variable balance as a number.  The generator type is number, constructor type is number, play full.  The argument is name number with value balance and name play full value false so as I understand it, the system should play back "five zero zero" to an output prompt AccountBalance.  I then use the play prompt step set to P[AccountBalance] and in debugging, the script passes right over the play prompt step, there are no errors, it just skips over the step and does not play the prompt.  The override language is L[en_US].  UCCX 9.0.2
    Any ideas?

    Without actually seeing your script, it sounds like you're doing most of it correctly.  However, you did not specify the output prompt from the Create Generated Prompt step.  Because you gave the example: P[AccountBalance], I can already see that this is incorrect.  The result of the Create Generated Prompt step would not use the user prompt notation: P[].  If AccountBalance is in fact the resulting prompt from the Create Generated Prompt step, then try simply referencing it in your Play Prompt step as AccountBalance and no as P[AccountBalance].
    Also, to play numbers, you don't even need the Create Generate Prompt step:
    N[100] == "One Hundred"#[5] == "Fifth"S[601] == "Six Zero One"
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • Leading zero no longer showing up for hour in clock.

    I know this is a nitpick, but the leading zero for the hour no longer shows up in the menu bar clock no matter what the settings are. Also there is no option to display the date in numeric form.

    Hello Ben:
    I had not noticed that before, but I do see what you mean.
    I have not played with it, but take a look at system preferences>date & time and then click on +"open language & text."+ Perhaps that might be a way to have the display change. As I said, I have not played with it since I am OK with the current display.
    Barry

  • Variable substitution: (delete leading zeros from file name)

    Hi All,
    I am configuring an IDOC to FILE (fcc scenario) with a requirement of using the IDOC number in the output file name. 
    Using variable substitution, I manged to get the IDOC number from incoming Idoc-control record but it comes in its entitre length with a few leading zeroes like '00000001234'.
    So my output file name looks like 'Output_000000001234.txt'  . I want it to be like 'Output_1234.txt'.
    Is it possible to achieve it ?
    Thanks
    Shirin

    Hi Shirin,
    First supress the leading zeros of IDOC number by using the following code:
    Create a user defined funciton zerosuppress and take the cache as value and take one argument input. Then put the code below:
    //write your code here
    String output = input.replaceFirst("^0+","");
    return output;
    Then use variable substitution for generating ur IDOC number in the out put file name.
    Regards,
    Vinod.

  • Need formula to take text from one cell, add that to a serial number with leading zeros

    I'm trying to create a spreasdheet cell that simplifies creating videotape Numbers from a job name in cell and appends a serial number with leading zeros, and that would survive an export to EXCEL.
    The result would look like
     A Column
    Job Name
    B ColumnTape #
    Formula needed for B
    ClientName-TapeType-
    ClientName-TapeType-001
    =
    ClientName-TapeType-
    ClientName-TapeType-002
    =
    I've tried using a custom cell format that had the text in front of the (Integer) drag and drop, with three integers and leading zeros.
    That worked, but requires recreating the custom cell format for each client and tape type.
    So, I've used the formula =A2& in order to play around with different things, but haven't hit on something that adjusts for increased numbers and retains the leading zeros.
    I don't mind doing a starter for the first row and then adding +1 in the formulas for the rows below.
    I've done that using the custom cell formats for the first B cell and then using =Bx+1 in the following cells.  It works, but I'm hoping to find something simpler or that can be copied and pasted in multiple rows on one paste.
    Thanks in advance.
    Suggestions much appreciated!
    Ted

    Ted,
    This expression in B will give you the pattern I believe you are looking for:
    =A&RIGHT("00"&ROW()-1, 3)
    Here's a screen shot...
    Jerry

  • Export to Excel - leading zeros problem

    Hello,
    I wrote an application, which exports the data from an internal table into an excel file.
    I defined a variable as char20. The variable contains the value '000256'.
    When I generate the excel file, the leading zeros are cut and so only the value 256 is stored into the cell.
    Is it possible to prevent the cut of the zeros?
    Best regards & Thanks in advance
    Here is a part of may code:
      conv_out = cl_abap_conv_out_ce=>create( encoding = 'UTF-8'  ).
      CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
        EXPORTING
          text   = gv_content
        IMPORTING
          buffer = gv_xtext.
    attach the first file
        conv_out->convert( exporting data = gv_xtext ).
        cl_wd_runtime_services=>attach_file_to_response(
        i_filename  = 'file1.XLS'
        i_content   = gv_xtext
        i_mime_type = 'application/msexcel'
        i_in_new_window = abap_true
        i_inplace       = abap_true ).

    you could add an apostrophe ' in front of all fields that you want exported as a text.
    this will ensure no truncating is done.
    it's excel that does the shifting, so you can't really interfere from the SAP side

  • Display Leading Zeros in bex query

    Hi,
    I am new to BI and need to display leading zeros in bex report.
    There is an info-object billing number which is of type CHAR. The values, 00001 - 00010 has been given in the CSV file.
    when i generate the same in IP, the leading zeros are mentioned, but the same is not appearing in the bex query.
    I have tried ALPHA conversion but this has no affect on the output.
    How to achieve the same??
    thanks in advance for the answers

    Hi,
    To answer your question in detail, there is a  conversion routine at infoobject level( Tab- general ), that determines how the values are displayed in the front end. For ex, alpha conversion routine takes away the leading zeros when you display the value in query. ( 0001 displayed as 1 )
    Assuming this is custom infoobject, I would suggest you to remove the conversion routine from the infoobject. This will help you in displaying leading zeros in the report.
    However, you have to ensure that all the values loaded for this infoobject is properly alpha converted ( packed with leading zeros ) by adding a field routine in the transformation. This will avoid same values getting stored with different internal formats like 01,001 etc.
    Hope this explains.
    Thanks.

  • Need leading zeros to fill the front of a 10 character parameter being passed-HELP!

    I have a prompt 10 character parameter that some people forget to insert the zero at the beginning of the number. ex.(they type "594468010", suppose to be "0594468010").  How can I fill in the leading zeros for them after they type in the prompt box?  My prompt comes from a command.  Here is a sample of the where clause:  WHERE DB.ID_NUMBER = '{?I_IDNO}'
    I tried to use LPAD('{?I_IDNO}',10,0), it works with plsql, but not when I run the crystal report.
    Does anyone have any ideas?  thanks for your help in advance!

    a) you can always use your database specific cast / convert function to convert the text field into a number for the purpose of record selection. then change the prompt type to numeric. crystal commands are database specific so you'd want to check your database help on what specific syntax to use for the cast / convert in the command.
    b) the other choice to leave the command & prompt type alone & use an edit mask on the command prompt...this would then force the end user to enter the leading zeroes as the edit mask would force a certain length on the entry. so in the crystal field explorer edit the prompt and put in an edit mask of 000000000 for example if you wish to force the end user to enter 9 numeric characters.

  • Leading zero's on form showing up in SAP PROD but not in SAP QC

    We created an Adobe form as a copy of PM_COMMON_JOBT via SFP and made some enhancments. We tested the form and program very properly and on the form in QC the order number is showing without leading zero's. We didn't touch the sap standard data binding for this field AUFNR. Now we moved it to our PROD environment and all of a sudden the order number is showing with leading zero's. Program , form and interface are exactly the same in both env and we cannot find the problem that is causing the difference. Somebody any clue?

    Hi Angleique,
    Have a look inside the Function Module generated for the form , search in the include xxxxF01 the line where the value is written into the XML file .
    Search more particulary lines where routine "%OUTPUT" is call and make a copy of the line please.
    Regards

  • Leading Zero in BAR Code - IS Retail

    Hi There,
    Using the tcode mm43 for an Article when I look for EAN (Bar Code ) then I can see leading zero in the screen eg.05010928072244 but whn I look  in the table MEAN-EAN11 it stores only  5010928072244. And in the Zreports also it is showing without leading zero . From where the leading zero comming in the mm43 screen ??
    Any idea ?  I will appreciate your help .
    Cheers ..
    Sunanda

    Hi Phani ,
    Thank you very much for your prompt reply !! Now I understood and problem resolved.
    Thank you very much once again. Points rewarded!!
    Cheers..
    Sunanda

  • XLR and Items with leading zeros

    Forum,
    Does anyone know the best way, in XL Reporter, to deal with Item Codes that have leading zeros?
    Scenario:
    We have 2 items:  001, and 0001
    When I pull these into XLR and generate the report, Excel converts the numbers to "1"
    I have tried every cell format I can think of and have not come up with a solution.
    "Text" type returns the XLR syntax (=ixDimGet("ITM", "ItemCode")), "General" returns the "1" without leading zeros, etc.
    Anyone have a solution?
    Thanks in Advance,
    Brad Windecker

    Hi Brad,
    Seems like there's not direct solution for this one, function ixDimGet automatically removes leading zeros.
    Anyway, I would suggest that we utilize Macro Programming for this one.
    Here is a short macro code I developed, assuming the item Code is placed in Column B and the macro will automatically extract the parameter from the function call in Column B (=ixDimGet("00002") and place it Column C.
    Just place the ff code in SHEET1. The macro is utilizing the Worksheet Change event
    Const colItemCode = 2
    Const colShowCode = 3
    Private Sub Worksheet_Change(ByVal Target As Range)
       If Target.Column = colItemCode Then
         strFormula = Target.Formula
         If Left(strFormula, 9) = "=ixDimGet" Then
            itemCode = Mid(strFormula, 12, Len(strFormula) - 13)
            With Range(Chr(64 + colShowCode) & Target.Row)
               .NumberFormat = "@"
               .Value = itemCode
            End With
         End If
       End If
    End Sub
    Constant colItemCode is referring to the column of the Item Code
    Constant colShowCode is referring to the column for the exracted Item Code
    Hope this help
    Laurence Resubal

  • Random numbers with leading zeros

    Hi,
    I want to generate random numbers with leading zeros.
    My code so far:
    import java.util.Random;
      Random r = new Random();
      int randInt = r.nextInt(100);My aimed output is something like:
    0012 or 0123 ...
    Thanks
    Jonny

    Hi,
    sorry for not getting it with NumberFormat. I used DecmailFormat instead:
    DecimalFormat df = new DecimalFormat("0000");
    df.setMinimumIntegerDigits(4);
    df.format(r.nextInt(40)));This gave me the right output, like 0013 or 0123 ...
    Thanks
    Jonny

  • Sequence with leading zeros

    Hi,
    I have a column SRL_NUM with datatype varchar2(4 char).I have 3000 records in this table and want to make SRL_NUM like 0001,0002,0003 etc.It should increment but entire 4 characters should be filled.How do i do this?
    Thanks.

    user10698496 wrote:
    I have a column SRL_NUM with datatype varchar2(4 char).I have 3000 records in this table and want to make SRL_NUM like 0001,0002,0003 etc.It should increment but entire 4 characters should be filled.How do i do this?Why is the sequence a varchar2 and not a number?
    IMO it makes more sense to use a native number data type as that is what a sequence generator outputs - and then render that as a text string with leading zero as "+how it looks like+" is a presentation layer issue.
    I would not use a numeric sequence generator to generate unique strings as surrogate key values. There are inherent problems with mixing data types like that.

Maybe you are looking for

  • How do I remove someone elses DRM locked library from my itunes library?

    So, a long time ago I let someone upload their ipod into my computer so they could save their music and I could benefit from their library.  However, it turns out they didn't remember or immediately have the password for the tracks they were uploadin

  • How can I remove photos from an album on my iPhone?

    Hey I am trying to remove photos on my iphone from an album from but when I remove the photos from the camera roll album they got removed in all the others albums so is htere any way to remove the pics from an album only and not from all the albums?

  • Payment terms with cutoff

    I have a customer that has several BP's with a cutoff of the 20th.  So for example Invoice             Due Oct 15             Oct 30 Oct 22             Nov 30 Nov 12            Nov 30 Nov 21            Dec 30 Any ideas, Karl

  • Unable to Move Message (Sent Mail / Exchange)

    I have 4 messages in my SENT mail folder on my iPhone 3GS (v3.1.2) that I simply can't get rid of. When I try and delete them (either one at a time or as a group), I get the message: "Unable to Move Message(s): The message could not be moved to the m

  • Photoshop Elements 9 Out of Bounds Tut

    I need help creating a layout with Out of Bonds with creating my own templet please. I am up to the point of placing it in my layout, but am lost after this. Thanks, Charlene