<?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: Customer function (user-exit) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188845#M127962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to inform: I called the exit directly, after checking (in table MODATTR) if the enhancement project is active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Things work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for help and suggestions.&lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2006 15:25:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-11T15:25:35Z</dc:date>
    <item>
      <title>Customer function (user-exit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188833#M127950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to process an outbound IDoc, I created a Z_function_module as a copy of the standard function module provided by SAP fot the same purpose. I included this Z_function_module in a new Function Group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I need to call, from this new FM, a customer function (a user-exit) that was called by the standard FM, somewhere in the processing. The coding of the ZFM is almost identical with the standard FM, except a few lines added for a specific client request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While the standard FM calls the Customer function (the user-exit), my Z-FM doesn not. The Customer function is included in a CMOD enhancement project. Activating or deactivating this project has no effect on the functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do, in order to call the user-exit in my Z-FM too?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 07:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188833#M127950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T07:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Customer function (user-exit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188834#M127951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL CUSTOMER-FUNCTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customers use Transaction CMOD to activate the function module. The actual name of the function module is made up of EXIT_, the name of the module pool in which the function module is called, and the name func. For example, the statement CALL CUSTOMER-FUNCTION '001' in module pool SAPMS38M would call the function module EXIT_SAPMS38M_001. &lt;/P&gt;&lt;P&gt;If the function module has not been activated using Transaction CMOD, the call has no effect. System fields such as SY-SUBRC keep the same values that they had before the function call. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;If it did help you don't forget the reward&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Message was edited by: STEPHAN KAMINSKI&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 08:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188834#M127951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T08:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Customer function (user-exit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188835#M127952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bogdan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. u have copied the original to z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. the original and your copy,&lt;/P&gt;&lt;P&gt;   must be using&lt;/P&gt;&lt;P&gt;   CALL CUSTOMER-FUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. But this won't work.&lt;/P&gt;&lt;P&gt;  (becasue it will take the current program name,&lt;/P&gt;&lt;P&gt;   and check further)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. So what u do,&lt;/P&gt;&lt;P&gt;    u must be knowing that function module&lt;/P&gt;&lt;P&gt;   of the user exit.&lt;/P&gt;&lt;P&gt;   Call this FM Directly.&lt;/P&gt;&lt;P&gt;   No problem.&lt;/P&gt;&lt;P&gt;  It will work fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  (just note that, in this case,&lt;/P&gt;&lt;P&gt;      the activateion/deactivation&lt;/P&gt;&lt;P&gt;   of enhancmenet/project won't have any effect,&lt;/P&gt;&lt;P&gt;  it will always be activated, bcos&lt;/P&gt;&lt;P&gt;we are directly callig the REAL FM)&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 08:35:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188835#M127952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T08:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Customer function (user-exit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188836#M127953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, Amit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You got it right, at source code level (syntax level) there is no problem, but at runtime the customer-function is never called in my new Function Group. Why is that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's what interests me the most: why isn't the Customer-exit called in my Z-FM? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the CMOD project associated to a specific Function Group? If so, can this assignment be changed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I'm concerned, calling the Customer-exit (by means of "CALL CUSTOMER-FUNCTION '00x' " should act identically throughout the system. That means that, if I add a CALL CUSTOMER-FUNCTION '00x' WHEREVER in one of my own programs, the exit should work. But it does not. Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 08:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188836#M127953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T08:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Customer function (user-exit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188837#M127954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. CALL CUSTOMER-FUNCTION '001' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   This is some special syntax.&lt;/P&gt;&lt;P&gt;   what the system does is :&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;  It will check the current program name (in ur case Z..)&lt;/P&gt;&lt;P&gt;  then it will find FM with the name&lt;/P&gt;&lt;P&gt;  EXIT_ZPROGRAM_001. (which is not there)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In ur case, fm&lt;/P&gt;&lt;P&gt;  EXIT_ORIGINALPROGRAM_001  is there for enhancment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The program name is imprtant.&lt;/P&gt;&lt;P&gt;  EXIT_PRGNAME_001&lt;/P&gt;&lt;P&gt;   EXIT_PRGNAME_002  ETC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 08:55:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188837#M127954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T08:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Customer function (user-exit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188838#M127955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. It's a mechanism based on the program name. Lousy.&lt;/P&gt;&lt;P&gt;Still, how could I work-around this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&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, 11 Jan 2006 09:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188838#M127955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T09:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Customer function (user-exit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188839#M127956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bogdan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The customer function cannot be anyways called and hence you can do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Copy the EXIT_..... FM without changing its interface parameters into your function group and instead of calling CALL CUSTOMER-FUNCTION, call the zFM straight. Write the code in the function module which you wanted to write in the include. I think this would work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 09:22:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188839#M127956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T09:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Customer function (user-exit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188840#M127957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Srikanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that would leave the client without the possibility to Activate/Deactivate this specific functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 09:37:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188840#M127957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T09:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Customer function (user-exit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188841#M127958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi bodgan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The option is that&lt;/P&gt;&lt;P&gt;   u call the original FM EXIT_ORGPRG_001&lt;/P&gt;&lt;P&gt;   DIRECTLY&lt;/P&gt;&lt;P&gt;   from your program.&lt;/P&gt;&lt;P&gt;  (There is no harm in that)&lt;/P&gt;&lt;P&gt;   (No need to copy this FM to Z group)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Regarding, activation/deactivation,&lt;/P&gt;&lt;P&gt;   don't worry, &lt;/P&gt;&lt;P&gt;   we can detect whether it is active or not&lt;/P&gt;&lt;P&gt;  and accordingly call this FM .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  (give some time for this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. First of all , call the original FM&lt;/P&gt;&lt;P&gt;   and do the ground work !&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 09:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188841#M127958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T09:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Customer function (user-exit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188842#M127959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. But that would leave the client without the possibility to Activate/Deactivate this specific functionality&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this problem, there is a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. U must know the enhancmenet PROJECT name.&lt;/P&gt;&lt;P&gt;  (since u have created, u must be knowing)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. MODATTR - Attributes of Extension Projects&lt;/P&gt;&lt;P&gt;   This is the required table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Name = ProjectName&lt;/P&gt;&lt;P&gt;   Status = ?&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  If status = 'A' then it is activated.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;The following status values exist for a project:              &lt;/P&gt;&lt;P&gt;                                                              &lt;/P&gt;&lt;P&gt;A   = Active:            All project components are active    &lt;/P&gt;&lt;P&gt;o   = Partially active:  At least 1 component is inactive     &lt;/P&gt;&lt;P&gt;' ' = Inactive:          All components have been deactivated &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Now based on this 'A',&lt;/P&gt;&lt;P&gt;  u can conditionally call the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 09:55:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188842#M127959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T09:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Customer function (user-exit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188843#M127960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bogdan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Then you can construct a custom table with only one flag.&lt;/P&gt;&lt;P&gt; Check before processing the function Module if the flag is set, if it is set do go ahead or dont do the functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Provide customising option to client to set and reset the flag by providing table maintainence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 09:55:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188843#M127960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T09:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Customer function (user-exit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188844#M127961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amit, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this solves the problem, nicely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 12:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188844#M127961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T12:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Customer function (user-exit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188845#M127962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to inform: I called the exit directly, after checking (in table MODATTR) if the enhancement project is active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Things work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for help and suggestions.&lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 15:25:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-user-exit/m-p/1188845#M127962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T15:25:35Z</dc:date>
    </item>
  </channel>
</rss>

