ECC 5.0 Unicode error

Hi,
During the upgrade from 4.6B to ECC 5.0, we are facing the following problem:
In 4.6B, when we move the contents of one internal table to another ( itabA[] = itabB[] ), its happening properly, even though the structure of both the internal tables are not the same i:e itabB has more fields than itabA.
But, this doesn't happen in the case of ECC 5.0. Its throwing some UNICODE error, saying that the structure isn't the same.
If anyone has come across this problem, please revert with the solution.
Thanks,
Raj.

hi,
We are getting error because of unicode issues. We get this problem bcos of Alignment gaps.
Hope the below explanation helps you..
To check whether two structures can be converted at all, the Unicode fragment view of the structures is set up initially by combining character type groups, byte type groups, alignment gaps, and other components. If the type and length of the fragments of the source structure are identical in the length of the shorter structure, the structures can be converted. Assignment is allowed under the following conditions:
The fragments of both structures up to the second-last fragment of the shorter structure are identical
The last fragment of the shorter structure is a character or byte type group
The corresponding fragment of the longer structure is a character or byte type group with a greater length
If the target structure is longer than the source structure, the character type components of the remaining length are filled with blank characters. All other components of the remaining length are filled with the type-adequate initial value, and alignment gaps are filled with zero bytes. Since longer structures were previously filled with blanks by default, using initial values for non-character type component types is incompatible. This incompatible change is, however, rather an error correction. Character-type components are not filled with initial values, for the sake of compatibility.
Example
BEGIN OF struc1,                     BEGIN OF struc2,
  a(1) TYPE C,                         a(1) TYPE C,
  x(1) TYPE X,                         b(1) TYPE C,
END OF struc1.                       END OF struc2.
You cannot use the struc1 = struc2 assignment in Unicode, because struc1-x only occupies one byte, in contrast to struc2-b.
BEGIN OF struc3,                     BEGIN OF struc4,
  a(2) TYPE C,                         a(8) TYPE C,
  n(6) TYPE N,                         i    TYPE I,
  i    TYPE I,                          f   TYPE F,
END OF struc3.                       END OF struc4.
The struc3 = struc4 assignment is valie because the fragment views of the character-type fields and the integer numbers match.
BEGIN OF struc5,                     BEGIN OF struc6,
  a(1)  TYPE X,                        a(1) TYPE X,
  b(1)  TYPE X,                        BEGIN OF STRUC3,
  c(1)  TYPE C,                          b(1) TYPE X,
END OF struc5.                           c(1) TYPE C,
                                       END OF struc3
                                     END OF struc6.
However, struc5 = struc6 is not permitted - the fragment views of the two structure are different, because of the alignment gaps before struc3 and struc3-c.
BEGIN OF struc7,                     BEGIN OF struc8,
  p(8)  TYPE P,                        p(8) TYPE P,
  c(1)  TYPE C,                        c(5) TYPE C,
END OF struc7.                         o(8) TYPE P,
                                     END OF struc8.
The struc7 = struc8 works because the fragment views in the length of the structure struc1 match.
For deep structures, the operand types must be compatible as usual. We enhanced the concept by generalizing to some extent the convertibility of object references and table components.
Regards,
Sailaja.

