<?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 table with fields type structures in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-fields-type-structures/m-p/1819055#M350269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Table "ZMY_TABLE" with the next fields:&lt;/P&gt;&lt;P&gt;- ZMY_FIELD1&lt;/P&gt;&lt;P&gt;- ZUSER&lt;/P&gt;&lt;P&gt;- ZPASSWORD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But ZMY_FIELD1 is another structure with the next values:&lt;/P&gt;&lt;P&gt;- ZAN_STRING&lt;/P&gt;&lt;P&gt;- ZANOTHER_STRUCT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And ZANOTHER_STRUCT has the values:&lt;/P&gt;&lt;P&gt;- ZFIELD&lt;/P&gt;&lt;P&gt;- ZVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is possible insert data to the last fields (ZFIELD &amp;amp; ZVALUE). I am using internatl tables and work areas but I have´nt found the way to assing values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hernán Restrepo C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jan 2007 13:56:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-04T13:56:46Z</dc:date>
    <item>
      <title>table with fields type structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-fields-type-structures/m-p/1819055#M350269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Table "ZMY_TABLE" with the next fields:&lt;/P&gt;&lt;P&gt;- ZMY_FIELD1&lt;/P&gt;&lt;P&gt;- ZUSER&lt;/P&gt;&lt;P&gt;- ZPASSWORD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But ZMY_FIELD1 is another structure with the next values:&lt;/P&gt;&lt;P&gt;- ZAN_STRING&lt;/P&gt;&lt;P&gt;- ZANOTHER_STRUCT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And ZANOTHER_STRUCT has the values:&lt;/P&gt;&lt;P&gt;- ZFIELD&lt;/P&gt;&lt;P&gt;- ZVALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is possible insert data to the last fields (ZFIELD &amp;amp; ZVALUE). I am using internatl tables and work areas but I have´nt found the way to assing values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hernán Restrepo C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 13:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-fields-type-structures/m-p/1819055#M350269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T13:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: table with fields type structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-fields-type-structures/m-p/1819056#M350270</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;Please use following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lt_my_table type table of zmy_table.
        ls_my_table type zmy_table.

ls_my_table -zuser = 'Test'.
ls_my_table -ZPASSWORD = 'initpass'.
ls_my_table -ZMY_FIELD1-ZAN_STRING = 'Sample'.
ls_my_table -ZMY_FIELD1-ZANOTHER_STRUCT-ZFIELD  = 'NAME'.
ls_my_table -ZMY_FIELD1-ZANOTHER_STRUCT-ZVALUE = 'HERNAN'.

append ls_my_table to lt_my_table.

* inserting to database
insert ZMY_TABLE from table lt_my_table with accepting duplicate keys.
If sy-subrc ne 0.
 Message 'Error while inseting data into zmy table' type 'E'.
Endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 14:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-fields-type-structures/m-p/1819056#M350270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T14:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: table with fields type structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-fields-type-structures/m-p/1819057#M350271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Bhupal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have another problem, I am publishing in the forums to give you points, but I am emailing you with my particular case with pictures. Look at this table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code work with the field CONTROLLER because is a type table. But with the field &amp;#145;ATRIBUTOS&amp;#146; I got a problem because is a Deep Structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An this picture is the structure of field &amp;#145;String&amp;#146;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ls_request         TYPE STANDARD TABLE OF ZMMWS_GET_OBJECT_OOP_SOAP_IN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_request         like line of lt_request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;With this sentence I am getting the error: The type wa_request&amp;#133; cannot be converted to &amp;#145;An string&amp;#146;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;wa_request-ATRIBUTOS-STRING = 'An_String'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;So, I created the types:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;types: BEGIN OF LINE_STRING,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        string  type string,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       END OF LINE_STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF LINE_ZMMWS_ARRAY_OF_STRING,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         controller type LINE_PRXCTRL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         string     type LINE_STRING,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       END OF LINE_ZMMWS_ARRAY_OF_STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: TI_STRING                       TYPE STANDARD TABLE OF LINE_STRING,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       TI_ZMMWS_ARRAY_OF_STRING        TYPE STANDARD TABLE OFLINE_ZMMWS_ARRAY_OF_STRING,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       WA_STRING                       LIKE LINE OF TI_STRING,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_STRING                       LIKE LINE OF TI_STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wa_string = &amp;#145;An String&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WA_ZMMWS_ARRAY_OF_STRING-STRING = WA_STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;And I need to assign WA_ZMMWS_ARRAY_OF_STRING to wa_request-ATRIBUTOS        &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How Can I do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hernán Restrepo C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 15:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-fields-type-structures/m-p/1819057#M350271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T15:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: table with fields type structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-fields-type-structures/m-p/1819058#M350272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Just assign the values to &amp;lt;internal table&amp;gt;-ZFIELD and -ZVALUE directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dirctly include the structure of the Z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data begin of itab.&lt;/P&gt;&lt;P&gt;include structure ZMY_FIELDS.&lt;/P&gt;&lt;P&gt;data end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2007 16:37:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-with-fields-type-structures/m-p/1819058#M350272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-04T16:37:32Z</dc:date>
    </item>
  </channel>
</rss>

