Regarding the File Format on the application server

Hi,
I would like to know the file format (ANSI, UTF-8, UTF-16, UTF-32) of the file placed on the application server in my program. Can anyone help me with the Function Module or Class or any other way which will retrieve this information.
Thanks
Sarves S V K

Hi
You can try the standard class CL_ABAP_FILE_UTILITIES and the method
  CALL METHOD cl_abap_file_utilities=>check_utf8 
    EXPORTING 
     file_name = filename 
    IMPORTING 
     bom       = file_bom 
     encoding  = file_encoding. 
Check the possible values returned by encoding and BOM:
NO_BOM
BOM_UTF8
BOM_UTF16_BE
BOM_UTF16_LE
ENCODING_UTF8
ENCODING_7BIT_ASCII
ENCODING_OTHER

Similar Messages

  • Trying to copy a 10gb file to a memory stick but theres an error msg file to large for the file format of the stick. is there a way around this

    trying to copy a 10gb file to a memory stick but there's an error msg, file to large for the file format of the stick. is there a way around this

    If you use 'Disc Utility' you can format the stick (this will erase its contents) to be exFat which will still work with Mac and Windows but allow a larger file sizes to be placed onto the stick.
    Disc Utility > Click the drive on the left > Erase (tab) > Change format to ExFat > Erase > Try putting the file on to the stick again.

  • Registering the file format with the system

    Hey,
    I have a program which saves files using objectstream.. How can register the new format with the operating system so that it knows which program to use to open it.. Can any one help me with this..

    i want this to be platform independent... Is it possible to do it in java.. Or may be some tool to make the java program installable... Is it possible????

  • Excel cannot open the file 'file.xlsx' because the file format

    Every now and then, when I try opening an Excel file, I get a message saying that "Excel cannot open the file 'file.xlsx' because the file format or the file extension is not valid. Verify that the file has not been corrupted and that the file extension
    matches the format of the file.

    Hi,
    Which Excel version are you using? As far as I know, this issue is caused by malware on the affected machine.There are now two known variants of malware which causes this problem: Win32/Crilock.A and
    Win32/Buma!rts. They have both been identified as a new family of ransomware.
    We'd better clean your machine, run Microsoft Safety Scanner (http://www.microsoft.com/security/scanner/en-us/default.aspx).
    For more detail information, please refer to the following link:
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2013/09/07/quot-cannot-open-the-file-because-the-file-format-or-extension-is-invalid-quot-opening-office-files.aspx
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Upload a file to portal--- BW application server.

    Dear All,
    I have requirement where some part of business does not have SAP installed. But we would like to extract data from these business too.
    So just wanted to know if we can have a scenario where user will upload the data to the portal (this is just a web portal). Can this be done?
    Secondly, if the can be done, can we extract the file from portal to application server? From application then it becomes very simple to upload to data targets in BW.
    Please help in this regard.
    Thanks,
    Sandeep

    Assign an ID (e.g. 1234) to the uploaded file. You should abstract the store
    so that it will work on the file system or in the database.
    The JSP will include an image ref to that ID, e.g.
    http://www.myco.com/myapp/imageservlet?id=1234
    The image servlet will retrieve and stream the image. It has to set content
    type etc. You should also verify that the current user has access to the
    requested image if security/privacy is an issue.
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com/coherence.jsp
    Tangosol Coherence: Clustered Replicated Cache for Weblogic
    "newsgroups.bea.com" <[email protected]> wrote in message
    news:3daadaa5$[email protected]..
    Imp struggling to find a way of uploading an image file from the browserto
    the app server (wl 6.1), where the uploaded image will to be included as
    part of a JSP file.
    ** Note
    - this part of Managed Cluster, the uploaded directory is NFS mounted
    between the managed servers
    - we deploy using EAR's from the admin server.
    I am able to upload but, cant get the uploaded image to display as partof
    a JSP,
    Our 5.1 WL server work perfectly using a standard exploaded directory !
    I have logged this as a call at BEA, but they have not been able to offerme
    a solution yet.
    Regards
    Roland

  • Reading the data from excel file which is in application server.

    Hi,
    Iam trying to read the data from excel file which is in application server.
    I tried using the function module ALSM_EXCEL_TO_INTERNAL_TABLE. But it didn't work.
    I tried just reading using open data set and read data set it is giving junk characters.
    Please suggest me if you have any solution.
    Best Regards,
    Brahma Reddy

    Hi Narendra,
    Please see the below code I have written
    OPEN DATASET pa_sfile for INPUT in text mode ENCODING  DEFAULT MESSAGE wf_mess.
    CHECK sy-subrc = 0.
    DO.
    READ DATASET pa_sfile INTO wf_string.
    IF sy-subrc <> 0.
    EXIT.
    else.
    split wf_string at wl_# into wf_field1 wf_field2 wa_upload-field3
    wa_upload-field4 wa_upload-field5 wa_upload-field6 wa_upload-field7 wa_upload-field8
    wa_upload-field9 wa_upload-field10 wa_upload-field11 wa_upload-field12 wa_upload-field13
    wa_upload-field14 wa_upload-field15 wa_upload-field16 wa_upload-field17 wa_upload-field18
    wa_upload-field19 wa_upload-field20 wa_upload-field21 wa_upload-field22 wa_upload-field23
    wa_upload-field24 wa_upload-field25 wa_upload-field26 wa_upload-field27 wa_upload-field28
    wa_upload-field29 wa_upload-field30 wa_upload-field31 wa_upload-field32 wa_upload-field33
    wa_upload-field34 wa_upload-field35 wa_upload-field36 .
    wa_upload-field1 = wf_field1.
    wa_upload-field2 = wf_field2.
    append wa_upload to int_upload.
    clear wa_upload.
    ENDIF.
    ENDDO.
    CLOSE DATASET pa_sfile.
    Please note Iam using ECC5.0 and it is not allowing me to declare wl_# as x as in your code.
    Also if Iam using text mode I should use extension encoding etc.( Where as not in your case).
    Please suggest me any other way.
    Thanks for your help,
    Brahma Reddy

  • How to fix file when it says, "Cannot open file " ". Adobe Indesign does not support the file format, a plug-in that supports the file may be missing, or file may be open in another application." It worked one second, I saved and closed the file, then tri

    How to fix file when it says, "Cannot open file " ". Adobe Indesign does not support the file format, a plug-in that supports the file may be missing, or file may be open in another application." It worked one second, I saved and closed the file, then tried to reopen and now it won't work. I am using Adobe InDesign CS5. It is the only version on my comp. I have tried opening on another comp & copying the file – same error comes up. PLEASE HELP

    First check the version of the document with Jongware's script "Identify.jsx" (ExtendScript/JavaScript).
    You can find it here:
    [Ann] Identify Your InDesign File
    If it is CS 5.5 or above, you need someone to open it in the version the script says and export an IDML representation from that. Another way would be to install a 30days version of CS6 or above (CC) and do it yourself.
    In regards of the script showing a result for InDesign files higher than CS6:
    CS7 = CC v9
    CS8 = CC v10 = CC-2014 or CC2014.1
    Uwe

  • Whether SAP DMS support the below file format in workstation application

    Hi..
    Whether SAP DMS support the below file format in workstation application?
    .DAT
    .DWF
    .IGES,
    .MSP, .MSPX
    .PST
    .RAR
    .RVT
    .XER

    Hi Sandip,
    Refer the link below for supported workstation applications in DMS.
    http://wiki.sdn.sap.com/wiki/display/PLM/2.Customizing(CA-DMS-EAI)
    All of your workstation applications should be supported.
    Regards,
    Deepak Kori

  • How to send the file contents in the application server to ftp server

    Hi,
    how to send the file contents in the application server to ftp server.
    regards,
    sree

    Test SAP FTP functions
    DATA: BEGIN OF MTAB_DATA OCCURS 0,
    LINE(132) TYPE C,
    END OF MTAB_DATA.
    DATA: MC_PASSWORD(20) TYPE C,
    MI_KEY TYPE I VALUE 26101957,
    MI_PWD_LEN TYPE I,
    MI_HANDLE TYPE I.
    START-OF-SELECTION.
    MC_PASSWORD = 'password'.
    DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.
    *-- FTP_CONNECT requires an encrypted password to work
    CALL 'AB_RFC_X_SCRAMBLE_STRING'
         ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
         ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
         ID 'DSTLEN' FIELD MI_PWD_LEN.
    CALL FUNCTION 'FTP_CONNECT'
         EXPORTING
           USER            = 'userid'
           PASSWORD        = MC_PASSWORD
           HOST            = 'servername'
           RFC_DESTINATION = 'SAPFTP'
         IMPORTING
           HANDLE          = MI_HANDLE
         EXCEPTIONS
           NOT_CONNECTED   = 1
           OTHERS          = 2.
    CHECK SY-SUBRC = 0.
    CALL FUNCTION 'FTP_COMMAND'
         EXPORTING
           HANDLE = MI_HANDLE
           COMMAND = 'dir'
         TABLES
           DATA = MTAB_DATA
         EXCEPTIONS
           TCPIP_ERROR = 1
           COMMAND_ERROR = 2
           DATA_ERROR = 3
           OTHERS = 4.
    IF SY-SUBRC = 0.
      LOOP AT MTAB_DATA.
        WRITE: / MTAB_DATA.
      ENDLOOP.
    ELSE.
    do some error checking.
    ENDIF.
    CALL FUNCTION 'FTP_DISCONNECT'
         EXPORTING
           HANDLE = MI_HANDLE
         EXCEPTIONS
           OTHERS = 1.
    Execute external commands (FTP Scripts)
    The following code shows the syntax of the FM 'SXPG_COMMAND_EXECUTE'. You pass it the external command created within transaction SM69 and it will execute it.
    DATA: ld_comline 
    LIKE sxpgcolist-name,
            ld_param    LIKE sxpgcolist-parameters,
            ld_status   LIKE extcmdexex-status,
            ld_output   LIKE btcxpm OCCURS 0 WITH HEADER LINE,
            ld_subrc    LIKE sy-subrc.
      REFRESH ld_output.
      MOVE 'FTP_DATA_IN' to ld_comline.         "Maintained using trans SM69
    Execute external command, contained in 'ld_comline'
      CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
           EXPORTING
                commandname                   = ld_comline
              additional_parameters   = ld_param  "Params passed to script
              operatingsystem              
    = 'UNIX'
           IMPORTING
                status                        = ld_status
           TABLES
                exec_protocol                 = ld_output
           EXCEPTIONS
                no_permission
                     = 1
                command_not_found
                 = 2
                parameters_too_long          
    = 3
                security_risk                
    = 4
                wrong_check_call_interface    = 5
                program_start_error           = 6
                program_termination_error     = 7
                x_error                       = 8
                parameter_expected            = 9
                too_many_parameters           = 10
                illegal_command               = 11
                wrong_asynchronous_parameters = 12
                cant_enq_tbtco_entry
              = 13
                jobcount_generation_error
         = 14
                OTHERS                       
    = 15.
      IF sy-subrc NE 0.
      ENDIF.

  • Does the file format differ when you Publish locally to hard drive vs. to the Connect Pro server?

    I notice that when I publish locally to my hard drive to review a set of slides, I see a folder full of files. If I click on index.htm within the folder, I can launch the slides.
    When I publish to the Adobe Connect Pro server, I merely see a url for the link to the course.
    I'm not sure what this url link represents (as far as the file format is concerned):
    Has the presentation been converted to different file format than what is published on my local drive? If so, what format is it in?
    If  the presentation has not been converted, does the directory structured published to my local drive get replicated on the Adobe Connect Pro server, and the url is merely a link to the "starting file " within that folder (say, index.htm)?

    The published output does not differ between publishing locally and publishing to Connect. The URL on the Connect server does, ultimately, point to the Index.htm or viewer.swf file.

  • Getting error "Cannot open the file "*****.INDD". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file may be open in another application."

    How to fix this problem
    "Cannot open the file "*****.INDD". Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing, or the file may be open in another application."

    When I have seen this message it is either when I try to open a document with an older version of Indesign E.g. an indesign 2014 document with Indesign CC.
    The other time I have seen it is to open an Indesign CC document with Indesign 2014 which does not have Mindsuite - a plugin I use. Mindsuite, as yet, has not upgrade the plugin for Indesign 2014 therefore it recognises that a the document was created withe a plugin that the 2014 version does not have installed.
    I believe your problem will be something like that.

  • TS2611 I re installed my Final Cut express software, now when I go to use my "halo" and "arrow" application I get a message that says the file format is too new for this version of the application.  Anybody have suggestions?

    I re installed my Final Cut express software, now when I go to use my "halo" and "arrow" application I get a message that says the file format is too new for this version of the application.  Anybody have suggestions?

    After install, did you go to  Apple menu > Software Update to update your FCE to the latest version?
    MtD

  • How do I convert an excel (2008) document to Numbers?  When I drag the Excel document onto the Numbers icon I get, "Import error.  The file format is invalid"

    How can I convert an Excel (2008) document to Numbers.  When I drag the Excel document onto the Numbers icon I get, "Import error.  The file format is invalid.

    That extension identifies the most current Excel file format, a format that can be opened by Numbers '09 (and by Numbers '08).
    A check with Numbers '09 shows it capable of opening .xlsx files when right-clicked (and Numbers chose as the application to open, when double-clicked (if Numbers has been set as the default application to open this type of file, or when dragged to the Numbers icon in the dock.
    I see two possibilities for Numbers inability to open it and the message you receive:
    1. The file is not actually an Excel file, and the sender has added the .xlsx extension to the filename manually.
    2. The file is an Excel file, but has somehow been corrupted.
    Have you tried opening the file with a different application? The open source Office suites, OpenOffice.org, LibreOffice and NeoOffice can also open .xlsx files. If they're unable to open this one, that would point toward the file itself being faulty. You can download these applications from their rspective websites, linked in the names above. All request a donation to support future development, but only Neo requires one to have been made recently, and that only for the current release (which won't be necessary to open .xlsx files).
    Regards,
    Barry

  • FM to upload the Internal table data into application server.

    Hi,
      Could you please give me Function module to Upload the Internal table data into Application server ie., in Tcode AL11.
    I know for downloading the Application server file into itab is "SUBST_GET_FILE_LIST" FM and using open dtaa set we get the data.
    Regards,
    deepthi.

    Hi Deepthi
    Incase you are looking to upload data in the AL11 through a program , then you can make use of OPEN DATASET...CLOSE DATASET statements.
    Here's the code snippet:
    IF tb_alvdisplay[] IS INITIAL.
        MESSAGE e999(/dcsea/zais_msg) WITH text-e01.
      ELSE.
        IF  NOT cb_ufile IS INITIAL  "Download to file
         AND sy-pagno = 0.            "Only down page headers for first page
          PERFORM fm_concatenate_path_name USING    p_path
                                                    p_file
                                           CHANGING v_file.
    *Open file for download.
          PERFORM fm_open_file USING v_file .
        ENDIF.
        LOOP AT tb_alvdisplay.
          IF  NOT cb_ufile IS INITIAL.
    *Passing the values of the respective headings to the structure.
            ws_rec-vend_no     = tb_alvdisplay-vendno.
            ws_rec-vend_nm     = tb_alvdisplay-vendnm.
            ws_rec-title       = tb_alvdisplay-vendtl.
            ws_rec-add         = tb_alvdisplay-add.
            ws_rec-city1       = tb_alvdisplay-city1.
            ws_rec-region      = tb_alvdisplay-region.
            ws_rec-country     = tb_alvdisplay-country.
            ws_rec-pobox       = tb_alvdisplay-po.
            ws_rec-phone       = tb_alvdisplay-telf1.
            ws_rec-extn        = tb_alvdisplay-extn.
            ws_rec-fax         = tb_alvdisplay-telfx.
            ws_rec-zterm       = tb_alvdisplay-zterm.
            ws_rec-remark      = tb_alvdisplay-remark.
            ws_rec-email       = tb_alvdisplay-email.
    *Passing the separator 'PIPE' to the structure.
              ws_rec-sep01  = co_sep.
              ws_rec-sep02  = co_sep.
              ws_rec-sep03  = co_sep.
              ws_rec-sep04  = co_sep.
              ws_rec-sep05  = co_sep.
              ws_rec-sep06  = co_sep.
              ws_rec-sep07  = co_sep.
              ws_rec-sep08  = co_sep.
              ws_rec-sep09  = co_sep.
              ws_rec-sep10  = co_sep.
              ws_rec-sep11  = co_sep.
              ws_rec-sep12  = co_sep.
              ws_rec-sep13  = co_sep.
            TRANSFER ws_rec TO v_file.
          ENDIF.
          AT LAST.
            IF NOT cb_ufile IS INITIAL.
    *Closing the DATASET file.
              CLOSE DATASET v_file.
              IF sy-subrc <> 0.
    *Failure Message.
                MESSAGE e999(/dcsea/zais_msg) WITH text-t04 text-t06.
              ELSE.
    *Success message.
                MESSAGE s999(/dcsea/zais_msg) WITH text-t05.
              ENDIF.
            ENDIF.
          ENDAT.
        ENDLOOP.
      ENDIF.
    Also as Gautham suggested you can use tcode CG3Z or CG3Y incase you are looking to upload the data directly.
    FInally, you can search SCN using the keywords, "Upload to AL11" and you'll get loads of results.
    Hope this helps.
    Harsh

  • CG36 - Import report - No file format in the key file?

    Hi all,
    Transaction CG36: .Key files are successfully checked by u2018Check directoryu2019 in transaction CG36. The second step is the import process. The Import shows u2018greenu2019 successfully. But the Job description shows the following message:
    No file format in the key file test.key
    Number of errors: 0
    Job Finished:
    More details:
    No file format in the key file test.key
    Message no.C114
    Diagnosis:
    No entry for the document file type was found in the key file test.key
    System response:
    The report for the key file test.key is not imported.
    Procedure:
    Ensure that a document category is entered in the key file test.key
    TEST.KEY - Key file structure:
    CPN=TEST
    DTY=SDB
    SID=000000000492
    PRN=TEST PROD
    CTY=GB
    LAC=E
    STA=V
    DAT=19.03.1996
    FNA=1.PDF
    FTT=PDF
    During the report import (CG36, Dok-X), the workstation application is defined using the FFT entry in the key file, as displayed above, the key file as FTT=PDF defined correctly.
    We have processed the customizing settings which are required and described under: Report Import: Check Additional Settings (under EH&S u2013 Product Safety > Interfaces > Import and Export > Basis Settings for Import and Export).
    Is anybody familiar with the issue: No file format in the key file?
    What do I do wrong? Is the above Key file structure incorrect?
    Is configuration in SAP DMS required?
    Thank you in advance.
    Kind regards,
    Roy Derks

    Hello Roy
    my assumption would be: there is a typing error in the key file. If the content of the key files is like what you have published you must use in the key file
    FFT=PDF
    and not
    FTT=PDF.
    No further information is necessary and the other data seems to be perfect.
    With best regards
    C.B.
    PS: if necessary my be you could check DMS customizing. By standard EH&S implemenation a document type "IBD" should be there whiich is used for e.g. pdf file.
    PPS: I have no idea why the reimport check does not show up this issue.
    Edited by: Christoph Bergemann on Apr 8, 2010 8:49 PM
    Edited by: Christoph Bergemann on Apr 8, 2010 8:50 PM
    Edited by: Christoph Bergemann on Apr 8, 2010 8:54 PM

