Reading the document name.

Hi all,
I have a requirement where in a number of documents (.doc,pdf,xls,txt...etc) are placed in a fixed folder in C drive .
i have to upload these documents to application server.
The problem here is how to read the file names with file type through a normal report program.
Help me plz .....
thanks in advance.

Use Class CL_GUI_FRONTEND_SERVICES
Methods DIRECTORY_LIST_FILES  to get file attributes
data: v_dir_path type string.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_LIST_FILES
  EXPORTING
    DIRECTORY                   = v_dir_path
   FILTER                      = '.'
   FILES_ONLY                  =
   DIRECTORIES_ONLY            =
  CHANGING
    FILE_TABLE                  = v_files
    COUNT                       = v_count
EXCEPTIONS
   CNTL_ERROR                  = 1
   DIRECTORY_LIST_FILES_FAILED = 2
   WRONG_PARAMETER             = 3
   ERROR_NO_GUI                = 4
   NOT_SUPPORTED_BY_GUI        = 5
   others                      = 6
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

Similar Messages

  • For four days I have been unable to open a lot of documents. When I try I get a message "The document "name" could not be opened. You don't have permission. This has happened to an important letter which I corrected four times. My Mac has altered the name

    This problem began when I typed in an address http www etc., making one mistake in the address. I corrected it and then tried to copy the address because it was long (I wanted to be able to acces it another time), and that's when the trouble starrted. I just copt documents to get a new one because it's quicker, but it is unorthodox, I know. Since then whenever I copy a document i cannot open it, and it often puts a gobledegook ending to the document name. I've started emailing texts to myself so as to keep them, but I MUST be able to use documents normally. I hava a MacBook Pro, using OS Mountain Lion 10.8.5. I don't like it. It's fairly new, and has messed up my system of documents : the size is alll wrong and the tabulations are worse than ever. I use text edit because I wanted to use Macdictate because I am handicapped (arthritis and firbomyalgia) but I have never been able to get it to work. Since I changed OS I cannot use Text edit properly any more. Please help me. I think it must be a bug that came through when I was putting this address in four days ago. I went to the site once I'd corrected the address and it was perfectly normal. I shall ring them today and ask them if this has happened to anyone else. I live in France. Thank you for your advice. Because I am handicapped and I do not dirve, it is very difficult to get to a Mac store. I deleted Mac cloud documents because I don't want to use it and I thought it might solve the problem, but it didn"t.

    Back up all data.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    I've tested these instructions only with the Safari web browser. If you use another browser, they may not work as described.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click anywhere in the following line on this page to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • False message: The document name you requested (/selector_test.html) could not be found on this server. However, we found documents with names similar to the one you requested.

    When I specify http://www.celticmanner.com/selector_test.html to Firefox 6.01, I get the false message:
    Multiple Choices
    The document name you requested (/selector_test.html) could not be found on this server. However, we found documents with names similar to the one you requested.
    Available documents:
    /selector_test.txt (common basename)
    The file http://www.celticmanner.com/selector_test.html IS PRESENT on the host.
    The file http://www.celticmanner.com/selector_test.txt IS NOT. (It had been earlier.)
    I do not find the text "selector_test.txt" anywhere on my partition C! Where does Firefox retain a pointer to this file that no longer exists? And why?
    NB: The text "could not be found on this server" is sloppy. That message is not issued from a servcer, but from the instance of Firefox on my computer. The message should read "could not be found on the specified server".
    B. Somers

    I have the same problem and it does not have to do with firefox. Do you have any idea how to fix it through?

  • Move the "X" from the left side to the right side in the Document Name Tab

    I just installed CS5 MC for MAC and realized that the "X" to close the file is by default located to the left side of the Document  Name in the Tab or Bar rather than to the right when multiple files are open in an application.  I haven't checked all the Adobe Apps yet, but found this to be the case so far in AI, PS, ID.
    Where do I go in the master or individual app settings to reconfigure the file name/document name tab or bar so the little "X" that closes the file is to the right of the name rather than the left?
    I did notice that in many of Deke's Lynda training videos, the "X" was on the left in a few sessions, but most were on the right.  Really hope this isn't a MAC/PC centric thing or that it is mandatory to download Deke's custom settings for the fix.
    Thanks to anyone with the magic answer!!!
    Cheers!

    Bob --- Thank you for that very quick response.
    Bugger for the unfortunate answer, but thank you for advising/confirming the sad reality.
    Sure wish some code would fall from the sky and do a fix or workaround on this so users have the option.  I may be one of the few hung up on this, but it sure would be nice.
    Seems this is yet another "...centric" reason to use a PC in lieu of a MAC when working with Adobe products these days.
    Flip/Flop go the platforms!
    Cheers!

  • TS4009 The document "Name" could not be opened. (Numbers file @ iCloud)

    I have a file saved at iCloud that can not be opened anymore.
    Numbers says: The document “Name” could not be opened.

    I've solved my problem by following instructions here:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=308&mforum=iworktips ntrick
    Step-by-step:
    1. renamed .numbers-tef file to .pdf;
    2. control cliked - then - Show Package Contents
    3. double clicked index.xml.gz - index.xml has been created!
    4. renamed back .pdf to .numbers
    5. double cliked file and Bingo! Numbers opened the file.

  • How to display the RFQ Number as the Document Name in the E-Mail output.

    Hi All,
    I want the Document Name of the E-Mail Notification of RFQ to be the RFQ Number itself.
    For eg. RFQ E-Mail-60000015096.pdf
    How can this be configured?
    Thanks,
    Muneer.

    Hi,
    I have done the changes for PO. Its working fine.
    But its not working for RFQ.
    For eg, for PO its displaying as "PO E-Mail 45000xxxxx".
    But for RFQ its just displaying "RFQ E-Mail" - Number is not coming.
    I have used the text as "PO E-mail &EKKO-EBELN" for PO.
    And for RFQ, I'hv used "RFQ E-Mail &EKPO-ANFNR".
    Thanks,
    -Muneer.

  • How do I change the document name on my iPad after editing it?

    I have forms to fill multiple time for different projects!  On the iPad, I can not tell if they are different because I can't see the changes when saved to iBook or emailed. Do I have to wait until I'm at me PC, if yes the iPad and your app are useless!

    You can change the document name before editing it, using the Duplicate feature.  You can do this in the File Manager by going into ‘Edit’ mode, selecting the file, and choosing Duplicate option.
    Adobe Reader currently does not support saving a copy of a file after changes are made to it (and not yet saved in the original).  This is a feature we would consider for a future update.
    Thanks for your feedback.
    -Gaurav

  • When using Quite Imposing Plus the resulting file is only given a Temp name which will be sent as the document name.

    Our company has recently upgraded form Acrobat Professional 8 to Acrobat professional XI. We also use the Quite Imposing Plus plug-in in both versions. Now when using Quite Imposing Plus the resulting file is only given a Temp name which will be sent as the document name to the printer unless the imposed document is first saved. This was not the case in Acrobat Professional 8. I have attached a screen shots that shows an example.
    Is there any reason why this is happening and how can we stop it.

    Thank you for your advice although I think you may be incorrect as the naming of the documents made with Quite Imposing is correct in Acrobat 8.
    After reading the comment below it would seem something has changed from version nine onwards.
    Going forward we plan on changing the way we save and send our imposed documents to print but thank you for your time.

  • How do I remove the (-signed) which Adobe adds to the end of the document name after having signed it?

    Hi there,
    How do I remove the (-signed) which Adobe adds to the end of the document name after having signed it?
    It is not convenient to remove it every time I sign a document. So, is there a way to turn this off?
    Thank you

    I think you cannot, because for many people it is so important to keep the unsigned document, and most do not realise this until it is too late.

  • Error while saving Adobrforms: There was a error reading the document(26)

    Hello,
    Am not able to save the pdf form.
    Error : "The document could not be saved.There was a error reading the document(26)."
    Can anyone please tell me why i am getting this error.
    Thanks,
    satheesh

    Hi Satheesh,
    Can you give more details about your scenario..
    Regards,
    Ravi

  • How to open a Numbers doc after message "The document (name) could not be opened." is received?

    I opened an Excel file with multiple worksheets by doubleclicking on it, saved it as a Numbers file and made lots of changes to it. Now I can't open it at all. All I get is the message "The document (name) could not be opened."
    Any ideas?

    It seems that your doc is corrupted.
    Try to rename it from ********.numbers to ********.numbers.zip
    then double click it
    You will get a new ********.numbers file with the structure 'package'.
    Try to open it by double-click.
    Sometimes it works.
    Yvan KOENIG (VALLAURIS, France) jeudi 22 décembre 2011 13:16:28
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Cannot open Pages documents that I've worked on.  I open a new document, work on it, then save and close it.  When I try to open the document again, I get the following message: The document "[name]" could not be opened. The file isn't in the correct form

    I cannot open Pages documents that I have worked on and saved.  When I try to reopen Pages documents that I've saved, I get the following
    message:
    "The document “[name of document]” could not be opened. The file isn’t in the correct format.
    The file might be corrupted, truncated, or in an unexpected format."
    I have downloaded the latest update to iWork, but that doesn't help.
    I use Mac OSX 10.6.7
    I am using Pages '09 version 4.0.5 (852)
    If anyone can help, I would greatly appreciate it.
    Best regards,
    New York Mac User

    A few general trouble shooting tips that may apply here:
    1. If you used Software Update to do the OS update(s) to reach 10.6.7, go to http://support.apple.com/downloads/ and download and apply the Mac OS v10.6.7 Combo Updater. The Combo Updater contains some fixes that were not included in the incremental updaters used by Software Update.
    1a. Check that you have the current version of Pages (and of the other iWork applications) installed. All three applications' current version numbers end in .0.5
    2. A common cause of malfunctioning applications is a corrupted preferences file (.plist file). Your Pages '09's plist is at yourname > Library > Preferences > com.apple.iWork.pages.plist
    Quit Pages, locate the file and Drag it to the Desktop (or to the Trash).
    Restart Pages and attempt to open one of the files.
    If all is well, Trash the plist file and empty the Trash.
    If there's no change, AND you've made changes to the Preferences that you wish to keep, drag the file back to its previous location, replacing any new one that has been created.
    Regards,
    Barry

  • The document could not be saved. There is error reading the document(23).

    HI ,
    Im getting error : the document could not be saved. There is error reading the document(23).
    Had tried de-select "Save As Optimizes for Fast Web View". error still persist.
    Pls help. Thanks

    Hi,
    I am moving your posting at Acrobat.com forum to Acrobat forum.
    Hisami

  • How to read the whole name of a music title while scrolling down a list of titles? With the new iOs7 Music App there is no more black box showing the entire name!

    How to read the whole name of a music title while scrolling down a list of titles? The old software-app had the function to click for a longer time on a titles beginning letters until a black box revealed the entire name. I miss this function especially for my classical music, because lots of pieces start with similar words. E.g.:
    "Beethoven: Variations On "Ein Mädchen Oder Weibchen", Op. 66 - Var. 1"
    "Beethoven: Variations On "Ein Mädchen Oder Weibchen", Op. 66 - Var. 2"
    Scrolling in a list of title, I can't distinguish the titles, because just the first words are shown followed by: "...".
    That's horrible!

    Or you could include a width to your body style:
    body {
    background-image: url(Logo/sky1.jpg);
    background-position: center center;
    background-attachment: fixed;
    width: 75%;}
    It might work or not depending on your other color scheme.

  • How to read the column name of a table from sap system using C#?

    Hi!!
    I am using SAP .NET connector and creating a windows application.
    Now I wanna read the column name when a table name is given....
    Connection is done, but I don't know the code to read the column names alone...
    Can anyone help me with the code??

    fine!!
    So if i give the table name, which the RFC_READ_TABLE function module have, will it run properly? or i wanna change all the codes in order to support RFC_READ_TABLE function module?
    Because from the beginning I was using BAPI_CUSTOMER_GETLIST function, but my client requirement is to use ERP function module RFC_READ_TABLE, he didn't give any table name also..
    This is my code: What I have to change in this???
    ECCDestinationConfig ECCDestination = new ECCDestinationConfig();
                RfcDestinationManager.RegisterDestinationConfiguration(ECCDestination);
                RfcDestination rfcDest = null;
                rfcDest = RfcDestinationManager.GetDestination(a);
                    RfcRepository repo = rfcDest.Repository;
                    IRfcFunction customerList = repo.CreateFunction("BAPI_CUSTOMER_GETLIST");
                    IRfcTable addressData = customerList.GetTable("AddressTable"));
                    int j = addressData.Metadata.LineType.FieldCount;
                    for (int i = 0; i < j; i++)
                        RfcElementMetadata metadata = addressData.GetElementMetadata(i);
                        listallcolumn.Items.Add(metadata.Name);
    Message was edited by: Jeswin Rebil

Maybe you are looking for

  • Naming of Datasources

    Hello, Need some guidance here. I hope to find out why FI-SL DataSource is sometimes named as 3FI_SL_L1 and sometimes 3FI_SL_L1_TT? Or is it due to different naming convention for different releases? thanks! adette

  • Webdynpro tree ui element

    hi all,     i want to know from which tables can i pick the skill group and skills related to each skill group. And after getting these details i want to display them in the tree structure in my iView .     it is very urgent can any body help me rega

  • CC Manager & Installation Errors

    I just bought CC full suite, barely managed to download Photoshop off the CC Manager. It took like an hour to download. Really slow - slower than dial up speeds. I've disabled firewalls, anti-virus software, etc. No dice. Now when I try to download a

  • Media Encoder export a different font from the project file

    HI Media Encoder export a different font from the project file when I use a installed font The problem doesn't occur when exporting directly from Premiere  Any ides why? Thanks

  • Duplicate rows in AdvancedDataGrid when pushing updates via custom Assembler?

    We are trying to use LCDS transactions to dynamically push updates from a server side application via custom Assembler to AdvancedDataGrid.  Latter is using fill result ArrayList as its data source. Unfortunately we haven't been fully successful thus