How to remove the characters from first and last position of a string?

Hi all,
I am creating an application where i am using vb script to export the data to excel.
In the excel sheet most of the values are entered with double " quotes.
so the entry looks like ""http://www.sap.com"".
Notice that it is starting with "" and not " . so the vb takes it as a line feed and shows an error .
It will be great if anybody can tell me how to remove these set of quotes ,so that the value should come as "http://www.sap.com" . A sample code wil be of great help.
Thanks in advance,
mahima.

Hi,
To modify you excel you have 2 options, 1) you can filter them in excel itself by using filter ...etc in excel itself. or 2) you can do it by using ABAP code.
Below code may help you.
Get the data from Excel to Internal table using FM :
call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
  exporting
    filename                = 'c:\temp\test.xls'
    i_begin_col             = 1
    i_begin_row             = 1
    i_end_col               = w_values
    i_end_row               = 10
  tables
    intern                  = t_alsmex_tabline
  exceptions
    inconsistent_parameters = 1
    upload_ole              = 2
    others                  = 3.
Now replace all unwanted "" in internal table with space.
replace all occurrences of '""' in itab-field with '   '.
Again you can export to Excel using
  call function 'GUI_DOWNLOAD'
    exporting
      filename                = lv_file
      filetype                = 'DAT'
      append                  = ' '
      write_field_separator   = 'X'
    tables
      data_tab                = itab.

