<?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: Condition on fields in Database table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-fields-in-database-table/m-p/7927968#M1599430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to create an event in TMG.&lt;/P&gt;&lt;P&gt;in this event write code to check if teh desired fields are populate or not.&lt;/P&gt;&lt;P&gt;if not then throw your desired error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For how to create events , check following link :&lt;/P&gt;&lt;P&gt;[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc?quicklink=index&amp;amp;overridelayout=true]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2011 10:05:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-29T10:05:58Z</dc:date>
    <item>
      <title>Condition on fields in Database table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-fields-in-database-table/m-p/7927967#M1599429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create new ZTABLE with 5 fields : &lt;/P&gt;&lt;P&gt;1. Sales Organisation VKORG&lt;/P&gt;&lt;P&gt;2. Distib. channel SPART&lt;/P&gt;&lt;P&gt;3. Country LAND1&lt;/P&gt;&lt;P&gt;4. Customet KUNNR&lt;/P&gt;&lt;P&gt;5. Price char1&lt;/P&gt;&lt;P&gt;6. Net price char1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First 2 fields should be Primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Condition on remaining fields is that : &lt;/P&gt;&lt;P&gt;1. For each record Either Country or Customer should be maintained.&lt;/P&gt;&lt;P&gt;2. For each record Either Price or Net price should be maintained.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message : Spec dumping not allowed. Read forum rules before posting. Thread locked. &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vinod Kumar on Jun 29, 2011 3:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 09:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-fields-in-database-table/m-p/7927967#M1599429</guid>
      <dc:creator>swapnil_rane</dc:creator>
      <dc:date>2011-06-29T09:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Condition on fields in Database table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-fields-in-database-table/m-p/7927968#M1599430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to create an event in TMG.&lt;/P&gt;&lt;P&gt;in this event write code to check if teh desired fields are populate or not.&lt;/P&gt;&lt;P&gt;if not then throw your desired error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For how to create events , check following link :&lt;/P&gt;&lt;P&gt;[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-8765287250fc?quicklink=index&amp;amp;overridelayout=true]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 10:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-fields-in-database-table/m-p/7927968#M1599430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-29T10:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Condition on fields in Database table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-fields-in-database-table/m-p/7927969#M1599431</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 should do the things in Table maintenance generator events only. select the event as 05 and do the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

if ztable-LAND1 is initial and ztable-KUNNR is initial.
message
ENDIF
if ztable-Price is initial and ztable-Net price is initial.
message
ENDIF
&lt;/CODE&gt;&lt;/PRE&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;Dhina..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 10:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/condition-on-fields-in-database-table/m-p/7927969#M1599431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-29T10:06:16Z</dc:date>
    </item>
  </channel>
</rss>

