Code page of PI system

hello guys,
i've a typical issue here...
I have an inbound interface which also sends mails after processing.
I need to send the data as an attachment in the mail.
For that i am using CL_ABAP_CONV_OBJ=>CONVERT to convert the text i am getting into the current system's GUI codepage format.
I am using SCP_GET_CODEPAGE_NUMBER this FM to get the appl_codepage and gui_codepage.
The problem here is....
When i run the payload from SPROXY, the FM gives me gui_codepage of SAP ECC system.
But when the interface gets run through PI proxy. It is not giving me the  gui_codepage for an obvious reason that PI thing does not have a GUI.
My requirement is to get the gui_codepage of the system regardless of the way it gets run.
Please help me in achieving it.Any FM or table or anything would be appreciated.
Thnx,

>
Sandra Rossi wrote:
> I'm staying on my position : when we send text (body and attachments) using CONTENT_TXT, we never need to use any code page, because the text is encoded in UTF-8 in the mail. Did you experience any problem with that?
About my previous answer, UTF-8 may be a problem. When there is no byte order mark (bytes at the beginning of the binary stream which describe whether the stream contains UTF-8, UTF-16LE, UTF-16BE, UTF-32LE, UTF-32BE), the receiving software may not recognize this format. This is true with Excel (I don't know for Word, but it's probably the same logic).
In that case, you have to check what encoding is accepted by the receiving software.
If UTF-8 is accepted, then you need to convert text to binary (binary corresponding to UTF-8 encoding, using either CL_ABAP_CONV_OBJ, CL_ABAP_CONV_X2X_CE, or CL_ABAP_CONV_OUT_CE; this last is the most simple). Then you must insert the 3 bytes of the UTF-8 byte order mark before the binary (concatenate ... in byte mode works well).
For more information, see [Note 1151258 - Error when sending Excel attachments|http://service.sap.com/sap/support/notes/1151258]

Similar Messages

  • Infopackage Idocs in status 2 - could not find code page for receiver system

    Hi,
    We just migrated our production system from BW 7.01 non unicode to BW 7.4 on HANA.
    We now encounter issues with idocs while loading data into bw from our ECC5 source. When we analyze idocs in the source system it appears with the message "could not find code page for receiver system"
    One weird thing is that the idoc seems to have been created before we started the infopackage in bw.. We controlled system time and AS time and everything seems ok.
    We did not encounter this issues on our previous migration test runs..
    Hope someone can help
    Christophe

    Hi,
    Thanks for responding. We finally found out what the problem was.
    We have two applications servers on our ECC with 2 different OS. One of them could not reach the new BW HANA server.
    Regards
    Christophe

  • IDoc Status 02 ( Could not find code page for receiving system )

    Hi All,
    I am getting Idoc status 02 when I am trying to send IDocs from ECC to PI system ( Production ).
    Error description.
    Could not find code page for receiving system
    Message no. E0266
    Diagnosis
    For the logical destination PIP001, you want to determine the code page in which the data is sent with RFC. However, this is not currently possible, and the IDoc cannot yet be dispatched.
    Procedure for System Administration
    Possible causes are:
    1. The entry no longer exists in the table of logical destinations.
    2. The target system could not be accessed at runtime.
    3. The logon language is not installed in the target system.
    4. In the destination system, no logon language is maintained
    Please help.
    Thanks - Vinay.

    Hi Vinay,
    Status 02 occurs when data is not passed to port suceessfully. Check the RFC desination  is working fine and your able to connect to target system and also check correct port is assigned.
    Regards,
    Vinod.

  • Idoc Error: Could not find code page for receiving system

    hi,
    I am facing the following error while processing Idocs.
    ERROR: Could not find code page for receiving system
    Diagnosis
    For the logical destination BWFIN, you want to determine the code page in which the data is sent with RFC. However, this is not currently possible, and the IDoc cannot yet be dispatched.
    Can somebody suggest a solution for this. I have verified that the RFC destinations have been created both on the sender and receiver, ports (WE21) have been defined, and partner profiles (WE20) also created. How would I troubleshoot this problem?

    Hi,
    I did analyse on this issue.It is all because of the Langauge settings in the SM59.This can be done by the BASIS person.The Language field would be empty, but when ever we send the IDoc from the unicode to a non unicode system we have to mention the Langauage used.
    If this helps you really award me the points.
    ~Katty

  • Idoc failed in Bi system "Could not find code page for receiving system".

    Dear Experts,
    i am getting below error ,Idoc failed in Bi system "Could not find code page for receiving system".
    All the idocs have been successfully posted except one which is giving this error
    Idoc status 02 - could not find code page for receiver system.
    Please guide me
    thanks
    vamsi

    Hello Vamsi,
    check Note 647495 - RFC for Unicode ./. non-Unicode Connections
    If your ERP system sends e. g. chinese data to the SCM system, how should the system know which codepage to use? You have to set the MDMP flag in your ERP system in SM59 and configure in the MDMP extended settings which codepage should be used for what language.
    Please check this thread - IDoc error - Could not find code page for receiving system
    Hope it helps,
    Thanks & Regards,
    Amit Barnawal

  • Could not find code page for receiving system

    Hi  Experts,
              When I scheduled a PC i got this Error Msg. What is the real cause and how can i correct it?? Thanks
    Dave
    "Could not find code page for receiving system"

    Hi Praveen,
    The detailed error msg says the following.
    Error when updating Idocs in Business Information Warehouse
    Diagnosis
    Errors have been reported in Business Information Warehouse during IDoc update:
    Could not find code page for receiving system
    System response
    There are IDocs with incorrect status.
    Procedure
    Check the IDocs in Business Information Warehouse . You can get here using the BW Monitor.
    Removing errors:
    How you remove the errors depends on the error message you receive.

  • BW Monitor error  Could not find code page for receiving system

    Hi All,
    Frequent BW Monitor error  - Could not find code page for receiving system
    I checked SM59 and every setting is fine there. Any other possibility ?
    Regards
    Srinivas

    The log updated in the status tab was:
    Error when updating Idocs in Business Information Warehouse
    Diagnosis
    Errors have been reported in Business Information Warehouse during IDoc update:
    Could not find code page for receiving system
    System Response
    Some IDocs have error status.
    Procedure
    Check the IDocs in Business Information Warehouse . You do this using the extraction monitor.
    Error handling:
    How you resolve the errors depends on the error message you get.

  • Error "could not find code page for receiving system"

    Hello Everyone,
    We are trying to load data and receive the message:
    Could not find code page for receiving system
    We have searched notes and this forum and can't find anything.  We also checked WE20 and could not find anything wrong.
    Can someone please elaborate specifically what this error is and where to fix it?
    Thanks so much.
    Colleen

    I just upgraded to NW 2004 SR1, and when loading data from a non-unicoded R/3 system to our BW unicoded system I experienced the exact problem.  Here is the resolution that is stated in note #613389 (it's not very clear in the note).
    - Language “EN” must be specified in sm59
    - Under Special Options -> RFC Bit Options
    Make sure that “Use Found Communication Code Page” has a check mark.
    Once this was done, the data loads started completing successfully.

  • Code Page Conversion Error

    Hi,
    I have a problem while downloading a file which is generated by a standard report program. The R/3 server runs on UNIX and the target system for the file download is Windows XP. When i try to download the file an error is displayed - 'Individual characters could not be converted from code page 4102 to Code P.1100'
    Also when i see the file contents using the display option, all the characters are non-english characters (>> >>>>>>>>>††† etc)
    Could some one help?
    Thanks in advance,
    Sandeep Joseph

    Hi,
    I set a parameter(DCP(Default Code Page)) in the system and gave the value as 4102 and now it works fine. Can anyone tell the reason why it was going wrong?
    Thanks,
    Sandeep

  • Could not determine code page Error in remote sys in XI

    Hi,
    When we try to send some IDOCS from ECC 5.0 sys to 4.6C sys via XI (M70) we are encountering below issue.
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="IDOC_ADAPTER">ATTRIBUTE_IDOC_METADATA</SAP:Code>
      <SAP:P1>FM NLS_GET_LANGU_CP_TAB: Could not determine code page with XXXXX system I::000 FM NLS_GET_LANGU_CP_TAB</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Error: FM NLS_GET_LANGU_CP_TAB: Could not determine code page with XXXX I::000 FM NLS_GET_LANGU_CP_TAB</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    When i checked table TCPDB is empty in 4.6 C system. Does it ring any bells guyz....
    Regards
    Vish

    Hi,
    Check out this thread
    "Could not determine code page" inbound side error
    XI IDOC Error...
    Thanks,
    Prakash
    Message was edited by: Prakash Arunachalam

  • Could not find coding page for receiving system

    Hi,
    We have set up the configuration of RFC connections in SM59. We want to send an IDoc from a Unicode to a non-Unicode system. Message 'Could not find coding page for receiving system' appears. We activated some solutions described in OSS notes and added the required authorization to the communication user but it still doesn't work. What else can cause (solve) this problem?
    Regards, Jan

    Hello Jan,
    I had the following situation:
    After seup of an ALE/IDOC scenario with another SAP but Non unicode system sometimes the outbound PROJECT idocs failed with the error message "Could not find code page for receiving system". Status of Idoc was 02. When reprocessed some minutes later with report RBDAGAIN it worked.
    It turned out that for what'o'ever reason the connectivity was down for a very short time but long enough to get the Idocs failed.
    That's what I meant with the error text could be misleading.
    We solved this problem with a daily job with report RBDAGAIN for reprocessing.
    Regards
    Michael

  • Code Page Question?

    Hello All,
    I am using Oracle 11.2.0.3.0 version, my database code page is as shown below.
    SELECT USERENV ('language') FROM DUAL;
    AMERICAN_AMERICA.WE8MSWIN1252May i please know if the DB is compatible to load the Unicode characters?
    Is" AMERICAN_AMERICA.WE8MSWIN1252" code page superset of "UTF-8 encoding Unicode" character set?
    Thank you.

    I am trying to install Informatica services on a 'Oracle 11.2.0.3.0' database in 'Red hat Linux 64 bit OS' and I am confused about choosing or determining the code page during installation though i read the manuals, as there are multiple components in installation.
    when i do "locale -a | grep en_us" on Linux OS it gives below.
    en_US.UTF-8
    en_us.iso-8859-1
    en_us.iso-8859-15when i do "echo $LANG" it gives below though not set in app user OS profile, probably the default code page set by system administrator
    en_US.UTF-8$LC_ALL & $NLS_LANG at OS level were not set yet in the application user profile,i need to set this as well.
    And below are my NLS_DATABASE_PARAMETERS are as below
    PARAMETER                      VALUE
    NLS_CHARACTERSET               WE8MSWIN1252
    NLS_NCHAR_CHARACTERSET         AL16UTF16We have to load the XML files (UTF-8) into Oracle database via Informatica, Manual says for UNIX OS choose the code page as "en_us.iso-8859-1" but nothing specifically for Linux OS and it also says the target database code page should be superset of all my sources (flatfiles,xml etc) and rest of the Informatica component code pages.
    Can you please provide me an idea or approach? what should be my OS parameters $LANG & $NLS_LANG (oracle client) values before starting the installation for codepage compatibility?
    Thank you.
    Edited by: Ariean on Apr 16, 2013 10:05 PM

  • BW code page error for receiving sysem.

    Hi friends,
    We are getting following error in BW when We are trying to load data:
    "Could not find code page for receiving system",
    Our BW is Unicode and the R/3 is nonunicode
    Referred to the OSS notes 784381 and 613389
    We have checked we21, we22 and logical system and rfc connections and done the following bit checked :
    Language “EN” is specified in sm59
    Under Special Options -> RFC Bit Options
    Made sure that “Use Found Communication Code Page” has a check mark.
    We keep getting the following error...
    Could not find code page for receiving system
    Message no. E0266
    Diagnosis
    For the logical destination BRQCLNT500, you want to determine the code
    page in which the data is sent with RFC. However, this is not currently
    possible, and the IDoc cannot yet be dispatched.
    Procedure for System Administration
    Possible causes are:
    1. The entry no longer exists in the table of logical destinations.
    2. The target system could not be accessed.
    3. The logon language is not installed in the target system.
    Please help   and I will definely reward points.
    Thnaks

    hi Brent,
    try to check the S10010 source system, rsa1->source system->righ click 'check'. also check the connection and authorization for S10010 in sm59 ? you may need to restore, source system S10010 right click 'restore'. hope this helps.

  • Default Code Page

    Experts
    How do I check the Default Code Page for my system. My system is netweaver 2004 and its a Unicode system. What T Code is used to view the data.
    Regards,
    Mahesh

    Usually you can see installed codepages in report RSCPINST as is a unicode system... well there no codepage as is... well... UNICODE.
    If you click in NLS config... you'll find a list of the current parameters.
    Regards
    Juan

  • Code Page Error When Upgrading to SAP BW SP15

    Hello all.
    We are upgrading from SAPBW SP12 to SAP BW SP15.  We have already successfully implemented Unicode.  When we run InfoPackages now, we get the following error:
    ======================================
    Could not find code page for receiving system
    Diagnosis
        For the logical destination S10010 , you want to determine the code page
        in which the data is sent with RFC. However, this is not currently
        possible, and the IDoc cannot yet be dispatched.
    System response
    Procedure
    Procedure for System Administration
        Possible causes are:
        1.  The entry no longer exists in the table of logical destinations.
    2.  The target system could not be accessed.
    3.  The logon language is not installed in the target system.
    ========================================
    We are not getting any short dumps.  Just this error message.  HAs anyone seen this before?  Do you know of a SAP Note or Solution that addresses it?  I appreciate any help you can give.
    Thanks,
    Brent

    hi Brent,
    try to check the S10010 source system, rsa1->source system->righ click 'check'. also check the connection and authorization for S10010 in sm59 ? you may need to restore, source system S10010 right click 'restore'. hope this helps.

Maybe you are looking for

  • Exporting to QT produces garbage video

    I am at a complete loss. I export to QT self-playing movie (CD-ROM Movie, Medium), set the duration and build duration and all seems to work. When I play back the movie in QT, the duration of Slide 1 is correct, Slide 2 has a shorter duration than se

  • HT201317 On a recent vacation, only some of my photos taken on iPhone appeared in photo stream on my iPad but not all, why?

    On a recent vacation only some of my photos take on iPhone appeared in photo stream on iPad but not all why?

  • A problem with dll

    i need labview to call a dll which i made by VB, and i am able to output numeric by using Call Library Function Node, but still have some problem when outputing a string, everytime labview crashes. Now i simplify my dll as follow public function add(

  • Toplink - JPA ignores lazy fetchtype , when it should NOT

    I'm using Blaze Data Services (The open sourced component of LiveCycle Data Service) , as well as Spring. Basically, I have concluded that even while closing the entity manager within the DAO, calls to get a collection on an object after the service

  • AVCHD-Lite no sound

    Hello, I have a problem with the file type  AVCHD-Lite. When I open a file in photoshop elements 11, I can watch the video but there is no sound. I have already installed the latest version of quicktime, but this didn't help. Thank you for your help