Similar Messages

  • UNICODE Error in ECC 6.0

    Hi Guys,
    I am working on upgrade project 4.5B to ECC 6.0, in 4.5B internal table refers the Ztable, but in ECC 6.0 it giving error.
    4.5B statement: GT_PLAN_SIO  TYPE STANDARD TABLE OF   ZSTR_PLAN_SIO WITH HEADER LINE.
    The above statement error in the ECC 6.0, Could you please correct the statement.
    Thanks
    Gourisankar.

    Hello Gourisankar
    First of all I would get rid of the "... WITH HEADER LINE". However, this is probably not the reason for the Unicode-error.
    Since you did not mention the most important detail to answer your question, namely the exact Unicode error, I can only give some tips and hits:
    - try to change the type of the table
    - try to add key options
    Examples:
    DATA: GT_PLAN_SIO TYPE STANDARD TABLE OF ZSTR_PLAN_SIO. " WITH HEADER LINE.
    DATA: GT_PLAN_SIO TYPE                    TABLE OF ZSTR_PLAN_SIO.
    DATA: GT_PLAN_SIO TYPE                    TABLE OF ZSTR_PLAN_SIO
                                                                  WITH DEFAULT KEY.
    Regards
      Uwe

  • Upgrade Sap R/3 4.6b to ECC 6.0  -unicode enabling

    Hi,
    I am going to work Upgrade Sap R/3 4.6b to ECC 6.0
    My role only Unicode enabling syntax check.
    Can any one explain what are the work involved in
    Custom Reports, Custom Transaction and Screens, BDC, Enhancements and Exits(BTE), Script ,Custom DDIC
    Particularly need information Sapscript forms
    Regards,
    Ram

    Hi Ram,
    For Unicode, transaction UCCHECK is your best friend. It will even tell you how to fix the error.
    All programs – Most of the time you will just go and set the Unicode Checks Active program attribute, save, activate.
    - If there are Unicode errors, fix them.
    http://iorboaz.blogspot.com/2008/03/sap-abap-solution-instructions-for.html
    SAPScript - Not sure if it even needs Unicode-enabling. We are still in the middle of an upgrade. Will add more later.
    Custom DDIC – In our case, the BASIS team handled the Unicode conversion of the DDIC objects.I think they ran a consistency check first, then run SPUMG or something.
    Search the web for a Combined Upgrade and Unicode Conversion Guide.
    Hope this helps.

  • How to avoid Unicode errors in SAP custom code queries.

    Currently we are going for a non Unicode technical upgrade from 4.6C to ECC 6.0.
    We have many query infosets with custom ABAP code. Unable to execute these queries (infosets) as ECC 6.0 system is throwing short dump and query infoset editor throwing Unicode syntax errors . Anyway to avoid these Unicode errors by changing query or infoset system setting.
    We will proceed with infosets ABAP code Unicode remediation if the above is not feasible.
    Thanks in advance.

    If the infosets are with custome abap code let the UCCHECK be happen on these programs in ecc6 ..
    In tcode UCCHECK the code which needs to be replaced for the custom programs  will be provided for the abap developers . All programs in ecc6 should be ucc compliant . I hope this will happen with the abap upgrade by enabling ecc6 .
    they will enable ecc check and do the code modification for moving out the obselete statements in ecc6 which were ok for 4.6c then .
    Dont worry about the dumps as this will not take much time on a single program once the UCC is over ..
    Br,
    vijay.

  • Unicode error free MODIFY statement

    HI All,
    I have midify statement in a loop like this.
    loop at itab into wa_itab.
    modify itab from wa_itab index tabx.
    endloop.
      I am working in ECC 6.0. It is showing unicode error at modify statement. Please suggest me the correct statemnt.ANy extension for modify statemnt..?
    Thanks,
    kishore

      LOOP AT IT_VBRK.
    <b>    CTAB = SY-TABIX.</b>
        LOOP AT IT_T001 WHERE BUKRS = IT_VBRK-BUKRS.
          IF SY-SUBRC  = 0.
            IT_VBRK-BUTXT = IT_T001-BUTXT.
    <b>        MODIFY IT_VBRK INDEX CTAB.</b>
            CLEAR CTAB.
          ENDIF.
        ENDLOOP.
      ENDLOOP.
    The problem may be with SY-TABIX, check the above code

  • BSI Tax Factory on ECC 6.0 Unicode

    I'm looking for some help with using BSI Tax Factory on an ECC 6.0 Unicode System.  Does anyone have any experience with using BSI Tax Factory on the Unicode version of ECC 6.0? Were there any special steps that were taken in order to make it work? I spoke with someone at BSI and they told me that Tax Factory was not Unicode compliant and that I should talk to someone at SAP to find out what steps needed to be done to make the system work.  While I inquire further with both SAP and BSI I thought I would post something here as well to see if anyone could offer any assistance.
    Thanks in Advance!
    -Nick

    Hi Nick,
    BSI TaxFactory is not unicode complaint. But in the past we have had customers who converted from non-unicode to unicode and had no problems with BSI TaxFactory.
    Export the BSI related data from the DB and import it back after the unicode conversion. And everything works fine!
    Regards,
    Tarun
    SAP ERP HCM

  • How to assign a character field to a strucure in ECC6.0 ( Unicode error)

    Hi all,
    This is regarding a Unicode error we are facing in upgrading a program from 4.6c to ECC6.0.
    The following pice of code gives error now in ECC6.0, stating Unicode incompatible structures.
            DATA: WA_MSEG TYPE MSEG,
                       WA_MKPF TYPE MKPF.
            DATA: LE_DATA(8192) TYPE C.
            CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD'
              EXPORTING
                ARCHIVE_HANDLE                = LE_HANDLE
              GET_REAL_STRUCTURE_NAME       = 'X'
              AUTOMATIC_CONVERSION          = 'X'
              IMPORTING
                RECORD                        = LE_DATA
              RECORD_CURSOR                 =
              RECORD_FLAGS                  =
                RECORD_STRUCTURE              = LE_STRUCTURE
              RECORD_LENGTH                 =
              EXCEPTIONS
                END_OF_OBJECT                 = 1
                INTERNAL_ERROR                = 2
                WRONG_ACCESS_TO_ARCHIVE       = 3
                OTHERS                        = 4
            IF SY-SUBRC <> 0.
              EXIT.
            ENDIF.
    move records
            CASE LE_STRUCTURE.
              WHEN 'MSEG'.
               <b> WA_MSEG = LE_DATA.</b>
                move-corresponding WA_MSEG to TBL_ARC_MSEG.
                APPEND TBL_ARC_MSEG.
                CLEAR: WA_MSEG, LE_DATA, TBL_ARC_MSEG.
              WHEN 'MKPF'.
              <b>  WA_MKPF = LE_DATA.</b>
                move-corresponding WA_MKPF to TBL_ARC_MKPF.
                APPEND TBL_ARC_MKPF.
                CLEAR: WA_MKPF, LE_DATA, TBL_ARC_MKPF.
            ENDCASE.
    Can you please suggest a way to overcome this error.
    Thanks in advance,
    Sreenivasa Reddy V.

    IV_OFFSET is the position from the C field will be started to be read (should be 0) and EV_OFFSET is the length to which the data is going to be fetched.  The Following code could be useful ---
    w_len = STRLEN( p_data ).
    CALL FUNCTION 'OIF_CONVERT_CHAR_TO_STRUCTURE'
      EXPORTING
        iv_string         = p_data
        iv_structure_name = 'VBAK'
    *    iv_offset         = w_len
      IMPORTING
        ev_structure      = wa_vbak
        ev_offset         = w_len
      EXCEPTIONS
        ddif_nametab_get  = 1
        OTHERS            = 2.
    Hope That Helps
    Anirban M.

  • Unicode Error in DOWNLOAD function module

    Hi ABAPpers,
    I am getting the unicode error in using
    CALL FUNCTION 'DOWNLOAD'
           EXPORTING
             bin_filesize = v_bytecount
             filename     = v_download_filename
             filetype     = 'WK1'
           IMPORTING
             act_filename = v_download_filename
           TABLES
             data_tab     = i_download.
    If i try to use GUI_DOWNLOAD, it doesn't have importing parameter act_filename.
    What alternate function module should i use to rectify this unicode error?
    Regards,
    Rahul

    Hi,
    The answer is similar to the one for your previous post. You need to use both CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG and GUI_DOWNLOAD
    DATA: PRC_WINDOW_TITLE      TYPE STRING,
          PRC_DEFAULT_FILE_NAME TYPE STRING,
          PRC_INITIAL_DIRECTORY TYPE STRING,
          PRC_FILE_NAME         TYPE STRING,
          PRC_PATH              TYPE STRING,
          PRC_FULL_PATH         TYPE STRING,
          PRC_USER_ACTION       TYPE I.
    PRC_INITIAL_DIRECTORY = FILENAME.
    PRC_DEFAULT_FILE_NAME = FILENAME.
    PRC_WINDOW_TITLE      = 'Debitoren-Saldenliste'.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
      EXPORTING
        WINDOW_TITLE         = PRC_WINDOW_TITLE
        DEFAULT_FILE_NAME    = PRC_DEFAULT_FILE_NAME
        INITIAL_DIRECTORY    = PRC_INITIAL_DIRECTORY
      CHANGING
        FILENAME             = PRC_FILE_NAME
        PATH                 = PRC_PATH
        FULLPATH             = PRC_FULL_PATH
        USER_ACTION          = PRC_USER_ACTION
      EXCEPTIONS
        CNTL_ERROR           = 1
        ERROR_NO_GUI         = 2
        NOT_SUPPORTED_BY_GUI = 3
        OTHERS               = 4
    IF SY-SUBRC = 0 AND PRC_USER_ACTION NE
    CL_GUI_FRONTEND_SERVICES=>ACTION_CANCEL.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
         FILENAME                        = PRC_FILE_NAME
         FILETYPE                        = 'ASC'
         WRITE_FIELD_SEPARATOR           = '#'
        TABLES
          DATA_TAB                        = TAB_EXCEL
       EXCEPTIONS
         FILE_WRITE_ERROR                = 1
         NO_BATCH                        = 2
         GUI_REFUSE_FILETRANSFER         = 3
         INVALID_TYPE                    = 4
         NO_AUTHORITY                    = 5
         UNKNOWN_ERROR                   = 6
         HEADER_NOT_ALLOWED              = 7
         SEPARATOR_NOT_ALLOWED           = 8
         FILESIZE_NOT_ALLOWED            = 9
         HEADER_TOO_LONG                 = 10
         DP_ERROR_CREATE                 = 11
         DP_ERROR_SEND                   = 12
         DP_ERROR_WRITE                  = 13
         UNKNOWN_DP_ERROR                = 14
         ACCESS_DENIED                   = 15
         DP_OUT_OF_MEMORY                = 16
         DISK_FULL                       = 17
         DP_TIMEOUT                      = 18
         FILE_NOT_FOUND                  = 19
         DATAPROVIDER_EXCEPTION          = 20
         CONTROL_FLUSH_ERROR             = 21
         OTHERS                          = 22
    ENDIF.

  • How to track Unicode errors

    Hi All,
    Can any one give a briefing on the kind of unicode errors in SAP and how can we track the unicode errors <i>without</i> using the transaction UCCHECK .

    Chaitanya,
    Without UCCHECK that is going to be difficult tracking the Unicode errors. When the system is upgraded, we should run all the custom program through UCCHECK so that we know which programs have errors.
    And more over its easy to do and you can do this in one shot for all the programs using the selection criterial of the transaction.
    Other work around is to manually look at the code and see if there are any commands specified in the UNICODE COOKBOOK for ABAP used in the program.
    Regards,
    Ravi
    Note : Please mark all the helpful answers

  • Need solution for unicode error

    Hi ,
    I am facing unicode error  "ESCAPE_TRICK cannot be converted to a character-type field"  for
    the following syntax -
    ESCAPE_TRICK-X1           = '1C'.
    Where ESCAPE_TRICK is defined as -
    DATA: BEGIN OF ESCAPE_TRICK,
    X1(1) TYPE X,
    END  OF  ESCAPE_TRICK.
    Please suggest me the solution.
    Thanks,
    Narayan

    Hi,
    As type X is obsolete.
    you need to convert it to type c. But you should convert the hexadecimal value '1C' to its equivalent Char value. Replace your code with:
    DATA: BEGIN OF ESCAPE_TRICK,
    X1 TYPE STRING,
    END OF ESCAPE_TRICK.
    To convert Hex '1C' to type string
      CALL FUNCTION 'CACS_CONVERT_HEX_TO_STRING'
      EXPORTING
        XSTRING       = '1C'
      IMPORTING
       CSTRING       = ESCAPE_TRICK-X1.
    It should solve your purpose.
    Alternatively, '1C' is "FILE SEPERATOR'. you can find its value in char and can use it.
    howver, the first ,method should work..
    revert back in case of further issue.
    Thanks and Regards
    Rishika
    Edited by: Rishika Bawa on May 14, 2009 2:06 PM

  • SQL 2005 with ERP2005 (ECC 6.0) Unicode

    Hi All,
    I need a few questions to be answered.
    Can anybody tell me as to what would be the initial size of the database after an installation of ECC 6.0 Unicode with database as SQL 2005.
    Is there any minimum hardware requirements that would have to be taken into consideration before an installation is planned.
    Can anyone help me in deciding whether MSCS services or Manual Log shipping would be preferred for Failovers.....
    Regards
    Anand

    <b>Sizing</b>
    Hardware sizing should be completed by your SAP partner. Its based on many things. Users, modules, storage volumes, peek, BP, workloads etc etc.
    You can do the 'noddy' version with the sapsize on OSS. The output from this is in 'SAPs' you could look up std systems bench marks and get something 'like' it. Else submit the results to the hardware vendor of your choice and they will do it for you.
    <b>System Redundancy</b>
    Depends what you are trying to do.
    MSCS is a fail over HARDWARE only solution. ie if you want to patch or take a node out of service you can by 'failing over' the services on it to the other node. If you get a DB problem MSCS can not help you at all.
    Log shipping gives you 'rapid' recovery options for SQL(and there in SAP). The way this normally works is via either manual or automatic log-shipping to a 'standby' system with SQL/SAP loaded on it that can be brought online if you get a problem with the main system.
    A well planned system will have fail-over and recovery capabilities, ie it will use BOTH.

  • Unicode error:a line of internal table and a data object are not mutually c

    Hi Friends,
        This is the issue in upgradation from 4.6c to ECC6.0
        I have an internal table itab which has include structure say 'xyz' . In xyz there is a field of type int4 as third field. I have a field as l_line which is a string.
    data : begin of itab occurs 0.
             include structure zxyz.
    data: end of itab.
    data: l_line type string.
    In the program I am getting the unicode error as:
    " A line of "itab" and "l_line" are not mutually convertible in unicode program." at he following line.
    loop at itab into l_line.
    endloop.
    Thanks,
    Ali.

    Hi Narendran,
    I did the same earlier, but the field l_line is again used in the another line as follows
    IF l_line CS w_group.----
    (1)
    where     w_group         LIKE zstr-cctr_group.
    here zstr-cctr_group is same as one of the fields of structure xyz.
    in line 1 it is giving warning as
    l_line is incompatible and it must be C,N,D,T or string.
    Thanks,
    Ali

  • /SMB40/RVADOR01 in runtime giving unicode error

    hi all
    i am using /SMB40/RVADOR01 program for printing the smartform but in runtime it is giving not unicode compatible
    when i performed syntax check in /SMB40/RVADOR01 program there it also giving unicode error
    and in the program attributes unicode check is not selected
    so i want to know can we change the standard /SMB40/RVADOR01 program to unicode compatible
    if yes than how to do for  a standard program
    or i will copy this program and make a custom program which is unicode compatible
    thanks in advance

    hi,
    I think you might have done UCCHECK transaction on this or other program by now. If you have not, please see if it helps.
    UCCHECK is for making programs Unicode comaptible.
    Pls post your findings.
    Regards,
    Vivek.

  • Unicode error in statement Describe Field

    Hi,
    There is a statement in my program which is giving Unicode error.
    DESCRIBE FIELD t_mara-mfrpn LENGTH len.
    Here t_mara is internal table with header line. Unicode error which I am getting is 'In Unicode, Describe Length can only be used in Byte mode or IN....'.
    Kindly let me know how to remove this unicode error without affecting the functionality.
    Regards,
    Rajneesh

    syntax check always finds the error when the addition BYTE or CHARACTER MODE is missing in the statement DESCRIBE.
    And it will not cause any impact in functionality of your program

  • Running Unicode-Specifc Reports for ECC 5.0 (Unicode).

    Hi! All,
    I have freshly installed ECC 5.0 (Unicode Kernel 6.40). In ECC manual I cannot found anything about Running Unicode-Specific Reports. But in the case of Solman/XI Unicode version running Unicode-Specific Reports is
    must. (RUTTTYPACT and UMG_POOL_TABLE). Is it also applicable for ECC 5.0 or I do not have run these reports for ECC 5.0 ?
    Also I have installed only ABAP Engine of ECC 5.0 Is it OK. (I mean Fullinstallation of ECC ?) or I have install Java Add-ons also. It it is can you please send me the CD/DVD no. to install JAVA Addon Engine.
    Already I have installed permanent License and config. TMS Domain.
    Thanks and regards,
    Pratip Bhattacharyya

    Solved.

Maybe you are looking for

  • 403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied

    I got this message when trying to checkout from a site store: 403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied. Any ideas how can I solve it?

  • 2004S MiniSAP ABAP: SAPGUI crashes when creating a Web Service

    I have installed the NW2004S ABAP Preview System from SDN on a VMWare Image (Windows XP, 1.7 GB Mem). No problems during the install. Also I was able to run the sample Web Dynpro Quiz Application. However when try to create a Web Service the SAP GUi

  • Weird case involving NTLM, Windows XP and the portal

    I have a very peculiar case here for a few users. The users have in common that they are all using windows xp (and just migrated), though most other person (even ones using windows XP do not have the problem). We have implemented SSO to the portal, a

  • Problem with custom SplitPane

    Hi... I created my own splitpane by extending a new class from JComponent.I have made my own divider that listens mouseevents.Listening these events sets the divider to new location and sets the size and location of the components inside the splitpan

  • X.509 and PKCS#11 provider

    Sorry if I'm asking the stupid question, but there is something in JCE PKCS#11 provider architecture that I'm missing. Let's say I have some hardware crypto module (e.g. SUN SCA-6000) and want to be sure that all crypto work is done in it. So I would