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

Similar Messages

  • Problem with  'append' syntax in ECC 6.0

    i am upgrading a old report  i got a unicode error 
    actually  the report has the followig structure 
    tables: arc_buffer.
    DATA: BEGIN OF class_package OCCURS 0.
            INCLUDE STRUCTURE arch_packa.
    DATA: END OF class_package.  
    now  the report has following syntax
    APPEND  arc_buffer-segment TO class_package.
    when i try to execute it  it gives error that
    'a line of class_package and arc_buffer-segment are not mutually convertible in a unicode program.'
    can any one help me to resolve this.

    Hi Elinuk,
    Use field symbols to make it compatible.
    Hope the below code helps.
    REPORT  zvk_test.
    TABLES: arc_buffer.
    DATA: BEGIN OF class_package OCCURS 0.
            INCLUDE STRUCTURE arch_packa.
    DATA: END OF class_package.
    DATA:lw_arch_packa TYPE arch_packa.
    FIELD-SYMBOLS:<fs_arch_packa>.
    arc_buffer-segment = 'krishna999988jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj'.
    ASSIGN arc_buffer-segment TO <fs_arch_packa> CASTING TYPE arch_packa.
    MOVE <fs_arch_packa> TO lw_arch_packa.
    APPEND lw_arch_packa TO class_package.

  • 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

  • Problem during hierarchy load from ECC 6.0 to BW

    Hello,
    I encountered a problem during hierarchy loads from ECC to BW:
    I get the following in BW:
    Error when updating Idocs in Source System
    Diagnosis
    Errors have been reported in Source System during IDoc update:
    Once I go into ERP and look at the IDocs I get the following message:
    Idoc Error 26:
    EDI: Syntax error in IDoc (segment cannot be identified)
    Message no. E0078
    Diagnosis
    The segment E1RSSH does not occur at the current level of the basic type (extension ).
    This error can have several reasons:
    The segment E1RSSH is assigned to a group whose header segment does not occur.
    The segment E1RSSH does not exist in the syntax description of the basic type  (extension ).
    The sequence of segments in the group in which the segment appears is incorrect.
    Previous errors ('mandatory' segment or group missing) may be due to this error.
    Procedure
    Please check the IDoc or the syntax description of the basic type  (extension ).
    Can anyone help?

    The most basic setting in a BW system is its connectivity with the R/3 system (which is a basis team activity, but BI consultant can always help).
    Issue: While creating source system, I am getting an error "Segment E1RSSH does not exist".
    Diagnosis
    Segment E1RSSH is in the syntax description, but it does not exist.
    The issue was that some of the entries in the table EDISEGMENT were missing.
    As this a standard table, it is recommended to restore the table from Backup or from another BI system. (Please ask your basis team to do it.)
    Now, the significance of the segments: We all know that we require 3 message types in total to communicate with R/3 system. RSRQST, RSSEND and RSINFO.
    Now each of the message types has some segments which help in communication.
    You can see this segment types in the t-code we30. Just enter the basic idoc type and click on display.
    This error is not a common error, but can be useful if at any stage of implementation or support, the table gets disturbed and you have issues with source system connectivity.
    Thanks
    SM

  • Messy code problem while translating XString to String in OfficeControl

    Hi Expert,
        I have messy code problem while translating XString to String in XML-Format Word Doc in OfficeControl.
    I upload an XML-Format template Word Doc to server as a MIME Object.
    When OfficeControl is started in Web Dynpro, OfficeControl automatically open the XML-Format template.
    For the first time, I get the XString-type Context attribute bind to the content of the Word Doc,
    then translate it to string, I got the XML-format content, it's great!
    However, after the first time, when I input any new contents in MS Word in Web Dynpro,
    no matter I execute "Ctrl + S" or click the "savedocument" button,
    when I translate the XString Context attribute to String, I got messy code. (but the first time, it is good plain text)
    I use the function module: ECATT_CONV_XSTRING_TO_STRING (good for first time, dump after first time),
    SCMS_XSTRING_TO_BINARY, SCMS_BINARY_TO_STRING (good for first time, messy code after first time).
    My Demo source code is in: (system) SMV --> (local object) zhaode --> (Dynpro Component) ztest_office_control
    core source code is as:
    clear itab.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    BUFFER = lv_datas
    IMPORTING
    OUTPUT_LENGTH = lv_length
    TABLES
    binary_tab = itab.
    CALL FUNCTION 'SCMS_BINARY_TO_STRING'
    EXPORTING
    input_length = lv_length
    mimetype = 'text/plain; charset=utf-8'
    IMPORTING
    text_buffer = lv_datas_string
    output_length = lv_data_len
    TABLES
    binary_tab = itab.
    Can you give me some advice?
    Many thanks in advance.
    Best Regards,

    You have already posted this same question several times (and some very similiar questions) within the forum.  Please do NOT multiple post your questions. This is against the forum rules of engagement. SAP employee or not, you will find yourself banned from the forums if you don't follow the rules.

  • Problems with INSERT  syntax ?

    Dear programmers,
    I am have a problem with INSERT Syntax,
    I have a table with 11 fields out of which one is auto_increment field(id), Now my problem is, Do i need to specifiy autoincrement field in INSERT statement. I dont thinks ?
    My Insert statement is as follows ,
    int result = st.executeUpdate("insert into tablename"
              +"(name, user_group, lage, preis, anmerkung, exp_uri, timestamp, nummer)"
              +"values +Objekt+"','"+Kategoriekey+"','"+Lage+"','"+Preis+"','"+Anmerkung+"','"+Dateiname+"','"+date.getTime()+"','"+ObjektID+"')");
    thanks in advance
    bye

    The answer to your question is maybe. Each database handles autoincrements differently. What database are you using?
    I also noticed that you are doing an insert using the standard Statement. You should look into using PreparedStatements for performance reasons and issues such as single quotes from within a string.
    Matt

  • Problem consuming Web Service from ECC 6.0 using dual certificates

    Hi, I am trying to consume a secure web service on ECC 6.0 - so far without much luck.
    When I try to connect to the ws server, it seems there are three certificates in action: a CICS certificate for establishing the SSL connection, a 'root' certificate from the PKI certificate issuer, and a private certificate issued by the above issuer (please forgive me if a have the syntax wrong - certificates are not my primary line of work). So, using Trust Manager (STRUST), I have created a PSE named 'OES' and imported all three certificates into it.
    In SOAMANAGER I have set up the end-point using the WSDL-file and set the following parameters:
    - Authentication Method = X.509 Client Certificate
    - Trustworthiness Method = Holder of Key
    - Issuer = <issuer from the root certificate>
    - Name of Attester = <blank>
    - Validity of SAML Assertion = 180
    - Caching of SAML Assertions = False
    - Attester System Destination = <blank>
    - Name of Attester = <blank>
    - User = SRxxxWS
    - Password = <blank>
    - Client PSE = OES
    When I try to consume the web service, I can see in the log files that the CICS certificat is used for establishing the SSL connection but all I receive back is an HTTP 403 "Client Authentication Error". If I remove the CICS certificate from the PSE, the connection is not made.
    How do I make the client certificate available for the connection? Have I approached the problem from the wrong side? Has anybody experienced something similar? Any help will be highly appreciated.
    Thanks,
    Bo

    Hi,
    I am not Certificate expert either but you can get plenty of help from "Security" forum on SDN. I can help you bit with some related SAP notes and forum answers:
    See following notes :
    1324884 - Analysis of ABAP Web Service SOA Configuration
    1318906 - Trace analysis of SSL problems
    1319507 - Overview: Analysis of ABAP Web Service Configuration
    See this forum discussed about consuming secured ws in webdynbpro:
    Problem in Calling Secure Webservice.
    Articles:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/92914af6-0d01-0010-3081-ded3a41be8f2&overridelayout=true -
    Web Services Security Configuration Guide (discussed IBM and NW WS security but you can find some examples and hints there)
    Regards,
    Gourav

  • Problems if code copied from ecc 6.0 to ecc 4.7

    HI Experts,
        If i copy code from ecc 6.0 to ecc 4.7 any problems will arise. like function modules not exist. Please let me know the basic problems which i can face if i do this copy from 6.0 to 4.7.
    Thanks.

    why don't you just test it? Copy it over and do a syntax check.
    If there was no difference then SAP would not need to provide different releases.
    Of course there are function modules in current system which were not written when 4.7 was launched at the market. When we implemented ECC6 we upgraded as well to Unicode which forced us to change coding in old programs.
    There are ABAP commands which have not been there at 4.7 times.
    You can't get a clean bill of health for such generic question, you can just test it, and if there is trouble then you need to fix it to make it run.
    If you have read some OSS notes for new developed functionality then you could know how rarely SAP offers the option to implement such function in a lower releases. 

  • Problem while calling subroutines in ECC 6.0 version

    Hi, here is some problem can you please try to solve.....
        I have created three forms TOP_OF_PAGE,DOC_DISPLAY,END_OF_LIST and i have called them by passing to wa_events-form. Up to this every thing is fine, the problem is i am working witth ECC 6.0  so while doing Extended program check through SLIN it is giving some waring like
    "FORM DO_DISPLAY_AT_USER_COMMAND not called directly
    (check dynamic PERFORMs!!) " for all the three forms which i have created...Please help me out to over come this warning... For ur reference i am giving some code as mentioned below.......
    LOOP AT i_events into wa_events.
        CASE wa_events-name.
          WHEN slis_ev_top_of_page.
            wa_events-form = 'TOP_OF_PAGE'.
          WHEN slis_ev_end_of_list.
            wa_events-form = 'END_OF_LIST'.
          WHEN slis_ev_user_command.
            wa_events-form = 'DOC_DISPLAY_AT_USER_COMMAND'.
        ENDCASE.
        MODIFY i_events from wa_events.
      ENDLOOP.
    ENDFORM.                               " INIT_ALV_EVENTS
    *&      Form  DOC_DISPLAY
    FORM doc_display_at_user_command USING p_ucomm    LIKE syst-ucomm
                                     p_selfield TYPE slis_selfield.
      CASE p_ucomm.
        WHEN '&IC1'.
          CLEAR i_out.
          READ TABLE i_out into wa1_out INDEX p_selfield-tabindex.
          IF sy-subrc EQ 0 .
            IF wa1_out-belnr EQ space.
              MESSAGE e016(kb).
            ELSE.
              SET PARAMETER ID 'BLN' FIELD wa1_out-belnr.
              SET PARAMETER ID 'BUK' FIELD wa1_out-bukrs.
              SET PARAMETER ID 'GJR' FIELD wa1_out-gjahr.
              CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.
            ENDIF.
          ENDIF.
      ENDCASE.
    ENDFORM.                    "DOC_DISPLAY_AT_USER_COMMAND
          FORM TOP_OF_PAGE                                              *
    FORM top_of_page.
      PERFORM std_header in program zstandrt
                           USING sy-cprog sy-title 'L' '1' ' ' 'confidential' 'restricted'.
    ENDFORM.                    "TOP_OF_PAGE
          FORM END_OF_LIST                                              *
    FORM end_of_list.
    Begin of V04 comment  >***********************************
    IF W_BDC_SESSION EQ 'X'.
      SKIP 2.
      IF P_NOUPD EQ 'X'.
        FORMAT COLOR COL_POSITIVE.
        WRITE :/20 ' Created BDC session : '(O02) , P_GROUP.
        WRITE :/25 ' Execute Using tcode SM35 ....'(O03).
      ELSE.
        FORMAT COLOR COL_NEGATIVE.
        WRITE :/20 ' Created BDC session For Error Transactions'(O04) ,
                     P_GROUP.
        WRITE :/25 ' Execute Using tcode SM35 ....'(O03).
      ENDIF.
      FORMAT COLOR COL_NORMAL.
    ENDIF.
    SKIP 2.
    End of V04 comment   >************************************
      WRITE :/50 ' *** END OF REPORT *** '(o01).
      PERFORM print_selections.
    ENDFORM.                    "END_OF_LIST
    Thanks & Regards.
    Laxman.P
    B'lore.

    Hi
    Are you getting the output or not?
    You can just ignore this warning in EPC
    as this FORM USER_COMMAND  is always called indirectly only
    But check the Output and see?
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Problem in CRM Complaint to ECC Return request creation

    Hi,
    In CRM Complaint transaction I am getting the following error when I try to create a 'Return Request' in ECC system. I could not trace out the root cause of this problem. Please help me in this regard.
    An error has occured in the system ERPCLNT100 while copying the document
    Message no. CRM_ORDER_MISC 020
    Diagnosis
    Errors have occurred while transferring the document into another system. Refer to the enclosed log to view the error messages.
    Transmission log
    SALES_HEADER_IN has been processed successfully (Notification S V4 233)
    The sales document is not yet complete: Edit data (Notification W V1 555)
    With Zero VAT/CST Sales order can not be created (Notification E ZSD_MSG 000)
    SALES_ITEM_IN has been processed successfully (Notification S V4 233)
    I did all required configuration still the problem persist. Your suggestions are highly appreciated.
    Best regards,
    Raghu ram

    Hi,
    After looking at the errors we can make out that the there is an implementation in ECC side for sales orders which is also considering the complaints order.
    The message displayed is a custom message ZSD_MSG.
    So check this implementation in ECC and ensure that the order has the tax conditions with amount.
    Or exclude the process type of complaints from that implementation in ECC.
    Regards,
    PP

  • Problems in Z Reports in ECC 6.0

    Hi,
    We r upgrading the SAP from 4.7 E to ECC 6.0 and facing few problems in Z Reports in New Version..Like...
    1)..Incorrect value in the dynamic table..
    2)..Literals that take up more than one line not permitted.
    3)..Missing parameter with PERFORM.
    4)..Error in ASSIGN statement in program "SAPLSDSD".
    5)..Not Unicode Convertible.
    Please help me out of these problems..
    Regards,
    Anil

    Hi,
    regarding your problems the solution is that in ECC 6.0 the programs should be unicode compatible.the fields which are declared with type
    were no more allowed in 6.0.
    regarding unicode u can check the following threads..
    What is the Use of Unicode Check
    SDN Wiki - Standard Reference for Unicode Migration-Common ABAP Errors & Solution
    SDN Wiki - Standard Reference for UNICODE PROBLEMS and SOLUTIONS

  • Problem with translation of Adobe forms

    Hi Friends,
    Right now I am working with Adobe forms.
    While Translating the forms from English into Spansih I am encountering a problem.
    Even though it is Translated into spanish, if I login in spanish (ES) and see the Text is stil in English.
    the text is in 'TEXT' field.
    Kindly, Help me in solving the problem.
    Regards,
    Xavier.P

    When translating your form MAKE SURE YOU LOGIN TO SAP WITH THE TARGET LANAGUAGE FOR TRANSLATION!
    For example, if you have an english form and want to translate it to spanish, login in spanish, go to SFP and do your translation to spanish. It should have a pop-up shown that says "original language" is English....keep it as that.
    Not sure why it works this way, but it does. I would love to be able to login in English and then simply do all my other translations from there, but it doesn't work that way.

  • Problem creating backend PO in ECC

    Hi,
    I have already posted this question in the SRM Forum.
    We are using SRM 5.0. I am trying to create a backend PO. SRM defines the standard PO with a doc type as 'EC' and the same in ECC is defined as 'ZSTD'. This is getting created perfectly. Absolutely no problem
    I am trying to create other POs from SRM to ECC:
    "Blanket PO - Doctype ZBPO"
    "Exemption PO - Doctype ZEPO" etc
    I am able to select different types of POs from the drop down from the SRM screen. But when I am debugging, I always get the doc type as 'EC' regardless of what ever type of PO I select from SRM screen.
    Why am I getting same DOCTYPE for different POs from SRM?
    I am implementing the BADI "BBP_CREATE_BE_PO_NEW"
    Thanks,
    Rajasekhar

    Hi Santosh,
    I was out of office. I did try to do what ever u said. I am getting the number range related to the doc type which I wanted to create.
    With respect to changing the DOC_TYPE of BADI BBP_DOC_CHANGE_BADI, method BBP_SC_CHANGE, I always have DOC_TYPE as 'EC' regardless of type of PO I am selecting on the SRM Screen.
    Do you have any clue, if we need to make any config changes?
    Thanks
    Rajasekhar

  • DHTML Menu - Problem with Translation

    I have the DHTML menu installed within portal and have just added a "French" Translation to a few of my page groups. When I flip over to French using the "Set Language" portlet, the menus no longer show up.
    In addition, when I edit the menu, none of my page groups are there to select as the basis for my menu.
    Is there any way to make the menu compatible with Portal's Translation function? Has anyone else encountered this problem?

    Hi there
    I'm getting the same problem. I'm trying to add Portuguese translation and the dhtml menu simply disappears.
    How can i solve this problem?
    I don't think it is a issue with the code because it works fine for both languages in another page group.
    Can anyone help please?
    Regards,
    Sonia

  • Problem in translation to other language

    I have worked on a web application using JHeadStart Version 10.1.2.0 and JDeveloper 10.1.2.1.0, I have to translate all interfaces to other language (Arabic), So I generated the (ApplicationResources_ar.proberties) by setting the property (Generator Language Code=ar) in the File (AppModuleAplicationStructure.xml) and re-run the JHeadstart generator and then I replace values of properties on the generated file with there (equivalent unicode values).
    Anyway everything was OK, and all interfaces translated to the new language (Arabic) when the user change the default language of Internet Explorer from English to Arabic, Except some buttons labels (GO,Advanced Search,Quick Search,Details) these buttons labels seem in English characters or encrypted characters, I had tried to re-generate the JHeadstart many times but I got the same result. anyone have an idea about this problem please?

    If I understand your problem correctly you are using property file for your nls prompts. I had the same problem in using property files but when I changed it to use javaClass and also using AR8MSWIN1256 characterset, it worked fine. You can enter your prompt into application definition and then generate it using java class and not property file. Besides, don't forget to set your regional setting arabic in control panel to arabic both in regional option and advanced tab.
    For information about how to change the JHeadstart generator text default you can see the following link : Re: Internationalization-How to change JHeadstart Generator Text default
    Hope it can help,
    Navid

