<?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: select statement problem in fm in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-in-fm/m-p/3681236#M886534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that you need a small change to the modify statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify zsab_test from itab.    " This will try to update zsab_test from the header line of itab which is initial&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify zsab_test from table itab. " This will use the contents of the body of itab to update zsab_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&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;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Apr 2008 22:45:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-16T22:45:01Z</dc:date>
    <item>
      <title>select statement problem in fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-in-fm/m-p/3681234#M886532</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;I have a custom tabel with fields vbeln primary, erdat, erzet, ernam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a function module which import parameter is SENDER type SIBFLPORB.&lt;/P&gt;&lt;P&gt;the values to sender come from workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code in fm is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data itab like zsab_test occurs 0 with header line.

select vbeln erdat erzet ernam from vbak into corresponding fields of table itab where vbeln = sender-instid.

modify zsab_test from itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the data is not inserted in zsab_test table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but in ITAB the record is there..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me pls...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 22:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-in-fm/m-p/3681234#M886532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T22:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: select statement problem in fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-in-fm/m-p/3681235#M886533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Giri &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are using modify.. its means that if the same pair of primary keys exist before.. it will modify it.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you might be needed to use update or insert statments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 22:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-in-fm/m-p/3681235#M886533</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-04-16T22:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: select statement problem in fm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-in-fm/m-p/3681236#M886534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that you need a small change to the modify statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify zsab_test from itab.    " This will try to update zsab_test from the header line of itab which is initial&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify zsab_test from table itab. " This will use the contents of the body of itab to update zsab_test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&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;Greg Kern&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 22:45:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-problem-in-fm/m-p/3681236#M886534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T22:45:01Z</dc:date>
    </item>
  </channel>
</rss>

