<?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 Re: country code, language key. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/country-code-language-key/m-p/1131967#M111947</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;have a look to all the T002* tables, you will find all you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2006 15:53:44 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2006-01-25T15:53:44Z</dc:date>
    <item>
      <title>country code, language key.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/country-code-language-key/m-p/1131966#M111946</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;Uploading the data from flat file to crm using  bapi.&lt;/P&gt;&lt;P&gt;In flat file they (legacy) provided country is like INDIA&lt;/P&gt;&lt;P&gt; but i need IN only.&lt;/P&gt;&lt;P&gt;Is there any function module  for this conversion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also for language:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;they provided english.&lt;/P&gt;&lt;P&gt; insted of EN.&lt;/P&gt;&lt;P&gt;please give me suggestions to convert them proper keys to throw into sap crm.&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;swathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 15:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/country-code-language-key/m-p/1131966#M111946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T15:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: country code, language key.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/country-code-language-key/m-p/1131967#M111947</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;have a look to all the T002* tables, you will find all you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 15:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/country-code-language-key/m-p/1131967#M111947</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2006-01-25T15:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: country code, language key.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/country-code-language-key/m-p/1131968#M111948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since the legacy data is not standardized within SAP, you will need to do a 1---&amp;gt;1 conversion in your upload program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF value = 'INDIA'.
sap_value = 'IN'.
Endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich HEilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 15:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/country-code-language-key/m-p/1131968#M111948</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-01-25T15:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: country code, language key.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/country-code-language-key/m-p/1131969#M111949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swathi,&lt;/P&gt;&lt;P&gt;You can get the language code in this way:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select single spras
  from T002T
 where sptxt = 'English'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the land code in this way:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select single land1
  from T005T
 where spras = sy-langu
  and landx = 'India'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately both whe descriptions are case sensitives&lt;/P&gt;&lt;P&gt;('INDIA' &amp;lt;&amp;gt; 'India')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 15:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/country-code-language-key/m-p/1131969#M111949</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2006-01-25T15:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: country code, language key.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/country-code-language-key/m-p/1131970#M111950</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;you can convert manually &lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if country = 'INDIA'.&lt;/P&gt;&lt;P&gt;"then make it to IN&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similarly language also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't think there is a FM for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 16:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/country-code-language-key/m-p/1131970#M111950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T16:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: country code, language key.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/country-code-language-key/m-p/1131971#M111951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what written below is working.but ineed to check the language dynamically. please see the next program.&lt;/P&gt;&lt;P&gt;REPORT  YLANGUAGE_CONVERSION2                    .&lt;/P&gt;&lt;P&gt;tables t002t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: bu_spras like t002t-spras,&lt;/P&gt;&lt;P&gt;      bu_land1 like t005t-land1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: desc1 type char40.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single SPRSL from T002T into bu_spras where sptxt = 'English'.&lt;/P&gt;&lt;P&gt;write: bu_spras.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single land1  from T005T  into bu_land1 where spras = sy-langu  and landx = 'India'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: bu_land1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second prgram for dynamic checking.&lt;/P&gt;&lt;P&gt;EPORT  YLANGUAGE_CONVERSION                    .&lt;/P&gt;&lt;P&gt;tables t002t.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: bu_spras like t002t-spras,&lt;/P&gt;&lt;P&gt;      bu_land1 like t005t-land1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: desc type char40.&lt;/P&gt;&lt;P&gt;data desc1 type char15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab like t002t occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from t002t into table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;If desc cs itab-SPTXT.&lt;/P&gt;&lt;P&gt;desc1 = itab-SPTXT.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single SPRSL from T002T into desc1 where sptxt = desc1.&lt;/P&gt;&lt;P&gt;write: desc1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single land1  from T005T  into bu_land1 where spras = sy-langu  and landx = 'India'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: bu_land1.&lt;/P&gt;&lt;P&gt;but it is not working following statement.&lt;/P&gt;&lt;P&gt; If desc cs itab-SPTXT&lt;/P&gt;&lt;P&gt;please is their any statement corresponding to this field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 18:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/country-code-language-key/m-p/1131971#M111951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-25T18:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: country code, language key.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/country-code-language-key/m-p/1131972#M111952</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 following code works..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZDEMOX2                                                     *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;                                                                     *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*

report  zdemox2.
tables: t500t,t002t.
parameters: p_ltext like t500t-ltext,
            p_sptxt like t002t-sptxt.


data: w_molga type molga,
      w_intca type intca,
      w_laiso type laiso,
      w_spras type spras.


select * from t500t.
  if t500t-ltext cs p_ltext.
    w_molga = t500t-molga.
    exit.
  endif.
endselect.
if sy-subrc eq 0.
  select single intca into w_intca
                      from t500l
                      where molga = w_molga.
  if sy-subrc eq 0.
    write: /5 w_intca.
  endif.
endif.

select * from t002t.
  if t002t-sptxt cs p_sptxt.
    w_spras = t002t-sprsl.
    exit.
  endif.
endselect.
if sy-subrc eq 0.
  select single laiso into w_laiso
                      from t002
                      where spras = w_spras.
  if sy-subrc eq 0.
    write: 10 w_laiso.
  endif.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2006 19:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/country-code-language-key/m-p/1131972#M111952</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-01-25T19:04:46Z</dc:date>
    </item>
  </channel>
</rss>

