How to  validate a file  given the file name and the path

hi ,
  is their any function module which can validate a file present in the presentation server given its filename and path name

Hi,
Refer Sample Code Below:
Selection Screen
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS : rb_pc  RADIOBUTTON GROUP r1 DEFAULT 'X', "For Presentation
             p_f1   LIKE rlgrap-filename,            
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN SKIP.
AT SELECTION-SCREEN ON p_f1.
  IF  p_f1 IS INITIAL.
    MESSAGE e000(zmm) WITH text-002. ' Enter File Path
  ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_f1.
*-- Browse Presentation Server
  PERFORM f1000_browse_presentation_file.
FORM f1000_browse_presentation_file .
  CONSTANTS: lcl_path TYPE char20 VALUE 'C:\Migration Files\'.
  CALL FUNCTION<b> 'WS_FILENAME_GET'</b>
    EXPORTING
      def_path         = lcl_path
      mask             = c_mask  "',.,..'
      mode             = c_mode
      title            = text-006
    IMPORTING
      filename         = p_f1
    EXCEPTIONS
      inv_winsys       = 1
      no_batch         = 2
      selection_cancel = 3
      selection_error  = 4
      OTHERS           = 5.
  IF sy-subrc <> 0.
    MESSAGE s000 WITH 'No file Selected'.
    flg_pre = c_x.
  ENDIF.
ENDFORM.                    " f1000_browse_presentation_file
*&      Form  f1001_browse_appl_file
      Select file from Application Server
FORM f1001_browse_appl_file.
  DATA:  lcl_directory  TYPE char128,
         lcl_file       TYPE char10.
  lcl_directory  = p_direct.
  CALL FUNCTION <b>'/SAPDMC/LSM_F4_SERVER_FILE'</b>
    EXPORTING
      directory        = lcl_directory
      filemask         = c_mask
    IMPORTING
      serverfile       = p_f2
    EXCEPTIONS
      canceled_by_user = 1
      OTHERS           = 2.
  IF sy-subrc <> 0.
   MESSAGE e000(zmm) WITH text-039.
   flg_app = 'X'.
  ENDIF.
ENDFORM.                    " f1001_browse_appl_file
*&      Form  f1003_pre_file
      Open Presentation Server file
FORM f1003_pre_file .
  DATA: lcl_filename TYPE string.
  CONSTANTS: lc_codepage(3) TYPE c VALUE 'IBM',        " Code page
             lc_filetype    TYPE char10 VALUE 'ASC'.
  lcl_filename = p_f1.
  CHECK p_f1 IS NOT INITIAL.
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                = lcl_filename
      filetype                = lc_filetype
      has_field_separator     = c_x
    TABLES
      data_tab                = i_reg_grp
    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.
<b>Reward points if this helps.
Manish</b>

