<?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: error in the function group in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221687#M477125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use your FORM-ENDFORM in an include of the function group instead of the body of the Function module.&lt;/P&gt;&lt;P&gt;You dont require to use the INCLUDE statement just write PERFORM in the body of the FM.&lt;/P&gt;&lt;P&gt;This error will be rectified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2007 18:33:32 GMT</pubDate>
    <dc:creator>amit_khare</dc:creator>
    <dc:date>2007-05-09T18:33:32Z</dc:date>
    <item>
      <title>error in the function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221680#M477118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello..&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I created a function group and that contains a function module which had a include program.Iam getting a error with that even i could not keep a break point with that error.If i execute this functionmodule containing this include program i am geting the error. &lt;/P&gt;&lt;P&gt;In functionmodule these are the import,export and tables that are used.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(MESSAGE_TYPE) LIKE  TBDME-MESTYP&lt;/P&gt;&lt;P&gt;*"     VALUE(IDOC_TYPE) LIKE  EDIDC-IDOCTP&lt;/P&gt;&lt;P&gt;*"     VALUE(SEGMENT_NAME) LIKE  EDIDD-SEGNAM&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(IDOC_CIMTYPE) LIKE  EDIDC-CIMTYP&lt;/P&gt;&lt;P&gt;*"  TABLES&lt;/P&gt;&lt;P&gt;*"      IDOC_DATA STRUCTURE  EDIDD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE Z123.&lt;/P&gt;&lt;P&gt;In the above include z123 program i wrote the below code.&lt;/P&gt;&lt;P&gt;perform debmas_exit tables idoc_data using message_type segment_name .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------" /&gt;&lt;P&gt;***INCLUDE ZXVSVF01 .&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  debmas_exit&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_IDOC_DATAtext&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_MESSAGE_Ttext&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_SEGMENT_Ntext&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form debmas_exit  tables   p_idoc_data structure edidd&lt;/P&gt;&lt;P&gt;                  using    p_message_type&lt;/P&gt;&lt;P&gt;                           p_segment_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*angemys Bankdata&lt;/P&gt;&lt;P&gt;  data: te1knbkm like e1knbkm,&lt;/P&gt;&lt;P&gt;        l_iban   like tiban-iban.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if p_message_type eq 'ZDEBMASBK' or&lt;/P&gt;&lt;P&gt;     p_message_type eq 'ZDEBMASBKI' . "Validating message type&lt;/P&gt;&lt;P&gt;    if p_segment_name eq 'E1KNBKM'. "Validating segment name&lt;/P&gt;&lt;P&gt;      loop at p_idoc_data where segnam = p_segment_name.&lt;/P&gt;&lt;P&gt;        move p_idoc_data-sdata to te1knbkm.&lt;/P&gt;&lt;P&gt;        select single iban&lt;/P&gt;&lt;P&gt;          from tiban&lt;/P&gt;&lt;P&gt;          into l_iban&lt;/P&gt;&lt;P&gt;         where banks eq te1knbkm-banks&lt;/P&gt;&lt;P&gt;           and bankl eq te1knbkm-bankl&lt;/P&gt;&lt;P&gt;           and bankn eq te1knbkm-bankn.&lt;/P&gt;&lt;P&gt;        if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;          move l_iban   to te1knbkm-stras.&lt;/P&gt;&lt;P&gt;          move te1knbkm to p_idoc_data-sdata.&lt;/P&gt;&lt;P&gt;          modify p_idoc_data transporting sdata.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;    endif. "Segment Name&lt;/P&gt;&lt;P&gt;  endif. "Message Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " debmas_exit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 16:07:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221680#M477118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T16:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: error in the function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221681#M477119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we let us know the error that you are getting ??&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>Wed, 09 May 2007 16:11:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221681#M477119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T16:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: error in the function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221682#M477120</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;what is the error you are getting??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 16:12:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221682#M477120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T16:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: error in the function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221683#M477121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Activate ur function group in SE80 or use se38  using SAPLXXXX - XXXX is ur function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 16:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221683#M477121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T16:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: error in the function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221684#M477122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ..&lt;/P&gt;&lt;P&gt;I got the error like &lt;/P&gt;&lt;P&gt;"incorrect nesting:Before the statement "FORM",the structure introduced by function must be concluded by endfunction."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my program of function module after the include statement i kept endfunction.Plz do this practically and see the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 18:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221684#M477122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T18:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: error in the function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221685#M477123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ..&lt;/P&gt;&lt;P&gt;I got the error like &lt;/P&gt;&lt;P&gt;"incorrect nesting:Before the statement "FORM",the structure introduced by function must be concluded by endfunction."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my program of function module after the include statement i kept endfunction.Plz do this practically and see the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 18:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221685#M477123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T18:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: error in the function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221686#M477124</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;Make sure you have this..Marked in bold..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*" IMPORTING&lt;/P&gt;&lt;P&gt;*" VALUE(MESSAGE_TYPE) LIKE TBDME-MESTYP&lt;/P&gt;&lt;P&gt;*" VALUE(IDOC_TYPE) LIKE EDIDC-IDOCTP&lt;/P&gt;&lt;P&gt;*" VALUE(SEGMENT_NAME) LIKE EDIDD-SEGNAM&lt;/P&gt;&lt;P&gt;*" EXPORTING&lt;/P&gt;&lt;P&gt;*" VALUE(IDOC_CIMTYPE) LIKE EDIDC-CIMTYP&lt;/P&gt;&lt;P&gt;*" TABLES&lt;/P&gt;&lt;P&gt;*" IDOC_DATA STRUCTURE EDIDD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE Z123.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 18:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221686#M477124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T18:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: error in the function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221687#M477125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use your FORM-ENDFORM in an include of the function group instead of the body of the Function module.&lt;/P&gt;&lt;P&gt;You dont require to use the INCLUDE statement just write PERFORM in the body of the FM.&lt;/P&gt;&lt;P&gt;This error will be rectified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 18:33:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221687#M477125</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-05-09T18:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: error in the function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221688#M477126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if it will allow you to do so or not, but try to put the INCLUDE after the ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*" IMPORTING
*" VALUE(MESSAGE_TYPE) LIKE TBDME-MESTYP
*" VALUE(IDOC_TYPE) LIKE EDIDC-IDOCTP
*" VALUE(SEGMENT_NAME) LIKE EDIDD-SEGNAM
*" EXPORTING
*" VALUE(IDOC_CIMTYPE) LIKE EDIDC-CIMTYP
*" TABLES
*" IDOC_DATA STRUCTURE EDIDD


PERFORM ........


ENDFUNCTION.


INCLUDE Z123.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 18:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221688#M477126</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-05-09T18:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: error in the function group</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221689#M477127</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;Do not keep any FORM....ENDFORM inside the function module. Instead go to include program (Click on FM Menu GOTO--&amp;gt;Main Program) and choose a Include program or create one more. Then keep this FORM....ENDFORM inside this include program and then use the PERFORM statement in your function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2008 09:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-the-function-group/m-p/2221689#M477127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-11T09:09:50Z</dc:date>
    </item>
  </channel>
</rss>

