FM for checking valid drive on PC

Hi all,
I am developing an interface.
There is one file which is to be uplaoded in my code. I am doing some processing on that code and downloading that file on PC.
User will enter the input & output file name. When user will enter the path I want o check for the drive. Means if user has only C & D drive on my PC & user has given F drive while giving the output file name then it should give error.
Is there any FM or method available for this? I have tried with FM "PC_CHECK_PATH_WITH_DRIVE" but it is not giving me desired result.
Please help.... Its urgent....
Thanks in advance.
Deepti

Hi Deepti,
1. file_not_found                  = 19
2. sy-subrc = 19 if drive is wrong.
3. It surely gives error (by value of sy-subrc <> 0)
   after the FM is called.
4. try this code (just copy paste in new program)
5. It  WILL GIVE ERROR
6.
REPORT abc.
DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
SELECT * FROM t001 INTO TABLE t001.
CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
  BIN_FILESIZE                    =
    filename                        = 'k:\abc.txt'
  FILETYPE                        = 'ASC'
  APPEND                          = ' '
  WRITE_FIELD_SEPARATOR           = ' '
  HEADER                          = '00'
  TRUNC_TRAILING_BLANKS           = ' '
  WRITE_LF                        = 'X'
  COL_SELECT                      = ' '
  COL_SELECT_MASK                 = ' '
  DAT_MODE                        = ' '
  CONFIRM_OVERWRITE               = ' '
  NO_AUTH_CHECK                   = ' '
  CODEPAGE                        = ' '
  IGNORE_CERR                     = ABAP_TRUE
  REPLACEMENT                     = '#'
  WRITE_BOM                       = ' '
  TRUNC_TRAILING_BLANKS_EOL       = 'X'
  WK1_N_FORMAT                    = ' '
  WK1_N_SIZE                      = ' '
  WK1_T_FORMAT                    = ' '
  WK1_T_SIZE                      = ' '
IMPORTING
  FILELENGTH                      =
  TABLES
    data_tab                        = t001
  FIELDNAMES                      =
EXCEPTIONS
   file_write_error                = 1
   no_batch                        = 2
   gui_refuse_filetransfer         = 3
   invalid_type                    = 4
   no_authority                    = 5
   unknown_error                   = 6
   header_not_allowed              = 7
   separator_not_allowed           = 8
   filesize_not_allowed            = 9
   header_too_long                 = 10
   dp_error_create                 = 11
   dp_error_send                   = 12
   dp_error_write                  = 13
   unknown_dp_error                = 14
   access_denied                   = 15
   dp_out_of_memory                = 16
   disk_full                       = 17
   dp_timeout                      = 18
   file_not_found                  = 19
   dataprovider_exception          = 20
   control_flush_error             = 21
   OTHERS                          = 22
IF sy-subrc = '19'.
  WRITE :/ 'FILE NOT FOUND - '.
ENDIF.
regards,
amit m.

