Reading the name without comma

Hi All,
          I got a query to resolve.
the issue is that for example i have a name with a comma (sudheer,)
i need to read only the name sudheer without the comma .what is the logic for this.
Good answers will be rewarded points.
Thanks in Advance.
Regards,
sudheer.

d@mn me and my inability to correctly type in words.
but yes i ment File.
It has a listFiles() method and an isDirectory()
method. With those two and a loop you should be able to do it.
Lima
Message was edited by:
LimaBravo -- trying to type d@mn without it being filtered :S

Similar Messages

  • My iPod Shuffle won't read the name of playlists or songs

    I got my first iPod shuffle 4GB... everything's working fine but just when I click and hold the centre button it won't tell me the names of the song... or when I try to change playlists it will tell me "playlist 1... playlist 2... playlist 3" instead of the names of the playlists. Though I can see the names in my iTune.
    Can anyone help me...? Thanks a lot.. I was actually really looking forward to this name-reading function..
    Cheers

    Thank you so much - yes it will read the names of the songs and playlist now! Thanks a lot for your help, without your answer i probably won't be able to figure it out myself. Cheers!

  • Reading the name of a directory

    Hi all,
    I need to read the names of all files and directories available in a folder stored on my PC.
    I would be thankful if someone could point be to a class and its method which is best suited for this to be done.
    thanks in advance,
    @debug

    d@mn me and my inability to correctly type in words.
    but yes i ment File.
    It has a listFiles() method and an isDirectory()
    method. With those two and a loop you should be able to do it.
    Lima
    Message was edited by:
    LimaBravo -- trying to type d@mn without it being filtered :S

  • Need helpcreating a script to read the name of a folder and adding that name into the permissions of that folder

    Need help creating a script to read the name of a folder (which is the AD Username) and adding that name into the permissions of that folder.
    I have over 100 folders which I need to add the AD user to read and write to their own folder
    Hope you guys understand what I mean

    Just to add, Mac in intergrated into AD and all I need is help in creating the script
    Thanks

  • I used IE first time in 3 years. I was able to READ the screen without my glasses. Didn't realize Firefox FONTS were so 'weak' Tried most everything to get Firefox fonts to look as bold and clean. Failed. Ideas please.

    I used IE first time in 3 years. When I did I was able to READ the screen without my glasses. Didn't realize Firefox FONTS were so 'weak' Tried most everything to get Firefox fonts to look as bold and clean. No luck.
    How do I get Firefox to DISPLAY a font as clear and clean as Word? I choose different fonts in Firefox and sizes and nothing really happens.

    You can use an extension to set a default font size and page zoom on web pages:
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *Anti-Aliasing Tuner: https://addons.mozilla.org/firefox/addon/anti-aliasing-tuner/

  • How to read the "Name" field from document library in workflow?

    Hi,
    The task I'm trying to accomplish looks pertty simple: I need to read a value of the item's "Name" field inside the workflow. I try to do it using LookupSPListItem and GetDynamicValueProperties activities. I can get value of the "Title"
    field, also I created custom field and can read it too.
    But the "Name" field always comes empty.
    I guess I need to use some tricky syntax or this field has some different "internal name"?
    The workflow is designed in VS 2013.

    Thank you. Looks correct, since when I enter this path (FileLeafRef) into GetDynamicValueProperties
    and change Entity Type to list of documents it changes to Name
    automatically.
    But somehow it doesn't work too. (:
    I also tried LinkFilenameNoMenu and LinkFilename
    - same result.
    EDIT: Solved. :)
    Looks like FileLeafRef is not loaded by default by LookupSPListItem, so you have to pass this property name via
    Properties collection. The bad news is that in this case other properties won't be loaded if you didn't add them to this collection.
    Anyway, it works. :)

  • How to read the name of .csv file from a particular folder using Oracle.

    Gurus,
    I have a folder called 'data_dir' in Oracle Server and it contains 10 different .csv files and the name of the each file is being suffixed by date and time(24 hrs format).
    First i need to read all the file names then i have to process those files by UTL_FILE to load the data into a relational table.
    Is there any mechanism is available in Oracle to read the file names?
    (In this case all the 10 different csv file names)
    If so, then please help me accomplish this.
    Thanks in advance.
    Regards,
    Venugopal.K

    Is there any mechanism is available in Oracle to read the file names?Sounds to me like you need to use External Tables (*not* utl_file).
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/et_concepts.htm

  • Reading the contactlist without PIM ,RecordStore and APDU

    Hi,
    I was playing with a commercial midlet and i discovered something strange.
    The midlet does not import the contact list using PIM ,the recordstore functions or the APDU protocol!
    How is that possible?
    I tried for example to use the RecordStore.listRecordStores() but of course I can't see the SIM contact list.
    Hence the window that allow the user to choose from the contact list has an icon which is not present in the icon directory of the jar and nor in the resource bin.
    Is it calling a special funciont that enable a window to select the contacts?
    Anybody can help me to understand this trick?
    The midlet is configured as:
    MIDP 1.0 and CLDC 1.0
    The package imported are:
    lcdui and recordstore

    I found that the JSR 185 specification allow this functionality but only for MIDP 2.0.
    Reading the documentation:
    Devices usually have a contact list, a place where the user may enter the names and phone numbers of people they know. To simplify building text messaging applications, JSR 185 requires that this phone book be available to populate TextField or TextBox components.
    But where can I find an example on how to use that fantastic component?

  • Read the name of a parent node of a (static) Tree UI in WebDynPro Abap

    hi Experts,
    I have a tree control UI that has two levels of nodes from the Root node. Year & Month. Inside the Month Node there is always only one leaf that is called Current Schedule. User clicks on Current Schedule to view the Current Schedule. This could be any month's Current Schedule of the User's choice.
    Thus, I need to know which month's current schedule is chosen by the user. My tree UI is an adaptation from WDT_TREE example from Std SAP example programs. For the chosen month to be known, I have to go up in the context node hierarchy by one level? (something like, get_parent of) from the current leaf. I am not sure how would i do it. Any pointers would be greatly helpful. I tried to pick up ideas from couple of tutorials and bunch of forum posts but I did not get anywhere.
    The key to my requirement is just going up one level in the tree and get to know the 'name' of that node. That will tell me the Month of the User's choice.
    Thanks in advance for your helpful answers/pointers

    Thanks Bala Duvvuri,
    Could you please elaborate a bit more on your tip. I am a fledgling OO abapper not 'really' knowing as much OO as I should ..!!
    By the way,I found out, I could apply the same OnAction method in the WDT_TREE example shown at the final leaf level to the node level as well to read the text of Month Node. It worked out and it meets my purpose with a rider..!
    In order to get this Month node text for the selected 'Current Schedule' leaf, User have to click on the Month Node that opens the Current Schedule Leaf. If they clicked on the triangle beside the node, it still opens the Month Node to reveal the Current Schedule leaf, but the Month name wont be captured until User expressly clicked on Month Node first or the Folder Icon associated with it..!!
    In other words, User cannot click on the left side triangle;  if they did to reach the Current Schdule, the program wont work properly. This is no good, though i could talk my way through with the User to accept this. But technically i know it is possible to know the month name from a given Current Schedule leaf in the tree,though dont know how ..!!
    Your bit more detailed reply would help me implement the more elegant solution than pushing the user to accept what i did.
    As I await your reply i shall try to pick up from your tip.
    In the meanwhile my tree has grown ..!! to have two more nodes, in which the contents need to be dynamically populated. Guess I am in for a long haul with the Tree UI
    Looking to hear more. Thanks heaps again.

  • Read the names of the files in ABAP program that runs in the background

    Hello,
    I have a program that uploads information from file on application server.
    What I can't figure still is how to get the <b>names </b>of the files that are in <b>specific directory</b>.
    There is an other application that will post those files into this directory. I wont to get file names and file types from this directory and put it into an internal table.
    File names are changing based on date and version.
    Please keep in mind that the program runs in the background, (presentation server is not included in the process)
    Thanks in advance,
    Milan

    Hi,
    one epossible solution that i have used is:
    1. Create an operating system comand with transaction SM69
    command  OS                              OS-command  Parameter
    ZDIR         Windows NT Customer  cmd.exe          /C dir &
    2. Call Functionmodul
      CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
        EXPORTING
          COMMANDNAME                         = 'ZDIR'
          ADDITIONAL_PARAMETERS               = P_PARA1
      OPERATINGSYSTEM                     = SY-OPSYS
      TARGETSYSTEM                        = SY-HOST
      DESTINATION                         =
      STDOUT                              = 'X'
      STDERR                              = 'X'
      TERMINATIONWAIT                     = 'X'
      TRACE                               =
       IMPORTING
          STATUS                              = G_OK
      EXITCODE                            =
        TABLES
          EXEC_PROTOCOL                       = GTBL_PROTO
       EXCEPTIONS
         NO_PERMISSION                       = 1
         COMMAND_NOT_FOUND                   = 2
         PARAMETERS_TOO_LONG                 = 3
         SECURITY_RISK                       = 4
         WRONG_CHECK_CALL_INTERFACE          = 5
         PROGRAM_START_ERROR                 = 6
         PROGRAM_TERMINATION_ERROR           = 7
         X_ERROR                             = 8
         PARAMETER_EXPECTED                  = 9
         TOO_MANY_PARAMETERS                 = 10
         ILLEGAL_COMMAND                     = 11
         WRONG_ASYNCHRONOUS_PARAMETERS       = 12
         CANT_ENQ_TBTCO_ENTRY                = 13
         JOBCOUNT_GENERATION_ERROR           = 14
         OTHERS                              = 15
    3. Loop at GTBL_PROTO and make your coding with the filenames
    Hope this helps
    Regards
    Bernd

  • How to read the name of a PDF file? - function module

    Hi,
    I have <b>some individual pdf documents in my desktop</b>.I need to <b>bulk-upload it to the content server and document related information to the SAP-DB</b>.
    Need your guidance.
    Regards,
    John.

    try this code it will convert file to PDF file
    REPORT  ZWARUN_CONVERSION_PDF                        .
    ***********Tables***************
    TABLES:VBRK.
    ***********Data Declaration***************
    DATA: LV_NUMBYTES TYPE I,
          LV_SPOOLNO TYPE TSP01-RQIDENT.
    DATA:C_LAYOUT  LIKE PRI_PARAMS-PAART VALUE 'X_65_132', "Layout
          C_X       TYPE C VALUE 'X'.
    DATA: NUMBYTES TYPE I,
           CANCEL.
    ***************Internal table of Pdf************
    DATA: IT_PDF LIKE TLINE OCCURS 10 WITH HEADER LINE.
    DATA:BEGIN OF IT_VBRK OCCURS 2,
         FKART LIKE VBRK-FKART,
         FKTYP LIKE VBRK-FKTYP,
         VBTYP LIKE VBRK-VBTYP,
         END OF IT_VBRK.
    SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME.
    SELECT-OPTIONS: S_BUKRS FOR VBRK-BUKRS,
                    S_GJAHR FOR VBRK-GJAHR.
    SELECTION-SCREEN END OF BLOCK BLK .
    PARAMETERS:
    spoolno like tsp01-rqident,
      DOWNLOAD AS CHECKBOX DEFAULT 'X',
      P_FILE LIKE RLGRAP-FILENAME DEFAULT 'C:\warun1.pdf'.
    START-OF-SELECTION.
    SELECT FKART
              FKTYP
              VBTYP
           INTO  TABLE IT_VBRK
           FROM VBRK
           WHERE  BUKRS IN S_BUKRS
              AND GJAHR IN S_GJAHR.
    END-OF-SELECTION.
      DATA: LK_PARAMS TYPE PRI_PARAMS,
            LV_VALID.
    if not p_mailid is initial.
    All the parameters passed are constants, so exceptions
    doesn't get raised
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
          EXPORTING
            IMMEDIATELY    = ' '
            LAYOUT         = C_LAYOUT                           "'X_65_132'
            NO_DIALOG      = C_X
          IMPORTING
            OUT_PARAMETERS = LK_PARAMS
            VALID          = LV_VALID.
        IF LV_VALID <> SPACE .
          NEW-PAGE PRINT ON PARAMETERS LK_PARAMS NO DIALOG.
    *--To display the final report
          PERFORM PRINT_REPORT.
          NEW-PAGE PRINT OFF.
    *---To convert the download to PDF
          PERFORM CONV_TO_PDF_DOWNLOAD.
          PERFORM DOWNLOAD.
        ENDIF.
    endif.
    *--To display the final report
      PERFORM PRINT_REPORT.
    *&      Form  print_report
    FORM PRINT_REPORT .
    *write:/ 'I will do it' color 4.
    write:/ 'Yes' color 4.
    write:/ 'we will do it' color 4.
    write:/ 'lets talk abt changing life style' color 4.
    write:/'By warun'.
    LOOP AT IT_VBRK.
    WRITE:/ IT_VBRK-FKART,IT_VBRK-FKTYP,IT_VBRK-VBTYP.
    ENDLOOP.
    ENDFORM.                    " print_report
    *&      Form  conv_to_pdf_download
    FORM CONV_TO_PDF_DOWNLOAD .
    CLEAR IT_VBRK.
    WAIT UP TO 2 SECONDS.
    LV_SPOOLNO = SY-SPONO.
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
       EXPORTING
         SRC_SPOOLID                    =  LV_SPOOLNO
        NO_DIALOG                      = ''
       DST_DEVICE                     =
       PDF_DESTINATION                =
      IMPORTING
        PDF_BYTECOUNT                  = LV_NUMBYTES
       PDF_SPOOLID                    = pdfspoolid
       LIST_PAGECOUNT                 =
       BTC_JOBNAME                    = jobname
       BTC_JOBCOUNT                   = jobcount
      TABLES
        PDF                            = IT_PDF.
    ENDFORM.                    " conv_to_pdf_download
    *&      Form  download
    FORM DOWNLOAD .
    download PDF file ***********
    CHECK DOWNLOAD = 'X'.
    CALL FUNCTION 'DOWNLOAD'
         EXPORTING
              BIN_FILESIZE = LV_NUMBYTES
              FILENAME     = P_FILE
              FILETYPE     = 'BIN'
         IMPORTING
              ACT_FILENAME = P_FILE
              FILESIZE     = LV_NUMBYTES
              CANCEL       = CANCEL
         TABLES
              DATA_TAB     = IT_PDF.
    IF CANCEL = SPACE.
      WRITE: / LV_NUMBYTES, P_FILE.
    ENDIF.
    ENDFORM.                    " download

  • Mail running under LIon no longer grays out the name of the sender of an email that has been read.  How can I get that to happen?

    Under the old version of Mail, when an e-mail was read, the name of the sender was greted out so that I knew I had read that email.  This does not seem to happen under the new Mail thaqt came with Lion.  Help!?
    Chuck Humphrey
    [email protected]
    303-997-2755

    Kirk,
    Thanks again for your suggestions. No, I don't get an
    error message. In fact nothing happens. My name and
    key are typed in and from what I understand, once you
    do that with a real key it directs you to the
    registration page. When I get done entering the
    information the window just sits there without any
    button or option to continue.
    QT Pro is already in the QT (non-pro) you installed and the key (which is a hash of your name in part) allows the Pro features to work.
    No redirect, internet, nothing like that. As such many people have activated and think they haven't. Just look at the menu items and see if the "Pro" logo is shown next to a few (which are greyed out and not available without Pro). If not you are done.

  • How can I see changes in table with insertrow();postchanges()without commit

    Hi friends;
    I use jdeveloper 10.1.3.1 with jheadstart 10.1.3.1.
    I create two view object.In the first page I create table with one view object.
    In the second page I create table (with tableselectmany) with other view.
    I select many rows in second page and in the managed bean,
    I insert selectted rows atributes to first pages tables attributes.
    I use this code.
    public String commandbuttonaction(){
    CoreTable table = this.getTable1();
    Set rowSet = table.getSelectionState().getKeySet();
    Iterator rowSetIter = rowSet.iterator();
    BindingContainer bindings = getBindings();
    DCIteratorBinding pr_dcib = (DCIteratorBinding)
    bindings.get("DeptIterator");
    int i=206;
    while (rowSetIter.hasNext()){
    Key key = (Key) rowSetIter.next();
    pr_dcib.setCurrentRowWithKey(key.toStringFormat(true));
    RowImpl prRow = (RowImpl) pr_dcib.getCurrentRow();
    String AM="model.AppModule";
    String CF="AppModuleLocal";
    ApplicationModule empSvc = Configuration.createRootApplicationModule(AM, CF);
    ViewObject emps = empSvc.findViewObject("EmpsView1");
    Row newEmp = emps.createRow();
    newEmp.setAttribute("Manager",new Number(1));
    newEmp.setAttribute("Department",new Number(1));
    newEmp.setAttribute("Depno",new Number(3));
    emps.insertRow(newEmp);
    try {
    newEmp.validate();
    catch (Exception ex) {
    System.out.println("validate catch");
    try {
    empSvc.getTransaction().postChanges();
    catch (Exception ex) {
    System.out.println("post catch");
    Configuration.releaseRootApplicationModule(empSvc,true);
    i=i+1;
    In this code I only postchanges() in first view and dont want to commit.
    But I cant see changes row in the page .If I press save I see transaction completed succesfully message.
    But in database not insertted any rows.
    If I write commit() after postchanges() code I see rows in the table .But I dont want to commit.Only post
    my changes and if necessary I press save button in page.
    How can I see changes in the page without commit???Thanks for all....

    You should NEVER use statements like this in managed beans:
    ApplicationModule empSvc = Configuration.createRootApplicationModule(AM, CF);
    This will create a separate application module instance, not shared by the the web pages. That's why you do not see the changes.
    Instead, you can use the following code:
    ApplicationModule am = (ApplicationModule)JsfUtils.getExpressionValue("#{data.MyAppModuleDataControl.dataProvider}");
    where MyAppModuleDataControl shoud be replaced with the name of your am data control.
    Steven Davelaar,
    JHeadstart Team.

  • Changed the name, it changed everything

    I hope I can describe this so that it makes sense...
    I'm pretty new to macs, I just got a new iMac about a month ago. So far everything has been perfect and I absolutely love it. Last night, I opened the Finder and noticed in the little pane on the left side (Applications, Desktop, etc.) that the little house icon had my computer name on it (snz48) and not my actual name. So I changed the name of it to my actual name and went about my business for about 15 minutes. I opened Firefox and it didn't go to my homepage and all my bookmarks were gone. The documents I had on my desktop disappeared, and all of my settings went back to default. This is because I changed the name of that folder, right?
    Inside of that newly changed name folder, another folder called "snz48" is in it with all my old stuff, like all my bookmarks, documents, everything. It seems like because I changed the name, the mac is just looking in the wrong place for all my things, because they are all still there, just not in the right place I guess.
    So my question: is there any way to get everything back to the way it was? I hope this all made sense ... thanks so much!

    So, how does one change the name without messing anything up. I haven't done this yet, but I have to say that I'm not fond of the fact that I like my full name identifiable when I'm surfing the web. I guess the machine automatically defaults to using your name? I don't remember an option to change that during set-up. Is this making any sense?

  • Read the good information from a record

    Hello all,
    I save in a record (RMS) following infomation:
    id - int
    webid - int
    del - int
    name - string
    if I want read the name directly do I need to read all previous information (id, webid, del)? Do you know a way to read directly the name without reading the other information?
    Now my code is like :
    try {
                   RecordStore rs = RecordStore.openRecordStore(Produit.DB_PROD,true);
                   RecordEnumeration re = rs.enumerateRecords(new ObjShopperFilter(), new ObjShopperComparator(), true);
                 while (re.hasNextElement()){
                      ByteArrayInputStream stream = new ByteArrayInputStream(re.nextRecord());
                      DataInputStream reader = new DataInputStream(stream);
                      try {
                           reader.readInt();
                          reader.readInt();
                          reader.readInt();
                          String name = reader.readUTF();
                         reader.readLong();
                          if (reader.readInt()==id){
                               reader.reset();
                               stream.reset();
                               rs.closeRecordStore();
                               return name;
                      catch (IOException e) {
                           //debug
                          System.out.println("IOException in Category.isUsed:002:" + e + ":" + e.getMessage());
                      finally{
              catch (RecordStoreException rse){
                  System.out.println("RecordStoreException in Category.isUsed:001:" + rse + ":" + rse.getMessage());
              Could you help me ?
    Regards

    I think that my explanation wasn't good :(
    I don't want to find a special record...I want read a special part of a record.
    When I save a record I write in bytes values in int, string, double...(ex.: 1,"john",2.3).
    So my RMS contains some same records, for example
    1,"john",2.3
    2,"rose",3.4
    3,"Louis",3.0
    When I read all my records, I would like retrieve directly the String "john","rose"...
    My solution is to read each component of a record without save the read value (see my previous code...) until read the element that I want keep the value.
    Is it possible to read directly a part of a record?
    I hope that these explanation could help you to understand my needs.
    Regards

Maybe you are looking for

  • Installing and Configuring Adobe Document Services For Print Forms

    Hi, I want to use Adobe Document Services,for Print Forms Scenario,on ABAP side. I installed the Adobe document Services following the steps in the Installation Guide.I obtained the Credentials file and supplied it during installation. Then i followe

  • Name 2 in BP filled in

    Hello Name2 (BUT00-NAME_ORG2) of the company code partner in BP gets filled with the same name as NAME1 in a way and a frequency I have not found out. It is not very often - I cannot relate it to a job for example. We erase the field as fast as it ar

  • Adobe Acrobat DC - Bad at rendering scanned/OCR'd documents

    Today I opened a scanned and OCR'd document (~200 pages) and because of the recent update, this opened in Acrobat DC (2015.007.20033). While using the Find function to go through the document, many pages had large white blocks instead of the content:

  • Can't download plugin from Eclipse-Marketplace

    When I try to download a plugin from the Eclipse Marketplace the error message occurs: Unexpected exception java.lang.reflect.InvocationTargetException. And the marketplace is not opened. Reproduction Eclipse > Help > Eclipse Marketplace .. Possible

  • Download abap object under a tranport request.

    hi experts               i have a requirement, a tranport request contain any ABAP Object i don't know how many object actually it contains may be one or more just suppose it will have a report program under a  transport request , in the select-optio