<?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/FM Import Parameter Error. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fm-import-parameter-error/m-p/3628939#M874158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The parameters passed should not be tables but simple structure ..do not declare them in Perform as tables but structures&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Apr 2008 14:12:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-11T14:12:41Z</dc:date>
    <item>
      <title>BAPI/FM Import Parameter Error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fm-import-parameter-error/m-p/3628938#M874157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings all,&lt;/P&gt;&lt;P&gt;Could anyone please advice me, I'm getting syntax error on FM Import parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advice and thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;========================================================================
TYPES:  ty_header TYPE zapo_gr_header.
DATA:   ty_item  TYPE zapo_gr_item.
DATA: t_header TYPE STANDARD TABLE OF ty_header,
      t_item   LIKE STANDARD TABLE OF ty_item,

******************************************
  PERFORM goodsmvt_post TABLES  t_header
                                t_item.
******************************************
FORM goodsmvt_post  TABLES   P_T_HEADER STRUCTURE zapo_gr_header
                             P_T_ITEM   STRUCTURE zapo_gr_item.

  CALL FUNCTION 'Z_APO_BAPI_GR_POST'
    EXPORTING
      I_GR_HEADER = P_T_HEADER
      I_GR_ITEM   = P_T_ITEM
    TABLES
      RETURN      = gt_gr_out.

ENDFORM.                  
******************************************
FUNCTION Z_APO_BAPI_GR_POST.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(I_GR_HEADER) TYPE  ZAPO_GR_HEADER
*"     VALUE(I_GR_ITEM) TYPE  ZAPO_GR_ITEM

  LOOP AT I_GR_HEADER INTO wa_header.
	------
  ENDLOOP.
******************************************&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;**&lt;STRONG&gt;SYNTAX ERROR:&lt;/STRONG&gt;****&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;Function Module Z_APO_BAPI_GR_POST&lt;/STRONG&gt;****&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;"I_GR_HEADER" is neither specified under "TABLES" nor defined as an&lt;/STRONG&gt;****&lt;/P&gt;&lt;P&gt;****&lt;STRONG&gt;internal table.&lt;/STRONG&gt;*&lt;STRONG&gt;========================================================================&lt;/STRONG&gt;*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 14:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fm-import-parameter-error/m-p/3628938#M874157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T14:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI/FM Import Parameter Error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fm-import-parameter-error/m-p/3628939#M874158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The parameters passed should not be tables but simple structure ..do not declare them in Perform as tables but structures&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 14:12:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fm-import-parameter-error/m-p/3628939#M874158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T14:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI/FM Import Parameter Error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fm-import-parameter-error/m-p/3628940#M874159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi BK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Check out if the declarations part of the code is activated or not and wa_header is not yet declared. So take care of it even.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 14:15:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fm-import-parameter-error/m-p/3628940#M874159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T14:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI/FM Import Parameter Error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fm-import-parameter-error/m-p/3628941#M874160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the parameter ZAPO_GR_HEADER is not an internal table so you can't do a LOOP AT.&lt;/P&gt;&lt;P&gt;This is because you have declared it as an import parameter in stead of under TABLES tab.&lt;/P&gt;&lt;P&gt;You can use the tables tab do declare parameter in function module, or you should declare zapo_gr_header as TABLE TYPE in the Data Dictionary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 14:20:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fm-import-parameter-error/m-p/3628941#M874160</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-11T14:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI/FM Import Parameter Error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fm-import-parameter-error/m-p/3628942#M874161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There may be two causes which u need to check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)  First check that u need to pass the structure to the I_GR_HEADER  parameter&lt;/P&gt;&lt;P&gt;and it is not table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)  If you are passing the structure correctly,  the problem is with the type specification&lt;/P&gt;&lt;P&gt; FORM goodsmvt_post  TABLES   P_T_HEADER STRUCTURE zapo_gr_header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should not be table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 14:21:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fm-import-parameter-error/m-p/3628942#M874161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T14:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI/FM Import Parameter Error.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fm-import-parameter-error/m-p/3628943#M874162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings all,&lt;/P&gt;&lt;P&gt;I have declared under TABLES tab rather Import Paramters and is working now.&lt;/P&gt;&lt;P&gt;Thanks to all for valuable advices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 11, 2008 12:22 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 14:36:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-fm-import-parameter-error/m-p/3628943#M874162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T14:36:53Z</dc:date>
    </item>
  </channel>
</rss>

