Alternate of  'Translate Codepage' in ECC 6.0

Hi Guys, 
I am having problem with the syntax of the below statement
TRANSLATE itab  TO  CODE PAGE P_PCODE
where
P_PCODE containscodepage value  for UNIX file system I guess.
and ITAB is
DATA: BEGIN OF ITAB OCCURS 0,
        RECTYP(1) TYPE C,
        DATA(1000) TYPE C,
     END OF ITAB.
I found that it is obsolete in ECC 6.0 and I am supposed to use the class CL_ABAP_CONV_OUT_CE  and the method CONVERT_STRUC
But when I import the signature of this method to pass the parameter I can not make out which parameter to pass.Can you suggest on this. Reward points guaranteed.
CALL METHOD me->CONVERT_STRUC
  EXPORTING
    DATA            =
    VIEW            =
IMPORTING
   BUFFER          =
   TRUNCATION_FLAG =
This is signature of this method ( I am avoiding the try n catch part)
If you have any alternate solution please suggests.

Hello Anid,
Did you read the documentation of the class  cl_abap_conv_out_ce?
The usage of the method to convert codepages of structures is described including this code sample:
DATA:
  BEGIN OF struc,
    text(5) TYPE c,
    int TYPE i,
  END OF struc.
DATA:
  buffer TYPE xstring,
  conv TYPE REF TO cl_abap_conv_out_ce,
  view TYPE REF TO cl_abap_view_offlen.
view = cl_abap_view_offlen=>create_legacy_view( struc ).
conv = cl_abap_conv_out_ce=>create(
                            encoding = '0120'
                            endian = 'B' ).
struc-text = 'Abc12'.
struc-int  = 65538.
conv->convert_struc( EXPORTING data = struc
                               view = view
                     IMPORTING buffer = buffer ).
I think this should be adaptable to your question.
best regards,
Sven

