<?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: Generate text dinamically - several languages in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-text-dinamically-several-languages/m-p/8680659#M1669106</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use the "INSERT TEXTPOOL" statement just after creating the program, once for each language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABAPINSERT_TEXTPOOL.htm"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you have an example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM create_textpool.
  DATA: lt_textpool TYPE STANDARD TABLE OF textpool,
        ls_textpool TYPE textpool.

  DEFINE _macro_textpool.
    ls_textpool-id = &amp;amp;1.                                    "#EC NOTEXT
    ls_textpool-key = &amp;amp;2.                                   "#EC NOTEXT
    ls_textpool-entry = &amp;amp;3.                                 "#EC NOTEXT
    ls_textpool-length = strlen( &amp;amp;3 ).
    append ls_textpool to lt_textpool.
  END-OF-DEFINITION.
  READ TEXTPOOL sy-cprog INTO lt_textpool LANGUAGE sy-langu.
  IF lt_textpool IS INITIAL.
    _macro_textpool: 'I' '001'      'Exportar/Importar orden de transporte', "#EC NOTEXT
                     'I' '002'      'Download',             "#EC NOTEXT
                     'I' '003'      '   Error:',            "#EC NOTEXT
                     'I' '004'      'Ok',                   "#EC NOTEXT
                     'I' '005'      'Error: nombre demasiado largo', "#EC NOTEXT
                     'I' '006'      'Upload',               "#EC NOTEXT
                     'I' '007'      'Adding',               "#EC NOTEXT
                     'I' '008'      'to transport queue:',  "#EC NOTEXT
                     'R' ''         'Exportar/Importar orden de transporte', "#EC NOTEXT
                     'S' 'P_EXPORT' '        Exportar',     "#EC NOTEXT
                     'S' 'P_IMPORT' '        Importar',     "#EC NOTEXT
                     'S' 'P_IMPADD' '        Importar y añadir a cola', "#EC NOTEXT
                     'S' 'P_LOCCOF' '        Fichero cofile local', "#EC NOTEXT
                     'S' 'P_LOCDAT' '        Fichero data local', "#EC NOTEXT
                     'S' 'P_LOCDIR' '        Directorio local', "#EC NOTEXT
                     'S' 'P_TRCOFI' '        Fichero cofile remoto', "#EC NOTEXT
                     'S' 'P_TRDATA' '        Fichero data remoto', "#EC NOTEXT
                     'S' 'P_TRDIR'  '        Directorio de transportes', "#EC NOTEXT
                     'S' 'P_XEDIT'  '        Editar rutas', "#EC NOTEXT
                     'S' 'P_TRKORR' 'D       .' .           "#EC NOTEXT
    INSERT TEXTPOOL sy-cprog FROM lt_textpool LANGUAGE sy-langu.
    MESSAGE 'Textos de programa creados. Vuelva ejecutar' TYPE 'I'.
    LEAVE PROGRAM.
  ENDIF.
