'GUI_UPLOAD' - Junk values - Issue

Hi Experts,
Am uploading (some piece of) VBAK data into a Z_vbak_table by using FM,
file_name = p_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename                                      = file_name
filetype                                        = 'ASC'
HAS_FIELD_SEPARATOR           = 'X'
+    HEADER_LENGTH                 = 0+*
+    READ_BY_LINE                  = 'X'+*
+    DAT_MODE                      = ' '+*
+    CODEPAGE                      = ' '+*
+    IGNORE_CERR                   = ABAP_TRUE+*
+    REPLACEMENT                   = '#'+*
+    CHECK_BOM                     = ' '+*
+  IMPORTING+*
+    FILELENGTH                    =+*
+    HEADER                        =+*
TABLES
data_tab                      = itab
EXCEPTIONS
So, issue is that, When am seeing in Debug mode, am getting the values like, ( I mean, problem is with VBELN & AUART fields with junk values???)
MANDT/ BUKRS/ SPBUP / VBELN  /    POSNR/AUART
100  |3000 |200801|ÐÏ#ࡱ#á##|000000|###
So, pls. let me know that, How to fix this issue i.e. problem is with VBELN & AUART fields with junk values???
Am guessing this is bcoz of Unicode, bcoz, I did not CHECKED the UNICODE CHECKS ACTIVE check box in GOTO-->ATTRIBUTES!!
thanq

Hi
Use DAT instead of ASC in 5th line of the following
file_name = p_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = file_name
filetype = 'DAT'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0*
READ_BY_LINE = 'X'*
DAT_MODE = ' '*
CODEPAGE = ' '*
IGNORE_CERR = ABAP_TRUE*
REPLACEMENT = '#'*
CHECK_BOM = ' '*
IMPORTING*
FILELENGTH =*
HEADER =*
TABLES
data_tab = itab
EXCEPTIONS

