<?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: Select query with blank date in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173862#M1517601</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 tried to do as you said but here there is one more screen 'Change generation elements' what I need to select in that screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have options here &lt;/P&gt;&lt;P&gt;Maintenance screens&lt;/P&gt;&lt;P&gt;overview screen &lt;/P&gt;&lt;P&gt;single screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field type/Sec. type&lt;/P&gt;&lt;P&gt;key field &lt;/P&gt;&lt;P&gt;normal field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose I need to select the key field if I am not wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;FED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Aug 2010 07:26:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-30T07:26:25Z</dc:date>
    <item>
      <title>Select query with blank date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173851#M1517590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have issue with my select query, this query should execute when the date is empty in the table. Fields for the date is (trrecv and trpay)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt; SELECT * FROM zcat3_mov&lt;/P&gt;&lt;P&gt;                   INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;                   TABLE lt_invmov&lt;/P&gt;&lt;P&gt;                   WHERE bukrs  EQ zcat3_mov-bukrs&lt;/P&gt;&lt;P&gt;                   AND trans EQ zcat3_mov-trans&lt;/P&gt;&lt;P&gt;                   AND status EQ 'CD'&lt;/P&gt;&lt;P&gt;                   AND clear  EQ ' '&lt;/P&gt;&lt;P&gt;                   AND trrecv EQ ' '&lt;/P&gt;&lt;P&gt;                   AND trpay  EQ ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 06:35:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173851#M1517590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T06:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Select query with blank date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173852#M1517591</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;   Write the condition as : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT * FROM zcat3_mov&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;TABLE lt_invmov&lt;/P&gt;&lt;P&gt;WHERE bukrs EQ zcat3_mov-bukrs&lt;/P&gt;&lt;P&gt;AND trans EQ zcat3_mov-trans&lt;/P&gt;&lt;P&gt;AND status EQ 'CD'&lt;/P&gt;&lt;P&gt;AND clear EQ ' '&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND trrecv EQ '00000000'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AND trpay EQ '00000000 '.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 06:38:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173852#M1517591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T06:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select query with blank date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173853#M1517592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AND trrecv EQ ' '&lt;/P&gt;&lt;P&gt;AND trpay EQ ' '.&lt;/P&gt;&lt;P&gt;You code should work :&lt;/P&gt;&lt;P&gt;check the follwoing if you have checked the initial flag for these 2 fields in teh table -&amp;gt;if yes , comapre where AND trrecv EQ '000000'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 06:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173853#M1517592</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2010-08-30T06:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select query with blank date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173854#M1517593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried but didnt worked. any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I added these two new fields in the table will there be any effect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used databased utility, adjusted and activated the table, do I need to anything If there is a table maintenance for this table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Fed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 06:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173854#M1517593</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T06:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select query with blank date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173855#M1517594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your select is on table or view ?&lt;/P&gt;&lt;P&gt;you have to regenerate the view if you want to use these newly added fields .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 07:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173855#M1517594</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2010-08-30T07:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select query with blank date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173856#M1517595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to table maintenance., can you tell me how to generate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;FED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 07:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173856#M1517595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T07:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select query with blank date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173857#M1517596</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;   goto Utilities--&amp;gt; Table maintenance generator&lt;/P&gt;&lt;P&gt;click on change &lt;/P&gt;&lt;P&gt;click on New field/sec. table in structure checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;click ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your view will be regenerated.&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;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 07:09:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173857#M1517596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T07:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select query with blank date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173858#M1517597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Federer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested with empty date field and it work as Srini Vas did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT * FROM zcat3_mov
INTO CORRESPONDING FIELDS OF
TABLE lt_invmov
WHERE bukrs EQ zcat3_mov-bukrs
AND trans EQ zcat3_mov-trans
AND status EQ 'CD'
AND clear EQ ' '
AND trrecv EQ '00000000' "eight zero
AND trpay EQ '00000000'. "eight zero
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but make sure your field  trrecv and  trpay  have data element type DATS (Field of type DATS with length 8).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check and reply.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 07:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173858#M1517597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T07:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select query with blank date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173859#M1517598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is nice document in the forums , searchw ith "table maintenance generatot".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 07:12:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173859#M1517598</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2010-08-30T07:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select query with blank date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173860#M1517599</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;Initial value of date format is '00000000'. Instead of hard coding I will suggest first declare a local variable of field type. Here you need to declare of type sy-datum. For other types also you can used this technique. Its easy and robust.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: l_ini_date type sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM zcat3_mov&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;TABLE lt_invmov&lt;/P&gt;&lt;P&gt;WHERE bukrs EQ zcat3_mov-bukrs&lt;/P&gt;&lt;P&gt;AND trans EQ zcat3_mov-trans&lt;/P&gt;&lt;P&gt;AND status EQ 'CD'&lt;/P&gt;&lt;P&gt;AND clear EQ ' '&lt;/P&gt;&lt;P&gt;AND trrecv EQ &lt;STRONG&gt;l_ini_date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;AND trpay EQ &lt;STRONG&gt;l_ini_date&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Subhankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 07:15:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173860#M1517599</guid>
      <dc:creator>Subhankar</dc:creator>
      <dc:date>2010-08-30T07:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select query with blank date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173861#M1517600</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;Do u have the data in table zcat3_mov?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chek wheather u have all the valid data as per ur where condtion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think u have not maintained the data in table as per ur where condtion so only u r not getting data in it.&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;Pravin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 07:21:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173861#M1517600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T07:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Select query with blank date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173862#M1517601</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 tried to do as you said but here there is one more screen 'Change generation elements' what I need to select in that screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have options here &lt;/P&gt;&lt;P&gt;Maintenance screens&lt;/P&gt;&lt;P&gt;overview screen &lt;/P&gt;&lt;P&gt;single screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field type/Sec. type&lt;/P&gt;&lt;P&gt;key field &lt;/P&gt;&lt;P&gt;normal field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose I need to select the key field if I am not wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;FED&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 07:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173862#M1517601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T07:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select query with blank date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173863#M1517602</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;    Click on the Key Field if U have added Key field else click Normal field.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    U can click both the screens&lt;/P&gt;&lt;P&gt;    overview screen &lt;/P&gt;&lt;P&gt;    single screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 07:37:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173863#M1517602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T07:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Select query with blank date</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173864#M1517603</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;to check for blank date fields in database tables always use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
date1 = '00000000'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so your query will be -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT * FROM zcat3_mov INTO CORRESPONDING FIELDS OF TABLE lt_invmov
                        WHERE bukrs  EQ zcat3_mov-bukrs  AND 
                              trans  EQ zcat3_mov-trans  AND 
                              status EQ 'CD'             AND 
                              clear  EQ ' '              AND 
                              trrecv EQ '00000000'       AND 
                              trpay  EQ '00000000 '.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Shaurabh Pandey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 08:55:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-with-blank-date/m-p/7173864#M1517603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T08:55:59Z</dc:date>
    </item>
  </channel>
</rss>