Similar Messages

  • Translate codepage/number...format

    Hi all,
    I have querry like  TRANSLATE g_t_likp_download FROM CODE PAGE '1110' TO CODE PAGE '0100'. in 4.6b
    But the same is not working in ECC6.0.
    For the same need to use either of CL_ABAP_CONV_IN_CE, CL_ABAP_CONV_OUT_CE or CL_ABAP_CONV_X2X_CE  of this method.
    Can anyone tell me how can i implement it?
    Thanks in advance!

    Please refer this link:
    Alternate for Translate Code Page

  • Problem in TRANSLATE SYNTAX in ECC 6.0

    this is old syntaxes
    TRANSLATE c ...FROM CODE PAGE     g1 ... TO CODE PAGE     g2
    new systems should use this class
    CL_ABAP_CONV_IN_CE
    it reads data from a container and converts it to the system format.
    my old syntax is     TRANSLATE header-id FROM CODE PAGE file_tab-codepage.
    i need to change to new one by using above class  how to do it

    Moderator message - Cross post locked
    Rob

  • How to use class for Translate..codepage/numer format

    In the Unicode context, TRANSLATE... CODEPAGE/NUMBER FORMAT is not allowed.

    this is the class to be used for  Translate…Codepage/number format.statement
    Unicode Error : In the Unicode context, TRANSLATE... CODEPAGE/NUMBER   FORMAT is not allowed.
    Before Unicode
      TRANSLATE T143T-TBTXT FROM CODE PAGE '1100' TO CODE PAGE '1105'.
    After Unicode
       Use class for Translate codepage to codepage.
         Data : g_codepage LIKE tcp0c-charco VALUE '1100'.
    CONSTANTS: c_unicodecp(4) VALUE '1105'.
    PERFORM translate_codepage USING g_codepage
                                     c_unicodecp
                               CHANGING T143T.
    FORM translate_codepage  USING    P_G_CODEPAGE
                                      P_C_UNICODECP
                             CHANGING P_T143T.
      DATA: converter  TYPE REF TO cl_abap_conv_obj.
      DATA: l_out      TYPE string.
      DATA: l_fromcode TYPE cpcodepage.
      DATA: l_tocode   TYPE cpcodepage.
      l_fromcode = P_G_CODEPAGE.
      l_tocode = P_C_UNICODECP.
      CREATE OBJECT converter
        EXPORTING
          incode  = l_fromcode
          miss     = '.'
          broken   = '.'
          use_f1   = 'X'
          outcode  = l_tocode
        EXCEPTIONS
          invalid_codepage = 1
          internal_error   = 2.
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN 1.
            MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
          WHEN 2.
            MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
        ENDCASE.
      ENDIF.
      CALL METHOD converter->convert
        EXPORTING
          inbuff         = P_T143T
          inbufflg       = 0
          outbufflg      = 0
        IMPORTING
          outbuff        = l_out
        EXCEPTIONS
          internal_error = 1
          OTHERS         = 2.
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN 1.
            MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
          WHEN 2.
            MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
        ENDCASE.
      ENDIF.
      P_T143T = l_out.
    ENDFORM.                    " translate_codepage

  • Currency translation differences with an effect on earnings

    Product Version: SAP R/3 46.C
    Componente: EC-CS-CSF-E Currency Translation
    In currency translation program of ECCS (tx CX40) the prior year portion of translation differences that affects earnings is posted in current period in the earnings retain item (ER) which according to SAP documentation "Currency translation differences with subsequent consolidations" is correct, however when we run the currency translation on subsequents periods this amount is posted again generating a multiplying of differences on each period.
    In accordance with section u201CBu201D of SAP note 553586, the carryforward item (retain earnings) was assigned to translation key 5, to avoid multiplications of this difference in every execution of currency translation for current period. This correction was applied successfully, however the problem is now generated when we run the currency translation in every subsequent period.
    SAP notes 582815 and 553586 was applied succesfully.
    We also verified SAP note 1045402 changing the translation key 5 to 1, for balance carryforward item (retained earnings) this avoids the difference effect on subsequents periods, but  generates a translation differential effect undesired on this item, since this is a historical item that not must be altered by currency translation.
    Additionally we read SAP note 509509 and we think that this issue corresponds whit symptom 2 of that note.
    Step by Step:
    Transaction: CX40
    Setting of Translation SET in translation method:
    1.- MARS-GAP-Monetary:
    1.1.- Items of balance sheet
    1.2.- Translation Key 1
    1.3.-  Item for differences: income statement item with an effect on earnings
    2.- MARS-GAP-NonMonetary
    2.1.- Items of balance sheet
    2.2.- Translation Key 6
    2.3.-  Item for differences: income statement item with an effect on earnings
    3.-MARS-MOR-Monetary
    3.1.- Items of P&L
    3.2.- Translation Key 5
    3.3.-  Item for differences: income statement item without an effect on earnings
    4.-MARS-MOR-NonMonetary
    4.1.- Items of P&L
    4.2.- Translation Key 6
    4.3.-  Item for differences: income statement item without an effect on earnings
    5.- MARS-HIST
    5.1.- Items of balance sheet
    5.2.- Translation Key 6
    5.3.-  Item for differences: Balance sheet item without an effect on earnings
    6.- ANI-BS-FX
    6.1.- Items of differences SET MARS-HIST and Carryforward Item for special items in transaction CXD3, the same item for the balance carryforward (retained earnings)
    6.2.- Translation Key 5
    6.3.-  Item for differences: Balance sheet item without an effect on earnings (the same item for the SET MARS-HIST)
    7.- ANI-BS
    7.1.- The special balance sheet item in Transaction CXD3
    7.2.- Translation Key 5
    7.3.-  Item for differences, the same item
    8.- ANI-IS
    8.1.- The special income statement item in Transaction CXD3
    8.2.- Translation Key 5
    8.3.-  Item for differences, The same item
    Note:
    1 .- According to the point A of the note  553586 was included the FS Item 484051011(difference item for SET MARS-HIST)  in the conversion SET ANI-BS-FX
    2 .- According to Section B of the note 553586 was included the account for carried forward  481000001 the special accounts set up in the transaction CXD3 in the conversion SET ANI-BS-FX
    3 .- According to Section C of  note 553586 are included special accounts set up in the transaction CXD3 390000 and 251200, in the conversion SET ANI-IS and ANI-BS respectively.
    When run the currency translation in the new year 1-2011, the prior year portion of translation differences that affects earnings is posted in current period a credit to earnings retain and debit to account difference in SET for this account. This amount is same on special balance sheet item 251200, in tx CXD3, also found on the statistical FS item.
    Then in subsequent periods, 2 - 2011 it posting another credit to earnings retain and debit to account difference in SET for this account, generating a multiplying of differences on each period, even though the difference for this account (ER) in the log of the translation currency is equal to the difference posted to the previous period, show this in transaction CX34 for items of translation (1) for this account until 1-2011.
    Edited by: Ana Brito on Jul 25, 2010 8:10 PM

    Hi,
    just a information how I did a workaround about this:
    The opening (movement type 100) of the balance sheet item "differences of currency translation" is customized with "don't change...".
    Every increase  to "differences  of currency translation" works with e.g. movement type 120 and will be carried forward to 100.
    Maybe this is a scenario you can use...
    BR

  • Upload Of Photographs with the help of BDC in ECC 6.0 (tcode : OAAD)

    Hi Experts,
       I am trying to upload the photographs in ECC 6.0 Employee data, I m using my old BDC which was perfectly running in 4.6C, but in ECC 6.0, it is not working.
    While uploading the photograph it is again asking for File name which i have already given during making the session of BDC into my FLAT File.
    My Old BDC code part :
        PERFORM bdc_dynpro      USING 'SAPLOPTM' '0105'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'SAPB-SAPPOOLINF'.
        "PERFORM bdc_field       USING 'SAPB-SAPPOOLINF'
                                      "'Sample.jpg'."i_tab-filename.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=OKAY'.
        PERFORM bdc_field       USING 'SAPB-SAPPOOLINF'
                                       i_tab-filename.
    When i checked this screen 'SAPLOPTM' '0105' in ECC 6.0, this screen is not available in ECC 6.0.
    I started new recording for BDC, but the part where we are giving the file path, it is not coming in recording code.
    What is the alternate of this code in ECC 6.0, please send the code if available.
    Thanks in advance.
    Ajay

    when you are recording check the background option. try this if it helps you.

  • Alternative tcode for AL02 in ECC 6.0

    Hi All,
    AL02 is a tcode in 4.7, its obsolete in ECC 6.0 . i want the alternate tcode for this in ECC 6.0.
    can u suggest me some process to find such alternative tcodes for the obsolete one in the higher versions.

    Hi Nasreen,
    The new Tcode for AL02 is RZ20 in ECC 6.0
    Check this Wiki for the list of old and new Tcodes:
    https://wiki.sdn.sap.com/wiki/display/ERP6/TransactionsChangedinECC6.0
    Regards,
    Chandra Sekhar

  • Why I can't translate every item of the domain that RFC provided

    <<
    Please do not post your email address on these forums.
    >>
    Dear all experts:
    I internationalized a WDJ application between zh and en,every thing goes well ,but there is still a problem puzzled me:
    There is a "DropDownByKey" binding to a field(domain) that RFC provided,when I click the "DropDownByKey" as an English user,I can see 6 values in the list but 2 of them are Chinese and 4 are English.
    Just like this:
    5 分 -
    Chinese
    4 points
    3 points
    2 points
    1 points
    0 分 -
    Chiniese
    I have checked the translation both in ECC and WebDynpro Java Application, even restart the ECC, but still got this problem.
    Please help me !!!!
    Thanks in advance!!!!
    E-mail: kevin.tien#hotmail.com
    Edited by: Matt on Nov 10, 2010 5:09 PM

    Thanks for your answer!
    I have executed the RFC, but it's a domain, not a common field of talbe, I can't see the result.
    I have print the every domain-value in the screen, It's alse like this:
    5分  -
    Chinese
    4 points
    3 points
    2 points
    1 points
    0分 -
      Chinese

  • Memory(RAM) upgrade on a Mid-2012 MacBook Pro

    Hello Apple fans and users. My Mid-2012 MacBook Pro 13" is a bit slow. It has 2x2GB DDR3 1600MHz Ram and when I open more than 4-5 tabs in Safari it becomes really really slow. So that's what's bothering me and I have decided that I need to upgrade my RAM to more GB's. I have iStat app and it shows me that more 3/4ths of the RAM is being used when I have more than 4-5 tabs open in Safari and when my iTunes is playing a song.
    So Im from the Netherlands and what I found is this:  http://www.alternate.nl/Corsair/4-GB-DDR3-1333/html/product/922656?tk=7&lk=9331
    It even says MAC Memory. I find this good because it is supposed to be for a MAC, but my only concern is that my memory right now is 2x2GB 1600MHz, and the one that Im currently looking at(at the link) is only 1333MHz.
    Do you guys think this might be a problem or it is bad or is it going to be a NOT SO GOOD upgrade? Im not very good with computers but from what I know 1333MHz is less than 1600MHz...
    But I also found this -> http://www.alternate.nl/Kingston-ValueRAM/4GB-ECC-DDR3-1600/html/product/1118143 ?event=search
    and it is 1600MHz, DDR3, 4GB BUT I AM NOT Sure if it's gonna work on my laptop because it is a MAC.
    So what do you guys think? Which one should I get and why? Is there a difference between 1333MHz and 1600MHz? And what is it? How am I gonna feel the difference?

    As BobRz says, get the right speed, or you may have problems.
    memory upgrades for MacBook Pro (13-inch and 15-inch, Mid 2012)  from Crucial.com

  • HTML animation effects doesn't work after last update

    After last update my html animation that have different effects with different time: fade, translate, rotation, scale, ecc... plays but some effects doesn't play.
    Various animated png in html project appears immediatly without shows transitions or deformations.
    I have made html animation with Motion Composer that have time curve for each effect.. and all work fine with previous dps desktop tools...
    I don't use Hedge because folios with hedge animation is mooooooooore large than folios with motion composer animation.
    A single complex animation (10 .png(1024x768) with multipe effects fo each) made with composer produce a 1MB folio...
    The same animation made with Hedge produce more the 100MB folio.
    why new version of dps don't show my html anim correctly ? I hope adobe correct this proble. 

    We just released an update to the DPS tools that addresses the issues around HTML/iFrame and buttons in release 25. You can download the updated components by following the links at http://www.adobe.com/go/learn_dps_install_en.
    Neil

  • Dynamic language RFC communication channel

    Hi,
    Is it somehow possible to dynamically determine the language to be used to send an RFC request with the RFC Receiver Adapter? I don't see any variable substitution possibility, so I assume it is not possible to do so.
    What would be the nicest way to do the following: internet web page triggers a synchronous interface in XI which is mapped to an RFC call to ECC. Depending on the language used in the RFC call (would be passed by the initial trigger) the error texts of the RFC call are translated automatically (standard ECC functionality) and returned. So the user wants to have this error messages in the language passed in the web page.
    An alternative I see, would be to create n target messages and n communication channels (1 per language) and let the interface determination do the trick. But I would like to know there is a more dynamic solution for this.
    Thanks a lot in advance!

    Hello,
    SSO - Single Sign On is not supported in XI3.0, communication channels need a service id for talking with R3.
    We have been following up with SAP for SSO functionality. Its still in the pipeline. In the near future they may provide SSO.
    Regards,
    Naveen

  • Character set table for unicode conversion

    Experts,
    If one identifies a special character that fails during code page conversion (CX_SY_CONVERSION_CODEPAGE), can this character then be added into a table that will recongnize it and not fail moving forward? If so, how to go about it?
    Any help is appreciated.
    UV

    Note this
    Unicode Error : In the Unicode context, TRANSLATE... CODEPAGE/NUMBER FORMAT is not allowed.
    Before Unicode
    TRANSLATE T143T-TBTXT FROM CODE PAGE '1100' TO CODE PAGE '1105'.
    After Unicode
    Use class for Translate codepage to codepage.
    Data : g_codepage LIKE tcp0c-charco VALUE '1100'.
    CONSTANTS: c_unicodecp(4) VALUE '1105'.
    PERFORM translate_codepage USING g_codepage
    c_unicodecp
    CHANGING T143T.
    FORM translate_codepage USING P_G_CODEPAGE
    P_C_UNICODECP
    CHANGING P_T143T.
    DATA: converter TYPE REF TO cl_abap_conv_obj.
    DATA: l_out TYPE string.
    DATA: l_fromcode TYPE cpcodepage.
    DATA: l_tocode TYPE cpcodepage.
    l_fromcode = P_G_CODEPAGE.
    l_tocode = P_C_UNICODECP.
    CREATE OBJECT converter
    EXPORTING
    incode = l_fromcode
    miss = '.'
    broken = '.'
    use_f1 = 'X'
    outcode = l_tocode
    EXCEPTIONS
    invalid_codepage = 1
    internal_error = 2.
    IF sy-subrc 0.
    CASE sy-subrc.
    WHEN 1.
    MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
    WHEN 2.
    MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
    ENDCASE.
    ENDIF.
    CALL METHOD converter->convert
    EXPORTING
    inbuff = P_T143T
    inbufflg = 0
    outbufflg = 0
    IMPORTING
    outbuff = l_out
    EXCEPTIONS
    internal_error = 1
    OTHERS = 2.
    IF sy-subrc 0.
    CASE sy-subrc.
    WHEN 1.
    MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
    WHEN 2.
    MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
    ENDCASE.
    ENDIF.
    P_T143T = l_out.
    ENDFORM. " translate_codepage
    Reward if helps

  • Adobe reader wont finish downloading off web

    Adobe reader won't finish downing off web are there any problems with it and are there any Fixes
    Thanks Cliff

    I have had the same problem with Safari. It doesn't happen when I use Chrome. I found this site and Google translated it www.ecc.u-tokyo.ac.jp [FAQ: よくある質問] 【Mac環境】Safari上でPDFファイルが閲覧できない
    to basically say, quite Safari. Open Adobe Reader and accept the license agreement, then re-open Safari. So far so good!

  • Translate to upper case a structure in ecc 6.0

    Hi,
    How to translate to upper case a structure in sys:ecc 6.0 (unicode) like it was possible in sys:4.7
    TRANSLATE s_tab TO UPPER CASE.
    now I have an error message: "s_tab shall be a character-type".
    thanks

    Hi,
    The usage of the method to convert codepages of structures is described including this code sample:
    DATA:BEGIN OF struc,
    text(5) TYPE c,
    int TYPE i,
    END OF struc.
    DATA:buffer TYPE xstring,
    conv TYPE REF TO cl_abap_conv_out_ce,
    view TYPE REF TO cl_abap_view_offlen.
    view = cl_abap_view_offlen=>create_legacy_view( struc ).
    conv = cl_abap_conv_out_ce=>create(
    encoding = '0120'
    endian = 'B' ).
    struc-text = 'Abc12'.
    struc-int = 65538.
    conv->convert_struc( EXPORTING data = struc
    view = view
    IMPORTING buffer = buffer ).
    Regards,
    Satish

  • UCCHECK error:  TRANSLATE... CODEPAGE/NUMBER FORMAT is not allowed

    Hi ,
    I am getting error " TRANSLATE... CODEPAGE/NUMBER FORMAT is not allowed" while doing UCCHECK activity.
    Existing code is
      DATA: BEGIN OF BIN_TAB OCCURS 500,  
            SATZ(1500)  TYPE C,
          END OF BIN_TAB.
       translate bin_tab from code page '1100'.
    I am getting this error for above statement.
    Class  CL_ABAP_CONV_IN_CE should be used but not sure about the syntax.
    Please suggest how to resolve it ?
    Thanks:
    Anugrah

    Please refer to below link:
    http://wiki.scn.sap.com/wiki/display/ABAP/CL_ABAP_CONV_IN_CE
    Thanks,
    Sunny

Maybe you are looking for