ENDFORM.                    "create_Text_pool
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Arseni Gallardo on Mar 6, 2012 5:04 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Mar 2012 16:01:32 GMT</pubDate>
    <dc:creator>arseni_gallardo</dc:creator>
    <dc:date>2012-03-06T16:01:32Z</dc:date>
    <item>
      <title>Generate text dinamically - several languages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-text-dinamically-several-languages/m-p/8680658#M1669105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys , I have the following question,  my client has a program that create programs dinamically,it means a program number 1 that generate other programs number 'X' everytime you run program number 1 , like any other program  this program number 'X'  has errors, warning , etc messages to inform the user during the flow, my  problem is I have to work in several languages , so I can´t hardcode the text in the program, I cant use  text elements in program number 1 like 'text-001' to generate program number 'X' because the text elements in the new program will  be created again. &lt;/P&gt;&lt;P&gt;have you ever face something like that before. do you have any suggestion ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 15:52:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-text-dinamically-several-languages/m-p/8680658#M1669105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-06T15:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Generate text dinamically - several languages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-text-dinamically-several-languages/m-p/8680659#M1669106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use the "INSERT TEXTPOOL" statement just after creating the program, once for each language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/abapdocu_70/en/ABAPINSERT_TEXTPOOL.htm"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you have an example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM create_textpool.
  DATA: lt_textpool TYPE STANDARD TABLE OF textpool,
        ls_textpool TYPE textpool.

  DEFINE _macro_textpool.
    ls_textpool-id = &amp;amp;1.                                    "#EC NOTEXT
    ls_textpool-key = &amp;amp;2.                                   "#EC NOTEXT
    ls_textpool-entry = &amp;amp;3.                                 "#EC NOTEXT
    ls_textpool-length = strlen( &amp;amp;3 ).
    append ls_textpool to lt_textpool.
  END-OF-DEFINITION.
  READ TEXTPOOL sy-cprog INTO lt_textpool LANGUAGE sy-langu.
  IF lt_textpool IS INITIAL.
    _macro_textpool: 'I' '001'      'Exportar/Importar orden de transporte', "#EC NOTEXT
                     'I' '002'      'Download',             "#EC NOTEXT
                     'I' '003'      '   Error:',            "#EC NOTEXT
                     'I' '004'      'Ok',                   "#EC NOTEXT
                     'I' '005'      'Error: nombre demasiado largo', "#EC NOTEXT
                     'I' '006'      'Upload',               "#EC NOTEXT
                     'I' '007'      'Adding',               "#EC NOTEXT
                     'I' '008'      'to transport queue:',  "#EC NOTEXT
                     'R' ''         'Exportar/Importar orden de transporte', "#EC NOTEXT
                     'S' 'P_EXPORT' '        Exportar',     "#EC NOTEXT
                     'S' 'P_IMPORT' '        Importar',     "#EC NOTEXT
                     'S' 'P_IMPADD' '        Importar y añadir a cola', "#EC NOTEXT
                     'S' 'P_LOCCOF' '        Fichero cofile local', "#EC NOTEXT
                     'S' 'P_LOCDAT' '        Fichero data local', "#EC NOTEXT
                     'S' 'P_LOCDIR' '        Directorio local', "#EC NOTEXT
                     'S' 'P_TRCOFI' '        Fichero cofile remoto', "#EC NOTEXT
                     'S' 'P_TRDATA' '        Fichero data remoto', "#EC NOTEXT
                     'S' 'P_TRDIR'  '        Directorio de transportes', "#EC NOTEXT
                     'S' 'P_XEDIT'  '        Editar rutas', "#EC NOTEXT
                     'S' 'P_TRKORR' 'D       .' .           "#EC NOTEXT
    INSERT TEXTPOOL sy-cprog FROM lt_textpool LANGUAGE sy-langu.
    MESSAGE 'Textos de programa creados. Vuelva ejecutar' TYPE 'I'.
    LEAVE PROGRAM.
  ENDIF.
ENDFORM.                    "create_Text_pool
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Arseni Gallardo on Mar 6, 2012 5:04 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 16:01:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-text-dinamically-several-languages/m-p/8680659#M1669106</guid>
      <dc:creator>arseni_gallardo</dc:creator>
      <dc:date>2012-03-06T16:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: Generate text dinamically - several languages</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/generate-text-dinamically-several-languages/m-p/8680660#M1669107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, &lt;/P&gt;&lt;P&gt;The best practice is to maintain a message class in SE91 and use these messages to display messages. Here you can also maintain the translations in different language. based on the log in language you can show messages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Janisar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: janisar.munshi on Mar 7, 2012 4:49 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 11:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/generate-text-dinamically-several-languages/m-p/8680660#M1669107</guid>
      <dc:creator>janisar_munshi</dc:creator>
      <dc:date>2012-03-07T11:19:20Z</dc:date>
    </item>
  </channel>
</rss>

