How to get he names of all the local drives that are present in hdd

Hi ABAP Experts,
I want to get the names of all the local drives that are present in hdd on local system using
ABAP. Is this technically possible. If so how.
Thanks & Regards,
Aexandr Ciunchik

Hi Alexandr,
My workaround.
REPORT zztest.
DATA : len          TYPE i,
       off          TYPE i,
       directory    TYPE string,
       result(1).
len = STRLEN( sy-abcde ).
DO len TIMES.
  off = sy-index - 1.
  CONCATENATE sy-abcde+off(1) ':' INTO directory.
  CONDENSE directory NO-GAPS.
  CALL METHOD cl_gui_frontend_services=>directory_exist
    EXPORTING
      directory            = directory
    RECEIVING
      result               = result
    EXCEPTIONS
      cntl_error           = 1
      error_no_gui         = 2
      wrong_parameter      = 3
      not_supported_by_gui = 4
      OTHERS               = 5.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  IF result EQ 'X'.
    WRITE : / 'Drive : ',
              directory.
  ENDIF.
ENDDO.
Regards,
AS

Similar Messages

  • HT1719 My shuffle is not syncing all of the selected songs & I can't figure out how to get it to sync all the checked songs. Please help!

    My shuffle is not syncing all of the selected songs & I can't figure out how to get it to sync all the checked songs (syncs some, but not others). Please help!

    Perhaps this article can help.
    Syncing music to iPod shuffle
    B-rock

  • My e-mail has quit updating.  Anybody know why or how to get it started back?  The result is that I dont get my e-mails on the phone.

    My e-mail has quit updating. Anybody know why or how to get it started back?  The result is that I can not get e-mails on my phone.

    Thank you for the info re. the main menu. Your answer I used worked; however, the menu bar all the way across is solid black. The only way I can find out the names on the menu is to point the cursor from left to right over the black bar to find "file" "edit" tools", etc. What do I need to do to get these menu titles to be seen?
    As regarding the GMail --the menu bar used to have an envelope symbol which was white and outlined in red. That disappeared. I googled "mail.google.com" to try to get back my email. This didn't work. I then tried to get a different email address and password--after 8-19 attempts, this never worked. My other email (sbcglobal.net) has never returned. So I don't know where that went or how to get it back

  • I just downloaded the latest version of firefox (5.0). Can I delete all the older versions that are still on my drive? 2) When I call up some web sites sometimes the web site comes up 3 or 4 times...how do I stop this from happening?

    I just downloaded the latest version of firefox (5.0). Can I delete all the older versions that are still on my drive?
    When I call up some web sites sometimes the web site comes up 3 or 4 times...how do I stop this from happening? For example if I click on a link the exact same link comes up 3 or 4 times and I have to manually delete all of them but one.

    Do you organise your email into separate folders, or do you just let it accumulate in the Inbox?
    I would strongly advise you not to let it sit in the Inbox.
    When you see this happening, try right-click on the affected folder, select '''Properties''' then '''Repair Folder'''.
    Large folders (actually, a folder in Thunderbird is stored as a file, so it is sensitive to file size limits set by the underlying file system) can be problematic. This is one reason not to let messages collect in one folder. I use Thunderbird's Archive folders so that accumulated mails over several years can happily coexist because they are effectively stored in many small folders. No single mail store folder then exceeds the 2GB or 4GB sizes that have been known to stress the OS. I appreciate that current builds of Thunderbird and a modern 64-bit OS should be able to cope, but practically I find it slows down when given huge files, so I err towards a pragmatic solution; a large number of not very big files.
    Archives are searchable, and a Saved Search folder can give you a virtual composite folder allowing access to the entire Archive.

  • I just updated my phone to iOS7 and me and my mom have the same apple ID, so now for some reason I get all the text messages that are sent to her iPhone on mine..? Help please!!

    I just updated my phone to iOS7 and me and my mom have the same apple ID, so now for some reason I get all the text messages that are sent to her iPhone on mine..? Help please!!

    Stop sharing an Apple ID. That is the cause.
    Settings > Messages > Send & Receive > You can be reached for messages at...

  • Issues with processing messages on one receive port causes problems on all the receive ports that are on the same handler

    Greetings,
    An integrator installed biztalk in our environment to process the hl7 message flow between their source application(s) and several receiving applications. We've had problems with this set-up for a while now because some receiving applications sometimes have
    problems processing the messages. Be it either because there's problems with the server that processes the messages of a certain port or because there's problems with the software/daemon/service that needs to process these messages.
    The main problem with this, is that the receiving end of this isn't under our control nor under control of the integrator, but when one receive port isn't processing their messages for a while it causes a problem with all the receive ports that are on the
    same handler. So other receive ports start noticing a slow-down of their incoming messages until after a while nothing gets through anymore.
    What is the best practice to prevent these kind of problems? Should we just create a handler for every receive port? Because that seems a bit overkill.
    Thanks in advance.

    What do you mean exactly with this question?
    "Can you provide some more detail like BizTalk the receiver? "
    The adapters are mainly file and MLLP, the MLLP adapters are already seperated from the file adapters (a handler for MLLP and a handler for file).
    The problem with all the receive ports is that when one receive port isn't processing its messages (usually caused by the software processing the messages) the other receive ports on the same handler receive their messages/files a lot slower. If for any
    reason the problem isn't fixed soon, the other receive ports on the same handler actually stop receiving any messages at all.
    Isolating the receive port that causes the problems like la Cour suggested can work, but next time it might be another port that experiences this issue. So we are looking for a way to make sure the whole message flow isn't hindered by one port (whichever
    port) that can't process its messages. Or rather by one receiving software that can't process its messages.

  • Is there any way to get Mini Bridge to show the color labels that are set in Bridge and/or Lightroom

    Is there any way to get Mini Bridge to show the color labels that are set in Bridge and/or Lightroom?
    I am using Cloud InDesign CS6 on Windows 7.

    You will need to go via your computer's iTunes - to get music into the Music app you either need to download it directly on the iPad from the iTunes store app, or sync it from your computer's iTunes

  • Recently downloaded a trial version of CC and when trying to use the Adjustment Brush in ACR it brings up the message 'All the local adjustment controls are set to have no effect on the image'.  I've downloaded this as an update to CS5 on my new i Mac.  W

    Recently downloaded a trial version of CC and when trying to use the Adjustment Brush in ACR it brings up the message 'All the local adjustment controls are set to have no effect on the image'. I've downloaded this as an update to CS5 on my new i Mac. Would appreciate suggestions to remedy this. Rhonda

    I think it means "the sliders are all 0 so painting adjustments with this brush won't change anything."  In other words, move one of the sliders to a non-zero position, for example Exposure from 0 to 1.0, and then see what happens.  You can edit the brush and change it to do something other than Exposure +1.

  • Getting system names of all the nodes that compose a cluster

    I need a way to get the names (weblogic.system.name) of all the servers that compose a cluster from a JSP or a servlet. Can anyone help ?
              System: Weblogic 5.10sp10 on Solaris with SDK 1.3.0
              [att1.html]
              

              Using WLS 5.1 internal APIs, you can do this by the following:
              weblogic.cluster.ClusterManager clusterManager = weblogic.cluster.ClusterManager.theOne();
              com.sun.java.util.collections.Collection c = clusterManager.getClusterMembers();
              weblogic.cluster.ClusterMemberInfo[] infos =(weblogic.cluster.ClusterMemberInfo[])
              c.toArray(new weblogic.cluster.ClusterMemberInfo[0]);
              if (infos != null) {
              for (int i=0; i < infos.length; i++) {
              ClusterMemberInfo info = infos;
              String clusterName = info.name();
              System.out.println("Cluster Name is: " + clusterName);
              "Laurent PAILLARD" <[email protected]> wrote:
              >C'est un message de format MIME en plusieurs parties.
              >
              >
              >I need a way to get the names (weblogic.system.name) of all the servers
              >=
              >that compose a cluster from a JSP or a servlet. Can anyone help ?
              >
              >System: Weblogic 5.10sp10 on Solaris with SDK 1.3.0
              >
              >
              ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
              ><HTML><HEAD>
              ><META http-equiv=3DContent-Type content=3D"text/html; =
              >charset=3Diso-8859-1">
              ><META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
              ><STYLE></STYLE>
              ></HEAD>
              ><BODY bgColor=3D#ffffff>
              ><DIV><FONT face=3DArial size=3D2>I need a way to get the=20
              >names (weblogic.system.name) of all the servers that compose a =
              >cluster from=20
              >a JSP or a servlet. Can anyone help ?</FONT></DIV>
              ><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
              ><DIV><FONT face=3DArial size=3D2>System: Weblogic 5.10sp10 on Solaris
              >=
              >with SDK=20
              >1.3.0</FONT></DIV></BODY></HTML>
              >
              >

  • Find all the sql statements that are executed in a database

    Hi
    I would like to get all the sql statements that have been executed till now on the database. Also, i need the session and user details who has executed the statement.
    I know this can be done after enabling auditing.
    I would like to get the details without enabling the auditing option.
    I am using oracle 9i and oracle 10g.
    Regards,
    Vamsi

    You can use {noformat}{noformat} tags to preserve the SQL format. Below is an example of how to use it.
    <place your code here>\When your do that your code may look like this.select
         substr(sid || ',' || serial#,0,15) sid,
         USERNAME,
         PROGRAM,
         MACHINE,
         OSUSER,
         TERMINAL,
         sql_text Query
    from
         v$sqltext,
         v$session
    where
         address=sql_address
         and hash_value=sql_hash_value
         and status='ACTIVE'
    order by LOGON_TIME,sid,piece
    This one is more readable to everyone.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to get a list of all the clients logged in to the network

    hiii
    how can i fetch a list of all the users who are currently logged on the network...so that the list can then be sent to a database..plz tel me what techniqe can followed to do this....thanx

    hiii
    how can i fetch a list of all the users who are
    currently logged on the network...Easy, nobody logs onto the network so this is always nobody.
    You may be asking, how do I determine all the users who have logged in to all the PCs on the network.
    Write a program which is added to each user's Startup a program which updates the database with their details. If you have network scripts, this can be added to the user' network login batch script.

  • How to get IP Address of all the clients

    Hi,
    I am useing oracle 8i on sun solaris and clients are of windows
    when quering v$session it gives many details
    but does not gives the IP_Address of the clients.
    I had used SYS_CONTEXT('USERENV','IP_ADDRESS') but
    it gives the details of only the current session.
    But I want the IP_Address of all the clients connected and
    shown in v$session.
    Regards
    Arun Tayal

    Hi,
    From column MACHINE in V$SESSION, you can get the I.P. address:
    SQL> select UTL_INADDR.GET_HOST_ADDRESS('localhost') from dual;
    UTL_INADDR.GET_HOST_ADDRESS('LOCALHOST')
    127.0.0.1In this sample I used localhost, but you can use the column. It might require some additional work (to escape windows domains for example - and ensure all the hosts are known to the system via DNS).
    HTH,
    Yoann.

  • Re: how can I ger rid of all the photo folders that appear when downloading photos?

    How can I get rid of all the blank, greyed out photo folder names (History???) that appear when I download photos?
    iBook, Mac OS X (10.5.8)

    Help us to help you: There are 9 different versions of iPhoto and they run on seven different versions of the Operating System. The tricks and tips for dealing with issues vary from version to version and OS to OS. So before anyone can help, they need information to work with. Basic stuff:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. What were you doing when the problem arose?
    - Did it ever work properly?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    Anything else you can think of that might allow someone else to understand your issue.
    With this kind of information somebody can develop a starting point for troubleshooting the issue.

  • How can I use iTunes without connecting the external drive that has all my music on it?

    I have all my music on an external drive.  Sometimes I would like to access iTunes, for purchases and other, without having that drive plugged in.  I used to be able to do this, but something has changed and I can no longer figure out how.  There must be a way.
    Thanks

    Well, you can always ignore the fact it will automatically direct anything to a new blank library it will create on the internal drive.  Just let it do it (as long as you keep track of any purchases that download, or maybe you can turn off automatic downloading )  The next time you need to use it with the external drive hold down the option/alt key while starting iTunes and select the library file on the external drive.
    iTunes Store: How to enable Automatic Downloads - http://support.apple.com/kb/HT4539

  • How to Print Multiple line items(only the one's that are selected in va22)

    Hello All ,
    My smartform should print the multiple selected line items that i as a user should be able to see as the output .
    In my case i dont have any program that calls the transaction va22
    directly from the transaction VA22 i give the ISSUE OUTPUT TO .
    The Driver program that calls my smartforms fetches the data from table VBAP .
    Two cases that i get because of this fetching logic .
    1. When i try to fetch the data based on only VBELN in the output i get all the items that are in the particular Quotation .
    2 . When i try to fetch data based on VBELN and POSNR in the ouptut when i select multiple items and give print the first item that i i selected is displayed .
    Now what i need is to print only those data that i select in VA22 .
    say if there are items A, B , C, D ,E  in the Quotation .
    and before printing i select A , C , D then only those items should be printed .
    I hope any one  of the Experts  can solve my problem .
    Thanks & Regards
    Faran

    Hi
    I think you will need to do some enhancemwnt for this. What you can do select the lines in table comtrol and before issuing output you need to find a suitable wnhancement place where you can export the selected lines and make the corresponding change in logic for the same?.
    Secondly uou can make a custom report also where user will select lines of po and print..but in this way you will need to many calculations
    Nabheet

Maybe you are looking for