<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Language data type problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/language-data-type-problem/m-p/2100250#M437732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am executing a FM from XI to create a Material with several languages in the form of ES, EN, FR and so on, what is the type that I have to use in the FM for this languages? I use a simple Char 2 type and does not work from XI but If I use SPRAS works fine, the problem is SPRAS is a Char 1 type so the system get confuse with for instance PL and PR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2007 17:26:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-03T17:26:30Z</dc:date>
    <item>
      <title>Language data type problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/language-data-type-problem/m-p/2100250#M437732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am executing a FM from XI to create a Material with several languages in the form of ES, EN, FR and so on, what is the type that I have to use in the FM for this languages? I use a simple Char 2 type and does not work from XI but If I use SPRAS works fine, the problem is SPRAS is a Char 1 type so the system get confuse with for instance PL and PR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 17:26:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/language-data-type-problem/m-p/2100250#M437732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T17:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Language data type problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/language-data-type-problem/m-p/2100251#M437733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data element spras has a conversion routine attached to it.  This means that what the user sees and what the system actually stores in a table are sometimes different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how you can see what should actually be passed into SPRAS.  In your SAP system, do a table browse (SE16) on T002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see 2 characters in the SPRAS field for example PL or PR, it means that SAP is converting the true 1 character value to the 2 character value.  Go to the Settings-&amp;gt;User Parameters menu option.  Here you will see a box called "Format" with a checkbox for Check Conversion Exits.  Un-Check This checkbox then go back and look at the SPRAS field.  This should be converted to the 1 character value.  This is probably what you should use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris H.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 17:43:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/language-data-type-problem/m-p/2100251#M437733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T17:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Language data type problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/language-data-type-problem/m-p/2100252#M437734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The language in R3 is a field of 1 char, so you have to use a data type like SPRAS, if the system gets confuse I believe you need a routine to translate the language symbols from 2 char to 1 char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In R3 there're the table T002: here it can find both symbols: 1 char and 2 char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can use the fm CONVERSION_EXIT_ISOLA_INPUT for translation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: LANGUAGE_IN(2),
      LANGUAGE_OUT(1).

CALL FUNCTION 'CONVERSION_EXIT_ISOLA_INPUT'
     EXPORTING
          INPUT            = LANGUAGE_IN
     IMPORTING
          OUTPUT           = LANGUAGE_OUT
     EXCEPTIONS
          UNKNOWN_LANGUAGE = 1
          OTHERS           = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2007 17:45:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/language-data-type-problem/m-p/2100252#M437734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-03T17:45:04Z</dc:date>
    </item>
  </channel>
</rss>

