<?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: FUnction Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3401490#M816738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Raise an exception for found or &lt;STRONG&gt;not&lt;/STRONG&gt; found?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. They have different structures - you should return two tables, not one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Feb 2008 21:04:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-13T21:04:35Z</dc:date>
    <item>
      <title>FUnction Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3401485#M816733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been asked to create one function module in which I will pass the sales document number and it should return two tables i_vbak and i_vbap, the i_vbak should have header information of that particular sales oreder and i_vbap should have all item information of that sales order. Can anyone of you please help me how can I get this , as I haven't creatd any FM till now. so any help will be highly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Rajeev !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 20:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3401485#M816733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T20:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: FUnction Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3401486#M816734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first thing to do is to read the [help file.|http://help.sap.com/saphelp_47x200/helpdata/EN/9f/db988735c111d1829f0000e829fbfe/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 20:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3401486#M816734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T20:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: FUnction Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3401487#M816735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Rob, I have gone through the file. What I have done as of now is I have created one function module and have passed one Import parameter as Vbeln and two tables as i_vbak and i_vbap. I think till now I am doing good. Now I need to write something in source code, so it will be great if you can tell me what should be written in the source code for my particular scenario. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 20:34:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3401487#M816735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T20:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: FUnction Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3401488#M816736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a couple of SELECTs against the two tables. You probably also want to raise an exception if nothing is found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 20:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3401488#M816736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T20:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: FUnction Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3401489#M816737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have written and I think this one is working perfectly fine, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from vbak into table data_vbak where vbeln = vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from vbap into table data_vbap where vbeln = vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and now I have two questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I want to raise an exception if the document is found, so can you please tell me how can I get this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In case if I just want to return one table that has got both the header and item details rather than returning two diff. tables, so please tell me how can i get this, &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;Rajeev !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 20:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3401489#M816737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T20:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: FUnction Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3401490#M816738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Raise an exception for found or &lt;STRONG&gt;not&lt;/STRONG&gt; found?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. They have different structures - you should return two tables, not one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 21:04:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/3401490#M816738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T21:04:35Z</dc:date>
    </item>
  </channel>
</rss>

