<?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 import parameter in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-import-parameter/m-p/4377295#M1041439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Exporting and Importing tabs will take single field or work area as parameters. If you want to pass the tables then you need to declare them in the Tables section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Here there is a mismatch between the parameters which resulted in dump.  Return parameter is like workarea which can hold only one record but it_bapireturn is a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope thsi will clear your doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2008 12:27:21 GMT</pubDate>
    <dc:creator>former_member217544</dc:creator>
    <dc:date>2008-08-21T12:27:21Z</dc:date>
    <item>
      <title>Function module import parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-import-parameter/m-p/4377293#M1041437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had used a bapi in the program and i got a dump.&lt;/P&gt;&lt;P&gt;then i recetified the dump. But kindly tell me the&lt;/P&gt;&lt;P&gt;reason .&lt;/P&gt;&lt;P&gt;My program is like this..&lt;/P&gt;&lt;P&gt;Report xyz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA wa_bapireturn TYPE bapireturn.&lt;/P&gt;&lt;P&gt;DATA it_bapireturn LIKE TABLE OF  wa_bapireturn.&lt;/P&gt;&lt;P&gt;DATA wa_bapisdstat TYPE bapisdstat.&lt;/P&gt;&lt;P&gt;DATA it_bapisdstat LIKE TABLE OF  wa_bapisdstat.&lt;/P&gt;&lt;P&gt;PARAMETERS p_vbeln LIKE vbap-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_SALESORDER_GETSTATUS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      salesdocument = so_vbeln&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      return        = it_bapireturn&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      statusinfo    = it_bapisdstat.&lt;/P&gt;&lt;P&gt;now i got the dump because i have used&lt;/P&gt;&lt;P&gt;it_bapireturn for importing.&lt;/P&gt;&lt;P&gt;then i modified the program like..&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'BAPI_SALESORDER_GETSTATUS'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      salesdocument = so_vbeln&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      return        = wa_bapireturn&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      statusinfo    = it_bapisdstat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the program working fine because i passed&lt;/P&gt;&lt;P&gt;wa_bapireturn. please tell me why it happened like&lt;/P&gt;&lt;P&gt;this. How to know when to pass internal table and when to &lt;/P&gt;&lt;P&gt;pass just a structure.&lt;/P&gt;&lt;P&gt;And also tell me the difference bet type and type ref to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 12:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-import-parameter/m-p/4377293#M1041437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T12:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Function module import parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-import-parameter/m-p/4377294#M1041438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per the interface definition of the BAPI, it expects one workarea in the RETURN parameter.&lt;/P&gt;&lt;P&gt;but it_bapireturn was an internal table so was the dump&lt;/P&gt;&lt;P&gt;but wa_bapireturn is a work area so it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the interface of the Function Module to know what to be used. Usually work areas are passed in IMPORT AND EXPORT parameters and internal tables in TABLES parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by using TYPE , we create a variable of a pre difined TYPE.&lt;/P&gt;&lt;P&gt;by using TYPE REF we create object of a particual class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Swastik Bharati on Aug 21, 2008 2:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 12:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-import-parameter/m-p/4377294#M1041438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T12:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Function module import parameter</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-import-parameter/m-p/4377295#M1041439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Exporting and Importing tabs will take single field or work area as parameters. If you want to pass the tables then you need to declare them in the Tables section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Here there is a mismatch between the parameters which resulted in dump.  Return parameter is like workarea which can hold only one record but it_bapireturn is a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope thsi will clear your doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 12:27:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-import-parameter/m-p/4377295#M1041439</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2008-08-21T12:27:21Z</dc:date>
    </item>
  </channel>
</rss>

