<?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 Passing zero or several values to a function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-zero-or-several-values-to-a-function-module/m-p/9066883#M1703154</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 am calling a function module from a workflow. The function module is called when an invoice is parked by a user in MIRO. The user may specify only the PO number, or may specify 1 PO line item, or specify several PO line items when parking the invoice. Therefore I need to be able to pass the invoice number as one parameter. Then also have a second parameter for the line items which may have no value, or 1 value or several values to be passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest the best approach for this please? Is it best to create a structure in the ddic and should I use the Import (possibly using type table) or the Changing tab of the function module? If you can illustrate with simple example it would be very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2012 20:04:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-10-15T20:04:19Z</dc:date>
    <item>
      <title>Passing zero or several values to a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-zero-or-several-values-to-a-function-module/m-p/9066883#M1703154</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 am calling a function module from a workflow. The function module is called when an invoice is parked by a user in MIRO. The user may specify only the PO number, or may specify 1 PO line item, or specify several PO line items when parking the invoice. Therefore I need to be able to pass the invoice number as one parameter. Then also have a second parameter for the line items which may have no value, or 1 value or several values to be passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest the best approach for this please? Is it best to create a structure in the ddic and should I use the Import (possibly using type table) or the Changing tab of the function module? If you can illustrate with simple example it would be very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 20:04:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-zero-or-several-values-to-a-function-module/m-p/9066883#M1703154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-15T20:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Passing zero or several values to a function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-zero-or-several-values-to-a-function-module/m-p/9066884#M1703155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use internal table with table type declared in DDIC so its easy for peoples to communicate with your FM. You can use either Import / Changing, if there is no changes in the table then you should use Import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Xavier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 07:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-zero-or-several-values-to-a-function-module/m-p/9066884#M1703155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-17T07:23:40Z</dc:date>
    </item>
  </channel>
</rss>