Similar Messages

  • How do you add space between the Series Name and the chart?

    I'm trying to format a 3D pie chart and the series name is nearly unreadable depending on the angle. I would like to add some space between the series name and the chart.

    On my charts, I just select the legends and drag them away from the chart. Hopefully this example helps:
    Regards,

  • How can I change the "folio name" and the "publication name?

    Hello,
    We have posted a Multi-folio App a single folio in it.
    We would like change the "folio name" and the "publication name” and we tried to do this using the dashboard. However, when clicking “update” we unchecked the “update content” checkbox, because there are no changes to the folio’s content. The problem is that this didn’t change anything in the app: both the "folio name" and the "publication name” remain unchanged…
    Is it possible to do this without having to repost this folio?
    Thanks!
    Olivier.

    The metadata is considered part of the content. Click update again and leave the "update content" checkbox checked.
    Neil

  • Can I use firefox in webview? what is the package name and the activity name?

    Can I use firefox in webview? what is the package name and the activity name?
    I saw : intent.setClassName("com.tencent.mtt", "com.tencent.mtt.MainActivity");
    but what is the name for firefox?

    rahulmcadit wrote:
    The phone is from UK and the carrier on which phone has been locked is "ORANGE". I want to use the same phone in India. I want to unlock the phone. Can you please suggest me what is the procedure to unlock the phone. How can I pay the amount to ORANGE carrier and can use my iphone in India.
    Contact ORANGE to unlock it.
    See this -> http://support.apple.com/kb/HT5014

  • I have 2  iPads both the sane except for case color. One connects to my home wifi fine, the other will not "join". It finds the wifi name and the little circle turning wheel just spins.

    I have 2  iPads both the sane except for case color. One connects to my home wifi fine, the other will not "join". It finds the wifi name and the little circle turning wheel just spins. I have tried about ten different "fixes" none work.. Reboot, forget wifi, etc.
    Unplugged wifi on and on for about an hour.
    I have compared settings between the two and cannot see any difference.
    Both iPads worked fine last week. One made a trip to MI  and used cellular access just fine. Now that one still uses cellular OK, but refuses to "join" the wifi.
    Too bad I can't attach a picture.
    Anyone care to offer a unique workable solution I have not tried?
    Thanks
    WD9HIK

    Have you tried renewing the lease in the WiFi settings? Settings>WiFi>Your network name>Tap the blue arrow>Renew Lease. If you haven't tried that - try it first before reading the information about restoring the iOS software.
    Follow the instructions in here. If you are unsure about anything - do not proceed. Post back with questions first.
    iTunes: Restoring iOS software - Apple - Support
    Make sure that you transfer all purchases, backup the iPad and sync with iTunes first. When you restore to factory settings, iTunes should ask if you want to backup first, but it will not hurt to initiate a backup on your won before you even start the restore process.
    How to transfer purchases into your iTunes library
    http://support.apple.com/kb/HT1848
    How to backup and restore from a backup
    http://support.apple.com/kb/HT1766

  • HT203164 I used to be able to print labels for burned CDs with the cover being the playlist name and the other side the song titles...now the titles print out compacted, overlapping each other and illegible. I thought it was the printer but it happened w/

    I used to be able to print labels for burned CDs with the cover being the playlist name and the other side the song titles...now the titles print out compacted, overlapping each other and illegible. I thought it was the printer but it happened w/1 other printer as well,  which I used before for this exact thing w/no problem.

    Try cleaning the print head with rubbing alcohol wipe, then replace your print head. Keep pushing the Ok. 
    Go to this link and HP shows you how.
    support.hp.com/us-en/document/c01643079
    Lucky for me it worked!

  • Table where the last name and the first anme are stored

    Hi ALL,
    I would like to know the table in which the last name and the first name of the employee gets stored?

    Hi,
    You can use the table PA0002 for first and last name of the employee.
    Please refer the below fields in table PA0002
    First name- PA0002<VORNA>
    Last Name-PA0002<NACHN>
    Second Name-PA0002<NACH2>
    Regards
    Raviiiiiiiiiii

  • After a year of no use and a fully discharged battery, my MacBook Pro refuses to accept the administrator name and the password. How can I reset these?

    After a year of no use and a resulting fully discharged battery, the MacBook Pro refuses to recognize the administrator name and password (both). It has system OS X 10.6 which can not be upgraded without the information. How can I reset or reistall the administrator name and password?

    Thanks to all who responded. You are all absolutely correct. However, this Ipad was a gift to my wife who was dying of cancer in the hospital and wanted some entertainment. So I started it out with her Apple ID. After she passed away I moved from Sacramento to Austin and eventually proceeded to get the Apple ID changed from my wife's to mine. Meanwhile when she was in the hospital I opened an Itunes account in my name to buy movies for her. That was the first mistake.
    Then during the move to Austin I lost track of the IPAD and later found it and tried to use support but could not remember the proper ID. Later the folks at the Apple store helped me create a new and novel Apple ID that was unfortunately unlike any other.
    The botom line is that I am stuck with three Apple IDs and three passwords. I am told by Apple there is nothing they can do about this as IDs cannot be changed or destroyed. I can quit using them or start a new account but when I try to do that the system keeps remembering too many things from the past and resists.
    Even if I sold this Ipad and bought a new one, the system memory is still there.
    I think the real problem is that destop and laptop computers are totally owned by an individual and that individual can control logins and passwords to his liking. IPADs and similar Apple products are different in that the corporation has built in their own intrusion detection schemes because of the relation to Itunes.
    One thing I thought about is to open a new Itunes account pretendding to be a new customer with my regular Apple ID. Perhaps I could do the same with Apple Support.
    Thanks for your comments.
    RAZ

  • I have lost the user name and the password and the phone now stopped the end of updating to IOS7

    the phone now need user name and password at the end of updating the ios system from 6 to iOS7
    what is the solution now and the phone now like a piece of iron

    Have you tried adding your comcast account using the built in IOS mail app.
    If you're using the Comcast Xfinity app, then look at their support site or ask the app developer.

  • How to find the Oraganization name and the its classification

    Hi All,
    Can any one help me to find out the Query for Organization Name and its classification.
    Please help..

    Considering you've used only one segment -
    select name,date_from,date_to from per_jobs
    where trunc(sysdate) between date_from and nvl(date_to,trunc(sysdate));
    It is a good practise to close threads once you're done with and open new ones for new queries.
    Cheers,
    Vigneswar

  • The publishing settings page does not open when I click on the domain name and the iWeb application will not stay on the dock.

    Hello,
    I have been trying to help a friend who is having problems publishing her website. (She has done so previously using Mobile me)
    There seem to be a couple of things wrong with the application,
    1     if I drag the application icon onto the dock, it won't stay there
    2     I wanted to change where her site is published to (she has bought a domain name and has a hosting service now) but when I click on the domain name I do not get the "site publishing settings page" so we can't enter the new details.  All that comes up is the main page of her website.
    I would suggest uninstalling and re-installing Iweb, to see if that clears the problem, but as Iweb came pre-installed with her Imac, I am not sure that we can do this.
    Any ideas please?
    she's using and imac 24 in (approx 4 years old) and running osx 10.5.8

    NO - not correct.  Even if you are still using iWeb 08, you can still publish to another host and not MobileMe.  You do this by selecting the option 'Publish to a local folder" and this will publish the site to your desktop and you can then use an ftp programme such as Cyberduck to upload your site to your host.
    MobileMe will not be here after the end of June, so you will have to find alternative hosting.  They are not taking any new subscriptions.
    On new Macs, iLife 11 is pre-installed, but only iPhoto, iMovie and GarageBand are included, not iWeb and iDVD. The Apple Online store is not selling the boxed version of iLife 11 any longer, so if you want to upgrade to iLife, then you'll have to look online at Amazon.com or Amazon.co.uk for a boxed set of either iLife 09 or iLife 11.  Both contains iWeb 09, which is what you would want.

  • HT1146 Can't see the body of my emails, it show the email name and the two line preview , but doesn't show any of the MSG on the right side of the screen.   Using ipad2

    Can't see any email messages, the email and 2 line preview show, but no message or attachments,  why?

    Try closing the Mail app completely and see if the emails show when you re-open the app : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Am buyig a ipad 4 on ebay but the person forgot the user name and the password is there a way to reset it

    is the a way to reset a ipad if you forgot the uset and the password

    If that ipad is running iOS7 then no, you cannot wipe it without the user's Apple ID and pass word....which isn't usually something a person forgets. The cynic in me would be very suspicious of a person selling a device that says they have no access to the password protection on said device.

  • How to put two files with the same name into the same folder?

    How can I put two files with the same name and the same extention into the same directory?
    Is this even possible?
    Thanks in advance. 

    Are you sure? I would be very surprised if that was the case.
    How does the computer/filing system differentiate the files, if not by their names?
    How do you tell the computer which one you want? (On the command line.)

  • How to get the job name and details in a report format - sm37 details I mea

    I need to extract the Job names and the job steps that comeout of a report?
    Is there a standard program for this ?
    Which tables store this information for me to write a custom report?
    thanks,
    Ven

    Hi Venkatabby,
    Check out the table:
    TBTCS
    Thanks,
    Chidanand

  • How to sincronize with itunes an 3G iphone that has the same name as the new 4S

    I've just boght a new 4s iphone to substitute my old 3G so when asked by itunes I didn't change the name of the new iphone. Now I have two I phones with the same name and the old one is not able to sinchronize with I tunes any more. It's not even able to restore it self so I could change its name to use it under a different Iphone, does any one have any idea of what can I do to reutlize it,. I'd much appreciate your advise, thank you,
    León Nik

    It's easy to rename each unit.  When you connect your iPad and it syncs, the unit will appear on the left of the iTUnes screens just click on the unit there and you can rename it.  You should do this immediately so you can see which unit was backed up by it's name. You can sync as many decices as you want in one iTunes library and you can even share Apps as long as you're going to sync both from teh same iTunes account.  My household has 2 iPad 2s and we share our apps, and we also share downloaded books, magazines, music, etc.......

