Unicode Error - Datatype Curr

Hi experts.
Please can you help me?
I used below method instead of move clause.
I can transfer (wa_table> to buffer.
But i found ##―ఀ###ఀ     ###ఀ contents in Buffer.
This filed of buffer is Curr(15.2) datatype.
Please Can notice me how can slove this problem ?
Thanks.
  DATA: buffer(30000)              OCCURS 10  WITH HEADER LINE.
  DATA :  st_table TYPE REF TO data,
               tb_table TYPE REF TO data,
  FIELD-SYMBOLS : <wa_table> TYPE ANY,
                  <it_table> TYPE STANDARD TABLE,
                  <wa_table2> TYPE ANY.
      CREATE DATA : tb_table TYPE TABLE OF (query_table),  "Object Create.
                      st_table TYPE (query_table).
      ASSIGN : tb_table->* TO <it_table>,  "INTERNAL TABLE.
                     st_table->* TO <wa_table>.  "WORK AREA.
      SELECT * FROM (query_table)
               INTO CORRESPONDING FIELDS OF TABLE <it_table> WHERE (options).
      LOOP AT <it_table> INTO <wa_table>.
        CLEAR buffer.
        CALL METHOD cl_abap_container_utilities=>fill_container_c
          EXPORTING
            im_value               = <wa_table>
          IMPORTING
            ex_container           = buffer
          EXCEPTIONS
            illegal_parameter_type = 1
            OTHERS                 = 2.
        APPEND buffer.
  endloop.

Hi,
Thanks. I want to replace the following code .
call function 'POPUP_TO_GET_VALUE'
      EXPORTING
        fieldname           = 'JOBNAME'
        tabname             = 'BTCH1140'
        titel               = 'Please input a previus job'
        valuein             = lv_valueout
      IMPORTING
        answer              = lv_answer
        valueout            = lv_valueout
      EXCEPTIONS
        fieldname_not_found = 1
        others              = 2.
    if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    else.
      if    lv_answer   ne 'C'
        and lv_valueout ne '.'.
        gv_prevjob = lv_valueout.
      endif.
    endif.

Similar Messages

  • Cannot convert between unicode and non-unicode string datatypes

      My source is having 3 fields :
    ItemCode nvarchar(50)
    DivisionCode nvarchar(50)
    Salesplan (float)
    My destination is : 
    ItemCode nvarchar(50)
    DivisionCode nvarchar(50)
    Salesplan (float)
    But still I am getting this error : 
    Column ItemCode cannot convert between unicode and non-unicode string datatypes.
    As I am new to SSIS , please show me step by step.
    Thanks In Advance.

      My source is having 3 fields :
    ItemCode nvarchar(50)
    DivisionCode nvarchar(50)
    Salesplan (float)
    My destination is : 
    ItemCode nvarchar(50)
    DivisionCode nvarchar(50)
    Salesplan (float)
    But still I am getting this error : 
    Column ItemCode cannot convert between unicode and non-unicode string datatypes.
    As I am new to SSIS , please show me step by step.
    Thanks In Advance.
    HI Subu ,
    there is some information gap , what is your source ? are there any transformation in between ?
    If its SQL server source and destination and the datatype is as you have mentioned I dont think you should be getting such errors ... to be sure check advance properties of your source and check metada of your source columns
    just check simple oledb source as
    SELECT TOP 1 ItemCode = cast('111' as nvarchar(50)),DivisionCode = cast('222' AS nvarchar(50)), Salesplan = cast(3.3 As float) FROM sys.sysobjects
    and destination as you mentioned ... it should work ...
    somewher in your package the source columns metadata is not right .. and you need to convert it or fix the source.
    Hope that helps
    -- Kunal
    Hope that helps ... Kunal

  • 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.

  • 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

  • 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

  • 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

  • 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

  • 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.

  • Unicode error when implementing a BADI

    Hi All,
    I get a Unicode error when trying to implement either one of these two BADIs: ME_GUI_PO_CUST, ME_PROCESS_PO_CUST:
    In Unicode programs, the "-" character cannot appear in names, as it does here in the name "MMCNT_EKKO-BEDAT".
    There are two more similar errors. They all refer to the type group MMCNT, which is an SAP delievered object and is active. Has anyone ever encountered these errors?
    Thanks!
    Roman D.

    Hi,
    You did not mention which version of SAP you're using, but I just thought that the OSS Note 829031 might be relevant for you.
    Regards,
    Anand Mandalika.

  • Solution for Unicode error MESSAGEG:Z

    Hi all ,
    I have a code
    PERFORM write_report TABLES i_guideline
                                using 'Merit'
                                      'Guideline Amount' .
    FORM write_report TABLES   p_i_mrth STRUCTURE i_mrth
                      using    p_title
                               p_title2.
    After its unicode error check it is showing .
    Error Code : *MESSAGEG:Z*
    Error Msg  : I_GUIDELINE" and the line type of "P_I_MRTH" are incompatible. With regard to  alignment gaps, the line type of "P_I_MRTH" is not a real initial part of  "I_GUIDELINE". .
    Can anyone please give me any solution .
    Thanks ,
    Regards ,
    Swashrayee

    Hi,
    In Unicode system type Incompatible error will appear when transferring the data from one structure to another strucrture which is not same alinged.
    Might Be your one of the structure where filed's of  i_guideline are like
    a(4) type C ,
    b(2) type C,
    c     type I,
    d     type N.
    but another structure are I_MRTH
    a (4)  type c,
    b Type I,
    c Type C,
    d type N.

Maybe you are looking for

  • Cannot send photo or contact as text message

    Running the newest update 8.1 (10/22/2014) on a iPhone 5S. I STILL cannot share a contact via text message. I STILL cannot send a photo as a text message when I select a photo directly from my camera roll/photo albums. I can send a photo in an EMAIL

  • Oracle 9i database software upgrade issue with standby (Dataguard) database

    All, I have encountered a problem in upgrading the Oracle software on 2 of our databases in-house. The databases in question here are using Dataguard, so one is set to primary and one is set to standby. The version that they are/were starting at is 9

  • To read a connection string from a notepad

    i want to read the DSN-less connection string from a notepad that is from a text file so that if server ip address changes then it will be easy to change the ip address in the notepad rather than changing the code .we are using jsp. Connection con=Dr

  • Link to folder contents

    Is it possible to create a link the shows the contents of a folder instead of opening a specific file. For example: A link entitled "Forms" which opens a folder with a number of different forms inside which allows you to pick the particular form you

  • HT1430 The home button doesn't work sometimes.  Am I using the wrong pressure?

    The home button doesn't response sometimes.  Is there any technique?  Am I using the wrong pressure?  Please help