What is replacement of  file type IBM while using GUI_UPLOAD?

Hi All,
what is replacement of  file type IBM while using GUI_UPLOAD?

Iam using the class CL_GUI_FRONTEND_SERVICES and method GUI_UPLOAD
instead of directly calling the GUI_UPLOAD FM
Please note the difference marked star against it
Let me know what i have to pass
DATA: INP TYPE STRING.
clear : inp.
MOVE in TO INP.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
EXPORTING
FILENAME = INP
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = SPACE
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = SPACE
CODEPAGE = SPACE
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
VIRUS_SCAN_PROFILE =
IMPORTING
FILELENGTH =
HEADER =
CHANGING
DATA_TAB = cr *******************************
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
NOT_SUPPORTED_BY_GUI = 17
ERROR_NO_GUI = 18
others = 19
The above code gives me an error
"CR" is not type-compatible with formal parameter "DATA_TAB".
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = INP
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = ' '
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = cr *****************************
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.
I assume that CR is a table with header line, in OO context, header lines are not allowed so you specifically have to state that you are passing the body of the table.
*HEADER =
TABLES
DATA_TAB = cr[]      "<-  Like This
EXCEPTIONS
call method cl_gui_frontend_services=>gui_download
  exporting
    filename                = str_file
  changing
    data_tab                = istr.
Message was edited by:
        Karthikeyan Pandurangan

