Whether ineed to put selection between txt and xl file?

hi,
my requirement is to provide to upload data from legacy to sap.in my selection screen i hav to put both presentation and application server options.
If the presentation server option is selected then user can select the file type like Text or Excel?
i want the approach to how to code for presentation server.i.e,
a)whether i need to use radiobuttons for txt and excel file.

Hi
Check this sample code:
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS: FLATF RADIOBUTTON GROUP RAD1 USER-COMMAND X,
            UNIXF RADIOBUTTON GROUP RAD1 .
SELECTION-SCREEN SKIP 2.
SELECTION-SCREEN SKIP 2.
parameters: P_FNAME type RLGRAP-FILENAME MODIF ID P1,"here you can give your txt or excel file
            UNIXFILE type RLGRAP-FILENAME MODIF ID P2.
SELECTION-SCREEN SKIP .
selection-screen ULINE.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN POSITION 20.
parameters TESTRUN AS CHECKBOX default 'X'.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FNAME. "to give F4 functionality for the local PC file
  CALL FUNCTION 'F4_FILENAME'
* EXPORTING
*   PROGRAM_NAME        = SYST-CPROG
*   DYNPRO_NUMBER       = SYST-DYNNR
*   FIELD_NAME          = ' '
     IMPORTING
       FILE_NAME           = P_FNAME.
" the following steps will let u know If the file is an txt or excel file:
  data: LEN TYPE I,
        v_fname type string.
  if p_fname is not initial.
    MOVE P_FNAME TO V_FNAME.
  else.
    MESSAGE I000(ZP).
  ENDIF.
  LEN = STRLEN( V_FNAME ).
  LEN = LEN - 3.
  IF V_FNAME+LEN(3) = 'xls'. "here IF the file is an excel..you write the condition you want.
  Endif.
Hope you are clear,
Vishwa.

