How to detect TAB SPACES?

Hi Experts,
I'm reading an external file that contains TAB Spaces via GUI_UPLOAD, I transferred it into an internal table and tried to replace the TAB spaces with my line of code below, but still it doesn't work. Below is my line of code and also the structure of the external file that I'm reading, how can I detect TABS? code CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB doesn't work.
Many Thanks in advance
    LOOP at i_tab into wa_tab.
      REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB IN wa_tab WITH ','.
      WRITE /: wa_tab.
       MODIFY i_tab FROM wa_tab.
    ENDLOOP.
Structure of my external file
NAME1                                            Country                     Language                    NAME2                 
Daiwabo Information System               JP         Japanese                販売推進本部 ソフトウェアセンター
Hitachi Electronics Services               JP         Japanese             DS本部 DS第2営業部 日本ユニシス様担当営業
NRI Network Communications, Ltd       JP         Japanese             インターネット事業部
NEC Nexsolutions, Ltd.                       JP         Japanese             資材部
Nippon RAD Inc.                               JP         Japanese             第一事業本部 インフラ事業部
Softbank BB                                       JP         Japanese             MD2/SW2/1課
Marubeni Infotec                               JP         Japanese             商品MD2部 ソフトウェア1課
BR,
LBJ23
Edited by: LeBron23 on Jul 29, 2009 1:04 PM

Hi,
    How you have passed values in GUI_UPLOAD FM
Check below link
CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                      = lv_file
*     FILETYPE                      = 'ASC'
     has_field_separator           = 'X'            " -----> Just set this flag and see in debugger after upload, values must be in required fields of Itab
*     HEADER_LENGTH                 = 1
*     READ_BY_LINE                  = 'X'
*     DAT_MODE                      = ' '
*     CODEPAGE                      = ' '
*     IGNORE_CERR                   = ABAP_TRUE
*     REPLACEMENT                   = '#'
*     CHECK_BOM                     = ' '
*     VIRUS_SCAN_PROFILE            =
*     NO_AUTH_CHECK                 = ' '
*   IMPORTING
*     FILELENGTH                    =
*     HEADER                        =
    TABLES
      data_tab                      = lt_ebidclt
   EXCEPTIONS
     file_open_error               = 1
     file_read_error               = 2
     no_batch                      = 3
     gui_refuse_filetransfer       = 4
     invalid_type                  = 5
     no_authority                  = 6
     unknown_error                 = 7
     bad_data_format               = 8
     header_not_allowed            = 9
     separator_not_allowed         = 10
     header_too_long               = 11
     unknown_dp_error              = 12
     access_denied                 = 13
     dp_out_of_memory              = 14
     disk_full                     = 15
     dp_timeout                    = 16
     OTHERS                        = 17
  IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
Regards
Bala Krishna