Maybe you are looking for

  • I can't find my iMovie in iTunes?

    I created an iMovie app project on my iPad and uploaded it to youtube and iTunes? It's running on youtube, but I cannot find it on iTunes on my PC (or the iPad). I just updated to iTunes11. I went back into iMovie to upload again, but it warned me 'y

  • Starting a Cisco call manager express

    I have a cisco 2651 with Cisco call manager express. I have too 15 IP telephones 7902G The configuration is in factory default. Ì have to create an IP pbx and extensions of a municipality with that components. I's like that anybody helps me in the st

  • If some one have the solution of my problem tell me plzzzzzzzzz

    hi i m Adnan from Pakistan there is a conflict in my BB 8100 if i add countery code of any of my contact when i receive a call from that specific contact my BB 8100 will not show its Name but only Number and if i delet countery code then my BB 8100 d

  • ITunes adding music from external drive to multiple users

    Here's what I have: My iMac currently has 3 different user accounts on it. My iTunes library is currently stored on my external HD and its location is set to route to the external drive on both accounts. I currently have both boxes checked to Keep fi

  • Check class name of List ItemRenderer

    Hello, I am setting the itemRenderer of a Spark Mobile List like so: var ir:ClassFactory=new ClassFactory(MyItemRenderer); ir.properties={etc. etc.}; list.itemRenderer=ir; How can I check if the list's itemRenderer is MyItemRenderer or at least a cla