Similar Messages

  • In Mountain Lion how does OS select between ethernet and WiFi when both are activated??

    In Mountain Lion how does OS select between ethernet and WiFi when both are activated??  How does OS use "both" networl accesses??

    It will pick the highest service in the list which has an internet connection.
    To order the list, open Network System Preferences and select Set order of network services from the button below the service list.

  • Unable to switch between txt and Facebook

    After the 8.1 update I can't switch between txt and Facebook anymore. Not sure if its something I'm doing wrong but I used to have a button in each contact that allowed me to txt them or send it to their Facebook inbox. I no longer have that button, yet I have group set to on. Does anyone know if this was removed with the new update or I'm missing something out. Thanks Donna
    Solved!
    Go to Solution.

    I would agree that removing the facebook/social media integration is a definite step back. Microsoft reasons that with the new implementation it will be easier for 3rd part developers to fill this gap, I personally think this was a bad design choice and found that this functionality specifically was great and very useful.
    Click on the blue Star Icon below if my advice has helped you or press the 'Accept As Solution' link if I solved your problem..

  • Yosemite finder crashes with previewig .txt and other files

    Hello,
    under Yosemite  the Finder crashes with previewig .txt and other files.
    Is this just my problem? Help please.
    Thank you very much.
    Regards.

    Launch the Console 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 and start typing the name.
    Step 1
    For this step, the title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    In the top right corner of the Console window, there's a search box labeled Filter. Initially the words "String Matching" are shown in that box. Enter the name of the crashed application or process. For example, if Safari crashed, you would enter "Safari" (without the quotes.)
    Each message in the log begins with the date and time when it was entered. Select the messages from the time of the last crash, if any. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    ☞ The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    ☞ Some private information, such as your name, may appear in the log. Anonymize before posting.
    Step 2
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ User Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of crash reports. The name of each report starts with the name of the process, and ends with ".crash". Select the most recent report related to the process in question. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.
    If you don't see any reports listed, but you know there was a crash, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

  • Hi!  I am trying to print pictures from iPhoto.  I follow the directions and select a photo and click file-print-but it doesn't give me any size/printing options.  Instead I get a message that says "no themes available".  Do I need to install themes?

    Hi-I am trying to print pictures from iphoto.  I selected a picture and tried file-print.  But instead of giving me size/layout options, it gave me a message, "no available themes".  Not sure what to do next--something I need to install?

    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store or have a Recent Mac you can find it in your Purchases List.

  • Diff between logical and physical file path

    Hi ,
    Could you please explain difference between logical and physical file path's and their importance in ABAP.
    Thanks and regards,
    shyla

    Hi
    The function module FILE_GET_NAME convert a logical path into its corresponding physical path.
    The advantage of using logical pathes within your applications is obivous:
    If you need to change the physical path you just adjust it within transaction FILE yet no changes are required to your application.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/25/ab3a57df3b11d189fc0000e829fbbd/frameset.htm
    The file names that you use in ABAP statements for processing files are physical names. This means that they must be syntactically correct filenames for the operating system under which your R/3 System is running. Once you have created a file from an ABAP program with a particular name and path, you can find the same file using the same name and path at operating system level.
    Since the naming conventions for files and paths differ from operating system to operating system, ABAP programs are only portable from one operating system to another if you use the tools described below.
    To make programs portable, the R/3 System has a concept of logical filenames and paths. These are linked to physical files and paths. The links are created in special tables, which you can maintain according to your own requirements. In an ABAP program, you can then use the function module FILE_GET_NAME to generate a physical filename from a logical one.
    Maintaining platform-independent filenames is part of Customizing. For a full description, choose Tools ® Business Engineer ® Customizing, followed by
    Implement. projects ® SAP Reference IMG. On the next screen, choose Basis Components System Administration ® Platform-independent File Names.
    For a more detailed description of the function module FILE_GET_NAME, enter its name on the initial screen of the Function Builder and choose Goto Documentation. On the next screen, choose Function module doc.
    Another way of maintaining platform-independent filenames is to use the Transaction FILE. The following sections provide an overview of the transaction.
    To create a logical filename, choose Logical filename definition, client-independent from the Navigation group box in Transaction FILE, then choose New entries. You define logical filenames
    You can either define a logical filename and link it to a logical path (as displayed here), or you can enter the full physical filename in the Physical file field. In the latter case, the logical filename is only valid for one operating system. The rules for entering the complete physical filename are the same as for the definition of the physical path for the logical file. To display further information and a list of reserved words, choose Help.
    If you link a logical path to a logical file, the logical file is valid for all syntax groups that have been maintained for that logical path. The filename specified under Physical file replaces the reserved word  in the physical paths that are assigned to the logical path. To make the name independent of the operating system, use names that begin with a letter, contain up to 8 letters, and do not contain special characters.
    Save your changes.

  • Cannot checkin/checkout html, js, txt, and jsp files in MS Sharepoint Workspace 2010

    I am having issues checkin/checkout html, js and jsp files in Microsoft Sharepoint Workspace 2010. I can access (checkin/checkout) any files in the actual Sharepoint site, but when I am synchronized to the site in Sharepoint Workspace 2010 I cannot access
    html, js, and jsp files. When I try to checkout a html file, a message pops up saying:
    "Can not perform this operation. This document has been checked out or may no longer exist."
    Could this be a synchronization issue, or was Sharepoint Workspace 2010 not design to work with html, js, txt, and jsp files?

    Hi Armando,
    I'm afraid that you posted your question on the wrong forum. This forum is intended for Project Server questions. Please go to this forum in order to have answers from experts: 
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/home?category=sharepoint&filter=alltypes&sort=lastpostdesc
    Cheers.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Can't Edit .txt and .pdf files in EP6 KM

    We just migrated our last application from EP5 to EP6, and now we're having problems with not being able to edit .txt and .pdf files.  The problem is that the files will only open in the browser rather than in their native programs (wordpad/notepad, Adobe Editor, etc).  Surely others have encountered this issue.  Are there any solutions short of installing 3rd party tools?

    Hi Jeff,
    Which program opens on a link depends on two things:
    1. The MIME-Type that is sent from the server together with the resource (file) you requested by clicking a link
    2. Your Windows Setting defining which local application should be used for which MIME Type.
    So there may be two things happening:
    1. EP 6 is sending other (or no) MIME Types with the KM resources. You can check this in your KM configuration. See KM -> Services -> MIME Service
    2. Your OS got the settings for apps/MIMEs changed. This happens e.g. if you changed on Win XP to SP 2.
    So here may be a solution:
    Go to Windows Explorer->Tools->Folder
    Options->File Types, click on the TXT extention, and click
    "Delete".  Then proceed to recreate the TXT file type with the
    default app you want (notepad). 
    IE will open your app (notepad) for links to text files from that point
    on.
    So, to check this for text files, open the registry editor, go to
    "My Computer\HKEY_CLASSES_ROOT\.txt" (or .TXT), and check for a 'String
    Value' with the value "text/plain".
    This should work with any file type, as long as you use the right MIME Type (See KM configuration / MIME Services).
    HTH,
    Carsten

  • Distinguishing between CSV and Excel file formats

    I am trying to distinguish between CSV and Excel files.   Most of the files I need to process are CSV, but some have been opened and re-saved in Excel format.  I know about the Excel toolbox available, but haven't used it yet. 
    I need to be able to open a spreadsheet file regardless of if it is in CSV or Excel format.  Any help would be greatly appreciated.
    Here are two example files, one CSV and one Excel.  Both have .XLS file extensions. 
    Attachments:
    20-4-XLS.xls ‏21 KB
    20-5-CSV.xls ‏8 KB

    Hi Paul,
    I think the matter is not the extention (xls or csv or whatever) but the format of the data written in your file.
    To see what I mean, open the xls file you posted with notepad... What does it look like ?
    You have tobe sure of the format of the file you want to read so that you can develop an appropriate VI... if you want to be able to read different type of data format, do a test before reading the file and then use an appropriate routine for each format.
    Hope this helps you...
    BTW, to read the one named CSV, a simple "read from spreadsheet file" VI will do the job
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Difference between AAC and m4a files, converting from AAC to useable format

    Does anyone know the difference between AAC and m4a files? iTunes has an option to use an AAC encoder to compress CD files, but this creates an m4a file not an AAC file. I just got some actual AAC files and iTunes cannot read these, is there a way to convert from AAC to a format that iTunes recognizes? Thanks

    iTunes uses AAC data wrapped in an MPEG 4 container file. If you got some *.AAC files, and they're just raw AAC files, then you need to wrap them in an MPEG 4 container. The only way I know to do this is using the foobar 2000 program. You can find more information at http://www.hydrogenaudio.org and http://www.foobar2000.org

  • Difference between *.SAR and *.CAR files

    Hi everyone,
    What is the difference between *.SAR and *.CAR files?

    hi Veera
    These are similiar to .zip for SAP components...
    .SAR supports version of SAP above 4.6c onwards
    whereas .CAR supports version of SAP before 4.6C
    whenever you want to download kernel patches basing on the version of SAP these files come either in .SAP extension or .CAR extension...
    please awards points if you find this useful

  • Select between home and work addresses for Autofill

    I've searched and browsed for this and I think I know the answer but I want to check before I submit a feature request to Apple and give up for now:
    Can we choose between home and work addresses on our contact card when we have Safari perform autofills?
    I think the answer is no, that only the first address listed in our contact card is used.
    It would be most useful to be able to select the address used. Many of us have our contacts synced now between home and work computers and some of us are allowed to do occassional home business on work computers, or use our home computers for work.
    I experimented with an alternative. I set up two contacts for myself, a home contact and a work contact. They both use my name. I find that in the Contacts app I can select which card is "my card", and that will be used by autofill. But I have to open Contacts to switch "my card" to use that for autofill. It would be more useful if Safari would simply provide a way to switch between home and work contact info on the fly, or at least switch between cards.
    Am I missing anything?

    Thanks, fruhulda. I do have both my work and home address on my card in
    Address Book, and I agree that I should be able to choose which to use to fill in fields on a fax form. My question is how do I do that. I want to send a fax; I want it to feature my home information, but it's the work information that's automatically filling in. How do I change that?

  • How can I share autocomplete lists between sheets and/or files?

    I'm drafting up a P&L spreadsheet in which I keep lists of categories, vendors, etc. I'd like to keep separate sheets for each month; the problem is that once I start a new sheet, Numbers seems to "forget" the vendor names, and I have to reenter the entire name again instead of the first three letters or so... I think for obvious reasons I don't want to put a whole year of order records on a single sheet ;-)
    Is there a way to preserve or export lists of field values so that they can be shared between sheets (or even files?)

    Appreciate the answer Wayne, although it wasn't the one I wanted to read... I had already embedded a hidden list in *every* table in each sheet; needless to say it didn't improve the performance one bit.
    Turns out that the lists aren't shared between tables either (same heading, same column) that I used to create expandable categories. Would be a nice feature to recognize a column heading and propagate the autocomplete lists, and maybe even be able to link these across tables, sheets *and* files!
    Probably too late for iWork '12 ('13, '14?) , but I filed an enhancement request to be able to refer to "file foo, sheet C, table 3" column contents.
    Mike

  • Differancec between local and sequential files

    hi,
    what is the differancec between local and sequential files

    Sequential files are files with specific format. You upload data into SAP using sequential files.
    ABAP allows you to use sequential files located on the application server or presentation server. You can use these files to buffer data, or as an interface between local programs and the R/3 System
    Sequential files are the files which are stored at application server
    To read them or to put the data into them we use the DATASET concepts for transfering data
    OPEN data set is used to open the file
    READ dataset for reading the file
    TRANSFER dataset for transfering/writing the data
    CLOSE dataset to close the dataset.
    Local file is nothing but ur local system file ..Like C:\, D:\

  • How to put selected videos into one place (File)

    How to put selected videos into a File so I can only show on TV the videos in that file

    YYou have to describe your issue in more detail. Are you using iTunes? Trying to see it in Apple TV, etc, etc.