Maybe you are looking for

  • Error in tax code

    Hello, The scenario is we are using TAXINJ  and one of our tax code is not calculating the VAT value in PO , we have maintained the rate in tax code master in ftxp and condition record is also maintained but the when i put the tax code in PO the valu

  • HELP-What cords/connectors to connect iPod up to VIDEO PROJECTOR?

    I need to show a film I'm making next week on their video projector. They said they can handle anything - on CD or iPod - as long as I supply the CONNECTOR and cable/s for doing so. Help! I have the cable that came with my PowerBook G4 for video stuf

  • Query on Rebates/Subsequent settlement

    Hi, The scenario is that Vendor reduces the price of an article. There is some stock at hand and the vendor is ready to refund the difference. Eg. Cost price of Cannon Digicam was 400$, now the Vendor reduces the price to 300$. He sends a notoficatio

  • Ipad 2 wifi -dowloading

    I just got Ipad2 wifi only model.  Downloaded a bought tv show to my macbook, plugged the cables to sync it.  I can see the tv show on the macbook, but it cant get it to transfer my ipad 2?

  • Safari virus? bestsafety14.xorg.pl

    I have a strange problem. Safari now comes up with a popup message: http://www3.bestsafety14.xorg.pl Warning! Your computer is vulnerable to malware attacks. We recommend you to check your system immediately. Press OK to start the process now. OK is