GUI_UPLOAD data problem

we are uploading .DAT file in following program, after uploading the data into sap system, we are not able to see the complete data
first row last two three fields are missing, the total field values length is 331 character, even if i given the 5000 character also same values is showing when i runtime.
even i have dowloaded the tabtyp_tbl at runtime into .DAT format, i am not able to see the last field values
please provide the reason behind this one
SELECTION-SCREEN BEGIN OF BLOCK file WITH FRAME TITLE text-s01.
PARAMETERS:
         r1 RADIOBUTTON GROUP rad1 DEFAULT 'X',
         p_file_u TYPE file DEFAULT
                   'XXX_TR.DAT',
         r2 RADIOBUTTON GROUP rad1,
         p_file TYPE localfile.
SELECTION-SCREEN END OF BLOCK file.
TYPES: BEGIN OF rectyp_tbl,
       data(331),                       "tarn72 "gb13032009 D
         data(5000),                       "gb13032009 I
       end(2),
  END OF rectyp_tbl.
  data : tabtyp_tbl TYPE standard TABLE OF rectyp_tbl.
            WITH NON-UNIQUE DEFAULT KEY
            INITIAL SIZE 500."gb13032009 D
             INITIAL SIZE 1000."gb13032009 I
DATA:
      l_gui_filename  TYPE string,     " Filetype
      l_gui_filetype(10)   TYPE c,     " Filetype
      l_gui_filz         TYPE i.       " Filesize
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
      mask      = ',TR.DAT file,tr*.dat'
      static    = 'X'
    CHANGING
      file_name = p_file.
    MOVE p_file TO l_gui_filename.
    MOVE 'ASC'      TO l_gui_filetype.
start-of-selection.
CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename        = l_gui_filename
        filetype        = l_gui_filetype
HAS_FIELD_SEPARATOR     = 'X'
      IMPORTING
        filelength      = l_gui_filz
      TABLES
        data_tab        = tabtyp_tbl
      EXCEPTIONS
        file_open_error = 01
        file_read_error = 02
        invalid_type    = 03
        unknown_error   = 04.
    CASE sy-subrc.
      WHEN 01.
        MESSAGE e000(fb) WITH 'Cannot open file'(125) p_file.
      WHEN 02.
        MESSAGE e000(fb) WITH 'Cannot read file'(126) p_file.
      WHEN 03.
        MESSAGE e000(fb) WITH 'File'(127) p_file
                          'has invalid file type'(128) l_gui_filetype.
      WHEN 04.
        MESSAGE e000(fb) WITH 'Unknown error, file'(129) p_file.
    ENDCASE.

Hi ,
There are few very little changes that I want to suggest you, please make the below made changes into your existing code and try to execute.
data : tabtyp_tbl TYPE standard TABLE OF rectyp_tbl with header line.
start-of-selection.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = l_gui_filename
filetype = l_gui_filetype
*HAS_FIELD_SEPARATOR = 'X' " REMOVE THIS PARAMETER
*IMPORTING " REMOVE - NO NEED
*filelength = l_gui_filz " REMOVE - NO NEED
TABLES
data_tab = tabtyp_tbl[] " BRACKETS
EXCEPTIONS
file_open_error = 01
file_read_error = 02
invalid_type = 03
unknown_error = 04.
CASE sy-subrc.
WHEN 01.
MESSAGE e000(fb) WITH 'Cannot open file'(125) p_file.
WHEN 02.
MESSAGE e000(fb) WITH 'Cannot read file'(126) p_file.
WHEN 03.
MESSAGE e000(fb) WITH 'File'(127) p_file
'has invalid file type'(128) l_gui_filetype.
WHEN 04.
MESSAGE e000(fb) WITH 'Unknown error, file'(129) p_file.
ENDCASE.
Hope this will solve your issue.
Regards,
Ashish Arora

