<?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 '002' is skipped in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482970#M1652457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to SE80 and generate the user exit function group XVED (Program -&amp;gt; generate) and also activate it (by right clicking XVED and clicking activate). Sometimes it may happen that all components may not be active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Repeat the same for function group VEDA (for IDOC_INPUT_ORDERS)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2012 16:50:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-01-10T16:50:53Z</dc:date>
    <item>
      <title>CUSTOMER-FUNCTION '002' is skipped</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482968#M1652455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I process an inbound order IDoc, it skips over CUSTOMER-FUNCTION '002', as though it is not activated.  I read note 753153 which says to activate the function in SMOD or CMOD.  In CMOD, there is a project with SAP Enhancement VEDA0001, which includes function EXIT_SAPLVEDA_002 (as shown in txn SMOD for VEDA0001).  This exit function has one line of code that says 'INCLUDE ZXVEDU04'.  We made some changes to ZXVEDU04.  Everything is generated and activated.  CMOD shows a green check and a green box next to this component.  But when we process the IDoc, it skips over the statement "CALL CUSTOMER-FUNCTION '002'" in LVEDAF59.  We watched it in debug mode, it skips over the statement and sy-subrc remains 0.  The code in ZXVEDU04 is not getting executed.   I even tried using CMOD to de-activate then activate everything again.  Still, no luck.  Why is it being treated as if it does not exist or is not activated?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 16:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482968#M1652455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-10T16:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOMER-FUNCTION '002' is skipped</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482969#M1652456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep a break point inside the project and see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 16:40:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482969#M1652456</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2012-01-10T16:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOMER-FUNCTION '002' is skipped</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482970#M1652457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to SE80 and generate the user exit function group XVED (Program -&amp;gt; generate) and also activate it (by right clicking XVED and clicking activate). Sometimes it may happen that all components may not be active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Repeat the same for function group VEDA (for IDOC_INPUT_ORDERS)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 16:50:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482970#M1652457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-10T16:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOMER-FUNCTION '002' is skipped</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482971#M1652458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I activated the function groups via SE80, but still am getting the same problem.  The customer function is skipped over and ignored, and sy-subrc remains 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 13:43:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482971#M1652458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-13T13:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOMER-FUNCTION '002' is skipped</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482972#M1652459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;open the component in the next screen of CMOD and activate the component.&lt;/P&gt;&lt;P&gt;on the main screen of CMOD deactivate the project and activate it again..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jan 2012 13:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482972#M1652459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-13T13:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOMER-FUNCTION '002' is skipped</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482973#M1652460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried many different things, but still no luck.  I deactivated and reactivated.  I regenerated every function, every program.  I even deleted the CMOD project, then re-created it.   While in debug mode, when it gets to the command CALL CUSTOMER-FUNCTION '002', it just skips over it.  SY-SUBRC remains zero.  Function EXIT_SAPLVEDA_002 just won't execute.  The same problem is happening with CUSTOMER-FUNCTION '001', FM EXIT_SAPLVEDA_001.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 16:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482973#M1652460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-30T16:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOMER-FUNCTION '002' is skipped</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482974#M1652461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A bit more info I have found, regarding this info.  We are using process code ORDE, instead of DELO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DELO process code executes the customer function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process Code: DELO&lt;/P&gt;&lt;P&gt;Executes function: IDOC_INPUT_ORDERS&lt;/P&gt;&lt;P&gt;Function Group: VEDA&lt;/P&gt;&lt;P&gt;Main Program: SAPLVEDA    Include: LVEDAF5A&lt;/P&gt;&lt;P&gt;Form: CUSTOMER_FUNCTION_IDOC&lt;/P&gt;&lt;P&gt;Statement: CALL CUSTOMER-FUNCTION '001'   Exit FM is executed&lt;/P&gt;&lt;P&gt;Executes FM: EXIT_SAPLVEDA_001&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the process code we are using, ORDE, gives me the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process Code: ORDE&lt;/P&gt;&lt;P&gt;Excutes function: Z_IDOC_INPUT_ORDR&lt;/P&gt;&lt;P&gt;Function Group: ZVEDA&lt;/P&gt;&lt;P&gt;Main Program: SAPLZVEDA   Include: LVEDAF5A&lt;/P&gt;&lt;P&gt;Form: CUSTOMER_FUNCTION_IDOC&lt;/P&gt;&lt;P&gt;Statement: CALL CUSTOMER-FUNCTION '001'   skips over this statement&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 19:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482974#M1652461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-30T19:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOMER-FUNCTION '002' is skipped</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482975#M1652462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process Code: ORDE&lt;/P&gt;&lt;P&gt;Excutes function: Z_IDOC_INPUT_ORDR&lt;/P&gt;&lt;P&gt;Function Group: ZVEDA&lt;/P&gt;&lt;P&gt;Main Program: SAPLZVEDA Include: LVEDAF5A&lt;/P&gt;&lt;P&gt;Form: CUSTOMER_FUNCTION_IDOC&lt;/P&gt;&lt;P&gt;Statement: CALL CUSTOMER-FUNCTION '001' skips over this statement&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exactly what I have suspected - Your program name is &lt;STRONG&gt;SAPLZVEDA&lt;/STRONG&gt; and the standard SAP program name where the exit EXIT_SAPLVEDA_001 is being called is SAPLVEDA. Since there is NO FM with the name EXIT_SAPLZVEDA_001, it is skipping over the FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From SAP help on [call customer-function|http://help.sap.com/abapdocu_702/en/abapcall_customer-function.htm]&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Preparation by SAP &lt;/P&gt;&lt;P&gt;An empty or partly implemented function module must be assigned to the function module exit function_exit using the transaction SMOD. The name of the function module consists of "EXIT_", the program name, which contains the statement CALL CUSTOMER-FUNCTION, and the three-character name in function_exit. The interface of the function module is completely defined by SAP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if you still would be able to create the FM with that name of not in the system. What was the need of creating Z FG ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 20:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482975#M1652462</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2012-01-30T20:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOMER-FUNCTION '002' is skipped</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482976#M1652463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Nameish points out, the user exit is for SAP standard code.  Can I ask a further question?  Since something persuaded someone to do the unthinkable (for me) and clone and whack and hack on an SAP program, why do you need a user exit?  Since someone has already decided that the client/employer can accept the risk of future unsupported failures in SAP, by introducing a cutom program instead of enhancing the SAP standard, why not just whack and hack a little further and put in the code that you need, directly into the "z" object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 20:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482976#M1652463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-30T20:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: CUSTOMER-FUNCTION '002' is skipped</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482977#M1652464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I understand the problem now.  This Z function is a copy of the SAP function.  It was created before I got here.  Since it is a custom Z program, I won't bother trying to use customer-function '001' or '002'.  Instead, I'll just add some more custom code.  There is a custom field on the sales order "Additional Data 2" tab that we want to populate from the IDoc.  This means I also need to add BDC data it needs before it calls VA01.  This means I will need to make a Z copy of include LVEDAF0F.  Not the ideal way to do it, I know.  I'd rather scrap this Z function and just use the user-exits that work with FM IDOC_INPUT_ORDERS.  Thanks again for helping me figure this out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 20:48:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/customer-function-002-is-skipped/m-p/8482977#M1652464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-30T20:48:22Z</dc:date>
    </item>
  </channel>
</rss>

