<?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: Dynamic Read statement with different key s . in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870351#M1959783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look a this: &lt;A __default_attr="73192" __jive_macro_name="document" class="jive_macro_document jive_macro" data-orig-content="SAP Table Maintenance Tool" href="https://community.sap.com/"&gt;&lt;/A&gt;. Almost a similar thing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with &lt;A __default_attr="362803" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Ryan Crosby" href="https://community.sap.com/"&gt;&lt;/A&gt;. I would proceed with this, only with extreme caution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 13:31:19 GMT</pubDate>
    <dc:creator>Juwin</dc:creator>
    <dc:date>2016-07-28T13:31:19Z</dc:date>
    <item>
      <title>Dynamic Read statement with different key s .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870344#M1959776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to write Generic READ statement .which should accept different keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am passing dynamic table , and according to that populating data.&lt;/P&gt;&lt;P&gt;so each time the key fields perhaps change in the&amp;nbsp; READ statement .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exmple; First I will pass MARA table: and get the&amp;nbsp; data into internal table.&lt;/P&gt;&lt;P&gt;Then I use Read statement with key MATNR .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next time will pass MAKT table and read the data from internal table .&lt;/P&gt;&lt;P&gt;I want use same READ statement for both INTERNAL TABLES dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Time(mara) MANTR is the key field&lt;/P&gt;&lt;P&gt;Second time (MAKT)&amp;nbsp; MATNR ,SPRAS are key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I would like to use same READ STATEMENT for all the Tables.&lt;/P&gt;&lt;P&gt;I have searched in SCN but no proper solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me How to write GENERIC READ STATEMENT (Means each time Key fields will be changed but I WANT TO use Single Read statement ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shivaji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 17:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870344#M1959776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-27T17:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Read statement with different key s .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870345#M1959777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest looking at the FROM wa addition in the READ TABLE statement.&amp;nbsp; That addition allows you to read an entry in a table by referring to a structure with the same line type as the table.&amp;nbsp; In that case you would simply need to fill all the appropriate key fields with data and then execute your READ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ryan Crosby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 19:28:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870345#M1959777</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2016-07-27T19:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Read statement with different key s .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870346#M1959778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But what purpose would this serve? Read don't know what from don't know where? Usually when we use READ we are searching for a specific record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And does READ TABLE syntax even allow any dynamic values? Does READ TABLE (table_name) actually pass syntax check in someone's system?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might want to clarify where this question is coming from.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 20:12:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870346#M1959778</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2016-07-27T20:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Read statement with different key s .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870347#M1959779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although I have suggested a possible option I would agree 100% with the questions that Jelena has posed with wanting to understand what kind of purpose a dynamic READ would serve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 20:14:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870347#M1959779</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2016-07-27T20:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Read statement with different key s .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870348#M1959780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan, Jelena.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your prompt reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is I want to download the table entries to excel and change or add new entries to excel then upload to table. But Table name dynamic,user can pass any table name ,download and upload .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I) If user&amp;nbsp; trying o upload excel with duplicate entries , those entries I want to show the user saying like those are the duplicate entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this I need Read statement to check weather entry exit or not ,but if change table name download and upload ,this time key values may change since each table having different key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is why I would like to write READ statement dynamically .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shivaji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 04:04:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870348#M1959780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-28T04:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Read statement with different key s .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870349#M1959781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivaji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure sounds like you want to make something pretty straight forward as technically complicated as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My recommendation in line with my esteemed community members above would be: Take a step back and give it a KISS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arden&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 04:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870349#M1959781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-28T04:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Read statement with different key s .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870350#M1959782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivaji,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That sounds like a dangerous proposition and a security nightmare all rolled into one.&amp;nbsp; I would foresee a myriad of potential problems around access, conversions, encoding, field types, control characters getting inserted, and maybe others that I'm not thinking of off the top of my head.&amp;nbsp; I would proceed with such an idea with extreme caution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ryan Crosby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 13:16:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870350#M1959782</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2016-07-28T13:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Read statement with different key s .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870351#M1959783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look a this: &lt;A __default_attr="73192" __jive_macro_name="document" class="jive_macro_document jive_macro" data-orig-content="SAP Table Maintenance Tool" href="https://community.sap.com/"&gt;&lt;/A&gt;. Almost a similar thing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with &lt;A __default_attr="362803" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="Ryan Crosby" href="https://community.sap.com/"&gt;&lt;/A&gt;. I would proceed with this, only with extreme caution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Juwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 13:31:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870351#M1959783</guid>
      <dc:creator>Juwin</dc:creator>
      <dc:date>2016-07-28T13:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Read statement with different key s .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870352#M1959784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand correctly you want give the user possibility to download and &lt;STRONG&gt;upload&lt;/STRONG&gt; content of, let say, BSEG table, is that correct? If so I would suggest to rethink the whole idea. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 13:34:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870352#M1959784</guid>
      <dc:creator>ziolkowskib</dc:creator>
      <dc:date>2016-07-28T13:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Read statement with different key s .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870353#M1959785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still, I don't see any connection between what you've described and a need for "dynamic READ". Of course, as others already noted:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;How to &lt;SPAN style="text-decoration: line-through;"&gt;twerk&lt;/SPAN&gt; upload standard SAP table from a file&lt;/P&gt;
&lt;P&gt;Step one: reconsider&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Investing in Winshuttle would make more sense IMHO.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 20:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870353#M1959785</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2016-07-28T20:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Read statement with different key s .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870354#M1959786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not copy what LSMW does? In my opinion this is exact how LSMW works.&lt;/P&gt;&lt;P&gt;you can display the hidden Read program via the button user menu &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/servlet/JiveServlet/downloadImage/38-77717-169790/348-400/LSMW_STEP0_usermenu.JPG" title="http://scn.sap.com/servlet/JiveServlet/downloadImage/38-77717-169790/348-400/LSMW_STEP0_usermenu.JPG"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/169790" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 20:14:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870354#M1959786</guid>
      <dc:creator>JL23</dc:creator>
      <dc:date>2016-07-28T20:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Read statement with different key s .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870355#M1959787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jelena ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry , I want to upload and download for ztables not for SAP tables.&lt;/P&gt;&lt;P&gt;For understanding purpose&amp;nbsp; I have given examples like MATNR ,MAKT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shivaji.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 04:58:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870355#M1959787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-29T04:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Read statement with different key s .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870356#M1959788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP Tables or Z Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still sound like an over complicated solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The time you've spent trying to find a 1 size fits all solution which would be difficult to maintain on an going basis, you could have developed a traditional structured program with a greater degree of robustness.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jul 2016 23:01:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870356#M1959788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-31T23:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Read statement with different key s .</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870357#M1959789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Arden - I thought about a generic Z table update tool to but then realized it was more hassle than it's worth. In most cases there are some relationships or business logic that also need to be checked and that are specific to the table or a set of tables. There is only that much we can generalize. (E.g. see comments on the blog Juwin mentioned above.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, we try to avoid Z tables to begin with. If we use them, they are usually not maintained by the users but updated by the programs. Only for a few we use SM30 or have a custom transaction with editable ALV. We don't want to run ZSAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 16:59:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-read-statement-with-different-key-s/m-p/11870357#M1959789</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2016-08-01T16:59:48Z</dc:date>
    </item>
  </channel>
</rss>