Similar Messages

  • Help needed with missing data problem in CRVS2010

    We recently upgraded the reporting engine in our product to use Crystal Reports for Visual Studio 2010 (previously engine was CR9). Our quote report, which has numerous subreports and lots of conditional formatting, started losing data when a quote took more than a single page to be printed. We knew the SQL results included the data, but the report was not printing those lines at all or sometimes printing a partial line. In addition, the running total on the report would exclude the lines that were being missed on the next page. In one example submitted by a customer, 3 lines were skipped between pages.
    I think I have identified two potential issues that document the possibility of data not being included in the report.
    The first potential issue is an issue with the "suppress blank section" option being checked. This issue is supposedly fixed with ADAPT01483793, being released someday with service pack 2 for CRVS2010.
    The second potential issue is using shared variables. This issue is supposedly fixed with ADAPT01484308, also targeted for SP2.
    Our quote report does not explicitly use shared variables with any of the subreports, but it does have several subreports, each in its own section that has the "supress blank section" option checked. We have other reports that use this feature, as well, and they are not exhibiting the problem.
    One different thing about the quote report is that it has a section with multiple suppression options selected. The section has a conditional suppression formula, which controls whether the section is included at all within the report. The section also has the suppress blank section option selected. There are multiple fields within the report that are each conditionally suppressed. In theory, the section's suppress formula could evaluate to true, yet all of the fields within the section are suppressed (due to null values), and then the "suppress blank section" option would kick in.
    The missing data only seems to happen when the section is not being suppressed, and at least one of the fields is being included in the report. If I clear the "suppress blank section" check box, and change the section formula to also include the rules applied to the fields in the section, the missing data problem seems to be resolved.
    Is this related to ADAPT01483793? Will it be fixed in service pack 2?
    If more details are needed, I would be happy to provide a sample report with stored data.

    Hi Don,
    Have a look at the Record Selection formula in CR Designer ( stand alone ) and when exported to RPT format opening that report in the Designer also. 
    There's been a few issues with => logic in the record selection formula. It could be you are running into this problem. Look for NOT inserted into your selection formula.
    Oh and SP2 is coming out shortly so it may resolve the issue. But if you want you could purchase a support, or if you have a support contract then create a case in SMP and get a rep to work with you to debug the issue.
    If you have not try the Trial Version of CR 2011, put it on a VM-ware image or Test PC so you don't corrupt anything for production and have a look at and test it in that designer also. If you purchase a case and it is a bug then you'll get a credit back for the case.
    Don
    Edited by: Don Williams on Oct 26, 2011 7:40 AM

  • Clearing of Balance in GR/IR clearing account due to date problem

    >Hi to All,
    >The scenario is like this :-
    >The client is making back dated entries for quarter between 01.04.2008 to 30.06.2008 in SAP in July 2008 as the system is getting implemented now. He wants to regularise all the transactions in SAP from 01/04/2008.
    >The users entering the data were new and hence though the miro and payment entries were made by F&A in back date. The Purchase Orders and the GRs were prepared in the current date of July 2008.
    >Because of this date problem the GR/IR clearing account is having balance in it, which should have been clear after the processing of the miro document.
    >The documents were handed over to f&a after preparation of GR in the systems for Invoice processing through MIRO.
    >Can anyone plz give a solution to clear the balance GR/IR clearing account.
    >Thanks in advance.
    >Ashutosh M Joglekar.

    Hi Muthuraman,
    No need to clear any thing for PO pending items.
    Regards
    Gitesh

  • My macbook pro recently got swiped and I lost all my data, problem is, just before it was swiped I set up my new iphone 5 which transferred all my photos and music over which is no longer on the computer. What will happen to my phone if I plug it in?

    My macbook pro recently got swiped and I lost all my data, problem is, just before it was swiped I set up my new iphone 5 which transferred all my photos and music over which is no longer on the computer. What will happen to my phone if I plug it in?

    I never used icloud before so there is no data to back up from. I just spoke  to the apple store and they said that if I do plug it in, all the data will be swiped....is there a program I can use to transfer my data from my phone to computer without loosing it all ???
    Renee

  • Will apple next update to help fix the location following data problems will the ipod touch 2g be included ?

    will apple next update to help fix the location following data problems will the ipod touch 2g be included ?

    Chances are the 2g itouch will not be included in the update. Also no one yet knows if it will be fixed in the next firmware but apple has said they know of this bug.

  • A Full DTP is converted into delta DTP and facing some data problem

    Recently Full DTP(DSO to DSO) is converted into delta DTP , we are facing some data problem in first request.Some data in D2 are not updated properly after just converted in full to delta. Please let me know if you have any idea.
    Example :
    DSO : D1
    DSO : D2
    Previously FULL DTP D1->D2
    Now Delta DTP D1->D2

    Hi,
    First time run of delta DTP will extract all the records from the source...
    As u have already run the Full load and followed by delta,i guess u can use direct change log option...
    rgds,

  • Parsing Date Problem

    I have date problem that I am finding hard to resolve. Please
    suggest me what I could do.
    I want to parse String Date values of formats like "19 Jun 2003" and
    "19/06/2003" to a Date object.
    Can I Do it.
    Thanking in Advance.

    Sure. See SimpleDateFormat#parse.
    Kind regards,
      Levi

  • [JHS10.1.3] Date problem

    Running into a date problem for a forms migration.
    I have a date field in the database, normal date field.
    The users want to be able to search on partial dates.
    So adding a between on this field will only generate two date selectors, which is not what they want.
    The format is like a year field, week field, day field.
    I could modify the query to return three extra numeric fields which convert the date to the right format ('yyyy', 'wi', 'dd' ) and then to number and generatie 3 between fields for this.
    This will generate the right layout, 6 input fields for a year from/to week from/to day from/to
    But the query will be like (year between x and x) and (week between x and x) and day (between x and x)
    This will not produce the right results.
    What is possible is a string manipulation of the whereclase in the method getViewCriteriaClause()
    And see if any/all of the fields are filled and build the query there, but this is not a 'clean' solution.
    Any idea on how I can solve this? Basicly a date field in the database, user wants to search that date field on year/week/day between year/week/day or a partial of that.
    This is the way it used to be in the forms application so I really want to give the same functionality with ADF.
    Anton

    Not sure if I completely understand what you said, but this is what I did ( it seems to work )
    All my viewobjects extends a new superviewobjectimp, this class has just 2 setters and getters, one for the datefield I want to search on and one for the partial name I gave the three attributes (<fixed name>Year <fixed name>Week <fixed name>Day).
    In the advancedSearch, in the loop trough the attributes I cast the viewobject to this superviewobjectimp. I can now check if the attribute contains the partial name. If this is the case I build my own string and add it to the viewCriteriaMap.
    One odd thing I found here is that it refuses to let me add a string like
    between to_date( '<startdate>', 'yyyy-mm-dd' ) and to_date( '<enddate>', 'yyyy-mm-dd' )Because if I do this, for some reason the attribute name will be wrapped in a to_char!
    If I just leave:
    between '<startdate>' and '<enddate>'It works, but I dont feel really safe about that, I would rather use the datecast to be sure.
    Any idea how this can be done?
    I also used the java Calendar class to transform a yyyy-iw-d to a yyyy-mm-dd because it seems I cant use 'iw' in a to_date(....). This also solved a problem with partial dates, java will autocomplete them for me.
    In other words if I only supply the year 2005 to 2006 it will auto search from 2005-1-1 - 2006-1-1, same for weeks.
    I have a lot of viewobjects which will require this, I'm trying to make it as solid as I can.
    Any suggestions?
    Anton

  • I have a strange 3g data problem.

    I have a strange 3g data problem.  At home I have zero 3G connectivity even though all bars are showing and says "3G" and wifi is "Off" ... unless I am on the phone and then magically the 3G data connection works perfectly!!  Does anyone have any idea what is happening?  Also when I bring my phone to my dad's or my friends house the problem disappears!! Is this a hardware or a AT&T network problem? os is 4.3.3
    Also called ATT and they said there was no problem with the network and that it was a hardware issue.  Also restored the phone several times but the problem did not go away.

    OK, no trouble shooting. The first thing I'd attempt is restarting in Safe Mode. If you still don't have luck try doing both a SMC and PRAM reset, it wouldn't hurt to do the SMC reset a couple of times. If still no luck let us know.
    SMC RESET
    Shut down the computer.
    Unplug the computer's power cord and all peripherals.
    Press and hold the power button for 5 seconds.
    Release the power button.
    Attach the computers power cable.
    Press the power button to turn on the computer.
    PRAM RESET
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • Interpreting error message; insight into data problems?

    I own a 8310 on AT&T running OS 4.5.011.  I have been having intermittent data problems that have gotten worse over the last week; e.g., the connection box autonomously becomes unchecked, the browser cannot find a connection, data randomly goes form GSM to edge and back, Vlingo cannot find its server.
    AT&T Service suggested a "Master Reset" and I have backed up my data with BB Desktop Mgr. as a first step.  I got the following error message:
    "Uncaught Exception:Application net_rim_bb_app(53) is not responding; process terminated"
    Please help me 1) translate and 2) does that suggest a source of my problems?
    Regards
    Rob 

    You need to enclose carData[0],carData[1] etc in single quotes, if they are String(s). Otherwise you can use PreparedStatement.
    PreparedStatement ps = con.prepareStatement("Insert into car values(22 questions marks)");
    ps.setInt(1,temp);
    for(int i=0;i<21;i++) ps.setString(i+2,carData[ i ]);
    int count=ps.executeUpdate();
    Sudha

  • Serious date problem

    I am using Form 6i.
    I am getting serious date problem.
    The MM/DD/RRRR is converted to DD/MM/RRRR and the result is false record.
    How to avoid this serious problem. I am very shocked to find this error after few hours of brainstorming session.
    I am using following query to create cursor
    [htm]     CURSOR cur_first IS SELECT      a.item_code,
         b.item_description,
         a.lot_no,
         d.name model,
         c.vendname,
         date_of_purchase,
         warrenty_upto,
         quentaty,
         rate,
         pc_type,
         TO_DATE(decode(warrenty_flag_yn,
                        'W', TO_DATE(warrenty_upto),
                        'A', TO_DATE('31-MAR-'||v_year),
                        'X', TO_DATE('31-MAR-'||v_year)),'DD-MM-RR') AS amc_date
         FROM      pc_item_procurement_history a,
                        pc_item_master b,
                        pc_vendor_master c,
                        pc_model_master d
         WHERE a.item_code= b.item_code
         AND a.modelcode=d.modelcode
         AND a.vendcode=c.vendcode
         AND (b.item_description LIKE '%'||:blk_main.item_name||'%' OR :blk_main.item_name IS NULL)
         AND (TO_DATE(a.warrenty_upto,'DD-MM-RR') <= :blk_main.to_date OR :blk_main.to_date IS NULL)
         AND warrenty_flag_yn='W'
         ORDER BY b.item_description;
    /pre][html]
    Thanks and regards,
    Vikas                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I've just noticed something in the where clause that makes all this a lot easier.
         CURSOR cur_first IS SELECT      a.item_code,
         b.item_description,
         a.lot_no,
         d.name model,
         c.vendname,
         date_of_purchase,
         warrenty_upto,
         quentaty,
         rate,
         pc_type,
         warrenty_upto AS amc_date
         FROM      pc_item_procurement_history a,
                        pc_item_master b,
                        pc_vendor_master c,
                        pc_model_master d
         WHERE a.item_code= b.item_code
         AND a.modelcode=d.modelcode
         AND a.vendcode=c.vendcode
         AND (b.item_description LIKE '%'||:blk_main.item_name||'%' OR :blk_main.item_name IS NULL)
         AND (a.warrenty_upto <= :blk_main.to_date OR :blk_main.to_date IS NULL)
         AND warrenty_flag_yn='W'
         ORDER BY b.item_description;BUT...
    Is Warrenty_upto really a date column? You say it is "stored as m/d/yyyy" but a date is not stored with a format in oracle - it's just a date and the format is applied when you retrieve the data.
    In sql*plus if you Describe the table you can see the column type. If you select the data you only ever get a string.
    I'm assuming :blk_main.to_date is a date.

  • HELP!!!! DATE PROBLEM

    I have a procedure like this. But even though the value of both mdate and mlistdate_cur.leave_from values are the same , the if condition is not validated. Please help!!!!
    PROCEDURE leave_check ( MDATE IN DATE, PDATE OUT DATE) IS
    testflag char(1) := 'N';
    cursor listdate_cur is
    select leave_from,leave_to,type_of_leave from vacation_list;
    BEGIN
         for mlistdate_Cur in listdate_cur loop
         if (mdate = trunc(mlistdate_cur.leave_from) ) then
              pdate := mlistdate_cur.leave_to + 15;
                             testflag := 'Y';
         elsif ( mdate >= trunc(mlistdate_cur.leave_from)) and (mdate <= trunc(mlistdate_cur.leave_to)) then
                   pdate := mlistdate_cur.leave_to + 15;
                             testflag := 'Y';
         end if;
    end loop;
    if testflag = 'N' then
              pdate := mdate;
    end if;
    END;

    Hello
    Welcome to the club of Venezuelan Mac owners with date problems
    There's a thread here about the same problem
    http://discussions.apple.com/message.jspa?messageID=6399776#6399776
    Please add your message to that thread, so there's a common record of this problem
    Omar Vasquez

  • Refresh package with 'From-Date' Problem

    Hi All,
    I just ran into configuring the Analyze and Specify 'From-Date' problem fro refreshing package.   I've completed the normal package with the starting date 8/30/2008.  Now I am trying to go back and copy and select from 7/30/2008 for the new run during that posting period.  I am not if this is possible but it doesn't allow me to choose any of the option.  If I choose Analyse and deine new 'From-Date' when the screen popup, then choose 7/30, the date is not transfer to the Chosen From Date field at all, and execute.  The system will display he error with  "Evaluation failed. Required customising data no available".  Basically, it doesn't allow me to choose any date.
    Do any of you experiencing the same problem.  Or did I miss any step from the first run?
    Thanks,
    Tai

    Hi Tai,
    Implement the note 1180500 - Activity TD01P_FROM_RFH runs into error in a refresh package.
    Regards,
    Santosh

  • WS_FILENAME_GET, GUI_UPLOAD, charactors problem.

    Hi All,
    I use WS_FILENAME_GET to read a text file , and GUI_UPLOAD to upload the text content in to an internal table.
    When i run it on a English version of Windows, there is no problem, whereas in a Chinese version of Windows the uploaded charactors, even an English content,  the uploaded content is changed into wierd charators.
    Thank in advance.

    Hai Kokwei
    Check the following Code
    for WS_FILENAME_GET
    Begin of Add by Neelimab on 03/11/2005.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
       EXPORTING
         WINDOW_TITLE            = 'Find File'
         DEFAULT_EXTENSION       = 'C:\'
         DEFAULT_FILENAME        = ''
         FILE_FILTER             = ',..'
      CHANGING
        FILE_TABLE               = I_FILETABLE
        RC                       = V_RC
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        NOT_SUPPORTED_BY_GUI    = 4
        others                  = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE I_FILETABLE INTO P_FILE INDEX 1.
    for GUI_UPLOAD
    *-- Begin of add    Neelimab 21/11/2005
      DATA: D_FILENAME TYPE STRING.
      D_FILENAME = P_FILE.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      = D_FILENAME
          FILETYPE                      = 'ASC'
          HAS_FIELD_SEPARATOR           = 'X'
          DAT_MODE                      = 'X'
        TABLES
          DATA_TAB                      = t_root.
    Thanks & regards
    Sreenivasulu P

  • Data problem from DSO to cube

    hi
    i am facing data from problem from dso to cube
    i am getting daat into dso
    plant   material  doc_num  itemno  qty
    p1      m1           1              1         10
    p1      m1           1               2         20
    dso i am uisng key fields
    doc_no
    item_no
    doc_year
    data fields
    material
    plant
    qty
    while loading data into cube
    its showing only
    p1 m1 1 2 20
    item 1 is missing
    there is no iten num filed in my target field?
    ple let me know ur idea.

    Hi,
    The problem is in your ODS/DSO.
    In your ODS you have 'Doc_num' as key field.
    For both Items 1 & 2, you have same key field ( Doc_Num) Value.
    So, the first record will be over written by the second one. So from your ODS you will get only the latest record to the Cube.
    If you want to send both doc_nums to cube, you need to bring doc_num to the data fields area of ODS.
    Hope this helps.
    Cheers
    Praveen

