Adding a single quote

Hi
I am trying to check through a String before it is sent to the database to add in an extra single quote if a single quote is in the String, but it's not working
char singleQuote = '\'';
private static String prepareString (String SQLQuery) {
StringBuffer sb = new StringBuffer();
for(int j =0; j<SQLQuery.length(); j++) {
char c = SQLQuery.charAt(j);
//problems here
if(c.equals(singleQuote)){
sb.insert((j+1), "\'")
return sb.toString();I am getting some message about not being able to "dereference" c, but don't know what it means, nor if I am doing this right.
Anyone know how to take care of this? Also, any other common error checks that should be made before sending a query to a db?
Thanks!

Try replacing the line...
if(c.equals(singleQuote)){with the line...
if(c == singleQuote){

Similar Messages

  • Adding a single quote in the flash chart legend

    Hi all,
    I am using a following code to create a line chart.
    SELECT null link
    ,TO_CHAR(monat, 'MON-YY')
    ,ROUND(No_of_hits/1000) "No of Clicks(''000)"
    FROM
    SELECT DISTINCT TRUNC(ref_month,'MONTH') monat
    ,SUM(no_of_hits) OVER (ORDER BY TRUNC(ref_month,'MONTH') RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) No_of_hits
    FROM goodnews_hits
    WHERE ref_month BETWEEN :p77_DATE_startline
    AND :p77_DATE_endline
    ORDER BY monat;
    I get the following legend in the top region of the chart
    No Of Stories
    No of Clicks(''000)
    I need the No of Clicks to be displayed as
    No of Clicks('000)
    i.e.
    Only one single quote before 000
    Could you please tell me , how this can be achieved?
    Thanks,
    Archana

    As I said in my earlier post, I am looking for the tooltips for the Presentation tables and columns. The tooltips for these were extracted from the RPD using the externalize Strings option and these externalized strings are stored in the database.
    So I am escaping the single using a single quote both in rpd and in the database.
    Example text I have used both in the rpd and database is something like "Shipment's start time". I tried with "Shipment''s start time", " Shipment'''s start time", but it didn't work.
    Thanks!!
    Vasantha.P

  • SSAS SSRS Report Action on Cell Value w/ Embedded Single Quote Not Executing

    I have configured an SSAS 2008 R2 cube SSRS ReportAction. I'm having problems when the member value for a cell has an embedded single quote, e.g. abc's. The action displays on the context menu appropriately, but when I click on the action, nothing happens.
    For member values that do not have the single quote, the action works as designed. I've added a calculated ember to escape the embedded single quote by adding another single quote, e.g. abc''s, with no luck. Is there a resolution or workaround for this?

    Hi Mdccuber,
    According to your description, you create a reporting action in you cube, and it works fine except the members that have embedded single quote, right? In your scenario, it seems that you pass this value to the report as the parameter.
    In SQL Server Analysis Services (SSAS), when pass values to a report, multi-select parameters have to be placed into IN statement and SQL Server Reporting Services (SSRS) will do single-quote wrapping for string values automatically. In this case, the original
    value that have embedded single quote will be damaged. So this action not work. You can submit a feedback at
    http://connect.microsoft.com/SQLServer/Feedback and hope it is resolved in the next release of service pack or product.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to handle XML string with Single Quotes as a parameter to SP dynamically?

    Hi,
    I would like to know if there is a way to handle the Single Quotes in XML value when it is passed to Stored Procedure?
    I should be able to handle it without adding another Single Quote to it.
    Thanks,
    Chandra Shekar

    Hi Chandra,
    Your requirement is not precise. Based on my understanding and guessing, are you metioning something like the below sample?
    /*If the xml is generated you have no need to escape the singe quote(')*/
    DECLARE @xmlTbl TABLE (ID INT,name VARCHAR(99));
    INSERT INTO @xmlTbl VALUES(1,'Eric''s')
    INSERT INTO @xmlTbl VALUES(2,'Zhang''s')
    DECLARE @xmlDoc1 XML
    SELECT @xmlDoc1
    FROM @xmlTbl FOR XML PATH('PERSON'),ROOT('PERSONS')
    EXEC yourProcedure @xmlDoc1
    /*If your copy and paste the xml, you have to escape the single quote(') with 2s('')*/
    DECLARE @xmlDoc2 XML
    SET @xmlDoc2 = '<PERSONS>
    <PERSON>
    <ID>1</ID>
    <name>Eric''s</name>
    </PERSON>
    <PERSON>
    <ID>2</ID>
    <name>Zhang''s</name>
    </PERSON>
    </PERSONS>'
    EXEC yourProcedure @xmlDoc2
    If that is not regarding your requirement, please elaborate with more details.
    Eric Zhang
    TechNet Community Support

  • Adding Single quote in dymanic stored procedure

    Hi Everyone,
    i am using a stored procedure which prints  triggers  which is called as dynamic trigger script.
    here i am storing required table name values into M_ALL_DYNAMIC_DRIVER_TEMP 
    for ex  table: M_ALL_DYNAMIC_DRIVER_TEMP: 
    TABLE_NAME  DATA_UID_ALT1_PREFIX  IU_TRG_FLAG
    BA_ORG                ALT                                     Y              
    stored procedure is :
    create or replace
    PROCEDURE  SP_TRIGGER_SCRIPT_temp
    AS
    SQLSTR VARCHAR(4000);
    SQLSTR_ETL VARCHAR(4000);
    SQLSTR1 varchar(40);
    SQLSTR2 varchar(40);
    SQLSTR3 varchar(40);
    SQLSTR4 varchar(40);
    TABLE_NAME varchar(40);
    PK_TABLE varchar(40);
    begin
    for c in (select TABLE_NAME,DATA_UID_ALT1_PREFIX from M_ALL_DYNAMIC_DRIVER_TEMP  where IU_TRG_FLAG = 'Y'   and DATA_UID_ALT1_PREFIX  is not null )
      loop
            SQLSTR1:= c.TABLE_NAME;
            SQLSTR2:= TRIM(SQLSTR1)||'_ID';     
            DBMS_OUTPUT.PUT_LINE('-------------------------------------- START  TABLE_NAME:'||SQLSTR1 ||', DATA_UID_GEN_METHOD:ALT1 ,SHORT_TRG_BASENAME:NULL -------------------------------------------------------------');
          SQLSTR:=  'create or replace
    TRIGGER "'||TRIM(SQLSTR1)||'_IU_TRG" BEFORE INSERT  ON '||SQLSTR1||' FOR EACH ROW
      BEGIN
      If inserting then
       if :new.ROW_CHANGED_BY is NULL then                                                          
           :new.ROW_CHANGED_BY := :new.ROW_CREATED_BY;                                                   
       end if;       
       if :new.DATA_UID is NULL then                                                          
           SELECT  GENERATE_DATA_UID('||SQLSTR1||',:new.'||SQLSTR2||') INTO :new.DATA_UID FROM DUAL;                                                 
       end if; 
    end if;  
    If updating then
      if not updating(''ROW_CHANGED_BY'') then
         :new.ROW_CHANGED_BY := USER;
      end if;
    end if;
    END';
    DBMS_OUTPUT.PUT_LINE(SQLSTR);
    DBMS_OUTPUT.PUT_LINE(SQLSTR_ETL);
    DBMS_OUTPUT.PUT_LINE('--------------------------------------END OF '||SQLSTR1 ||'-------------------------------------------------------------');
    end loop;
    end;
    when i execute stored procedure out put :
    -------------------------------------- START  TABLE_NAME:BA_ORG, DATA_UID_GEN_METHOD:ALT1 ,SHORT_TRG_BASENAME:NULL -------------------------------------------------------------
    create or replace
    TRIGGER "BA_ORG_IU_TRG" BEFORE INSERT  ON BA_ORG FOR EACH ROW
      BEGIN
      If inserting then
       if :new.ROW_CHANGED_BY is NULL then                                                          
           :new.ROW_CHANGED_BY := :new.ROW_CREATED_BY;                                                   
       end if;       
       if :new.DATA_UID is NULL then                                                          
           SELECT  GENERATE_DATA_UID(BA_ORG,:new.BA_ORG_ID) INTO :new.DATA_UID FROM DUAL;                                                 
       end if; 
    end if;  
    end if;
    END
    --------------------------------------END OF BA_ORG-------------------------------------------------------------
    i want :
    statement :        SELECT  GENERATE_DATA_UID(BA_ORG,:new.BA_ORG_ID) INTO :new.DATA_UID FROM DUAL;       
    to be :       SELECT  GENERATE_DATA_UID('BA_ORG',:new.BA_ORG_ID) INTO :new.DATA_UID FROM DUAL;                                                 
    ie., function  GENERATE_DATA_UID('BA_ORG',:new.BA_ORG_ID) first parameter i want Single quote
    please help on this

    SELECT  GENERATE_DATA_UID(''' || SQLSTR1 || ''',:new.' ||
    Ramin Hashimzade

  • Adding SIngle quotes around a Colmn Name stored in a DB Field

    I know the SQL I need to execute ( It yeilds 500 rows )
    select p.DS_ID
    from dbo.v_ds p
    inner join dbo.Rpt r
    on p.DS_ID = r.PKVal
    and r.ColumnNm = 'DS_ID'
    BUT the value of r.Column in stored in a table and building it using dynamic SQL , the closest i get is
    select p.DS_ID
    from dbo.v_ds p
    inner join dbo.Rpt r
    on p.DS_ID = r.PKVal
    and r.ColumnNm = DS_ID
    Note that ther single quotes needed are missing and so I get NO rows. I've tried using the ''' + @field + ''' and cannor get it to work.
    Any ideas?

    Not sure of your try. May be you would have missed the single quote before and after as you said your closest ry result looks like below:
    and r.ColumnNm = DS_ID --Without single quotes.

  • REGEXP_LIKE help with literal single-quote

    I'm trying to write a check constraint to validate email addresses that may include an apostrophe in the email address. Such as joe.o'[email protected] Here is my sample setup:
    create table emails
    ( email_address varchar2(150)
    insert into emails values('[email protected]') ;
    insert into emails values('[email protected]') ;
    insert into emails values('joey.o''[email protected]') ;
    commit;
    sql> select * from emails;
    EMAIL_ADDRESS
    [email protected]
    [email protected]
    joey.o'[email protected]
    alter table emails add constraint email_address_format_ck
        CHECK ( REGEXP_LIKE ( email_address, '^[a-z0-9._%-]\'?+@[a-z0-9._%-]+\.mil$','c'));
    ERROR at line 2:
    ORA-00911: invalid characterIt doesn't like *\'?*
    My understanding is this means one or more single-quotes. Anyone know the correct syntax to accept apostrophes?

    Hi,
    jimmyb wrote:
    ... insert into emails values('joey.o''[email protected]') ;
    That's the correct way (actually, that's one correct way) to include a single-quote in a string literal: use 2 single-quotes in a row.
    ... alter table emails add constraint email_address_format_ck
    CHECK ( REGEXP_LIKE ( email_address, '^[a-z0-9._%-]\'?+@[a-z0-9._%-]+\.mil$','c'));Here, the 2nd argument to REGEXP_LIKE is a string literal, just like 'joey.o''[email protected]' was a string literal.
    To include a single-quote in the middle of this string literal, do the same thing you did before: use 2 of them in a row:
    CHECK ( REGEXP_LIKE ( email_address, '^[a-z0-9._%''-]+@[a-z0-9._%-]+\.mil$','c'));There were a couple of other problems, too.
    I'm sure you meant for the apostrophe to be inside the square brackets. Inside square brackets, \ does not function as an escape character. (Actually, single-quote has no special meaning in regular expressions, so there's no need to escape it anyway.)
    I'm not sure what the '?' mark was doing; I left it out.
    Of course, you'll have trouble adding the CHECK constraint if any existing rows violate it.
    Edited by: Frank Kulash on Feb 10, 2012 6:52 PM

  • Single quote used with in text data renders to inalid display

    I have the following text snipit that is coming from an Oracle database column: ...did not include 'special decontamination'. New ...
    I am putting this into a pretty standard text object.  When the report is previewed and subsequently printed as a PDF each single quote is transformed to the text string &_#_3_9_; code (without the underscores). This also occurs for quotation marks appearing as &_q_u_o_t_; and ampersands appearing as &_;_a_m_p_;
    I've tried changing the text interpretation property from none to rtf and, with a refresh, nothing changed.  It is hard for me to believe that no one else has seen this but since you can not search the forum for this string (as it converts it to the single quote) may not one has asked.
    Thanks in advance.

    Hi Don,
    The CLOB would do it. 
    Not sure there is a way around this aside from how you've already been dealing with it. 
    To simply your formula a bit, you don't need to do a loop just have it check for each of the tags like:
    stringVar TempText := {PPR_Main.CONCERNS};
    TempText := Replace (TempText, '&_#_3_9_;', "'") ;
    TempText := Replace (TempText, '&_;_a_m_p_', "&") ;
    TempText := Replace (TempText, '&_q_u_o_t_;', '"') ;
    TempText
    I agree though that there may be other tags added later on based on other characters so it could be infinite.  Try the common characters like Exclamation and Question marks. 
    Good luck,
    Brian

  • RWRUN60: Problem with parameter value containing space between single quote

    Hi All
    I'm using RWRUN60 to generate my report by following way:
    C:\orant\BIN\RWRUN60.EXE userid=DBUser/dbpasswor@db BACKGROUND="NO" BATCH="YES" DESFORMAT="pdf" DESNAME="C:\report.pdf" DESTYPE="FILE" ORIENTATION="LANDSCAPE" PARAMFORM="NO" P_REPORTID="2431" P_REPORTNAME="Report Name" report="C:\report.rdf" P_WHERE="StartDate>=to_date('2011-07-14 10-37-00','YYYY-MM-DD HH24-MI-SS')"
    When I tried to run given command above nothing was executed executed and any log didnt created.
    I found out that problem occurs when text between two single quotes contains spaces. In my case it is a parameter P_WHERE. I need to keep such format because it is part of report query.
    When I removed last parameter from command RWRUN60 successfully genereate pdf document.
    Further I added new test parameter P_TEST(it is ignored by rdf) in the end of command line following:
    P_TEST="test '11'" - rwrun60 generates report
    P_TEST="test '1 1'" - rwrun60 doesn't; generate report
    Can somebody help how to resolve given problem. Is it parsing bug or what else?

    Spaces on command lines a very often a bad idea. Get rid of them by changing the command, e.g.:
    to_date('2011-07-14:10-37-00','YYYY-MM-DD:HH24-MI-SS')

  • 3 videos' names are enclosed in single quotes which I can't get rid of

    These videos weren't from iTunes. Two came from AOL video, and I'm not sure where I got the third one. This is what I mean: http://matt.kinabrew.com/images/png/itunesannoyingsinglequotes.png
    Can anyone tell me how to get rid of the single quotes?
    I've tried three things:
    First, I tried removing the quotes from within iTunes. But playing any file put them right back.
    Next, I tried removing the quotes from within iTunes, quitting iTunes, and renaming the files, but when I would play a file, the quotes would come back.
    Then, I tried quitting iTunes, editing the quotes out of the "iTunes Music Library.xml" file, deleting the "iTunes Library" file, renaming the files in the Finder and re-importing the edited "iTunes Music Library.xml" file into iTunes. Again, playing any song put the quotes right around that file's name.
    I thought this was just an issue with a single (corrupt) file until tonight, when I added two more videos to iTunes and saw the quotes around those, too. Now I think none of the files are corrupt and that it's a bug with iTunes.
    This happens on both a Power Mac G5 and a MacBook Pro, both with all available updates installed.
      Mac OS X (10.4.8)   MacBook Pro, Power Mac G5

    sjonesmcd wrote:
    I have solved the problem by going in, tapping the cloud symbol to download them, and then deleting them. They were being stored on my device with the cloud symbol as I have been gaining storage space by doing this. it is taking forever, but it is finally getting rid of them. Weird little glitch.
    Not a glitch. That is the way this works. Once you tap that cloud symbol to start downloading a movie, it sort of remains in limbo until you totally download it and then you can delete it as you found out.
    Why it works this way is beyond me, but that's how it works on my iPad and that is exactly how it wrks on any iPad - at least as far as I know. I have seen many users describe this very same behavior that you did and once their videos were completely downloaded, they could then be deleted.

  • Converting single quote to double - help please

    Hi,
    Please suggest me how to insert the dml_stmt into the table column..
    I have the field called dml_statement field, in that user will give the dml statements..
    my program will pass this argument to the procedure and that procedure will insert the data into the table called dml_table(in dml_stmt column)
    For simple insert stmt, data is inserting into the table but for the dml whoes having the single quote, it does not getting inserted into the table...
    Let me explain this more clearly:
    1)ENTER THE DML_STMT : INSERT INTO TABLE_NAME(COL1) VALUES(3434);
      ABOVE DML IS GETTING INSERTED BY THE PROCEDURE INTO THE TABLE DML_TABLE:
    2)ENTER THE DML_STMT : INSERT INTO DML_TABLE(DML_STMT) VALUES('3424');
      ABOVE DML IS NOT GETTING INSERTED BY THE PROCEDURE, I HAVE FOUND
      THE PROBLEM TOO BUT CANT OVERCOME THIS.BECAUSE OF THE SINGLE QUOTE PROCEDURE
      CANT INSERT THE ABOVE DML INTO THE DML_TABLE
    {code}
    I tried with replace function, but i cant pass the dml_stmt field
    something like this :
    select replace('INSERT INTO DML_TABLE(DML_STMT) VALUES('3424');','chr(39)','"') from dual;
    i know above qry wont work, but i should do something like above to solve this ....
    Please suggest me how to solve this prob ..
    Regards,
    Jame                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Satyaki De,
    Its nice to meet you again, i am adding the one more parameter for the create_trigger parameter called dml_stmt.
    There is a problem while inserting the dml_stmt which is having the single quote(')....please refer the screenshot for more details..
    SQL> exec create_trigger('UPDATE','ADDREP','INSERT INTO TAB')
    PL/SQL procedure successfully completed.
    SQL> SELECT * FROM ADDREP;
    EMPID                ENAME                    SALARY        AGE         PH
    400                  JAME                      60000         24   99292992
    SQL> UPDATE ADDREP SET SALARY = 70000
      2  WHERE EMPID = '400'
      3  /
    1 row updated.
    SQL> SELECT * FROM AUDIT_ADDREP;
    COL_NAME             TAB_NAME             OLD_VALUE            NEW_VALUE                      DML_STMT
    SALARY               ADDREP               60000                70000                          INSERT INTO TAB
    SQL> exec create_trigger('UPDATE','ADDREP','INSERT INTO TAB VALUES('PROBLEM')');
    BEGIN create_trigger('UPDATE','ADDREP','INSERT INTO TAB VALUES('PROBLEM')'); END;
    ERROR at line 1:
    ORA-06550: line 1, column 65:
    PLS-00103: Encountered the symbol "PROBLEM" when expecting one of the following:
    . ( ) , * @ % & | = - + < / > at in is mod not range rem =>
    .. <an exponent (**)> <> or != or ~= >= <= <> and or like
    between ||
    The symbol ". was inserted before "PROBLEM" to continue.{code}Abt [create_trigger|http://forums.oracle.com/forums/thread.jspa?threadID=705952&start=30&tstart=0] procedure
    how to pass dmlstmt to the procedure which is having single quote ?
    Regards,
    Edited by: Jame on Sep 20, 2008 1:17 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Date without single quotes in SQL Where clause turns to 00000000. Why?

    The below program works in 4.6c but does not in ECC 6.0, the issue is the date actually turns to 00000000, debug shows the internal table as having the correct value that was inserted but st05 trace shows that the variable is holding the value 00000000, this works fine when the date is put inside single quotes but the actual program where I have this issue does not warrant adding single quotes. Has someone come across this situation. Any help is appreciated!
    data v_vbeln like vbak-vbeln.
    data: begin of where_tab occurs 0,
          s_date(20) type c,
          end of where_tab.
    where_tab-s_date = 'audat = 19971106'.
    append where_tab.
    select vbeln into v_vbeln from vbak where (where_tab).
      write:/ v_vbeln.
    endselect.

    HI,
    data v_vbeln like vbak-vbeln.
    ******data: begin of where_tab occurs 0,
    ******s_date(20) type c,
    ******end of where_tab.
    ******where_tab-s_date = 'audat = 19971106'.
    ******append where_tab.
    ***** The above statements are not needed for the select query.
    ******select vbeln into v_vbeln from vbak where (where_tab).
    Your select query can be re-written as
    select vbeln into v_vbeln from vbak where audat eq '19971106'.
    write:/ v_vbeln.
    endselect.
    and if your requirement is to check for multiple dates then,
    append them to a select-options and rewrite the select query as
    select vbeln into v_vbeln from vbak where audat IN S_DATE. " S_DATE is your select-options
    Regards
    Sharath

  • Single Quotes Issue??

    Hi,
    Bit of a strange one - hopefully there is a really simple answer that I will kick myself over….!
    I have a query which references a partioned table. When the following condition is added, the query references the intended partion - evident by looking at the explain plan:
    and e.dac_end_date >= '20080401'
    (VARCHAR2 (8 Byte))
    However, I want to automate my script. When I use a variant of the Sysdate function (detailed below) and execute the query, the explain plan indicates that Oracle is doing a full table scan….. Not good!!
    e.dac_end_date >= to_char(add_months(sysdate,-1),'YYYYMM')||'01'
    I'm guessing this may have something to do with single quotes… I have done a forum trawl, and tried some of the suggestions (char(39)||, three quotes surrounding the 'YYYYMM', concatenating single quotes around the format mask etc) - but I either get an error message, or the query just bombs out after a few seconds.
    Anyone have any ideas or suggestions??
    Any help greatly appreciated….
    Cheers in advance.

    Firstly - thanks for the replies.
    Just to confirm - the table I'm referring too is ranged partioned on a varchar2 column that contains a date-as-a-string. I didn’t build the tables - I'm not a developer. I'm just trying to automate a query that I have written which on the surface appears to do a full table scan when I use the Sysdate function (instead of a hard coded date).
    'Bomb out' - bad grammar, apologies. What I meant was the query appears to complete within a few seconds, however does not return any data.
    peticH - I was using 'Session Browser' within Toad to monitor the query (running in another session) - I didn’t realise that even in this instance Explain Plan provides expected rather than actual behaviour. I'll do some reading up on the 'Trace' functionality, to try and see what is actually happening.
    Cheers guys.

  • Importing excel files - problem with single quote

    When importing excel files using 1.5, I can't get data with single quotes (') imported.
    When I run the insert statement given in SQLPlus I get "ORA-01756: quoted string not properly terminated", which is different than the error that SQL Developer gives me (see below).
    Also, I have a numeric value shown without a thousands comma-separator in the XLS file that I'm trying to load into a varchar2 field. But, the insert statements have added a thousands comma-separator which I don't want.
    REM Error starting at line 1 in command:
    REM INSERT INTO table (ID, NAME, CODE)
    REM VALUES (2427407, 'Ed-u-care Children's Center', '73,000');
    REM Error at Command Line:2 Column:37
    REM Error report:
    REM SQL Error: ORA-00917: missing comma
    REM 00917. 00000 - "missing comma"
    REM *Cause:   
    REM *Action:
    One last thing, TOAD gives a way to automap columns chosen from XLS to the columns in the database. It sure would be nice to have this functionality in SQL Developer.
    Thanks,
    Steve

    Did you consider both to be bugs (i.e., single quote issue and thousands comma separator issue)?
    Thanks

  • How can I will declare the symbol u2018 (Single Quote) in the report

    Hi ,
    Could you please tell me how can I will declare the symbol u2018 (Single Quote) in the report.
    My requirement is that I have concate the data with single quote and after that I have to store the data in to an internal table and I have to download the data in the form text file in the presentation server.
    For example :
    Let the below data I want to download into the presentation serve in the format of text file by storing in internal table.
    Assume all are constants:
    1st line : abcu2019add
    2nd line :  defu2019gef
    Thanks in advance.

    Hi Jyothi,
    Thanks for the quick reply .
    I can agree with you are point but My requirement is like this I am explaining clearly.
    I have declared the internal table like this.
    DATA: BEGIN OF OTAB OCCURS 0,
             LINE (9024),
           END OF OTAB.
    So I have to append the each line item into the internal table.
    So I am explaining what the data I have to append
    Ist line contains
    'UNBUNOC:2020308u2019 where 020308 I will get the  date from reguh table
    2nd line contains:
    'DTM+20020510' where the 20020510 will be reference document number from the table reguh.
    So I want to declare a constant 'UNBUNOC:2
    2nd the date from reguh table
    And another constant u2018
    So that I can concate all the three and I can put into string and I will append into internal table and I can download the data into the presentation server.
    Please let me know if you need any more clarification regarding my requirement.
    Thanks in advance.

Maybe you are looking for

  • Splitting up iTunes library

    OK, here's the situation. My daughter and I have been keeping separate iTunes libraries on the same computer for several years. Although we have several songs in common, most are either hers or mine. All of the songs live on an external HD. Now she h

  • IPhoto won't import pictures from CD-R.

    The CD's were made on the first model of the dome 15 " G4 iMac combo drive to free up space on the 60G hard drive quite a few years ago.  At the time I checked and the photo's came up from all the CD's in iPhoto.  I now have a iMac 23" with an i3 pro

  • Front Row won't load....

    Whenever I try to start Front Row (whether double-clicking the item in the Applications folder, or using the Remote), the screen fades to black like FR is about to start, but then goes right back to my desktop. My MacBook Pro (and it's included remot

  • LR4.1 RC - D90 Video Import Failure

    I receive the following error when importing video files from a D90: "The movie files contain no video frames". The files import fine in 3.5.

  • Itunes sync deletes downloaded apps

    Getting very frustrated with my new iPad and iOS 5.1. I've tried searching and can't find any assistance. Here's my situation, brand new iPad running iOS 5.1, exising iTunes (updated to the version of the week). I am not set up to use iCloud for anyt