<?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: How to initialize internal table with array of strings using 'value' operator in ABAP? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-initialize-internal-table-with-array-of-strings-using-value-operator/m-p/12532864#M2005575</link>
    <description>&lt;P&gt;Sorry, what do you mean ?   having integer in the string ?  or generate a type from the data you receive ... ? &lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 09:15:16 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2022-02-03T09:15:16Z</dc:date>
    <item>
      <title>How to initialize internal table with array of strings using 'value' operator in ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-initialize-internal-table-with-array-of-strings-using-value-operator/m-p/12532860#M2005571</link>
      <description>&lt;P&gt;Hello Folks,&lt;/P&gt;
  &lt;P&gt;I am trying the below code to set up array of strings in internal table.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;types: tt_input type standard table of string with default key.&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;data(gt_input) = value tt_input( ( 'string1' ) ( 'string2' ) ).&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;But it shows syntax error '"&lt;STRONG&gt;string1'" and the row type of "GT_INPUT" are incompatible.&lt;/STRONG&gt;'&lt;/P&gt;
  &lt;P&gt;When I try to set array of integers I face no proplem.&lt;/P&gt;
  &lt;P&gt;types: tt_input type standard table of i with default key.&lt;/P&gt;
  &lt;P&gt;data(gt_input) = value tt_input( ( 1 ) ( 2 ) ).&lt;/P&gt;
  &lt;P&gt;Any thoughts please ?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 09:01:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-initialize-internal-table-with-array-of-strings-using-value-operator/m-p/12532860#M2005571</guid>
      <dc:creator>former_member763677</dc:creator>
      <dc:date>2022-02-03T09:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize internal table with array of strings using 'value' operator in ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-initialize-internal-table-with-array-of-strings-using-value-operator/m-p/12532861#M2005572</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;&lt;STRONG&gt;types: tt_input type standard table of string with default key.&lt;BR /&gt;&lt;/STRONG&gt;&lt;STRONG&gt;data(gt_input) = value tt_input( ( `string1` ) ( `string2` ) ).&lt;/STRONG&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;to generate string use `  not ' (it will generate char)&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 09:03:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-initialize-internal-table-with-array-of-strings-using-value-operator/m-p/12532861#M2005572</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-02-03T09:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize internal table with array of strings using 'value' operator in ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-initialize-internal-table-with-array-of-strings-using-value-operator/m-p/12532862#M2005573</link>
      <description>&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 09:09:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-initialize-internal-table-with-array-of-strings-using-value-operator/m-p/12532862#M2005573</guid>
      <dc:creator>former_member763677</dc:creator>
      <dc:date>2022-02-03T09:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize internal table with array of strings using 'value' operator in ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-initialize-internal-table-with-array-of-strings-using-value-operator/m-p/12532863#M2005574</link>
      <description>&lt;P&gt;Is there a way to have the mix of both integer and string ?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 09:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-initialize-internal-table-with-array-of-strings-using-value-operator/m-p/12532863#M2005574</guid>
      <dc:creator>former_member763677</dc:creator>
      <dc:date>2022-02-03T09:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize internal table with array of strings using 'value' operator in ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-initialize-internal-table-with-array-of-strings-using-value-operator/m-p/12532864#M2005575</link>
      <description>&lt;P&gt;Sorry, what do you mean ?   having integer in the string ?  or generate a type from the data you receive ... ? &lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 09:15:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-initialize-internal-table-with-array-of-strings-using-value-operator/m-p/12532864#M2005575</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-02-03T09:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize internal table with array of strings using 'value' operator in ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-initialize-internal-table-with-array-of-strings-using-value-operator/m-p/12532865#M2005576</link>
      <description>&lt;P&gt;something like this [ `string1`,`string2`,100,200,'string3` ] , having an array of integers and strings in the same internal table. is it possible ? &lt;/P&gt;&lt;P&gt;if we have a way to generate type from the data we receive that would be great to know too.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 09:24:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-initialize-internal-table-with-array-of-strings-using-value-operator/m-p/12532865#M2005576</guid>
      <dc:creator>former_member763677</dc:creator>
      <dc:date>2022-02-03T09:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to initialize internal table with array of strings using 'value' operator in ABAP?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-initialize-internal-table-with-array-of-strings-using-value-operator/m-p/12532866#M2005577</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;types: tt_input type standard table of string with default key.

data(gt_input) = value tt_input( ( `string1` ) ( `string2` ) ( conv #( 100.00 ) ( |{ my_integer }| ) ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the dynamic generation is not an easy task. the key words are RTTS&lt;/P&gt;&lt;P&gt;for example &lt;A href="https://blogs.sap.com/2017/09/29/dynamic-programming-in-abap-part-3-an-example-abap-rtts"&gt;https://blogs.sap.com/2017/09/29/dynamic-programming-in-abap-part-3-an-example-abap-rtts&lt;/A&gt;/&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 09:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-initialize-internal-table-with-array-of-strings-using-value-operator/m-p/12532866#M2005577</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-02-03T09:58:08Z</dc:date>
    </item>
  </channel>
</rss>

