<?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: [BAPI] Using table as parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-using-table-as-parameter/m-p/4023230#M961437</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;the function module I called from se37 and even with table types in structure I can&lt;/P&gt;&lt;P&gt;call it without a problem. If I try to publish this function module in BOR he returns&lt;/P&gt;&lt;P&gt;an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I transformed my function module, so that every table I have to use is in &lt;/P&gt;&lt;P&gt;tab table and no table type in a structure, but I didn't try it yet to publish in BOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;greetz&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2008 07:34:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-10T07:34:24Z</dc:date>
    <item>
      <title>[BAPI] Using table as parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-using-table-as-parameter/m-p/4023226#M961433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trying to use a table type as parameter for an own BAPI. As I try to publish&lt;/P&gt;&lt;P&gt;the BAPI (swo1) I got following error:&lt;/P&gt;&lt;P&gt;"Data type ZBAPI_FPOC_REQUEST cannot be used for methods"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helps says only data elements and struktures are allowed as reference type.&lt;/P&gt;&lt;P&gt;I'm using a table reference type in my function module. Is this not possible?&lt;/P&gt;&lt;P&gt;What do I have to do if I would like to allow a structure 1..n times in a BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 14:58:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-using-table-as-parameter/m-p/4023226#M961433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T14:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: [BAPI] Using table as parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-using-table-as-parameter/m-p/4023227#M961434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need to use a TABLES parameter against your BAPI and just use the line structure of your table type...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 15:01:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-using-table-as-parameter/m-p/4023227#M961434</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T15:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: [BAPI] Using table as parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-using-table-as-parameter/m-p/4023228#M961435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I am able to include a structure like this in function moduel, but not in bapi?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;|-import (structure)&lt;/P&gt;&lt;P&gt;...|- layer1 (structure)&lt;/P&gt;&lt;P&gt;......|- data element&lt;/P&gt;&lt;P&gt;......|- table element&lt;/P&gt;&lt;P&gt;...|-data element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have to transform it for BAPI this way????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;|-import (structure)&lt;/P&gt;&lt;P&gt;|..|- layer1 (structure)&lt;/P&gt;&lt;P&gt;|.....|- data element&lt;/P&gt;&lt;P&gt;|..|-data element&lt;/P&gt;&lt;P&gt;|- table element (table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does it work in function module with first structure in not in BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So everytime I have to insert input in BAPI with occurency 1..n I have to &lt;/P&gt;&lt;P&gt;insert a table?? &lt;/P&gt;&lt;P&gt;How many tables with different structure I'm able to insert?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2008 15:13:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-using-table-as-parameter/m-p/4023228#M961435</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-09T15:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: [BAPI] Using table as parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-using-table-as-parameter/m-p/4023229#M961436</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;There is absolutely no difference technically between a BAPI and a function module - a BAPI is just a specific type of function module so there shouldn't be any problem from that perspective.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use DDIC table types as import and export parameters or you can use a DDIC structure to define a table against your function module interface.  You can insert lots of tables - just go to the tables tab and add them as you need with their type set to a DDIC structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you trying to call the function module from an external system as an RFC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I seem to recall that table types as import/export parameters don't work for certain external calls, say via JCo or Web Dynpro models or something (I really can't remember at the moment) - just wondering if that is why you are seeing the error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 07:05:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-using-table-as-parameter/m-p/4023229#M961436</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T07:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: [BAPI] Using table as parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-using-table-as-parameter/m-p/4023230#M961437</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;the function module I called from se37 and even with table types in structure I can&lt;/P&gt;&lt;P&gt;call it without a problem. If I try to publish this function module in BOR he returns&lt;/P&gt;&lt;P&gt;an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I transformed my function module, so that every table I have to use is in &lt;/P&gt;&lt;P&gt;tab table and no table type in a structure, but I didn't try it yet to publish in BOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;greetz&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 07:34:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-using-table-as-parameter/m-p/4023230#M961437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T07:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: [BAPI] Using table as parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-using-table-as-parameter/m-p/4023231#M961438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I definitely think it is because you are trying to publish it for external systems.  As you have found, there is no problem using table types in function modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gareth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 07:37:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-using-table-as-parameter/m-p/4023231#M961438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-10T07:37:40Z</dc:date>
    </item>
  </channel>
</rss>

