<?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 pass a ABAP dictionary table to sub program? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-a-abap-dictionary-table-to-sub-program/m-p/4900937#M1144578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use field-symbols to update certain fields of the tabe dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nidhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Dec 2008 04:10:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-17T04:10:22Z</dc:date>
    <item>
      <title>How to pass a ABAP dictionary table to sub program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-a-abap-dictionary-table-to-sub-program/m-p/4900936#M1144577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need update 15 ABAP dictionary tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like use PERFORM pass the table name with other value, then use FORM to UPDATE the different tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform 6400_update_table using ztfkreg&lt;/P&gt;&lt;P&gt;                                                lw_kreg &lt;/P&gt;&lt;P&gt;                                                g_cnt_kreg_11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM 6400_update_table   X&lt;/P&gt;&lt;P&gt;                               lw_x&lt;/P&gt;&lt;P&gt;                               l-y TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      INSERT X FROM lw_x.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        UPDATE X FROM lw_x.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;     l_y = 'Y'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*ztfkreg is the table name.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;lw_kreg is the content going to update the table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 02:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-a-abap-dictionary-table-to-sub-program/m-p/4900936#M1144577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T02:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a ABAP dictionary table to sub program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-a-abap-dictionary-table-to-sub-program/m-p/4900937#M1144578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use field-symbols to update certain fields of the tabe dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nidhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 04:10:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-a-abap-dictionary-table-to-sub-program/m-p/4900937#M1144578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T04:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a ABAP dictionary table to sub program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-a-abap-dictionary-table-to-sub-program/m-p/4900938#M1144579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax for the Insert statement if you have a table name in the variable is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X = 'MARA'.&lt;/P&gt;&lt;P&gt;Insert into (X) value &amp;lt;Source&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly update also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update (X) &amp;lt;Source&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or Make use of field symbols for capturing the table name and values to be inserted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also specify the syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramesh Babu Srikakollu on Dec 17, 2008 9:44 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 04:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-a-abap-dictionary-table-to-sub-program/m-p/4900938#M1144579</guid>
      <dc:creator>learnsap</dc:creator>
      <dc:date>2008-12-17T04:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a ABAP dictionary table to sub program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-a-abap-dictionary-table-to-sub-program/m-p/4900939#M1144580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure how to use the field-symbol.  How do you pass down to the subprogram?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 05:50:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-a-abap-dictionary-table-to-sub-program/m-p/4900939#M1144580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T05:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a ABAP dictionary table to sub program?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-a-abap-dictionary-table-to-sub-program/m-p/4900940#M1144581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's great to know that I can pass the table name via variable name.&lt;/P&gt;&lt;P&gt;How about the &amp;lt;source&amp;gt;? How to pass the &amp;lt;source&amp;gt; structure?&lt;/P&gt;&lt;P&gt;For example:  the the &amp;lt;source&amp;gt; =&amp;gt; lw_kreg :  each time is defferent. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per your help, here is my new codes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform 6400_update_table using p_tname lw_kreg .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM 6400_update_table using p_tname lw_kreg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:   l_count(6)    TYPE n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          DELETE FROM  (p_tname).&lt;/P&gt;&lt;P&gt;          IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;            WRITE:/ 'Empty ztfkreg successfully'.&lt;/P&gt;&lt;P&gt;            COMMIT WORK.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      INSERT (p_tname) FROM lw_kreg.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        UPDATE (p_tname) FROM lw_kreg.&lt;/P&gt;&lt;P&gt;       g_success_lines = g_success_lines + 1.&lt;/P&gt;&lt;P&gt;      ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " 6400_update_table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 06:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-pass-a-abap-dictionary-table-to-sub-program/m-p/4900940#M1144581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-17T06:13:26Z</dc:date>
    </item>
  </channel>
</rss>

