<?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 Dyanamic read statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dyanamic-read-statement/m-p/1531309#M242756</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;can any one help me how to write dyanamic READ statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we do not know the name of a component until runtime, then how we can use the expression WITH TABLE KEY ... to specify it keys dynamically .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please send some sample code to illustrate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Sep 2006 11:54:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-01T11:54:29Z</dc:date>
    <item>
      <title>Dyanamic read statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dyanamic-read-statement/m-p/1531309#M242756</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;can any one help me how to write dyanamic READ statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we do not know the name of a component until runtime, then how we can use the expression WITH TABLE KEY ... to specify it keys dynamically .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please send some sample code to illustrate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 11:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dyanamic-read-statement/m-p/1531309#M242756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T11:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dyanamic read statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dyanamic-read-statement/m-p/1531310#M242757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Bobby,&lt;/P&gt;&lt;P&gt;Do you want to pass the fields dynamically ? Then use the statement &lt;/P&gt;&lt;P&gt;read table it_tab with key (fieldname) = 'VALUE'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 11:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dyanamic-read-statement/m-p/1531310#M242757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T11:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dyanamic read statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dyanamic-read-statement/m-p/1531311#M242758</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;try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA key1(72) VALUE 'BUKRS'.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;read table itab with key (key1) = ztab-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Andreas Mann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 12:03:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dyanamic-read-statement/m-p/1531311#M242758</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2006-09-01T12:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dyanamic read statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dyanamic-read-statement/m-p/1531312#M242759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A)&lt;/P&gt;&lt;P&gt;DATA: T LIKE STANDARD TABLE OF BKPF WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: FIELD1(10),&lt;/P&gt;&lt;P&gt;      FIELD2(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD1 = .....&lt;/P&gt;&lt;P&gt;FIELD2 = .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE T WITH TABLE KEY (FIELD1) = &amp;lt;VALUE&amp;gt;&lt;/P&gt;&lt;P&gt;                            (FIELD2) = &amp;lt;VALUE&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B)&lt;/P&gt;&lt;P&gt;DATA: T LIKE STANDARD TABLE OF BKPF WITH HEADER LINE WITH NON-UNIQUE KEY BUKRS BELNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: FIELD1(10),&lt;/P&gt;&lt;P&gt;      FIELD2(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD1 = .....&lt;/P&gt;&lt;P&gt;FIELD2 = .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE T WITH TABLE KEY (FIELD1) = &amp;lt;VALUE&amp;gt;&lt;/P&gt;&lt;P&gt;                            (FIELD2) = &amp;lt;VALUE&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 12:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dyanamic-read-statement/m-p/1531312#M242759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T12:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dyanamic read statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dyanamic-read-statement/m-p/1531313#M242760</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;but can you tell me how to pass whole key with fields &amp;amp; value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 05:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dyanamic-read-statement/m-p/1531313#M242760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T05:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dyanamic read statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dyanamic-read-statement/m-p/1531314#M242761</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;1.You can fill the fieldname statically or dynamically using cl_abap_*type classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. you can fill the fieldvalue using ASSIGN ...COMPONENT&lt;/P&gt;&lt;P&gt;  variant like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;lv_field_value&amp;gt; type any.&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT fieldname&lt;/P&gt;&lt;P&gt;    OF STRUCTURE ls_strucure_name TO &amp;lt;lv_field_value&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is assigned sy-subrc will be 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 06:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dyanamic-read-statement/m-p/1531314#M242761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T06:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dyanamic read statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dyanamic-read-statement/m-p/1531315#M242762</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;could you please tell me how to pass the key fields and the value as in the below read statement in brackets dyanamically because I have senario where different fields are being populated for different cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab with key ( matnr = jtab-matnr&lt;/P&gt;&lt;P&gt;                           werks = jtab-werks )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Sep 2006 08:29:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dyanamic-read-statement/m-p/1531315#M242762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-04T08:29:28Z</dc:date>
    </item>
  </channel>
</rss>