Maybe you are looking for

  • When copying a CD, some of the songs are copied as separate albums. How do I get them all into one album?

    When copying some cd's into itunes folder on my computer, some of the songs are copied as separate albums. Please could someone advise how I bring the songs together as one album?

  • Value mapping in the ERP system during IDOC creation

    We have a PI File-IDOC scenario. We can translate simple mappings such as currency or unit of measure in PI(7.1) using the Value Mapping function. For complicated mappings involving business logic (e.g. Tax code which is derived from multiple fields)

  • NHL Center Ice + NHL Gamecenter Live???

    hi! I am a huge hockey fan...lots of my Canadian friends whom are on SHAW, TELUS and BELL in Canada are buying NHL Center Ice, and along with their purchase of Center Ice, they get a FREE subscription to NHL Gamecenter LIVE which is the online servic

  • Trying to export on Final Cut Pro X

    So, Final Cut Pro X is telling me that I need a compressor in order to export now. But then it says I also need to install that as well. What do I need to do? I just downloaded the new version 10.0, so I'm trying to adapt but does this mean I need to

  • Export functions of Lightroom 3

    I have lost the setting for "burn full size Jpegs" in the lightroom 3 export option. Can I redownload the program to get it back? I don't want to lose all the collections and other personal things I have built. I am planning to upgrade to the current