Maybe you are looking for

  • Problem with Photoshop hangs/freezing for users on a terminal server

    Dear Forum! I'm having some trouble with Photoshop freezing over a period of ~20 minutes when you (1.) user the eraser with special brushes and (2.) copy and paste material from a PDF to Photoshop. As you might notice by the size of this post i'm get

  • How do i use 2 phones on one itunes account

    Hi guys hope you can help me i had a itunes account for my 3gs but my pc crashed and i had to have it sent away to be fixed and when i got it back i forgot to put itunes back on. today i got a shinny new 4gs  and set up a new account on the phone and

  • HSB Color Space Question - How Many Colors Are There In Photoshop

    Hello guys, I have a sort of basic question that I have been trying to figure out for a few days. I am trying to find out how many colors there are in the Color Picker  when the Hue radio button is selected. I know there are 256^3 RGB (#Hex) colors,

  • Submit multiple keywords

    Hi! I have a search page with multipley key word items. On the page is another report region, the results in the report should reflect the restrictions from the key word items. The key word items should be submitted all by once. How can I do that? I

  • Extraction Method

    Hi What extraction method should be used to extract data from HR module. Is there any site which can guide us to start a project from scratch. For eg want to start with pulling up HR data and create reports. So how do i start with it. Thanks in Advan