Similar Messages

  • EHP6 to EHP7 Upgrade Issue: Junk Values are showing for BW data source

    Hi,
      We are upgrading ECC from EHP6 to EHP7. We have custom data source which is build on custom Info set and Info set is built on Pooled table ZXXX. Datasource is showing the junk values in RSA3 after upgrade. I have re-generated the Info set and tested but no use. Below is the RSA3 data screen shot. Can anyone suggest me to oversome this?
    Thanks,
    Prasad

    Hi Prasad,
    Few things to check:
    1. Pooled table data for which the datasource is created.
    2. Reactivate the extract structure - check the dataelement also for date.
    3. Is there any custom code present in Infoset? - if yes then it may be possible that dates are being calculated in that custom code and wrong format is being used there.
    Thanks
    Amit

  • At a time of uploading the file its giving a junk value.

    Hi  All,
    I am uploading .DOC file using GUI_UPLOAD function and its giving junk value in the internal table at a time of uploading the file.
    Is there any alternative or any function which can help me to upload the .DOC file or any scanned file?
    And is there any possibility to convert the junk value to the string or character?
    I would like to mention the version as i'm working on 5.0.
    Regards,
    Bhavani

    use File_type as 'BIN'

  • Junk values when decompiling the class file

    Hi All,
    When i decompiling the class file , i am getting junk values i.e <file>.class$java.lang.string and _mtclass$("java.lang.string").
    I am using JAD for decompilation .
    Can any body help.. how remove the junk data

    ya and better part being that its an issue with the tool used for decompilation. Nothing specific to OAF here. Any class file will behave in the same way to this tool.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                   

  • Junk values in Excel for ALV output

    Hello
    I have developed a FM based (not OOPS) ALV and its giving output/report, fine.
    But, when user want to get it into excel, then,
    1) If user selects the CntrlShiftF7 - Microsoft Excle icon - I am getting just blank excel opened on my SAP GUI, i did not see any data on the excel, its just blank excel
    2) If user selects the Local file - CntrlShiftF9 - and then selects the Spreadsheet radio button (selected the encoding as 000000): Then, user getting some junk (########) values in the saved excel, like for Invoice number, Date fields/columns.
    We are on ECC 6.0 with windows 7
    Thank you

    Hi,
    I tried the same code page which is used in the example... but no luck.
    Regards,
    Vinay

  • How to fetch the junk values of a column and the column name in oracle

    Hello,
    Can anyone help me in writing a procedure/dynamic SQL to fetch the column where the junk values appears and its value. Eg: If emp table contains ID and Name columns, and ID column contains junk values, the result should be the Id column and the junk value/s. It should be dynamic because next time if the other column contains junk values(like $,%...), the query should display the other column too..
    Thanks in advance..

    Try this, I'm not sure if it'll help... and get some idea...
    try to modify it as per your requirement -
    select * from junk_vals;
    1     ranit1
    2#     ranit2
    3     ranit3
    4$     ranit@4
    5     ranit5
    6     r^anit6
    select 'ID', id, val from junk_vals
        where regexp_like(id,'[^a-zA-Z0-9]')
    UNION
    select 'VALUE', id, val from junk_vals
        where regexp_like(val,'[^a-zA-Z0-9]');
    -- "Output :"
    ID     2#     ranit2
    ID     4$     ranit@4
    VALUE     4$     ranit@4
    VALUE     6     r^anit6
    NOTE - I've considered anything other than Alphabets and Numbers as a Junk Value
    Edited by: ranit B on Jan 4, 2013 5:07 PM
    -- o/p added

  • Smartform:Window Tilte Texts r  junk values in PDF of my forms

    Dear all
    Smartform: i get header title & Window Tilte Texts r  not appearing, some  junk values does appear in PDF of my forms .
    Whr to check ?
    thnx
    Moni

    Hello,
    The reason why I proposed the reinstallation of Adobe Acrobat is due to the reason that the font which you used in SSF ( font size also matters ) may NOT be available in Adobe Acrobat.
    May be you can try out with some other font and try.
    Hope this helps you.
    Best Regards, Murugesh AS

  • Fill in blank cells with a "junk" value

    Greetings
    If I have a table with 20 columns, and some rows that have data in varying numbers of the columns
    Col1 Col2 Col3 etc
    1
    4 4 4
    3 3
    How can I fill in the blank cells with a junk value, say ffff?
    I figure its going to involve the IF and IFBLANK functions, but I'm missing something. Perhaps I need to have it fill in a secondary table, instead of trying it with the "live data" table?
    Thanks!

    If you are trying to do it in the same table you will have to pre-fill all cells with a formula or fill in the blank cells with a formula such as RAND. ISBLANK will not work in this case because you can't have a cell checking itself.
    You could do this in a separate table with a formula such as
    A1=IF(Table 1:: A1 = "", 10*RAND(), Table 1:: A1) and fill this to all the other cells in that table.

  • How to fetch Junk values and its columns dynamically

    Hello,
    Can anyone help me in writing a procedure/dynamic SQL to fetch the column where the junk values appears and its value. Eg: If emp table contains ID and Name columns, and ID column contains junk values, the result should be the Id column and the junk value/s. It should be dynamic because next time if the other column contains junk values(like $,%...), the query should display the other column too..
    Thanks in advance..

    Can anyone help me in writing a procedure/dynamic SQL to fetch the column where the junk values appears and its value. Eg: If emp table contains ID and Name columns, and ID column contains junk values, the result should be the Id column and the junk value/s. It should be dynamic because next time if the other column contains junk values(like $,%...), the query should display the other column too..1. define "junk" values.
    2. usually it does not matter what values are in ID, because it is used internally by application, to maintain uniqueness or relations, not having any semantical meaning. End users usually should not see IDs, such IDs are generated automatically. There is no need to cleanse them from "junk" values.
    3. If you made a typo, and you are looking for "junk" values in Name column, it is a different story. You can use TRANSLATE to search such values, as already advised, translating all "junk" characters to one "junk" character and searching for the latter.
    select id, name from T where translate(name,'?@#$%^<>','~~~~~~~~~') like '%~%';
    Edited by: Mark Malakanov (user11181920) on Jan 4, 2013 11:40 AM

  • Junk values in an internal table field

    Hi,
    I have an internal table with a field matnr and matxt.
    Now both the fields have a junk value '#'.
    matnr has '#' at the end and matxt has '#' in between the description.
    How do I get rid of them.
    Michael

    if in description "#' occurs many times.
    then split the description into one internal table
    like
    data: begin of it occurs 0,
           fld(50),
          end of it.
    data : text(100).
    data : ch(50).
    ch = 'teygvwsjsf#wewew#wqdhfd#jdhgfd'.
    split ch at '#' into table it.
    loop at it.
    concatenate it-ch into text sperated by space.
    endloop.
    u will get the string in variable text after the loop.
    guru

  • WebUI Logon language Dropdown  shows junk values

    Hi
    While Internet explorer language is set as Chinese , I am trying to logon into webUI  with Chinese its showing a junk values in language dropdown list on logon page.
    While IE with English, Its showing proper list in language dropdown.
    Do I need to setup anything from CRM backend or internet explorer?
    Regards,
    DN

    The problem is in detail here
    1. The users are setup IE with Language-Chinese ( through IE--> Internet options > General> Languages --> Chinese)
    2. When they opens with CRM_UI or WebUI  URL, It shows the Junk values in language dropdown list.
    If users are setup IE with Language-English( through IE--> Internet options > General> Languages --> English), Its working fine...Means open with CRM_UI or WebUI  URL its shows proper language dropdown list.
    what could be the problem?
    Regards,
    DN

  • Hyperlinked file opens with junk values

    Hello Guys,
    I am Developing a portal where in people can upload files to different categories. So, there is no problem with uploading.
    So, next time when want to view the file list i am just adding the upload directory as a hyper link to the text displayed something like this.
    <td class="td"><a href="javascript:void window.open('DocumentPolicies/<%=(String)dV.get(1)%>','Document','200','200')">DummyDocumentFileSubject
    </a>
    </td>
    so, this displays DummyDocumentFileSubject with a hyper link and the specified document name will be opened in a seperat window.
    The problem i face is that if it is a word document it some time opens inside the browser itself some time it opens with some junk values.(Even MSWord installed on the client system).
    The file type may be different some times .pdf .jpg, .dwg,.apc.etc.
    My client wants to view it on the browser.
    Or if in case i am doing it wrong. please correct me.
    can anybody help me on this.
    thanks in advance
    regards,
    dina

    Yes, it looks like you are not setting the appropriate content type to the file extension.

  • F4 help for Fiscal year/period gives junk values

    Hello All,
    We have a web query based on a ODS. FISCPER is having variable and used for selection in query. ON selection screen , when user go for F4 help of fiscper , he gets lots of junk values such 001.0001,002.0002 etc. All these values are not valid for our fiscal year variant Z4 .I checked t009B table , but of no use .It does not contain those values at all.When i checked the SID table for Fiscper , i found those junk values there in SID table.Anybody knows how to correct SID table without hampering the system?
    Regards
    Yogesh

    HI Yogesh,
    When you see entries in SID table, that means these Invalid entries were loaded into Cube/ODS, while loading some transaction data.
    So, if that transaction data exists in the ODS/Cube, and you delete these values from SID table, I guess it is going to create some problems.
    A solution I could think of is to change the FISCPER InfoObject properties in Business Explorer tab. You have an option of changing the source of the F4 help, instead of fetching values from master data, it can fetch from the DataTarget itself. So, it will show only valid values to the users.
    Option - Business Explorer tab -> Query Def. Filter Value Selection. (I believe this property can be changed any time)
    Regards,
    Sree
    Message was edited by: Sree Damodararaj

  • AJAX: Junk value coming at end of records

    Hi,
    I am using ajax to populate the values in Combo box. I have an issue there.
    When i select one value in first combo, it displays junk characters at end of records.
    e.g. If on selction of A i should get 1, 2 and 3 in second drop down. I am getting 1, 2, 3, ^%^%.
    Please let me know what can be issue.
    ~Aman

    This is the JS call.
                   function fnGetBonusData2()
                   for(i=document.getElementById("bonusData2").options.length-1;i>=0;i--)
                             document.getElementById("bonusData2").remove(i);
                        var bonusData1 = document.getElementById("bonusData1").value;
                        var strURL = "../getBonusData2.do"
                        strURL = strURL+"?methodName="+"getBonusData2";
                        strURL = strURL+"&controlName="+"bonusData2";
                        strURL = strURL+"&bonusData1="+bonusData1 ;
                        fnRetrieveURL(strURL,"fnOnReturnFromBonus2");
                   }Action Method code
              try {
                   if (isValidSession(request)) {
                   String strBonusData1 = request.getParameter("bonusData1");
                   BonusDataManager bonusDataManager = new BonusDataManager();
                   String strAreaForRegion = bonusDataManager.getBonusData2(strBonusData1) ;
                   System.out.println("bonus data 2"+strAreaForRegion);
                   response.setContentType("text/html");
                  PrintWriter out = response.getWriter();
                  out.println(strAreaForRegion);
                  out.flush();
                   } else {
                        return null;
              } catch (Exception ex) {Manager method call
        public String getBonusData2(String strBonusData1)
              String value="";
              PersistencyManager persistencyMgr = new PersistencyManager();
              try {
                   persistencyMgr.beginTransaction();
                   if(!strBonusData1.equalsIgnoreCase(""))
                        StringBuffer userQueryBuffer = new StringBuffer();
                        userQueryBuffer.append("SELECT distinct bonusMaster.bonusData2 ");
                        userQueryBuffer.append("from BonusMaster bonusMaster where bonusMaster.bonusData1 ='");
                        userQueryBuffer.append(strBonusData1);
                        userQueryBuffer.append("'");
                        Collection collection = persistencyMgr.find(userQueryBuffer.toString());               
                        int counter = 0;
                        if(collection != null || collection.size() != 0)
                        for (Iterator it = collection.iterator(); it.hasNext();) {
                                  Object obj = (Object) it.next();
                                  String bonusMasterData2 = (String) obj;
                                  if(null != bonusMasterData2){
                                       if(counter != 0)
                                            value += ",";
                                       value +=bonusMasterData2;
                                       counter ++;
              }Return JS method call
                   function fnOnReturnFromBonus2()
                        if (varXMLrequest.readyState == 4)
                             if(varXMLrequest.status == 200)
                                  var strSubClassValue = varXMLrequest.responseText;
    //                              alert(strSubClassValue.length);
                                  if(strSubClassValue != '')
                                    var strArray = strSubClassValue.split(",");
    //                                   alert(strArray);
                                       var iLength = strArray.length;
    //                                   alert(iLength);
                                       var optnSelect = document.createElement("OPTION");
                                       optnSelect.text = 'Select';
                                       optnSelect.value = '';
                                       document.getElementById("bonusData2").options.add(optnSelect);
                                       for(i =0 ; i< iLength;i++)
                                            var optn = document.createElement("OPTION");
                                            optn.text = strArray;
                                            optn.value = strArray[i];
    //                                        alert(optn.value);
                                            document.getElementById("bonusData2").options.add(optn);

  • Junk text issue

    Hi all,
    I have a remote client that I need to support for our application. They have a problem where they are seeing junk characters instead of some french characters in our application and SQL Developer. They have tried using two databases in AL32UTF8 and WE8MSWIN1252 characterset, but the issue persists. I need to try and drill down the issue and fix it. I have their database but I can see the characters fine without any issues in databases with AL32UTF8 and WEMSWIN1252 characterset settings.
    I am at the kind of lost as to what could be causing the problem.
    Can anyone suggest what would the issue be?
    What parameters can be causing this?
    What should be the key things that I need to look at?
    Thanks.
    Message was edited by:
    N

    Thanks for your response Roelie Viviers,
    Yes - I cannot agree more with you on this - its certainly getting to be a very complex issue. Especially when I am not sure what settings can I look or what more information should I try to fetch from the client.
    The most sensible way to go around this seemed to me was - to replicate the problem inhouse and see I can somehow see the problem. I have had some luck with it.
    I am now able to see garbage characters in the SQL*Plus Worksheet, but the application still shows it correctly. So what could it be in the client's environment that could be causing the issue!!
    I think, I might be able to safely elimate the possibility of nls_lang parameter in the registry causing this. Heres, what I tried.
    select * from nls_database_parameters;PARAMETER VALUE
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET WE8MSWIN1252
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 10.1.0.2.0
    20 rows selected.
    Now tried querying the offending columns from two clients
    i) nls_lang set to ENGLISH_CANADA.AL32UTF8
    ii)nls_lang set to NA
    I still get same results. For eg. A test record in the database show something like this in the application Copie de à, è, etc Cédille (ç), àâäïÿùÔ; in SQL*Plus worksheet however it shows something like this:
    Copie de à , è, etc Cédille (ç), à âäïÿùÔ
    Surely, there is a problem somewhere. Is there anything in the application that make it can behave like SQL*Plus?
    Any help is appreciated.
    Thanks!

Maybe you are looking for

  • [b]Connection to Oracle DB per JDBC URGENT HELP NEEDED PLEASE![/b]

    Hallo, I'm a newbie. I want to make a connection to the oracle db on the server and I have been having serious problems. See CODE and ERROR MESSAGEs below: import java.sql.*; public class SqlConnection01 {      public static void main(String[] args)

  • G5 startup problem

    I have a late 04 PowerMac 1.8GHz with 3Gb RAM. I recently installed a AIrport card and set that up and used it for hours with no problems. I then decided to perform a Security Update, downloaded a few updates and restarted. Now I cannot get further t

  • HT1918 Can I change the country set for my apple id

    I want to change my apple store from Spain to England - how can I do that ?

  • F5201

    Hi, At the time of asset fiscal year closing inAJAB system showing the error"Asset balance sheet values not completely posted"and also system gives the procedure "Start APC Posting Program"system automatically taking us there to ASKB(Periodic Asset p

  • Elements (Editor) has stopped working...

    Hello all, I installed Adobe Photoshop Elements 6.0 on my Windows Vista Dell Inspiron 1525 laptop last month and everything worked fine. Then suddenly, when I tried to open it today, the following error shows up: Adobe Photoshop Elements 6.0 (Editor)