<?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: dump when calling the function module , length not same error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828300#M1316153</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;In FM also declare i_export like zexport.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check and revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2009 08:49:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-30T08:49:29Z</dc:date>
    <item>
      <title>dump when calling the function module , length not same error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828294#M1316147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;structures i created are &lt;/P&gt;&lt;P&gt;Zinputs has fields name ,age.&lt;/P&gt;&lt;P&gt;Zexport has filelds name , age , sex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function moudle with export parameter.&lt;/P&gt;&lt;P&gt;i_export and it is refereing to the structure zexport and it has 3 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in fm i declared in export options it as &lt;/P&gt;&lt;P&gt;i_export like zstruct.&lt;/P&gt;&lt;P&gt;and in souce code i have done like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF name_n  IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;i_export-NAME = i_table-NAME.&lt;/P&gt;&lt;P&gt;i_export-age = i_table-age.&lt;/P&gt;&lt;P&gt;i_export-sex = 'F'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;i_export-NAME = i_table-NAME.&lt;/P&gt;&lt;P&gt;i_export-age = i_table-age.&lt;/P&gt;&lt;P&gt;i_export-sex = 'M'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in the program  i have declared like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : user(30) type c.&lt;/P&gt;&lt;P&gt;user = 'Master'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :wa type zexport.&lt;/P&gt;&lt;P&gt;DATA : INPUTs LIKE TABLE OF  Zinputs .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : output like table of zexport.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-name = 'KUMAR'.&lt;/P&gt;&lt;P&gt;wa-AGE = '42'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND  wa to INPUT.&lt;/P&gt;&lt;P&gt;wa-name = 'shiva'.&lt;/P&gt;&lt;P&gt;wa-age = '37'.&lt;/P&gt;&lt;P&gt;append wa to input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZFUNCTION'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    input         =  user&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   i_export        = output&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    input1         = inputs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dump came while executing the function module and &lt;/P&gt;&lt;P&gt;Error analysis is as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An exception occurred. This exception will be dealt with in more detail&lt;/P&gt;&lt;P&gt;below. The exception, assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was&lt;/P&gt;&lt;P&gt; not caught, which&lt;/P&gt;&lt;P&gt; led to a runtime error. The reason for this exception is:&lt;/P&gt;&lt;P&gt;The call to the function module "ZFUNCTION" is incorrect:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the function module interface, you can specify only&lt;/P&gt;&lt;P&gt;fields of a specific type and length under "I_EXPORT".&lt;/P&gt;&lt;P&gt;Although the currently specified field&lt;/P&gt;&lt;P&gt;"OUTPUT" is the correct type, its length is incorrect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 08:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828294#M1316147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-30T08:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: dump when calling the function module , length not same error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828295#M1316148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;output parameter must be in same type and length with your export parameter in FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Gungor Ozcelebi on Jun 30, 2009 10:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 08:36:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828295#M1316148</guid>
      <dc:creator>former_member194416</dc:creator>
      <dc:date>2009-06-30T08:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: dump when calling the function module , length not same error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828296#M1316149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just check the lenght of the export paramter&lt;/P&gt;&lt;P&gt;m.a&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 08:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828296#M1316149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-30T08:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: dump when calling the function module , length not same error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828297#M1316150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am referring the export parameter to a structure as mentioned above , zexport.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the program also i declared output as same as structure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 08:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828297#M1316150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-30T08:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: dump when calling the function module , length not same error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828298#M1316151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : output like table of zexport. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export parameter can't be a table define it like below.&lt;/P&gt;&lt;P&gt;data : output type zexport. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to make it table you must define in Tables section in your fm interface. No problem you can again use it like exporting parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Gungor Ozcelebi on Jun 30, 2009 10:43 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 08:42:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828298#M1316151</guid>
      <dc:creator>former_member194416</dc:creator>
      <dc:date>2009-06-30T08:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: dump when calling the function module , length not same error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828299#M1316152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Change the declaration in program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(data:output type zexport.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 08:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828299#M1316152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-30T08:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: dump when calling the function module , length not same error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828300#M1316153</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;In FM also declare i_export like zexport.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check and revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 08:49:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828300#M1316153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-30T08:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: dump when calling the function module , length not same error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828301#M1316154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in fm i declared as i_export like zexport only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gungor Ozcelebi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so as you said , right now i have 3 fields in the export ie i will get this as output from the internal table type structure zexport.&lt;/P&gt;&lt;P&gt;so do i need to declare it in the tables section than export section? If so already i declared input fileds in the table section type stucture zinputs?  how to tell to the sytem(declare in fm) which is input and which is output in tables section.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 09:02:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828301#M1316154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-30T09:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: dump when calling the function module , length not same error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828302#M1316155</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;Try declaring the i_export parameter also in the tables section of the FM as you give for inputs but with structure zexport.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also change the call function by moving i_export under tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check and revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 09:06:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828302#M1316155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-30T09:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: dump when calling the function module , length not same error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828303#M1316156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's up to your coding. You can use table statement both as importing or exporting parameter and you don't need to define anything special in your FM. Just fill it before calling FM to use it as a importing parameter or fill it in your fm to use it as an exporting parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also fill it before you call your fm and modify in your fm like a changing parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Gungor Ozcelebi on Jun 30, 2009 11:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2009 09:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-when-calling-the-function-module-length-not-same-error/m-p/5828303#M1316156</guid>
      <dc:creator>former_member194416</dc:creator>
      <dc:date>2009-06-30T09:07:19Z</dc:date>
    </item>
  </channel>
</rss>