Similar Messages

  • How to remove HP ink from hands and fabrics

    How to remove HP ink from hands and fabrics
    Please note that the ink used by HP is a water based ink that will clean easily. Here’s how to remove ink stains from hands and fabric.
    NOTE: IMMEDIATELY rinse the stained area with COLD water, and then follow the appropriate instructions.
    To remove ink stains from hands:
    Wash hands with an abrasive (gritty) soap. Note: It may take several washings.
    To remove ink stains from white fabrics:
    If ink from an HP Inkjet print cartridge spills on white fabric, use chlorine bleach and cold water to remove the stain, but act quickly.
    CAUTION: Use only COLD water. Warm or hot water will "set" the color into the fabric.
    To remove ink stains from colored fabrics:
    Use sudsy ammonia—a dilute mixture of detergent and ammonia—and cold water. Act quickly and test on an inconspicuous area first.
    CAUTION: Use cold water. Warm or hot water will "set" the color into the fabric.
    WARNING: Do not mix ammonia and chlorine bleach; this creates a toxic gas!
    Although I work for HP, my post's and replies are my own opinion. I am not an official HP spokesperson.
    ****Please click the Kudos Thumbs up if you would like to say thanks****
    ****Please mark Accept As Solution if it solves your problem****

    This should be a sticky
    Although I work for HP, my post's and replies are my own opinion. I am not an official HP spokesperson.
    ****Please click the Kudos Thumbs up if you would like to say thanks****
    ****Please mark Accept As Solution if it solves your problem****

  • How to remove the "0" from the sum cell when the other cells are empty?

    Hello!
    When I use the formula to sum the values from a few cells, there is a zero in the sum cell when the other cells are empty.
    My question concerns how to remove the 0 from the sum cell when the cells that will be summed are empty.
    Thank you!
    /Johan Strömbeck

    Hi,
    Please try the Mr. Laurence's suggestion first. Then, we may try the other workarounds.
    1) Go to Excel option> Advanced>Display Option for this worksheet> Uncheck Show a zero in cells that have zero value
    2) Go to Conditional Formatting>New Rule>Format only cells that contain> Value equal to 0> Format the color with white
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support

  • How to remove the Char.from one Operating Concern

    Hi Guys,
    How to remove the Char. from one Operating Concern.
    I have created one Char. (WWDOC) and moved to Operating Concern (OOCC). Operating Concern is in red status.
    Now, i want to remove that new assigned Char. (WWDOC)from the operating concern (OOCC). I did't find any option in the menu also.
    Appreciate your help.....
    T&R
    VVR

    Hi Sasi,
    Iam not able to push back that char. from my operating concern. In help it is given you have to delete the data contents in the table before pushing back. Please let me know if any other option available.
    Thanks for your reply.
    VVR

  • How to Remove the underline from the selection screen parameter

    How to remove the underline from a selection screen parameter ?

    >
    Anoop Menon wrote:
    > hi Avinash,
    >
    > I am not able to understand the use of the 'comment line properly.
    >
    > The last part of the statement which says modif id is confusing.
    >
    > Please clarify..... I am unable to activate my code when I put the selection screen commebnt statement.
    Use this and update it to your requierement !
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN COMMENT 1(30) comm.
    PARAMETERS test(1) type c.
      SELECTION-SCREEN end of line.
    INITIALIZATION.
      comm = 'test'.

  • How to remove the KF from cube .

    How to remove the KF from cube , I am not able to .
    When I drag the KF outside the structure , I am not able to .
    Regards,

    Hi Jain,
    If data is available in the Info cube we can not Edit,delet and Add a infoobject.But In BI7.0 we a option called remodeling in administration Tab.By this we can add a new infoobject or we can delet it nad we can edit it also.
    i hope this will help u
    assigne point if this help u
    Regarding
    JT Goud

  • How to remove the icloud from my pc

    how to remove the icloud from my hp notebook. I removed the program but yet the device manager is still there.

    says I cloud not been backed upin 12 weeks. plug in lock and connect to interent, but I cant get on internet and cant do anything while this box is there

  • How  to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL)

    Hi Experts,
    Can you please tell me to how  to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL) when saving of the shipment document.

    shipment cost calculation only on the Leg level and not on header level. Currently a lot of confusion happened after creating the shipment cost document and found that the status is u201CBu201D.
    now we intend to define detailed specifications to how to create this new user exit to update the shipment cost relevancy at shipment header.
    The main functionality of the user exit  to be created is to remove the check from ShpmntCostsRel. (field VTTK-    FRKRL).can u pls tell how to do this.

  • How to remove the worksets from the Top level navigation for the ESS role.

    Hi All,
    I am working on enabling and disabling certain services in the ESS worksets.
    we are using EP 7.0, ECC 6.0 (NW2004s).
    When I login as a user with ESS role, I can view the changes in the overview pages. However, the worksets are still visible in the TOP Level navigation of th poral. can anyone please explain me how to remove the workset from the Top level navigation.
    Thanks for your help
    Regards
    SM

    Hi,
    Go to the ESS role via Content Admin, then double click the workset (or page or iview) and in the drop down select navigation. Then click the <i>Yes</i> radio button of the "<i>Invisible in Navigation</i>" property.

  • WebDynpro Java: how to remove blank element from Table and Dropdown.

    Hi  Folks
    In a webdynpro application,
    I created a table and witten the below code to populate the table
         IPrivateDummyView.IFirst_TableElement First_Table_Element = null;
         First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
         First_Table_Element.setF_Value("One");
         wdContext.nodeFirst_Table().addElement(First_Table_Element);
         First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
         First_Table_Element.setF_Value("2");
         wdContext.nodeFirst_Table().addElement(First_Table_Element);
    As per the code, i got 2 row in the table.
    But , i have one Empty row on top of the table ,  how to get ride of this.
    i find the same problem happening with dropdown too, where i used DDBI, i populated a the content as mention, but i initial 2 row as blank and then i have my own elements ,as per my code.

    >
    > how to remove blank element from Table and Dropdown
    >
    Change selection property of related node to from 0..1 to 1..1 (mandatory)
    Re: DropdownByIndex and empty line (Thread: DropdownByIndex and empty line )
    Re: Can the empty selection be removed from element dropdownbykey(Thread: Can the empty selection be removed from element dropdownbykey )
    Edited by: Anagha Jawalekar on Nov 18, 2008 10:28 PM

  • How to remove the bookmark from the table of contents?

    Hi everyone, I have a question:
    How to remove the bookmark from the table of contents in Captivate 6?
    Regards...

    Doug, your frustration is making you "bug" gun trigger happy. LOL
    LOL, I suppose I have.
    I believe the answer you are looking for is in the publishing preferences: under LMS advanced settings, look for the option: never send resume data.
    [can someone please confirm this - I am not at a desktop now]
    Anyhow, selecting this option will stop resume data - so the lesson will treat even returning learners as new. Hopefully, this will work for you.
    This works! Thank you again!
    *but* Why isn't Captivate asking the learner to make the choice of whether to start over or resume. It does this correctly if the lesson is published stand-alone.
    Thanks again!

  • How to remove the underline from Title of a report.

    How to remove the underline from Title of a report.
    plz tell.

    You have to go inside the title view :-)
    Regards,
    Stefan

  • How to remove the square from the icons when selecting them?

    How to remove the square from the icons when selecting them?

    hi jerry not quite sure what you mean, could you elaborate abit more please. lori

  • How to remove the Object from memory.

    Hello.
    Flash file that i made with Flex Builder uses memory too
    much.
    Look at the next example source code.
    var testCan:Canvas = new Canvas();
    this.addChild(testCan);
    this.removeChild(testCan);
    testCan = null;
    but just memory usage still goes up, is not freed instantly.
    so if i load the large flash files on my web browser,
    after 5 munites or something, the web browser is down.
    How to remove the object from memory immediately without
    delay?

    It's all about the Garbage Collector ..
    There is a nice write up here :
    http://www.gskinner.com/blog/archives/2006/06/as3_resource_ma.html

  • TS1307 My email won't send as when it was set up an extra letter was accidentally inserted in the address. I need to know how to remove the entire email address and start a fresh.

    My email won't send as when it was set up an extra letter was accidentally inserted in the address. I need to know how to remove the entire email address and start a fresh.

    Launch Mail.app, select Mail > Preferences... > Accounts and select the account you need to edit in the left column.
    The receiving information will be displayed for the selected Account, with a pop-up selector for the Outgoing Mail Server (SMTP) toward the bottom.  That selector shows which mail server will be used with this account; to send mail. 
    Click and hold on that selector, and scroll down (holding the mouse or trackpad clicked) to Edit Mail Server List... and you'll get a sheet dropping down with the mail servers listed. 
    Select the problematic mail server, and edit it using the Account Information and Advanced items on that sheet.