Maybe you are looking for

  • Export - folder hierarchy

    This has been mentioned around feature requests in reply's, but I thought it is better to make it a separate request. At least for me it is on top of my Lightroom wish list. What I mean can be supported in 3 ways. 1. When exporting Collection set, su

  • SQL Statement

    Hello togeather, If i create a Purchase Order Query and add in the end the fallowing statement: WHERE T1.DocNum  = '[%0]' AND T0.ItemCode = '[%1]' AND  T1.CardCode = '[%2]' than i got a mask where i can fill the values. But if i fill nothing than i g

  • Can't Install Updates Acrobat X Pro

    Hello.  I am trying to install updates to Acrobat X Pro.  Every time I try to install from the Help - Check for Updates menu, I get the error: Error 1321. Installer has insufficient privilages to modify the C:Program Files..... with some folder and f

  • I could really use some help in how to best save a Vector

    I have a drawing program that keep track of user in put with three vectors. The program works great except I am yet unable to save the vectors to filestream file and then retreive them when the app starts back up. I have been trying to use the post o

  • Please look into my MDM related thread

    Hi, I need some answers related to MDM in my MDM related thread. [MDM Related Thread|Inserting Data into Master Data Management from Java Web Dynpro Views; Regards Neha Singh Edited by: Neha Singh on Apr 23, 2009 12:07 PM