Similar Messages

  • How to delete tab-space in one go?

    Hello,
    On every paragraph on my layout, I have this unwanted tab-space.
    How do you remove tab-space in paragraphs (Marked as Red) in one press without affecting the other tab-space (Marked as Green)?
    I have an idea of using the Find feature but I don't know what the code for tab-space is.

    rapirap wrote:
    I used ^t then changed it to nothing but the 5 consecutive tab-spaces get changed too.
    You were in the wrong part of the find/change window. See the following screenshot:
    If you are in the Text portion of the window, ^t is the code to find any tab. If you replace that with nothing and click the Change All button, it will find every tab in your search area and replace it with nothing. You can't do what you want in one step that way.
    If you click on the GREP portion (as Ellis had suggested):
    …the ^t code won't work, because GREP is different from Text. In GREP, \t is the code for tabs, and the ^ before the \t tells it to look for only the tabs at the beginning of paragraphs. You could hit the Change All button and it will remove all of the tabs at the beginning of paragraphs, but not the 5 tabs in a row.
    That said, why do you want 5 tabs in a row? If you describe what you are trying to do, I'm sure there are much better ways to work. And you may also want to think about not using two spaces after a period. That's an old typewriter rule that hasn't been recommended since desktop publishing began many years ago.

  • How to define the tab space in the PL/SQL editor with Oracle Forms 4.5?

    When I use the PL/SQL editor with Oracle Form Builder, I found the tab space is very long that affects my programs readability quite a lot. Then, I tried to use Textpad to type my program. It looks fine with Textpad. However, when i tried to 'cut and paste' my code back to the PL/SQL editor, all tab spaces (approx. 8-character) are detected and the program looks awful again ~~ Would any one help me to solve my mentioned problem?
    Thanks for any advices!

    In 4.5 you cannot change this. In Forms 5.0 and above there is a registry value DE_PREFS_TABSIZE which allows you to set a value for the tabsize.

  • How to delete extra tab space in the flat file??

    Hi all,
        I have a flat file on presentation server which has 20000 records. In this file there are 16 fields and distance between each field is different and what I want is each field should have one tab space between another.
    Thanks & Regards
    Jerry

    Hi,
    I dont want to join the fields but to seperate them with a tab space.
    Regards
    Jerry

  • I don't see my hard drive in finder , i wanna know how much hard drive space i have.

    i don't see my hard drive in finder , i wanna know how much hard drive space i have.

    Check the settings in the General and Sidebar tabs of the Finder's preferences.
    (67071)

  • How to detect USB Flash Drive name in LabVIEW

    Hi there
    I was looking for how to detect a USB Flash Drive name in Labview
    appearently every time i insert USB Flash Drive in a computer, windows assign it a different name
    once "J:" and sometimes "M:"
    Is there anyway to obtain USB Flash Drive name programmatically in Labview ?
    Because in my program an user shouldn't be able to access HDD Drives except his USB Flash Drive (for inserting some file ...)
    thank you and excuse me for my poor english 

    I was able to get the demo.vi to load, but it could not load the other two because there is no block diagram associated with those.  I'm not sure why this is.  I haven't had any issues with other llbs before.
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home

  • How to detect a selected row in ALV GRID

    Hi,
    Can anyone tell me how to detect and catch an event when a row is selected in an ALV GRID?
    I would like to catch such event when the end user presses Ctrl + Shif + Space bar.
    Thank you and best regards.
    Hassane.

    Hi,
    Use this wiki link, to have a checkbox with all the records in ALV Grid and to process those selected records at a user command, as per the requirement.
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/alv%252bgrid%252bdisplay%252bwith%252bcheckbox%252bto%252bprocess%252bselected%252brecords%252bat%252bruntime
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • ANSWER: HOW TO DETECT Java Plugin from JavaScript

    I created a new topic because the questions about
    how to detect Java Plugin in browsers are scattered
    thoughout this forum.
    Basically you need to employ two approaches for IE and NS.
    In IE you need to try to instantiate a small applet
    (not your production applet) in order to see if browser
    can do it. if the browser can do it, you can make a
    call applet from JavaScript in order to find version of
    JRE (as well as a host of other things).
    In NS you can write a simple JavaScript which will
    interrogate the browser for all plugins installed. Then
    ypu can make a desicion whether to pass execution to
    the next(or generated) page which hosts your applet,
    or ask the user to download/install a plugin.
    I ecourage everybody to host a plugin on your site
    rather leave default link to it which is generated by
    html converter.
    In order to run sample,
    Prerequisites:
    Java Plugin 1.3.
    If you have a different version of plugin,
    substitute hardcoded plugin version in JavaScript for
    value that you have.
    1. compile java file
    2. put class file in the same directory with html file
    3. load html file into the browser.
    4. press "Check Java Plugin.." button
    5. see it work
    6. examine code
    7. uninstall plugin
    8. repeat steps 1 - 4
    9. see it work
    10. install plugin.
    Sample code follows:
    **********************HTML FILE BEGIN***********
    <HTML>
    <HEAD>
    <!-- Generated by Kawa IDE -->
    <TITLE>Detect Java Runtime</TITLE>
    </HEAD>
    <SCRIPT LANGUAGE="JavaScript">
    var browsername;
    function doNetscape()
    for (i=0; i < navigator.plugins.length; i++)
    for (j = 0; j < navigator.plugins.length; j++)
    if(navigator.plugins[i][j].type == "application/x-java-applet;version=1.3")
    alert("You are running Netscape with Java Plugin 1.3.0 - OK");
    return;
    alert("You are running Netscape\nPlease, install Java Runtime Environment 1.3.0");
    function doMicrosoft()
    var applet = document.myApplet;
    if(applet == null)
    alert("You are running Microsoft Browser.\nPlease, install Java Runtime Environment 1.3.0");
    return;
    var version = applet.getJavaVersion();
    if(version == "1.3.0")
    alert("You are running IE, Java Plugin 1.3.0 installed - OK");
    else
    alert("You are running IE, other plugin installed - mybe OK if later that 1.3.0\nYour version: " + version);
    function getJava()
    var applet = document.myApplet;
    if(applet == null)
    alert("Please, install Java Runtime Environment");
    return;
         alert("JRE Version: " + document.myApplet.getJavaVersion());
    function checkJavaPlugin()
         browsername = navigator.appName;
         if(browsername.indexOf("Netscape")!= -1)
              browsername="NS";
              doNetscape();
         else
              if(browsername.indexOf("Microsoft")!=-1)
                   browsername="MSIE";
                   doMicrosoft();
              else
                   browsername="N/A";
                   alert("Unknown browser: " + browsername);
    </SCRIPT>
    <body>
    <Strong>Check Java Plugin</strong>
    <OBJECT id="myApplet" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
         WIDTH = 1
         HEIGHT = 1 >
         <PARAM NAME = CODE VALUE = "DetectPluginApplet.class" >
         <PARAM NAME="scriptable" VALUE="true" >
         <embed type="application/x-java-applet;version=1.3"
              code = DetectPluginApplet width = 2 height = 2 MAYSCRIPT = "true" >
         </embed>
         </EMBED>
    </object>
    <FORM>
         <INPUT TYPE="button" value="Get Plugin Version in IE" onClick="getJava()">
         <INPUT TYPE="button" value="Check Java Plugin in NS and IE" onClick="javascript:checkJavaPlugin()">
    </FORM>
    </BODY>
    </HTML>
    **********************HTML FILE END***********
    ***************APPLET FILE BEGIN***********
    import java.awt.*;
    public class DetectPluginApplet extends java.applet.Applet
         public void init()
              add(new Label("DetectPluginApplet"));
    public String getJavaVersion()
    return System.getProperty("java.version");
    **************APPLLET FILE END************

    Try following java script, it works on new browsers (NS 4+, IE5+). For IE you have to enable 'ActiveX objects creation' in security options.
    var agt=navigator.userAgent.toLowerCase();
    var is_major = parseInt(navigator.appVersion);
    var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
    && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
    && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
    var is_nav4up = (is_nav && (is_major >= 4));
    var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
    var is_ie5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) );
    var is_ie5_5 = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.5") !=-1));
    var is_ie6 = (is_ie && (is_major == 4) && (agt.indexOf("msie 6.0") !=-1));
    var is_ie5up = (is_ie && (is_major == 4)
    && ( (agt.indexOf("msie 5.0")!=-1)
    || (agt.indexOf("msie 5.5")!=-1)
    || (agt.indexOf("msie 6.0")!=-1) ) );
    var pluginDetected = false;
    var activeXDisabled = false;
    // we can check for plugin existence only when browser is 'is_ie5up' or 'is_nav4up'
    if(is_nav4up) {
    // Refresh 'navigator.plugins' to get newly installed plugins.
    // Use 'navigator.plugins.refresh(false)' to refresh plugins
    // without refreshing open documents (browser windows)
    if(navigator.plugins) {
    navigator.plugins.refresh(false);
    // check for Java plugin in installed plugins
    if(navigator.mimeTypes) {
    for (i=0; i < navigator.mimeTypes.length; i++) {
    if( (navigator.mimeTypes[ i].type != null)
    && (navigator.mimeTypes[ i].type.indexOf(
    "application/x-java-applet;jpi-version=1.3") != -1) ) {
    pluginDetected = true;
    break;
    } else if (is_ie5up) {
    var javaVersion;
    var shell;
    try {
    // Create WSH(WindowsScriptHost) shell, available on Windows only
    shell = new ActiveXObject("WScript.Shell");
    if (shell != null) {
    // Read JRE version from Window Registry
    try {
    javaVersion = shell.regRead("HKEY_LOCAL_MACHINE\\Software\\JavaSoft\\Java Runtime Environment\\CurrentVersion");
    } catch(e) {
    // handle exceptions raised by 'shell.regRead(...)' here
    // so that the outer try-catch block would receive only
    // exceptions raised by 'shell = new ActiveXObject(...)'
    } catch(e) {
    // Creating ActiveX controls thru script is disabled
    // in InternetExplorer security options
    // To enable it:
    // a. Go to the 'Tools --> Internet Options' menu
    // b. Select the 'Security' tab
    // c. Select zone (Internet/Intranet)
    // d. Click the 'Custom Level..' button which will display the
    // 'Security Settings' window.
    // e. Enable the option 'Initialize and script ActiveX controls
    // not marked as safe'
    activeXDisabled = true;
    // Check whether we got required (1.3+) Java Plugin
    if ( (javaVersion != null) && (javaVersion.indexOf("1.3") != -1) ) {
    pluginDetected = true;
    if (pluginDetected) {
    // show applet page
    } else if (confirm("Java Plugin 1.3+ not found, Do you want to download it?")) {
    // show install page
    } else {
    // show error page
    }

  • How much hard disk space remains?

    Sorry, the Missing Manuel for Lion isn't available until the end of the month, but I have a lot of basic questions.
    With Snow Leopard when i opened a Finder window at the very bottom of the window pain was information on how much memmory was being used by whichever folder I had opened.  I know I can hit Tab to have a window pop up and tell me, but I liked that old feature built into the Window.  Is there a way to change the setting back so that when I open a finder window I get a reading on how much hard disk space is being used by X file? 

    Select Show Status Bar from the Finder's View menu. As far as space used by any one file that is listed under the Size column in the Finder when using List View.

  • How to use tab key with JTextArea to shift focus

    Hi
    My problem is simple as whenevr i use tab key in my JTextArea, instaed of shifting focus to next component, it adds a tab space to my text.
    How do i shift focus out of my JTextArea.
    Ashish

    you can also redefine the textarea's TAB Key behaviour. The tutorial has a good example for that - better than i would be able to describe :-)
    look at http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html

  • Sapscript - Paragraph Format - Tab space Issue

    Hello Experts,
    I'm facing issue with the Tab Space Alignment in the Paragraph Format.
    I'm giving these values for a Paragraph Format Tabs:
    Tab  Position:
    1: 0,10 CH
    2 :3,50CH
    3: 6,50CH
    12: 76,00CH
    Inspite of reducing the TAB position for 5th Tab; it is still aligning a bit far.
    And whenever the Description (Field 3) is longer; all the Values are pushing towards right.
    Alignment is not getting adjusted. How can I make this as Fixed?
    Here's the screenshot:
    Please advise.
    Thanks & Regards,
    Sowmya

    Hi,
    For Standard Text, Paragraph format will be applicable from Standard Styles which will be creating in Transaction code SE72 and apply that Paragraph Format to Text in Standard Text transaction code SO10 then the Paragraph format will be applicable. And transport the Created Style in SE72 to Quality and Production Systems.
    Apply the Created Paragraph format created in SE72 to text by below steps:
    So10>Provide text>Click on CHANGE>Click on MENU FORMAT>Change Style->Double click on STYLE created in SE72-->Apply the newly created Paragraph Format to text in So10
    Edited by: Venkatmani29 on May 2, 2011 12:43 PM

  • How to manage the space between a table and its title?

    Have tables where titles are very close to the main text and need a couple of points to separate these elements. How to reshape this space?
    1. Titles were separated by a return that is not  visible...  (any code is revealed by ID)
    2. When a Return is inserted after the title, nothing happens aparently, but this return is now visible and could be used as a «paragraph space after» value:
    3. A solution could be Grep to catch the end of paragraph assigned to titles to insert a return;
    but Grep only catches the right border of the table (the yellow mark shows the big blinking cursor);
    Grep cannot see the end of paragraph in the tables's title.
    It another method?
    Basically, how to modify the space between a table and ists title

    I think you and Bob are not in synch here.
    Bob suggested that you could use paragraph spacing, but for that to work you do need to use separate paragraphs for the title and table, which you don't seem to be doing. Using GREP to find the end of the paragraph only works if there IS and end to the paragraph. As far as I know there is now meta-character to use in Find/Change that would allow you to find a table and insert a paragraph break ahead of it, but I bet it could be scripted.
    I'm not quite sure what you were trying to find in the GREP you posted. Did you actually have a paragraph return inserted already after the title? In that case you only need to redefine the style for that paragraph to add the space (or redefine the style for the paragraph that holds the table itself). You don't need the GREP. But the reason it does nothing is that you've found a location -- the end of the paragraph, but haven't found any actual text to modify. To do anything you would need to use something like .$
    But back to NOT having a separate paragraph... If you put the cursor in any table cell and go to Table Options > Table Setup tab you'll see fields to set space before and after the table that should do what you want. That was the second part of what he posted.

  • How to find out how much hard disk space is available

    how to find out how much hard disk space is available

    Right Click on your Mac Hard Drive Icon and Choose  Get Info 
    Look at Available...
    If your Mac Hard Drive is not visible on your Desktop...
    Goto...
    Finder > Preferences > General Tab > and Check Hard Disk.

  • HT201364 how do i make space on my startup disk?

    how do i make space on my startup disk?

    Here are some general tips to keep your Mac's hard drive trim and slim as possible
    You should never, EVER let a computer hard drive get completely full, EVER!
    With Macs and OS X, you shouldn't let the hard drive get below 15 GBs or less of free data space.
    If it does, it's time for some hard drive housecleaning.
    Follow some of my tips for cleaning out, deleting and archiving data from your Mac's internal hard drive.
    Have you emptied your Mac's Trash icon in the Dock?
    If you use iPhoto or Aperture, both have its own trash that needs to be emptied, also.
    If you store images in other locations other than iPhoto, then you will have to weed through these to determine what to archive and what to delete.
    If you are an iMovie/ Final Cut user, both apps have their own individual Trash location that needs to be emptied, too!
    If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
    Delete any old or no longer needed emails and/or archive to disc, flash drives or external hard drive, older emails you want to save.
    Look through your other Mailboxes and other Mail categories to see If there is other mail you can archive and/or delete.
    STAY AWAY FROM DELETING ANY FILES FROM OS X SYSTEM FOLDER!
    Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
    Again, archive to disc, flash drives, ext. hard drives or delete any old documents you no longer use or immediately need.
    Look in your Applications folder, if you have applications you haven't used in a long time, if the app doesn't have a dedicated uninstaller, then you can simply drag it into the OS X Trash icon. IF the application has an uninstaller app, then use it to completely delete the app from your Mac.
    To find other large files, download an app called Omni Disk Sweeper.
    http://www.omnigroup.com/more
    Also, Find Any File
    http://apps.tempel.org/FindAnyFile/
    Download an app called OnyX for your version of OS X.
    http://www.titanium.free.fr/downloadonyx.php
    When you install and launch it, let it do its initial automatic tests, then go to the cleaning and maintenance tabs and run the maintenance tabs that let OnyX clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
    Typically, iTunes and iPhoto libraries are the biggest users of HD space.
    move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
    If you have any other large folders of personal data or projects, these should be archived or moved, also, to the optical discs, flash drives or external hard drive and then either archived to disc and/or deleted off your internal hard drive.
    Moving iTunes library
    http://support.apple.com/kb/HT1449
    Moving iPhoto library
    http://support.apple.com/kb/PH2506
    Moving iMovie projects folder
    http://support.apple.com/kb/ph2289
    Good Luck!

  • HT201364 how do i make space on my start up disk

    How do I make space on my start up disk to allow for updates?

    You should never, EVER let a conputer hard drive get completely full, EVER!
    With Macs and OS X, you shouldn't let the hard drive get below 15 GBs or less of free data space.
    If it does, it's time for some hard drive housecleaning.
    Follow some of my tips for cleaning out, deleting and archiving data from your Mac's internal hard drive.
    Have you emptied your iMac's Trash icon in the Dock?
    If you use iPhoto, iPhoto has its own trash that needs to be emptied, also.
    If you store images in other locations other than iPhoto, then you will have to weed through these to determine what to archive and what to delete.
    If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
    Delete any old or no longer needed emails and/or archive to disc, flash drives or external hard drive, older emails you want to save.
    Look through your other Mailboxes and other Mail categories to see If there is other mail you can archive and/or delete.
    Other things you can do to gain space.
    Once you have around 15 GBs regained, do a search, download and install OmniDisk Sweeper.
    This app will help you locate files that you can move/archive and/or delete from your system.
    STAY AWAY FROM DELETING ANY FILES FROM OS X SYSTEM FOLDER!
    Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
    Again, archive to disc, flash drives, ext. hard drives or delete any old documents you no longer use or immediately need.
    Look in your Applications folder, if you have applications you haven't used in a long time, if the app doesn't have a dedicated uninstaller, then you can simply drag it into the OS X Trash icon. IF the application has an uninstaller app, then use it to completely delete the app from your Mac.
    Download an app called OnyX for your version of OS X.
    When you install and launch it, let it do its initial automatic tests, then go to the cleaning and maintenance tabs and run the maintenance tabs that let OnyX clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
    Typically, iTunes and iPhoto libraries are the biggest users of HD space.
    move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
    If you have any other large folders of personal data or projects, these should be archived or moved, also, to the optical discs, flash drives or external hard drive and then either archived to disc and/or deleted off your internal hard drive.
    Good Luck!

Maybe you are looking for

  • How can I make a 3D cube using only Flash CS4?

    Looking for a tutorial on how to make a 3d cube. The best one I found was how to make a book, which is three sides short of a cube. If worse comes to worse I think there's a way to take two identical movie clips with three sides each and pivot them a

  • When i sync my iphone i cant find my photos anywhere on my computer? help:

    i have a notebook pc windows vista and when i sync my iphone it tells me my photos are being synced but i cant find them anywhere on my computer! ive been looking for the past 2 weeks.. its taking me hours and i jus dont know where they are! its driv

  • RMI Client Code Issue

    Hello, Here is my client side RMI program: import java.rmi.*; public class MyRemoteClient { public static void main(String args[]) { MyRemoteClient mm = new MyRemoteClient(); mm.go(); public void go(){ try{ MyRemote service2 = (MyRemote) Naming.looku

  • Project Organisations

    I am setting up project organisation hierarchies in release 11. Basicaly i have expenditure organisations which correspond with sets of books (operating unit = legal entity = SOB.)It is multi-national so I need one SOB per country. In terms of projec

  • FXML: Sizes relative to screen size

    Hi, I am currently trying to set up a PerspektiveTransform which is somehow relative to the Stages size. Is there any way of accessing the stages, size or will i have to inject this via the FXMLLoader? greetings, andreas