<?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 Error in BDC within user exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-within-user-exit/m-p/7941124#M1600740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to generate a BDC recording within a function exit. I have declared the BDCRECX1 include within the TOP include of the function group. But the include BDCRECX1 which actually contains all the FORMs also contains a selection-screen defined in it. I am not able to activate it because it gives me the following error "SELECTION-SCREEN statements can only be used between SELECTION-SCREEN BEGIN and END OF SCREEN (program type is not "1")" Is it because we are not allowed to define a selection screen between Function-Endfunction which defines a function exit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know why this error is generated and the step to rectify it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2011 06:55:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-07T06:55:51Z</dc:date>
    <item>
      <title>Error in BDC within user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-within-user-exit/m-p/7941124#M1600740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to generate a BDC recording within a function exit. I have declared the BDCRECX1 include within the TOP include of the function group. But the include BDCRECX1 which actually contains all the FORMs also contains a selection-screen defined in it. I am not able to activate it because it gives me the following error "SELECTION-SCREEN statements can only be used between SELECTION-SCREEN BEGIN and END OF SCREEN (program type is not "1")" Is it because we are not allowed to define a selection screen between Function-Endfunction which defines a function exit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know why this error is generated and the step to rectify it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 06:55:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-within-user-exit/m-p/7941124#M1600740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-07T06:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BDC within user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-within-user-exit/m-p/7941125#M1600741</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;You can create a custom function module in the customer function exit with the BDC .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import parametres like this in the fm.Just a snippet of code for your reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

VALUE(CTU) LIKE  APQI-PUTACTIVE OPTIONAL
*"     VALUE(MODE) LIKE  APQI-PUTACTIVE OPTIONAL
*"     VALUE(UPDATE) LIKE  APQI-PUTACTIVE OPTIONAL
*"     VALUE(GROUP) LIKE  APQI-GROUPID OPTIONAL
*"     VALUE(USER) LIKE  APQI-USERID OPTIONAL
*"     VALUE(KEEP) LIKE  APQI-QERASE OPTIONAL
*"     VALUE(HOLDDATE) LIKE  APQI-STARTDATE OPTIONAL
*"     VALUE(NODATA) LIKE  APQI-PUTACTIVE DEFAULT '/'
also specify the fields you are doing in the BDC

PERFORM bdc_nodata      USING nodata.

    PERFORM open_group      USING group user keep holddate ctu.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 07:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-within-user-exit/m-p/7941125#M1600741</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2011-06-07T07:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BDC within user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-within-user-exit/m-p/7941126#M1600742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagaraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What Smitha is trying to accomplish here is reuse the subroutines that are available within the &lt;STRONG&gt;INCLUDE bdcrecx1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smitha - You cannot re-use the &lt;STRONG&gt;INCLUDE bdcrecx1&lt;/STRONG&gt; as it is, you will have to create a copy of it and take out all the code that relates to selection screen and reference to these selection parameters within the subroutines, as selection screen can be in programs type "1" - that is executable/report programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you will need only the subroutines &lt;STRONG&gt;FORM BDC_DYNPRO USING PROGRAM DYNPRO.&lt;/STRONG&gt; and &lt;STRONG&gt;FORM BDC_FIELD USING FNAM FVAL.&lt;/STRONG&gt; just copy these routines into a new include. And you can use declare BDCDATA in the global data of the Function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you ask me, i guess you could just write these 10-15 lines of code within the same include of the function exit and proceed rather than taking all this trouble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 08:00:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-within-user-exit/m-p/7941126#M1600742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-07T08:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BDC within user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-within-user-exit/m-p/7941127#M1600743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't include BDCRECX1 but include BDCRECXY in the TOP part of the function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 08:08:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-within-user-exit/m-p/7941127#M1600743</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-06-07T08:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error in BDC within user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-within-user-exit/m-p/7941128#M1600744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right i was suggesting to use the code in a function module...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 08:34:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-bdc-within-user-exit/m-p/7941128#M1600744</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2011-06-07T08:34:20Z</dc:date>
    </item>
  </channel>
</rss>

