<?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 CU65 Variant Function cannot be released - check function module interface in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cu65-variant-function-cannot-be-released-check-function-module-interface/m-p/8361361#M1641145</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;Getting this error while Releasing the variant Function in CU66. Function Module trigerred by this function is of the same name as well as correctly acitvated and released , but while releasing the Function I get this error :  'Function cannot be released - check function module interface' . Following are two characeteristics that are maintained in the variant function : &lt;/P&gt;&lt;P&gt;1. Customer_Type &lt;/P&gt;&lt;P&gt;2. Maintenance_Contract&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While executing the Function Module alone I get Raise Inernal Exception i.e it is not identifying the argument name 'Maintenance_Contract' in the FM 'CUOV_GET_FUNCTION_ARGUMENT' exception&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code for reference . Pls point out if any mistakes : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(GLOBALS) TYPE  CUOV_00&lt;/P&gt;&lt;P&gt;*"  CHANGING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(ZQUERY) TYPE  ZQUERY&lt;/P&gt;&lt;P&gt;*"     REFERENCE(ZMATCH) TYPE  ZMATCH&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      FAIL&lt;/P&gt;&lt;P&gt;*"      INTERNAL_ERROR&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" Data Declaration&lt;/P&gt;&lt;P&gt;DATA : l_main LIKE CUOV_01-atwrt,&lt;/P&gt;&lt;P&gt;         l_cust LIKE CUOV_01-atwrt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" Get value of Input Characteristic Maintenance Contract&lt;/P&gt;&lt;P&gt;  call function 'CUOV_GET_FUNCTION_ARGUMENT'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      argument            = 'MAINTENANCE_CONTRACT'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;      SYM_VAL             = l_main&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      query               = ZQUERY&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      ARG_NOT_FOUND       = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  RAISE INTERNAL_ERROR.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  " Get value of Input Characteristic Customer Type&lt;/P&gt;&lt;P&gt;  call function 'CUOV_GET_FUNCTION_ARGUMENT'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      argument            = 'CUSTOMER_TYPE'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;      SYM_VAL             = l_cust&lt;/P&gt;&lt;P&gt;   tables&lt;/P&gt;&lt;P&gt;      query               = ZQUERY&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      ARG_NOT_FOUND       = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  RAISE INTERNAL_ERROR.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF l_main EQ 'NO'.&lt;/P&gt;&lt;P&gt;    IF l_cust EQ 'CURRENT'.&lt;/P&gt;&lt;P&gt;      l_cust = 'NEW'.&lt;/P&gt;&lt;P&gt;    ELSEIF l_cust EQ 'VAR CURRENT'.&lt;/P&gt;&lt;P&gt;      l_cust = 'VAR NEW'.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; " Set value for the output characteristic&lt;/P&gt;&lt;P&gt;     call function 'CUOV_SET_FUNCTION_ARGUMENT'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;         argument                      = 'CUSTOMER_TYPE'&lt;/P&gt;&lt;P&gt;         vtype                         = 'CHAR'&lt;/P&gt;&lt;P&gt;         SYM_VAL                       = l_cust&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       NUM_VAL                       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;         match                         = ZMATCH&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         EXISTING_VALUE_REPLACED       = 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2011 17:29:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-28T17:29:55Z</dc:date>
    <item>
      <title>CU65 Variant Function cannot be released - check function module interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cu65-variant-function-cannot-be-released-check-function-module-interface/m-p/8361361#M1641145</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;Getting this error while Releasing the variant Function in CU66. Function Module trigerred by this function is of the same name as well as correctly acitvated and released , but while releasing the Function I get this error :  'Function cannot be released - check function module interface' . Following are two characeteristics that are maintained in the variant function : &lt;/P&gt;&lt;P&gt;1. Customer_Type &lt;/P&gt;&lt;P&gt;2. Maintenance_Contract&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While executing the Function Module alone I get Raise Inernal Exception i.e it is not identifying the argument name 'Maintenance_Contract' in the FM 'CUOV_GET_FUNCTION_ARGUMENT' exception&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the code for reference . Pls point out if any mistakes : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(GLOBALS) TYPE  CUOV_00&lt;/P&gt;&lt;P&gt;*"  CHANGING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(ZQUERY) TYPE  ZQUERY&lt;/P&gt;&lt;P&gt;*"     REFERENCE(ZMATCH) TYPE  ZMATCH&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      FAIL&lt;/P&gt;&lt;P&gt;*"      INTERNAL_ERROR&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" Data Declaration&lt;/P&gt;&lt;P&gt;DATA : l_main LIKE CUOV_01-atwrt,&lt;/P&gt;&lt;P&gt;         l_cust LIKE CUOV_01-atwrt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" Get value of Input Characteristic Maintenance Contract&lt;/P&gt;&lt;P&gt;  call function 'CUOV_GET_FUNCTION_ARGUMENT'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      argument            = 'MAINTENANCE_CONTRACT'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;      SYM_VAL             = l_main&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      query               = ZQUERY&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      ARG_NOT_FOUND       = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  RAISE INTERNAL_ERROR.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  " Get value of Input Characteristic Customer Type&lt;/P&gt;&lt;P&gt;  call function 'CUOV_GET_FUNCTION_ARGUMENT'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      argument            = 'CUSTOMER_TYPE'&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;      SYM_VAL             = l_cust&lt;/P&gt;&lt;P&gt;   tables&lt;/P&gt;&lt;P&gt;      query               = ZQUERY&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      ARG_NOT_FOUND       = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  RAISE INTERNAL_ERROR.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF l_main EQ 'NO'.&lt;/P&gt;&lt;P&gt;    IF l_cust EQ 'CURRENT'.&lt;/P&gt;&lt;P&gt;      l_cust = 'NEW'.&lt;/P&gt;&lt;P&gt;    ELSEIF l_cust EQ 'VAR CURRENT'.&lt;/P&gt;&lt;P&gt;      l_cust = 'VAR NEW'.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; " Set value for the output characteristic&lt;/P&gt;&lt;P&gt;     call function 'CUOV_SET_FUNCTION_ARGUMENT'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;         argument                      = 'CUSTOMER_TYPE'&lt;/P&gt;&lt;P&gt;         vtype                         = 'CHAR'&lt;/P&gt;&lt;P&gt;         SYM_VAL                       = l_cust&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       NUM_VAL                       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;         match                         = ZMATCH&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         EXISTING_VALUE_REPLACED       = 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 17:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cu65-variant-function-cannot-be-released-check-function-module-interface/m-p/8361361#M1641145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-28T17:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: CU65 Variant Function cannot be released - check function module interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cu65-variant-function-cannot-be-released-check-function-module-interface/m-p/8361362#M1641146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ZMATCH and ZQUERY are two table types created in SE11 , both of type CUOV_01.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 17:31:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cu65-variant-function-cannot-be-released-check-function-module-interface/m-p/8361362#M1641146</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-28T17:31:38Z</dc:date>
    </item>
  </channel>
</rss>

