String-Line Extension

Friends,
   Can anyone of you resolve the below issue.
I am having a field called rec in an internal table.
I am passing a string to this field which might run for
few lines. To consider this line extension I am using the
extension character "-".
The code is given below.
data : source type string.
data : begin of itab occurs 0,
         rec type string,
       end of itab.
       itab-rec = 'ksjdksjdkjskjd'
                   -'lkskldlskdlksldklskd'
                   -'sdsdsdsds'.
       append itab.
       itab-rec =
'MangoApplejhfkkghhkglkjl;ghkjl;ghkjlkgh;ljkl;;jkl;ljk;'.
       append itab.
       write  source.
       loop at itab into itab.
          concatenate source itab-rec into source.
       endloop.
       write source.
On execution of below code, I am getting the following error
   Unable to interpret "ksjdksjdkjskjd" as an number.
What might be the problem friends.
Regards,
Usha

Hi Usha,
but you can condense the gaps:
with:
itab-rec = 'ksjdksjdkjskjd
-lkskldlskdlksldklskd
-sdsdsdsds'.
CONDENSE itab-rec NO-GAPS.
APPEND itab.
regards Andreas

Similar Messages

  • Create line extension between two SPA-3102

    I`m having problems to create a line extension between two SPA-3102
    I have one SPA-3102 connected to an analog PBX system with IP 192.168.0.201, and the other SPA-3102 with analog phone and IP 192.168.0.200
    I succesfully setup them to make a call from the first to the second
    But I couldn`t setup them to make a call from the second (192.168.0.200) and give me the dialtone of the PBX connected to the first SPA-3102 (192.168.0.201).
    I could setup a hot line on the second SPA-3102 (192.168.0.200) and call to 192.168.0.201, but it doesn`t take the line to hear the pstn dialtone.
    I saw many answers about this problem, but no one resolve the problem, i have the latest firmware. please, anyone could help me and if it`s possible to work please send me all the configuration needed.
    Thanks again

    Hi Jeremy,
    I have a similar problem, I have one PSTN line (say Line1) with free minutes to mobiles, so its good for outgoing calls. The other line (say Line2) which i have is acually VoIP but it comes with its own hardware (magicJack if you have heard) so I can't use a SIP client and have to use the supplied Hw client, but it does give me an option to connect any normal phone to this magicJack (i suppose that would make it a fxs port). Now this magicJack is cheap for other people to call me.
    I want to find a solution so that all the calls I receive on Line2 get forwarded to my mobile number via Line1. And if I receive any calls on Line1 they should be treated normally (my home phone rings). Do you have some idea how I can achieve this with minimal spend? Thanx
    Atif

  • How can I re-organize String lines

    Hello My String consists of random lines. Every line has an priority number. Example of a String:
    Done     id     pri     created          finished     description     
         000     1     2006-12-11     -          job     
    x     001     2     2006-12-11     -     do this     
         002     3     2006-12-11     -          work
    x     003     0     2006-12-11     -          some
         004     2     2006-12-11     -          thing
         005     1     2006-12-11     -          reads
         006     0     2006-12-11     -          here
    Every "token" is seperated by \t (done \t id \t ....\t 000 \t 1 \t 2006-12-12 \t...)
    How can I organize the String and save it to another String so that pri-values are in a descending order:
    Done     id     pri     created          finished     description     
    002     3     2006-12-11     -          work
    x     001     2     2006-12-11     -     do this     
    004     2     2006-12-11     -          thing
    000     1     2006-12-11     -          job     
    005     1     2006-12-11     -          reads
    x     003     0     2006-12-11     -          some
         006     0     2006-12-11     -          here

    I'm trying but I don't know what I'm doing
    import java.io.*;                
    import java.util.*;                    
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    import java.util.Comparator;
    public class Start {
    public static void main(String[] args) throws IOException {
    sort();
    public static void sort() throws IOException  {
         class Work implements Comparable {
         String id;
         int pri;
         String d1;
         String d2;
         String job;
         public Work(String id, int pri, String d1, String d2, String job){
              this.id = id;
              this.pri = pri;
              this.d1 = d1;
              this.d2 = d2;
              this.job = job;
         BufferedReader reader = new BufferedReader(new FileReader("Tehtava.txt"));
         //BufferedWriter writer = new BufferedWriter(new FileWriter("Tempo.txt"));
         String lookingFor3 = "-";
         String line = null;
         while ((line = reader.readLine()) != null) {     //---------------z
                   String[]result = line.split("\t");
                   List tasks = new ArrayList();
                   if (result[4].equals(lookingFor) == true) {     
                   tasks.add(new Work(line));     
                   continue;
                   public int getpri()     {
                   return pri;          }
                   public int compareTo(Object o)     {
                   Work otherWork = (Work) o;
                   return this.getpri().compareTo(otherWork.getpri());     }
              Collections.sort(tasks); //-------------------x
              System.out.print(tasks); //------------------x
              //reader.close();
    }I don't know what but Where and I'm getting errors like:
    <identifier> expected
    for lines ------------x
    illegal start of type:
    for line -------------z

  • Can anyone point a good string class extension ?

    Does anyone know of a string class extension for
    actionscript.
    I am looking for some of the stuff that Tcl/Tk can do such as
    lindex, lreplace, lsearch etc ..
    Thanks for the time.
    Sean.

    These are all TCL/TK list commands.
    You might want to look at the Array class.

  • How can you use a format string to make all information in a string line up and stack up?

    I am trying to post data on screen using "format into string" and make all data line up into one indicator string

    Not exactly sure what you are looking for. Could you elaborate, or post a screen shot of what you are trying to accomplish. I would hate to give you an answer based on my interpretation of your problem.

  • Scanning... and Mulitple String lines

    My text file that I want to scan looks like this format:
    Name of Student
    Test Answers (True or false)
    Example:
    Joe Smith
    TFTFTFFTFFFTFFTFFTFTTFF etc..
    Jane Sims
    FTFTFTTFFTTFFTFFFTFTFTF etc..
    The issue is - I know how to scan the data of my textfile. However I am dealing with Strings on two lines.
    I want to compute the True and False answers, by tallying them up.
    But my real question is this.
    How can I seperate the detection of the line with the name, and the line with the True & false answers.
    import java.util.*;
    import java.io.*;
    public class TureFalseTest {
         public static void main(String[]args) throws FileNotFoundException {
         System.out.println("This program computes the results of students from the test");
         Scanner input = new Scanner(new File("answers.txt"));
         while(input.hasNextLine()){
              String questionResults = input.nextLine();
              // this is the part that is getting me troubled. 
         public static int[] computeAnswers (String questionResults) {
              int[] questions = new int[70]
                    // going to continue on with my arrays and what not.Below is what I got, I know that input.nextLine(); will start scanning each line in the text document, line-by-line.
    I want to run my array/caclulations only on the True & False answers of every student.
    But i'm not understanding
    If someone could give me some pointers or tips, that will be greatly appreciated.

    accident 2nd post.
    Edited by: theendgame on Nov 18, 2008 6:29 PM

  • XML Document to String - Line Separator problem

    I�m facing a problem with line separator while converting a Document object to String.
    Scenario: I get an input XML having line separator say \n (hex: 0A).
    When I create the output XML using Transformer, the line separator is still \n.
    I have a requirement which makes me convert the transformed Stream into a Document.
    When I try to get the String/bytes from the Document, my line separator is now �\r\n�(hex 0D0A), which is my system�s System property �line-separator�.
    I want to keep the line separator same as that was in input string. So, if the input has the separator has \n, output should have the separator as �\n� and if the input has it as �\r\n�, output should have the same.
    i.e. my hex output should match the hex input.
    Any pointers in the direction are welcome.
    Thanks in advance.

    Can I infer that the parser has changed my document
    line separators when I load it into a Document?
    If yes, is there a way to prevent that from
    happening?I don't really know. Since the XML recommendation says that a parser "MUST" do line-break normalization, I would expect that it does. And I wouldn't design systems that use specific non-XML-approved line endings as a feature, either.

  • Adding AP Line extension fields to GL postings

    I am trying to get an extension field that I have added to an AP Invoice Line to show on the resultant line in the GL. As a standard extension field there is no option to do this but I have seen on an earlier version that someone had added a script to a field that allowed it to be reflected on the resultant GL line (in the Self-Enablement system, 319968, when it was version 1411).
    Please could someone share how this can be achieved.
    Many thanks
    Alastair

    HI,
    You do not need any enhancement for it.
    If you have the access key then just add the additon line-size 255 to the repport statement.
    Regards,
    Ankur Parab

  • Spa3000 or Spa3102 back to back telephone line extension instrucations

                  Ive got a set of spa3000`s and spa3102 and what I want to do is use them just to extend a telephone line about 2 miles and pick it up on the other end and use a anolog phone. I will be using a set of maxstream 900mhz ethernet radios for the ethernet bridge. I have pulled everything from the net that I could find on the configuration but no go on the 3000`s. Most info is written for the 3102`s but it pretty close.  Can someone point me in the right direction on what Iam missing, for instance  you ip both but theres no mention on weather dhcp server should be on or off. Also do I use a straight or cross over cable when tying into my bridges.  Any help would be apprecated. Right as this writing Iam going to unbox the 3102`s and give them a shot but would really like a detailed configuration plan if any one has one
    Thanks  ahead of time

    I think this is what you are looking for.
    PBX Port Extension over LAN using SPA 2102 / 3102
    https://supportforums.cisco.com/thread/2149426
    The steps are basically the same for most Cisco SPA devices. 
    make sure you update the firmware to the latest.
    I don't know about your converters/extenders, but test the extension seperately from the layer 1 connectivity, so you don't have to troubleshoot multiple issues.
    hope it helps,
    Dan

  • Need advice on negating a whole string line with regular expression

    Hi All,
    I am not able to ignore / get rid of the following line even though my Java 6 (Windows XP) String Pattern matching has not taken cater for it:
    *% Cleared: 61%*
    Below is the existing Java String Pattern matching in the simple program:
    Pattern pattern = Pattern.compile("(^.*[A-Z][a-z]*){1,2} \\d{0,4}/?\\d{0,4} ([A-Z][a-z]*){1,2} St|Rd|Av|Sq|Cl|Pl|Cr|Gr|Dr|Hwy|Pde|Wy|La \\d br [h|u|t] \\$\\d+,\\d+|\\$\\d*\\,\\d+,\\d+ ([A-Z][a-z]*){1,}.*$");This pattern is working for valid strings.
    The following pattern has included "^(?!.*\.\.).*$" into the existing one but had no luck still:
    Pattern pattern = Pattern.compile("^(?!.*\.\.).*$|((^.*[A-Z][a-z]*){1,2} \\d{0,4}/?\\d{0,4} ([A-Z][a-z]*){1,2} St|Rd|Av|Sq|Cl|Pl|Cr|Gr|Dr|Hwy|Pde|Wy|La \\d br [h|u|t] \\$\\d+,\\d+|\\$\\d*\\,\\d+,\\d+ ([A-Z][a-z]*){1,}.*$)");This picked up other rubbish including "*% Cleared: 61%*".
    I am looking for a single regular expression that applies to the whole line.
    I am quite new to regular expression but has read through Regular Expressions Cookbook (Oreilly - 2009) and is still not familiar with advance functions such as lookahead / lookbehind...
    Your assistance would be appreciated.
    Thanks,
    Jack

    Hi Winston,
    I am still digesting the material from the regular expression book and will take sometime to become proficient with it.
    It seems that using groupCount() to eliminate the unwanted text does not work in this case, since all the lines returned the same value. Ie 3 posted earlier. This may be because the patterns are complex and only a few were grouped together. Otherwise, could you provide an example using the string posted as opposed to a hyperthetic one. In the meantime, at least one solution have been found by defining an additional special pattern “\\A[^%].*\\Z”, before combining / intersecting both existing and the new special pattern to get the best of both world. Another approach that should also work is to evaluate the size of String.split() and only accept those lines with a minimum number of tokens.
    Anyhow, I have come a crossed another minor stumbling block in the mean time with the following line, where some hidden characters is preventing the existing pattern from reading it:
    o;?Mervan Bay 40 Boyde St 7 br t $250,000 X West Park AE
    Below is the existing regular expression that works for other lines with the same pattern but not for special hidden characters such as “o;?”:
    \\A([A-Z][a-z]*){1,2} [0-9]{0,4}/?[0-9]{0,4}-?[0-9]{0,4} ([A-Z][a-z]*){1,2} St|Rd|Av|Sq|Cl|Pl|Cr|Gr|Dr|Hwy|Pde|Wy|La [0-9] br [h|u|t] \\$\\d+,\\d+|\\$\\d*\\,\\d+,\\d+ ([A-Z][a-z]*){1,}\\ZIs it possible to come up with a regular expression to ignore them so that this line could be picked up? Would also like to know whether I could combine both the special pattern “\\A[^%].*\\Z” with existing one as opposed to using 2 separate patterns altogether?
    Many thanks,
    Jack

  • Telephone line Extensions over Ethernet via SPA112 ?

    I saw a recommendation elsewhere and on this forum suggesting the SPA112 coul be used to extend phone lines (same number) to other rooms over ethernet.
    Here is what I want to do:
    I have exsiting IP based phone service provided by a company called Talkit (Canada). Talkit provided at Grandstream Handytone 286 ATA and I connected a cordless Nortel analog phone to it. Works ok.
    Now I want to put an extension of the same phone number into another room. I purchased two SPA112s to try to do this. I have established ethernet connectivity and I can see and configure both units.
    I connetced one unit to the phone line that runs from the Handytone ATA to my analog phone to one SPA112 and a second old analog phone in the second room to the second SPA112.
    I made the following config changes:
    I upagraded the FW to the latest version on both SPA112 units.
    I set
    Register to No
    Use OB proxy to No
    Make calls wo reg to Yes
    Ans call w/o reg to Yes.
    I was able ot get a dial tone on the second phone but when I dialed out to my cell phone I geta busy signal.
    Another issue is that the SPA112 connected to the Handytone ATA seems to stay OFF Hook.
    Please advise... or point to a document where I can read about how to set these up.
    I am assuming that I do not need to register the spa112s to my service provider proxy bu that rather that two spa112s will simply pass the incoming and outgoing calls thru.
    John

    John,
    Both the Grandstream Handytone and the SPA112 are what are called "ATA" devices. "ATA" stands for Analogue Terminal (or in some literature, Telephone) Adapter. That's to say that an ATA device converts from an IP-based voice connection to an analogue voice connection.
    The port that you connect your cordless phone to on the Grandstream ATA is, technically, referred to as an FXS port. An FXS port provides dial tone and battery voltage on an analogue line. The compliment to an FXS port, is an FXO port, which expects to have dial tone and battery voltage provided to it. Both the Handytone and the SPA112 have only FXS ports, so they all provide dial tone and battery, and thus are not compatible to be connected directly together.
    You would need a device (such as the previously mentioned SPA3102) which features an FXO port on one end of the ethernet connection, and one of your SPA112 ATA's on the other end of the ethernet connection.
    If I'm understanding what it is you're trying to accomplish correctly (and I believe I do), there are a couple suggestions I would make.
    First off, you can contact TalkIt, and explain that you wish to configure your own ATA device with their service, in addition to the one they provided you. They would need to provide you the SIP proxy and credential information for your phone accounts with them. You would then need to program that information into the SPA112 that is in the second room. As long as that SPA112 can get internet connectivity, it should be able to register with their call server, and you should be able to make and receive calls at the same number as the Handytone ATA, providing TalkIt will allow multiple registrations to the same account.
    Secondly, you can contact TalkIt, and explain that you wish to have them provide you an additional ATA configured with the same users / phone numbers as your current unit. Some providers are less prone to provide you with the information required to configure your own device, but they may be open to you purchasing / renting an additional unit that they provide, and configuring it in such a way that it shares the same number as the original ATA device they provided you with.
    Thirdly, you can purchase a SIP Gateway device, such as the SPA3102, which would provide an FXO port which you could connect to the FXS port of the Handytone ATA device, and then configure one of your SPA112's to make an IP connection to the SPA3102, and connect an analogue line to that SPA112.
    If you're not overly familliar with IP Telephony, I'd probably recommend getting a second ATA from TalkIt, as it would come preconfigured, and you would only have to plug it in for it to work. If they're willing to provide you with the SIP information, you may be able to configure one of the SPA112's that you already have, and just use that to connect to their service. This would probably be the least expensive option, but would require you to perform the configuration of the additional ATA device yourself. The third option, which most closely resembles your initial request, would not involve TalkIt, however it would involve purchasing the additional SIP Gateway device, as well as perform all of the configuration yourself. I, personally, have not configured a SIP Gateway device before, so I don't know exactly how involved that configuration is. Configuring the SPA112 shouldn't be too bad, but again, I've never configured it in exactly the way you're describing, so I can't say for sure. I've only ever used them to connect to a full IP PBX, or else a Hosted service, similar to the TalkIT provided Handytone unit.
    Hope this provides a little direction, and wasn't too confusing.
    Randy

  • Lync 2013 the keys you entered i don't recognize queue main line extensions

    I have Lync 2013 on premise with Exchange 2013 on premise as well. 
    For some reason, when someone dials our main line and I answer, the system goes call was not recognized.
    Also, All of a sudden when someone dials in from internally/externally into my main line and dials an extension after the auto attendant kicks in, the system prompts " The keys you entered I dont recognize"
    If I dial by last name, it does work and it works if I dial # and then enter the extension.
    Please help..

    Hi,
    Did the issue only happen for one number of for all phone numbers?
    From the description above, it can be the issue of the mistake of the dial plan for the number. Please double check if the Exchange set the correct normalization rule for the number and then test the issue again.
    Best Regards,
    Eason Huang
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Eason Huang
    TechNet Community Support

  • Multi line strings - line continuation chars?

    Hi all,
    I'm not sure if this is a daft question or not...
    I need to put a multiline select statement into a string variable.
    ie I would like to put the sql below into a variable.
    select bla bla bla bla bla
    from bla
    where bla
    strvar := 'select bla bla bla bla bla
    from bla
    where bla';
    Is there a standard line continuation character that I can put at the end of each line to enable me to put the single quote and the beginning of line 1 and the end of line 3? Or do I need to quote each line front and back and cat them together as separate strings?
    rgds
    John

    Hi John,
    See if this can help you
    declare str varchar2(10000);
    begin
    str := 'select bla bla bla bla bla '||chr(10);
    str := str||'from bla '||chr(10);
    str := str||'where bla '||chr(10);
    dbms_output.put_line(str);
    end;
    SQL> /
    the output should be like below :
    select bla bla bla bla bla
    from bla
    where bla
    Anyway new line character is chr(10) for SQL.
    Thanks
    Kailash K Agarwalla,
    Delhi, India.

  • Unity Connection 8.5 Speech Connect to Tie Line Extensions

    I have a customer with UC 8.5 that has requested to use Speech Connect.  After configuration, Speech Connect works for all extensions except for those that exist on an Avaya PBX.  The Avaya PBX is configured as an h.323 gateway on the CUCM 8.5.  Users can dial the Avaya extensions from their Cisco IP phones.  However, when they dial the voice-enabled directory handler and dial using their voice, they hear music for a couple of seconds, then the message "Wait while I transfer your call," and then silence for up to 5 seconds.  After that the call drops.  CUCM traces show the calls from Speech Connect are hitting the same pattern, 2XXXX, that is used by the Cisco IP phones to make successful calls to the Avaya phones.  That pattern points at an h.323 gateway which is the Avaya, in its route list.  DNA also shows that the calls should succeed.
    I can't see any reason why these calls shouldn't succeed unless the Avaya has some kind of a problem with the UC in the call flow.  Does anyone know what is going on here?

    I don't see any problem, just don't check the option to ignore additional input when configuring caller input on digit 1
    By default CUC will give you 1500 ms to dial for any other digits before trying to route the call with whatever you dialed.
    HTH
    java
    if this helps, please rate
    www.cisco.com/go/pdihelpdesk

  • Line Extension with Power Injector: yes or no?

    the lenght of the lan segment between switch and access point is cca 150m.
    my quiestion is:
    can i solve this problem with inserting Power injector (AIR-PWRINJ3) between, so resulting shema would be:
    AP--70m(PoE)--PowerInj--80m(normal LAN)--sw2950
    is it Injector in the function of L2 switch or is it only injecting power into normal 100m limited segment?
    thx for answer

    I tried this before, did not work. I think it's passive.
    You have to use a fiber(MM does the trick and it's cheap, you dont need really clean terminaison for 100baseFX, mecanical with do)
    or put a hub somewere.

Maybe you are looking for