Maybe you are looking for

  • Photos are "damaged" once they are sent to iphone.

    Photos on my computer are fine. when they are sent to my iphone via standard sync, they become distorted. The pictures have green "blobs", black lines and "macroblocking". example. Photo on my computer. http://members.aol.com:/phansson/iphonegood Dam

  • Repairing permissions without effect

    Hello, I tried to repair with diskutility and tried to repair with Techtool Pro 5; Three times in succession and every time the report looks like the others. a Die Zugriffssteuerungsliste wurde gefunden, jedoch nicht für „private/var/root/Library/Pre

  • SQL2008R2 RSClientPrint continual reinstall prompting...seprate instance of Reporting Services

    I have this situation where users are continually prompted to reinstall the RSClientPrint for a SQL Server 2008R2 Reporting Services setup.  The reporting services databases are on a clustered install, and the reporting services themselves are on a s

  • Send sms to mobile using java

    hi All I have a simple application, whenever a particular record goes to the database I need to send an sms to a mobile. I would appreciate if anyone can help me as to what steps I need to follow to do this.Is there any java api that can help me achi

  • Backing up music before sending in for rep

    Hello,?I am the mom of a zen micro owning teenager. Thank you for any info you can share. My daughter has sent her player in once already for a "hanging" problem. She is getting ready to call again because the headphone jack is bad and getting worse