<?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 create function module to update z tables? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module-to-update-z-tables/m-p/5334324#M1229064</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Changing ---&amp;gt;a) Zflight TYPE ZFLIGHT(DDIC Ref) &lt;STRONG&gt;OR&lt;/STRONG&gt;  Zflight TYPE  ANY TABLE&lt;/P&gt;&lt;P&gt;                       b) ZCustomer TYPE ZFLIGHT(DDIC Ref) &lt;STRONG&gt;OR&lt;/STRONG&gt;  ZCustomer TYPE  ANY TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Execptions:&lt;/P&gt;&lt;P&gt;     a) Upload_failed_Flight&lt;/P&gt;&lt;P&gt;     b) Upload_Failed_Customer&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;3) Exporting ---&amp;gt; a) Information what rows are uploaded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert Zflight from Zflight(changing parameter).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If insert failed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RAISE  Upload_failed_Flight.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert ZCustomer from ZCustomer(changing parameter).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If insert failed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RAISE  Upload_failed_Customer.&lt;/P&gt;&lt;P&gt;endif.&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;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Mar 2009 19:40:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-14T19:40:35Z</dc:date>
    <item>
      <title>How to create function module to update z tables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module-to-update-z-tables/m-p/5334321#M1229061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to ABAP. I checked the forum but did not find relevant solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 z tables - ZFLIGHT and ZCUSTOMER. I have a few entries in each table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write a report to update the entries in the table using function modules. For that I have created a function module - zflight_fm and also a function group- zflight_fg and assigned the function group to the Fm. I do not know how to proceed further, what to put as import, export parameters, tables, changing etc. Further I want exceptions to handle the successful update of the entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Smruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2009 12:53:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module-to-update-z-tables/m-p/5334321#M1229061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-14T12:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to create function module to update z tables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module-to-update-z-tables/m-p/5334322#M1229062</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;just pass the tables parameter with the respective tables....&lt;/P&gt;&lt;P&gt;and also pass the exceptions parameters...&lt;/P&gt;&lt;P&gt;with the help of the table you receive in the function module use the&lt;/P&gt;&lt;P&gt;insert statement to insert into database Z tables&lt;/P&gt;&lt;P&gt;now once this insert statement is executed &lt;/P&gt;&lt;P&gt;check if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;if not then raise exception &amp;lt;exception_name&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2009 13:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module-to-update-z-tables/m-p/5334322#M1229062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-14T13:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create function module to update z tables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module-to-update-z-tables/m-p/5334323#M1229063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi do like this ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first we have to know that on what condition you want to update the table fields. suppose if you are inputting 2 fields ( for the condition ) and checking them inside , then write these in the import statement . if you want only update there is no export parametes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_imp1 eq '1000' and p_imp2 = 'TEST'.&lt;/P&gt;&lt;P&gt;update ztable set field1 = p_imp1&lt;/P&gt;&lt;P&gt;                          field2 = p_imp2.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;raise exception.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2009 15:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module-to-update-z-tables/m-p/5334323#M1229063</guid>
      <dc:creator>former_member203501</dc:creator>
      <dc:date>2009-03-14T15:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create function module to update z tables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module-to-update-z-tables/m-p/5334324#M1229064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Changing ---&amp;gt;a) Zflight TYPE ZFLIGHT(DDIC Ref) &lt;STRONG&gt;OR&lt;/STRONG&gt;  Zflight TYPE  ANY TABLE&lt;/P&gt;&lt;P&gt;                       b) ZCustomer TYPE ZFLIGHT(DDIC Ref) &lt;STRONG&gt;OR&lt;/STRONG&gt;  ZCustomer TYPE  ANY TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Execptions:&lt;/P&gt;&lt;P&gt;     a) Upload_failed_Flight&lt;/P&gt;&lt;P&gt;     b) Upload_Failed_Customer&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;3) Exporting ---&amp;gt; a) Information what rows are uploaded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Source Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert Zflight from Zflight(changing parameter).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If insert failed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RAISE  Upload_failed_Flight.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert ZCustomer from ZCustomer(changing parameter).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If insert failed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RAISE  Upload_failed_Customer.&lt;/P&gt;&lt;P&gt;endif.&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;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2009 19:40:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module-to-update-z-tables/m-p/5334324#M1229064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-14T19:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create function module to update z tables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module-to-update-z-tables/m-p/5334325#M1229065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;problem solved by guide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 15:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-function-module-to-update-z-tables/m-p/5334325#M1229065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T15:31:28Z</dc:date>
    </item>
  </channel>
</rss>