Similar Messages

  • What is java .jpr file type?

    What is java .jpr file type?

    jetq wrote:
    What is java .jpr file type?http://www.fileinfo.com/extension/jpr
    does that help?

  • What is the best file type to use when dealing with text data?

    Hello,
    I am trying to read off text information from a file stored on the phone. I am currently using a txt file to store the data; however the input streaming process is very slow. Is there another way, or file type I can use which is much quicker?
    Regards,
    vj

    do buffering in stead of reading char by char.

  • Which file type should I use and how I use it?

    Hello!
    I need to create a file with some data that has been inserted manually.
    In this file, for example, there are:
    ProjectName1: string1, string7… string10, date1
    ProjectName2: string11, string15… string20, date2
    ProjectNamek: string 100, string 116 … string 140, date1
    I know only one thing: one of the strings.
    What I need to find in the file:
    I need to find the string at one of these rows and get its ProjectName and date.
    For example: if I have string15,
    I should find string15 in the file, and get its ProjectName and date:
    ProjectName2, date2
    Which file type should I use and how I use it? What is the best solution?
    Thanks!

    800512 wrote:
    I need to create a file with some data that has been inserted manually.
    In this file, for example, there are:
    ProjectName1: string1, string7… string10, date1In addition to Pandiya's advice, if the string is always in exactly the above format
    (ie:
    1. ProjectName always starts the line and ends with a ':'.
    2. The rest of the strings on the line are separated by ", " and will never contain ", "
    you might also want to have a look at String.split().
    Winston

  • Inconsistent FOTY0001: type error while  using translateFromNative

    I am getting FOTY0001: type error while using translateFromNative function in assign activity.
    This error happens only in the below scenarios:
    1. Create a BPEL process with file input adapter that accepts simple xml string as input and accepts files like input*.txt.
    2. Create a simple XSD(Fixed Length native XSD) and convert the simple string to XML using translateFromNative function and copy it into a variable.
    3. Switch off the process
    4. Put atleast 10 input*.txt files in the folder and switch on the process.
    This error doesn't happen when I put one file at time.. Even when I put multiple files, the error happens for few instances inconsitently.
    Here is our assign activity
    <assign name="Assign_1">
    <copy>
    <from variable="PlantChemMsg" part="Chemistry"
    query="/ns2:Chemistry/ns2:chemistryString"/>
    <to variable="tempChemistryString"/>
    </copy>
    <copy>
    <from expression="ora:translateFromNative(bpws:getVariableData('tempChemistryString'), 'ChemistryLegacy1.xsd', 'Root-Element')"/>
    <to variable="ChemistryOut" part="Root-Element"
    query="/ns8:Root-Element"/>
    </copy>
    </assign>
    Here is the error in group log:
    ORABPEL-09500
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:translateFromNative(string(bpws:getVariableData('tempChemistryString')), 'ChemistryLegacy1.xsd', 'Root-Element')", the reason is FOTY0001: type error.
    Please verify the xpath query.
         at com.collaxa.cube.xml.xpath.BPELXPathUtil.evaluate(BPELXPathUtil.java:206)
         at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.evalFromValue(BPELAssignWMP.java:679)
         at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.__executeStatements(BPELAssignWMP.java:143)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:195)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3705)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1654)
    Any help would be appreciated. Thanks.
    -Sridhar

    James,
    Thanks & Sorry for the late reply.
    I used assign activity just because I have only one source and target element.
    This error happens even with transform activity.
    Also, all the input messages are same. So It is definitely not the issue with the input message.
    One observation I did is:
    The error doesn't occur when I use like below(Full Http url):
    ora:translateFromNative(string(bpws:getVariableData('tempChemistryString')), 'http://psc-d674943.hdq.uss.com:7777/orabpel/default/TestTranslateFromNativeError/1.0/ChemistryLegacy1.xsd
    ', 'Root-Element')
    But occurs when I use like below.
    ora:translateFromNative(string(bpws:getVariableData('tempChemistryString')), 'ChemistryLegacy1.xsd', 'Root-Element')

  • Using an F2100 printer & can't scan to pdf there is no option in the file type menu there used be ?

    Using an F2100 printer &  can't scan to pdf there is no option in the file type menu there used be ? I'm using xp but had an hp update and have the problem tried unistalling and reinstalling the HP software and even using system restore to be the update .I hope it is just a setting or something simple. Is there another software I can use ? Many thanks

    Follow steps 1 and 2 of this tutorial and you will be able to get a jpg file for each of your book's pages inported into iPhoto: 06 - Creating an iDVD Slideshow From an iPhoto Book.  If you don't have the Automator workflow Save PDF to iPhoto (which should be in the HD/Library/PDF Services folder) you can download it from Toad's Cellar.
    Happy Holidays

  • In what scenarios does Reference condition type is being used?

    In what scenarios does Reference condition type is being used?
    Please provide inputs.

    <b>Reference condition type</b>
    A condition type which can be used as a reference so that you only have to create condition records once for condition types that are very similar.You may need to use different condition types for the same condition. These can differ in the access sequence, the description, the reference stage of the pricing procedure or the calculation type, for example, you can enter the condition type under which the condition records are created.
    <b>Refer below example</b>
    Condition type MWSI only differs with condition type MWST in the calculation type. For this reason an entry is made in field ReferenceCondTypeMWST for condition type MWSI . Now, condition records only need be created for condition type MWST and not additionally for MWSI.
    Thanks and regards

  • Problem on date  while using gui_upload

    Hi,
    I'm not getting date  properly while using GUI_UPLOAD.
    I see the parameter DAT_MODE in the exporting parameters.
    But I'm unable to give the exact value for that parameter.
    Can anyone let me know how to upload the date exactly?
    Thanks in advance.

    Do you really need to use this parameter? You can just coment this line and it will work properly.
    Regards,
    Felipe

  • What is the "other" file type?

    When I go to [ > About This Mac > More Info... > Storage], I get this bar (that is just like the one in iTunes for the data storage on your device), telling me how much space my different file types take up.
    Most of the space is taken up by the yellow "Other". What documents are this type? I don't have hundreds of .pages - or anything - documents.

    shldr2thewheel wrote:
    it contains the operating system, system files, time machine local snapshots etc.  Basically everything that can't be categorized.
    time machine local snapshots are catagorized as "Backups"

  • What are the premier file types

    I see a lot of rendered file types in my disk directory after several editing sessions. I also see several types of files like pek, cfa, xmp. Is there somewhere that I can find the file types?
    I'm trying to clean up my directories but am concerned about deleting them without knowing what they are and how they relate to each other.
    Any help appreciated
    Thanks,

    Atlcenter
    cfa and pek are conformed audio files, you can delete them. The program will regenerate them automatically when and if it feels that it needs them.
    Find the Media Cache Files folder location (probably loaded with GB amounts of cfa and pek files by looking in Edit Menu/Preferences/Scratch Disk and Media Cache.
    Those xmp files are information files which you typically do not need, but check out to what they are associated before deleting any.
    Also, clear the mcdb files (conformed video files). See Edit Menu/Preferences/Media.
    Check out the Adobe Premiere Elements Preview Files Folder in the Adobe Folder. They can be deleted. Consequence is you will need to Timeline render the related content in the project to get the best possible preview.
    Let us start here, and then let us know how the clean up is going.
    Under no circumstances delete, move, or rename source media that went into a project after it has been saved and closed.
    ATR

  • Can customize sequence of file type options while clicking export icon?

    In our project, we are using Vs.net2008 + CrystalReport2008 component.
    But there's an issue while export reports. We are using the standard CrystalReportViewer and show the "export report" icon on the toolbar. When user clicks that icon, it pop-ups the Export Report dialog for save to a file.
    But our customers wish to see the "PDF(.pdf)" at the default file type option not the "(Crystal Reports (.rpt)".
    Is that possible to configure inside CrystalReportViewer?
    Edited by: Mark Uram on Apr 9, 2009 11:19 AM

    Only option is to create your own export button and display then in the order you wish and which export types you want to support etc...
    Thank you
    Don

  • How are user-entered MIME applications defined to open certain file types. This used to be standard in browsers.

    In the not-terribly-recent past, browser Preferences allowed users to create associations between a file type (really, a file extension indicating its type) with an application used to run that type of file. Firefox seems to have buried this (on the Mac) in ~/Library/Application Support/Firefox/... ;in which seem to be an xml file.
    Is it possible to edit this xml file directly, and if so, where in the xml file should a new entry be placed, and what is the explicit syntax of an entry (other than obviously copying present entries)?
    These used to be called MIMEs.

    I am trying to use a rather older programming language called Mozart, an extension of OZ. I installed it as a binary, but instead of storing its component binaries in a place like /usr/local/oz/bin/. they are all enclosed inside the /Applications/Mozart.app/Contents/Resources/bin/. which cannot be opened nor can a soft link be made to it located outside the Mozart.app wrapper.
    The only alternative is to try to edit the mimeTypes.rdf files, and give it the full path name to the inside of Mozart.app were the program used for web applications is stored. It is stored in ~/Library/Application Support/Mozart/, which can only be accessed in more recent Mac OS X by going to finder and holding the Option key while opening the Go menu; this will make the ~/Library visible and accessible.

  • IOException File not found - While using Runtime.exec

    Hey All,
    I have written a Java application which needs to start up another external application. I have executables for that external application for different platforms (Win32, PPC and Linux). When the Java application is started it detects the OS and starts up the right executable according to the OS. The executable loads up fine on Windows without any problems. But in both Linux and Max OS X I get this exception:
    java.io.IOException: java.io.IOException: "/home/vilas/Documents/Project/build/CLISP/linux/lisp.run": not found
            at java.lang.UNIXProcess.<init>(UNIXProcess.java:143)
            at java.lang.Runtime.execInternal(Native Method)
            at java.lang.Runtime.exec(Runtime.java:566)
            at java.lang.Runtime.exec(Runtime.java:428)
            at jplan.communication.lispserver.LispServer.startupServer(LispServer.java:143)
            at jplan.communication.lispserver.LispServer.run(LispServer.java:109)
            at java.lang.Thread.run(Thread.java:534)lisp.run has all the necessary permissions. If I copy the string (/home/vilas/Documents/Project/build/CLISP/linux/lisp.run) and paste it in a terminal and press enter, the application starts up fine without any problems!! Can you please tell me what could be going wrong?
    The following extra information maybe helpfull:
    1) I use the exec(String command, String[] envp, File dir) version of exec.
    2) The complete format of the command is as follows (one long string):
    "/home/vilas/Documents/Project/build/CLISP/linux/lisp.run" -B "/home/vilas/Documents/Project/build/CLISP/linux" -M "/home/vilas/Documents/Project/build/CLISP/linux/lispinit.mem" -i loader.lisp
    Thanks in advance for your time and efforts.

    I found the problem after extensively searing the forums (looking upto page 4 !! of the results). The problem was that I was using quotes to surround the paths in the command. If you copy and paste it in a terminal it will work fine but it does not work with runtime.exec. I am not sure, but I think the reason is that when a terminal is used, some pre-processing of the commands take place before they are passed onto the OS(shell). But while using runtime.exec, that pre-processing is not peformed and therefore some things will not work.
    In order to fix the problem, I use quotes only when the OS is windows. In other cases(OS X, Linux) I escape the spaces i.e. replace " " with "\ ".
    PS: The executable is a binary compiled from C code.

  • How do I move files in iCloud while using my mini iPad?

    I just recently got an iPad mini with retina display.  This is my first iPad.  There are many things that are new to me.
    At the moment, I'm trying to figure out how to move or delete files in iCloud Drive while using my mini iPad.  As I understand it, the only way to look at, organize or move files in the iCloud drive is to login to iCloud via a browser other than installing a separate specific application that lets me do that.  However, I have found that even if I login to the iCloud drive using a browser, I still can't move or delete files while using the mini iPad although I can view the file list and folder list, create file folders, and use files for which I already have an application installed.
    How do I get around this so that I can do those things?  Do I really have to get a separate application to do that?  If so, what's a good one to use?

    Hi Files get sent to iCloud when you backup this happens Automatically When you charge your iPad Since ios 7 Almost everything can be done over your WiFi Software updates  apps& data can all be synced over WiFi We have  2 iPhones & 3 iPads & have not used PC for over a year. For Apple Devices. Go to ibooks download iPad user guide its Free. Cheers Brian

  • Which file type should I use?

    Hi all,
    I am finally building my book. Using Elements 10 as my primary. My workflow starts with creating a new file (file/new/blank)
    I just finished the first page and to be safe I saved it as a PDF, PNG and JPEG. When all the pages are done I am going to print it locally. I think JPEG will be useful and this first page is only 8MB. I just have to decide what my other file type should be, which will the file I print. Both the PNG and PDF files were 60MB each. Should I contine to save as both? I will most likely come back and re-edit as well. Thanks.

    You actually have two questions:
    In order to re-edit at a later date, save it as either a PSD (Elements native file format) or TIFF.  These file formats preserve your layers and masks, so re-editing is a snap.
    When it's time to print, talk to the printshop you're going to use and ask them what file format they prefer.  Most places can handle PDFs.
    Ken

Maybe you are looking for