<?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: Data Validation of Custom Table Fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-of-custom-table-fields/m-p/1896436#M374624</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;I believe you cannot pass values to the MODULE.. Instead create a subroutine and put in your functionality there..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD ZMMC_CONTROL_TAB-VARIANT1 .&lt;/P&gt;&lt;P&gt;Module Validate_Variant_selection.&lt;/P&gt;&lt;P&gt;FIELD ZMMC_CONTROL_TAB-VARIANT2 .&lt;/P&gt;&lt;P&gt;Module Validate_Variant_selection.&lt;/P&gt;&lt;P&gt;FIELD ZMMC_CONTROL_TAB-VARIANT3 .&lt;/P&gt;&lt;P&gt;Module Validate_Variant_selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module Validate_Variant_selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT ZMMC_CONTROL_TAB-VARIANT1 IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM CHECK_VARIANT USING ZMMC_CONTROL_TAB-VARIANT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT ZMMC_CONTROL_TAB-VARIANT2 IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM CHECK_VARIANT USING ZMMC_CONTROL_TAB-VARIANT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT ZMMC_CONTROL_TAB-VARIANT3 IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM CHECK_VARIANT USING ZMMC_CONTROL_TAB-VARIANT3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&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>Mon, 15 Jan 2007 02:43:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-15T02:43:53Z</dc:date>
    <item>
      <title>Data Validation of Custom Table Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-of-custom-table-fields/m-p/1896435#M374623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guru's,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed a Custom Table in SE11, generated a view, and am in the process of coding PAI Validation against certain fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to call a common perform statement for a number of the table fields, and generate a field specific error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;    FIELD ZMMC_CONTROL_TAB-DESCR .&lt;/P&gt;&lt;P&gt;    FIELD ZMMC_CONTROL_TAB-VARIANT1 .&lt;/P&gt;&lt;P&gt;      Module Validate_Variant_selection.&lt;/P&gt;&lt;P&gt;    FIELD ZMMC_CONTROL_TAB-VARIANT2 .&lt;/P&gt;&lt;P&gt;      Module Validate_Variant_selection.&lt;/P&gt;&lt;P&gt;    FIELD ZMMC_CONTROL_TAB-VARIANT3 .&lt;/P&gt;&lt;P&gt;      Module Validate_Variant_selection.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;and, depending on the error, generate 'Error with value in field x', where x eq 'Variant1', 'Variant2', etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a means of passing the field-name into the module (along the lines of the perform...using.. statement), or conversely, is there a structure of table that could be read from within the module to ascertain which table field called the module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10 points up for grabs for a solution/suggestion that works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 02:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-of-custom-table-fields/m-p/1896435#M374623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T02:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data Validation of Custom Table Fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-of-custom-table-fields/m-p/1896436#M374624</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;I believe you cannot pass values to the MODULE.. Instead create a subroutine and put in your functionality there..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD ZMMC_CONTROL_TAB-VARIANT1 .&lt;/P&gt;&lt;P&gt;Module Validate_Variant_selection.&lt;/P&gt;&lt;P&gt;FIELD ZMMC_CONTROL_TAB-VARIANT2 .&lt;/P&gt;&lt;P&gt;Module Validate_Variant_selection.&lt;/P&gt;&lt;P&gt;FIELD ZMMC_CONTROL_TAB-VARIANT3 .&lt;/P&gt;&lt;P&gt;Module Validate_Variant_selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module Validate_Variant_selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT ZMMC_CONTROL_TAB-VARIANT1 IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM CHECK_VARIANT USING ZMMC_CONTROL_TAB-VARIANT1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT ZMMC_CONTROL_TAB-VARIANT2 IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM CHECK_VARIANT USING ZMMC_CONTROL_TAB-VARIANT2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT ZMMC_CONTROL_TAB-VARIANT3 IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM CHECK_VARIANT USING ZMMC_CONTROL_TAB-VARIANT3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&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>Mon, 15 Jan 2007 02:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-validation-of-custom-table-fields/m-p/1896436#M374624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T02:43:53Z</dc:date>
    </item>
  </channel>
</rss>