Similar Messages

  • Methods and Tools for checking IVI driver

    What methods are used to check an IVI driver at the end of the development phase?
    Are there any tools available?

    National Instruments has developed the Specific Driver Test Suite that checks the behavior, compliance, structure, and function panels of an IVI driver written in LabWindows/CVI or C.
    Please refer to http://zone.ni.com/idnet/development.htm for more details about this test.

  • FM for checking valid date

    Hello, is there a function module which will allow me to check whether a date is valid or not?

    then DATE_CHECK_PLAUSIBILITY is right FM in such cases...
    DATA : p_date(8) TYPE d VALUE '20081301'.
    CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
      EXPORTING
        date                      = p_date
      EXCEPTIONS
        plausibility_check_failed = 1
        OTHERS                    = 2.
    IF sy-subrc NE 0.
      WRITE :/ 'Invalid date'.
    ENDIF.

  • Create a validation for check double invoice

    Hi,
    I have read here on SDN for check double invoice on reference number. We want to create an warning message if same reference number is posted twice, not depending on invoice date. So if I, on 1st of October have posted an invoice with reference number 123 and then want to post with same reference number on 2nd of October I want to have an warning message. If I had understand right I need to make a validation for that. Is it true that I need to have a programmer to do that or how am I doing (one thread said that this was the solution, see; )?
    I suppose that my prerequisite will look as follows:
    BKPF-BLART = 'KR' OR BKPF-BLART = 'RE' (I want the check when entering both an invoice in FB60 and MIRO)
    How will my "check step" look like when I want to check if this reference has been entered before? Please describe in technical name.
    Is it possible to do a validation for getting a warning, or is it just possible with error message?
    I have also tried to change in IMG, in Material management > Logistics Invoice Verification > Incoming invoice > Set check for Duplicate invoices. Here we have all fields selected (check co. code, check reference, check inv. date). I changed to just select check reference, but this doesn´t solved my problem.
    Best regards Lisa

    Hello Lisa,
    Your first question,
    Yes system does not check MIRO invoice while posting FB60 invoice. Because when you post invoice with using FB60 transaction, system check BSIP table for duplication. But when you post MIRO invoice system doesn't fill BSIP table.
    So that your question answer is YES, you can register an invoice in MIRO with same reference without a warning.
    Your second question,
    BTE means Business Transaction Event. Those events are known as FI user-exit.
    So that when you posting an invoice with using FB60, system triggered on BTE 00001110 as i said on my previous message.
    I try to explain step by step how can you activate this BTE. But you need to ABAPer for giving warning message on this exit.
    Call FIBF transaction -> Settings -> Products -> ...of a customer
    Create a new line,
    Product : ZXX
    Text : BTE Products for FI Exit
    Product active : tick checkbox.
    Call SE37 for exit function and copy from FM SAMPLE_PROCESS_00001110 to ZFI_PROCESS_00001110. Then active your FM and go to FIBF transaction again.
    FIBF -> Settings -> Process Modules -> ...of a customer
    Define a new line.
    Process : 00001120
    Function Module : ZFI_PROCESS_00001110
    Product : ZFI
    And then you can some write ABAP code for validation and give warning message.
    In this FM, If you don't want to check duplicate invoice for your cases you can set export parameter e_nostd = 'X'.
    I hope it helps to you,
    Regards,
    Burak

  • I loaded Mountain Lion and now my Canon Canoscan LIDE100 Scanner won't work. I reloaded the application, checked the driver & loaded the Canon driver for Mountain Lion. Aplication starts to load then hangs up on 80% complete.   Any suggestions?

    I loaded Mountain Lion and now my Canon Canoscan LIDE100 Scanner won't work. I reloaded the application, checked the Cannon website for the correct driver & loaded the Canon driver for Mountain Lion. Aplication starts to load then hangs up on 80% complete.   Any suggestions? 

    Might have a hardware issue that was caused by the minor liquid spill.
    Take it to Apple to have them look at it.  I think they do a free diagnostics.  That way you can find out what's wrong with your MB.
    Good luck....Hope you get it sorted out.

  • System recovery failure - Hangs on Check for medium in drive E

    I am currently installing a new hard drive on my Satellite P300 laptop (running vista home premium service pack 2).
    I have fitted the new hard drive and inserted the first recovery disc and the recovery process starts okay. The following is shown on the screen :
    Waiting for ODD to become available...
    ODD Drive E: ready.
    Check for medium in drive E:...
    At this point it proceeds no further and a cursor just spins continuously.
    Is anybody able to suggest how to fix this problem and complete the recovery?
    Many thanks
    Adrian

    Hello Dr Lamp
    Many thanks for your response.
    I will try again later and check the BIOS.
    I have never done the recovery before so I was unsure what to expect. I had done two sets of system recovery disks in case there was ever a problem with one of them, but I get the same problem with both.
    I have a Vista installation disk so I can do a clean installation that way and then add the Toshiba drivers which I can copy from the current hard drive. I am just concerned that doing it that way will inevitably result in losing some aspects of the laptop functionality that was originally part of its installation from Toshiba rather than Microsoft.
    I know where the Toshiba driver folder is located but you can guarantee that there will be something that is located elsewhere that turns out to be critical to some part of the laptops performance!
    Once again thanks for your response and I will post any findings.
    Adrian

  • Visio 2010 Validation for Checking the number of a specific type of shape.

    I have written a rule for flowchart for checking the number of Start/End Shapes in a document.
    The FilterExpression is as follows:
    AGGCOUNT(FILTERSET(SHAPESONPAGE(), HASCATEGORY("Start/End"))) > 0
    The TestExpression is as follows:
    AGGCOUNT(FILTERSET(SHAPESONPAGE(),HASCATEGORY("Start/End"))) = 2
    (Since totally there are 2 shapes: 1 Start and 1 End Shape)
    However, it is not working. Can anybody tell me what is wrong in the expressions.

    Well, it worked for me, so I want to check that you modified the Start/End master to have the User.msvShapeCategories row with the value "Start/End", as I did?
    A Category is not a Master
    David J Parker MVP (Visio) http://blog.bvisual.net

  • Satellite A200 - Need driver for CD/DVD drive

    Hey folks.
    Recently installed WXP Pro on my A200 PSAEC laptop, so I'm now dual booting XP and Vista on my laptop.
    Problem is, I've got all the drivers working on XP and everything's running perfect, but when I tried to burn a DVD, Nero says the recorder can't burn DVDs. In "My Computer" the drive shows as a DVD-RW drive, but when I insert a blank DVD, it says CD Drive. The drive shows up as "TCSDcor' CD/DVDW TC-L6#2D" in device manager. I've searched around for a driver, but can't find an exact match for that drive and there's no optical drive drivers on this Toshiba site driver section. The only thing I've found is an executable file for upgrading the firmware, but it throws an error saying it's the wrong drive.
    Anyone got any ideas?
    Any help would be greatly appreciated!

    Hi
    Toshiba European driver page provides three different firmware updates for Satellite A200 PSAEC series:
    TO02 for CD/DVD drive TS-L632
    TO02 - for CD/DVD drive TS-L632P
    (This firmware solves some problems of the optical disc drive.)
    TO03 - for CD/DVD drive TS-L632H
    (This firmware solves some problems of the optical disc drive.)
    Im not quite sure what TO0$ means but I think the sign $ is only a free variable parameter (place marker).
    If you want to check your current firmware then you could check it using the Nero Info Tool
    http://www.nero.com/enu/support-nero8-tools-utilities.html

  • Editing XMP metadata in Bridge for checked-out files?

    Our custom connector does not implement the WRITE_XMP_METADATA Capability because we do not want to change the XMP of a file in our DAM system without checking in a new file version.
    However, when a file is checked out through Adobe Drive, we would expect to be able to edit its XMP metadata in Bridge just like we can for local files.
    It looks like this is still not possible with Adobe Drive 3, i.e. if your connector does not implement the WRITE_XMP_METADATA Capability you cannot edit XMP for checked out files either.
    It seems weird that you can edit XMP metadata for checked out files with regular CS applications but not with Bridge. Is this something that is expected to be fixed in a future version?
    Thanks

    In our design, editing XMP data in Bridge and in regular CS applications is different, the former one will be routed to SetXMPHandler in you connector, in the latter case, CS applications take the normal file writting ways to embed XMP data in the file content.
    The purpose of this design is to offer similar user experience for normal users when they edit XMP data for AD assets and local file assets, they don't need to check-out files first.
    To address your issue, I think you can add some codes in SetXMPHandler to auto check-out files before real XMP operation, and check-in them before exiting the handler
    We will consider to make some enhancements for this part, that's, to allow editng XMP data for the checked-out files in Br, in the next release, thanks for this advice.

  • How to set a new SCSI number for a second drive?

    How to set a new SCSI number for a second drive?
    Walter

    Walter,
    This web site gives a good diagram:
    http://www.hitachigst.com/hdd/support/dpes/dpesjum.htm
    On a Quantum hard disk drive - they were the original equipment manufacturer (OEM) hard drive provider for Apple, you will see three or four pairs of pins on the green circuit board. They are labled:
    AO . .
    A1 . .
    A2 . .
    If no pins are connected, you have SCSI ID Zero This was the standard setting from the factory.
    If you short out the pins beside AO .__. , you have designated SCSI ID One.
    If you short out the pins beside A1 .__. , you have designated SCSI ID Two.
    If you short out the pins beside A2 .__. , you have designated SCSI ID Four.
    These values can be added together to get other SCSI IDs. If you have a jumper beside AO AND A1, that will add up to SCSI ID Three.
    Some of the quantum drives used tiny black plastic jumpers with tiny metal contacts. I have yet to find a store that sells the tiny ones. I get my larger jumpers from old PC motherboards that are being thrown away. A small piece of aluminum foil will work as a jumper in a pinch. Just make sure it soed not fall off and short something else out!
    Jim
    PS
    CD-ROM drives are set at the factory as ID 3. Internal drives are set at ID 0. I set my external SCSI drive at SCSI 1 so it does not conflict with the internal drive. Internal Zip drives are set at ID 5 and external Zip drives let you choose between 5 and 6. I set my burners at ID 4. Come up with a master plan for your devices like scanners and burners. Apple System Profiler will give you info on the device ID. If the computer fails to boot, turn off all but one SCSI device and make sure of its ID. Then check each subsequent device by powering up only one device at a time while booting from a CD at ID #3.

  • Standard SMARTFORM  for Check Printing/ Payment Advice

    Hi All,
      I have one important question...
    Standard <b>Script</b> Check Print Program =  <b>RFFOUS_C</b>
    Standart Script Layout Name  = F110_PRENUM_CHCK
                                &  F110_D_AVIS
    We have to modify it as per client requirment.
        But I want to know the <b>Standard SMARTFORM & Standard Smartform driver Program for CHECH printing & payment advice ?????????????</b>
    Is there no Smartform for check printing or if exist then please guide me?????????????????

    hi umesh,
    1)anyone can help me,while extending idoc,i added one segment to idoc by extending debmas.that segment has two fields.while populating data to idoc,i am getting problem like VSV0001.exit is not allowing me to write the code.
    plz anyone can help me on this issue.if you did't understand this problem plz tell me how to extend the idoc.more concentration on while populating the data in to idoc.like which function module i have to use.in customer master idoc.debmas.i am new to this environment.plz help me.like complet work till completion of task.
    2)and my next assignment is in smartforms.plz let me know .i was created the screen.according to that screen.i have to make print program.plz tell me how to give the text elements.
    like we have given in scripts, page window and then F9 to give the text elements.and make the program.like that any one can tell me clearly.how to make the complete smartforms programs.
    plz this requirement is very very urgent,plz could you send it for my [email protected]
    advance thanks for your help.
    thansk&regards,
    radhiks.

  • Release strategy for Future validity period- (Outline agreements)

    Dear All,
    I want to create release strategy for Scheduling agreement.But I am creating the SA for furure validity period.In this case how the release strategy will triger.
    E.g Today 09.03.09 I create a Sceduling agreement and the validity period I maintain is from 01.06.09 to 31.12.09 and Amount say 100 Rs.
    I am using Characteristics Doct type and Amount.. The system checks the rate as on date (i.e on 09.03.09) and since it doesnt find any value the Release strategy is not trigeering.
    How to set up release strategy in the above case.
    Thanks in Advance.
    Regards
    Amar

    Hi Amar,
    1) if you maintain a target value (EKKO-KTWRT) in the header of the            
    contract this value is the basis for the determination of the release          
    strategy. If the target value is 0, the system will cumulate the               
    values of the items and will use this value for the determination.                                                                               
    2) So if the target value is 0 and you change the price of a condition         
    with a validity period in the future the system will react in the              
    following way:                                                                               
    Example:                                                                       
       the contract contains one item with quantity = 100 and a net price          
    of EUR 5,-.                                                                    
       all contracts with a target value from EUR 0 - 1.000,- should be            
    subject of a release strategy                                                  
       the contract is created and released on October the 1st                     
       ME32K -> October the 2nd you define a new price of EUR 7,- with a           
    validity period from 03.10.09 - 30-10.09 -> you save the contract              
    -> the release strategy is not reset, as the start date is not                 
    reached yet (system date < startdate of validity period)                       
       ME32K October the 3rd you change a field in the contract -> the             
    release strategy is reset                                                                               
    This is system design that a release strategy can only be reset through        
    an action by the user. The determination of the release strategy can't         
    be triggered automatically in the background.      
    If you create a document which is subject of an overall release strategy      
    (e.g. p.o., contract) the determination of the release strategy takes         
    place when the user hits the 'save' button or chooses the 'check'             
    function.                                                                     
    So there must be a kind of event that tells the system that something         
    has changed.                                                                               
    Regards,
    Edit

  • New folder for external hard drive?

    How can I give myself permission to make a new folder on my external hard drive? Right now it is in a "You can read only" status.
    Thanks, and Im new on here so I don't know if I'm posting this to the correct group.

    Click on the drive, choose Get Info from the File menu, and check the format.
    If it's formatted as NTFS, reformat it as MS-DOS, exFAT, or Mac OS Extended (Journaled) as desired, or install software such as Paragon NTFS on the computer.
    If it's formatted as FAT32 or exFAT, use the Disk Utility's Repair Disk command on it; this may also happen for a flash drive which is about to fail.
    If it's formatted as Mac OS Extended, change the permissions on that specific folder in its Get Info window.
    (118000)

  • MICR font problem for check printing in ECC6

    Hi All,
    I am working of the re-deployment project. Here we are just migrating the objects from  4.6c to ECC6. I am facing the problem with SAP Script for check printing. It is working fine in 4.6c,but it is not working fine in ECC.
    We are using  HP 8150 printer with TROY magnetic chip and toner. It is working fine for 4.6C, but not for ECC6.
    We are using "A" character for "Transit" and "C" character for "On as" in SAP Script. But during printing preview time it is not formatting it in MICR font.
    I am working with basis team for font code page 4004. I came to know, it is showing character set in 4.6c with spool administrator tab character set, but this tab page does not showing any character set.
    But according basis team, it is existing in ECC. If we will check through SCP it is showing unicode converted code page.
    In 4.6c we are using Zee printer driver with Zee family fonts(ZMICR and ZSIGN) but in ECC we are using MICR_E(SAP provided MICR font) in TROY provided printer driver.
    I have also come through the SAP note 94233 for MICR printing.
    Same problem we are facing with digital signatures. It is not converting digital signature in graphical signature at MICR printer level.
    Any help would be appreciated...........!
    Thanks
    Sharanjit Singh

    HI,
    Copy the file into Desktop.(font file is available in your local drive: C:\WINDOWS\Fonts
    Copy Arial file into ur desktop or some other location other than windows, and upload it.
    it will work, i did the same.
    Regards
    Aeda

  • New e-Sourcing 5.0 Install - Error checking JDBC Driver version

    Hi  All,
    I am currently attempting to install an e-Sourcing 5.0 Patch Level E instance on a Windows system using Oracle 10.2.0.3 and WebLogic 8.1 SP4.  e-Sourcing's installation and configuration complete without issue.  The schema in the database is loaded with the e-Sourcing tables and data.
    However, when attempting to deploy the ear file via WebLogic, I receive the following JDBC error:
    Error checking JDBC Driver version. Detail: Error: found unsupported JDBC Driver name: Oracle JDBC driver version: 10.1.0.2.0.
    The JDBC driver in use is from  my Oracle install ..\oracle\product\10.2.0\db_1\jdbc\lib\ojdbc14.jar
    I've also tried classes12.jar for versions 9.2.0.8, 10.1.0.2, and 10.2.0.1 but always receive the same error (...driver version: 10.1.0.2.0...) message regardless of the version of driver I am using.
    Error Log:
    *** Starting Frictionless SRM (5.0.00 E build 08-Apr-2008.16:46) 2009-10-14 20:33:40.656 local3  DEBUG   class=ConfigDatabase;server=CAGTAW804886;method=loadFromServletContext();thread=ExecuteThread: '4' for queue: 'weblogic.kernel.System'  Cached weblogic.httpd.servlet.reloadCheckSecs=-1 from servlet context
    2009-10-14 20:33:40.681 INFO    local3  ExecuteThread: '4' for queue: 'weblogic.kernel.System' Disabling logging blackbox support
    Unable to start server: unable to connect to the database: oracle [localhost:1521:orcl (SAP/SAP)]:0 reason: Error checking JDBC Driver version. Detail: Error: found unsupported JDBC Driver name: Oracle JDBC driver version: 10.1.0.2.0. Exiting.
    Given that the database is loaded with the tables and data I know my instance can connect to the DB.  Does anyone know why the deployment would complain that the JDBC driver is incorrect?  Is there a way to disable the check and complete the server startup?  Is there only a single specific driver that is acceptable for this e-Sourcing version?
    Thanks,
    Greg
    Edited by: Greg Stewart on Oct 15, 2009 3:20 PM

    The issue is still occurring.
    The Supported Platform documentation indicates that the Oracle JDBC thin driver 10.2.0.1.0 is the supported driver.  I have tried both the Classes12.jar and ojdbc14.jar for this version of driver.
    What is odd about this error is that it always displays the same message and version #, no matter what version of driver I use.
    "found unsupported JDBC Driver name: Oracle JDBC driver version: 10.1.0.2.0"  (I execute setup and configuration each time I use a different driver to ensure the ear file is updated)
    I have also tried using a different Driver Class path.  The installation guides for 5.0 and 5.1 indicate Driver Class as oracle.jdbc.driver.OracleDriver.  I have also tried oracle.jdbc.OracleDriver for a few of the versions with no success.  I still receive the same error at the same point.
    If anyone has run into a similar situation any suggestions or tips to resolving the issue would be appreciated.
    Thanks,
    Greg

Maybe you are looking for