<?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 update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1673998#M297535</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your reply's.&lt;/P&gt;&lt;P&gt;Very helpful example, thank you.&lt;/P&gt;&lt;P&gt;Any suggestion for the update part? I don't know how to build a dynamic screen, generating fields according to my dynamic table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2006 06:46:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-22T06:46:45Z</dc:date>
    <item>
      <title>Dynamic update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1673994#M297531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to write a aprogram to update one Z table. The problem is that the program has to be used to update different Z tables, with different structures. So, I have to update a table , but I don't know the structure of the table. I only know that I fill have some pairs of fields like 1_from and 1_to , 2_from and 2_to ...., fields that need to met some logical conditions (validation). Is this possible? I was thinking to have the table name as an input parameter, then to define an internal table type ref to tabname, and then to update it, but I don't know hou do do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help ?&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 21:06:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1673994#M297531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T21:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1673995#M297532</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 check this blog perhaps it may help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 21:14:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1673995#M297532</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-11-20T21:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1673996#M297533</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;You can use the Dynamic internal tables for the same,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Weblogs&lt;/P&gt;&lt;P&gt;/people/rich.heilman2/blog/2005/07/27/dynamic-internal-tables-and-structures--abap&lt;/P&gt;&lt;P&gt;/people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="65281"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="44905"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="134069"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 21:17:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1673996#M297533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T21:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1673997#M297534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here's a simple program to dynamicaly read and print the first 5 rows of any parameter supplied table. You can use the concepts to write an update program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT znrw_dyn_tab.&lt;/P&gt;&lt;P&gt;PARAMETERS: p_tab1 TYPE tabname.&lt;/P&gt;&lt;P&gt;DATA tabdref TYPE REF TO data.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;struc&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;tab&amp;gt; TYPE table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM get_data USING tabdref p_tab1.&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;tab&amp;gt; ASSIGNING &amp;lt;struc&amp;gt;.&lt;/P&gt;&lt;P&gt;  PERFORM print USING &amp;lt;struc&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  get_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_data&lt;/P&gt;&lt;P&gt; USING us_tdref TYPE REF TO data&lt;/P&gt;&lt;P&gt;       us_table TYPE tabname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE DATA us_tdref TYPE TABLE OF (us_table).&lt;/P&gt;&lt;P&gt;  ASSIGN us_tdref-&amp;gt;* TO &amp;lt;tab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM (us_table) UP TO 5 ROWS INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;  TABLE &amp;lt;tab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "get_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  print&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM print  USING    p_struc.&lt;/P&gt;&lt;P&gt;  FIELD-SYMBOLS &amp;lt;field&amp;gt; TYPE ANY.&lt;/P&gt;&lt;P&gt;  NEW-LINE.&lt;/P&gt;&lt;P&gt;  DO.&lt;/P&gt;&lt;P&gt;*... work through all structure's components...&lt;/P&gt;&lt;P&gt;    ASSIGN COMPONENT sy-index  OF STRUCTURE p_struc TO &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*... exit when reaching the end of components&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    WRITE: &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;  ENDDO.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " print&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 03:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1673997#M297534</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-11-21T03:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1673998#M297535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your reply's.&lt;/P&gt;&lt;P&gt;Very helpful example, thank you.&lt;/P&gt;&lt;P&gt;Any suggestion for the update part? I don't know how to build a dynamic screen, generating fields according to my dynamic table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 06:46:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1673998#M297535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T06:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1673999#M297536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we need to know a bit more to help you out on this. &lt;/P&gt;&lt;P&gt;1. do you really need to write a program? Why not use SM30? You might be trying to reinvent the wheel here.&lt;/P&gt;&lt;P&gt;2. do you know in advance the tables you are dealing with? If you do then you could build your screen with all the possible fields but only display the ones that relate to the entered table. Your PAI code would validate that the entered table is in the permitted set. Your PBO code would be hard-coded to hide fields not relating to the entered table.&lt;/P&gt;&lt;P&gt;3. if you want a slightly more generic approach you could create a control table which defines the tables allowed to be dealt with by this transaction and maybe another one defining the fields (name,type,length,Updateability etc). Your screen could have generic fields....field1,field2 etc. Your PAI code would consult the table to validate the entered table. The PBO code would use the entered table and the associated field list values to decide how many fields are displayed, what text precedes them and what format each one has.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 22:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1673999#M297536</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-11-22T22:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1674000#M297537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;It would be nice to do it through SM30, but I have to do lots of validation and authorisation checks, and I really don't know how to modify that transaction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 08:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1674000#M297537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T08:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1674001#M297538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For validations, you can use the events  that come with the table maintenance. See the document here, which explains how to deal with the events in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/how%20to%20implement%20events%20in%20table%20maintenance.doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 08:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1674001#M297538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T08:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1674002#M297539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for this tip.&lt;/P&gt;&lt;P&gt;Verry usefull. One more question: When I enter the events dialog, I have an information popup with "DO NOT CHANGE, SAP DATA".&lt;/P&gt;&lt;P&gt;Is it safe to add events there?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 09:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1674002#M297539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T09:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1674003#M297540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will not manually add event but select which ones to be activated and then it will give a sort of include where you do your coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 09:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update/m-p/1674003#M297540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T09:14:17Z</dc:date>
    </item>
  </channel>
</rss>

