<?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: Birthday problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072695#M973768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ghosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES : pa0002.
data: it_bbuddies like standard table of p0002 with header line.

data: date type sy-datum,
date1(2) type n,
date2(2) type n.
date = sy-datum.

date1 = date+4(2).
date2 = date+6(2).

SELECT vorna FROM pa0002 INTO CORRESPONDING FIELDS OF table it_bbuddies
 WHERE gbmon = date1 AND gbtag = date2.

LOOP AT it_bbuddies.
write:/ it_bbuddies-vorna.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u see in the debug mode i observed tht gbmon and gbtag are becoming zeros. But check it in the table entries. The entries are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Indu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Indu Rayepudi on Jun 30, 2008 3:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jun 2008 13:25:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-30T13:25:30Z</dc:date>
    <item>
      <title>Birthday problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072688#M973761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a necessiy that I want to search the pa0002 table for records corresponding to present day and current month to obtain birthday of people.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The gbmon and gbtag fields of pa0002 are the month and day of birth of the people.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we can find the no. of people who were born on that day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am facing a problem as I am not able to get any values in the internal table under consideration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do help me as soon as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Soumyadeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 12:46:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072688#M973761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T12:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Birthday problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072689#M973762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why r  u not able to get the values in internal table. Maybe ur coding error...&lt;/P&gt;&lt;P&gt;check out once.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 12:48:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072689#M973762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T12:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Birthday problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072690#M973763</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;what is ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u give day and month details u will get details from that table so based on that write simple select statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 12:51:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072690#M973763</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-06-30T12:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Birthday problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072691#M973764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABLES : pa0002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF mode = 'DIS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    date = sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    date1 = date+4(2).&lt;/P&gt;&lt;P&gt;    date2 = date+6(2).&lt;/P&gt;&lt;P&gt;    date3 = date+5(1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT it_bbuddies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT SINGLE vorna FROM pa0002 INTO CORRESPONDING FIELDS OF it_bbuddies WHERE gbmon = date1 AND gbtag = date2.&lt;/P&gt;&lt;P&gt;      APPEND it_bbuddies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code Im using . Please do let me know what is the problem with this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 12:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072691#M973764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T12:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Birthday problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072692#M973765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;GBJHR   Year&lt;/P&gt;&lt;P&gt;GBMON  Month&lt;/P&gt;&lt;P&gt;GBTAG   Day&lt;/P&gt;&lt;P&gt;Are the fields from the table PA0002&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take the values into internal table.&lt;/P&gt;&lt;P&gt;Now u can do anything with this field like&lt;/P&gt;&lt;P&gt;finding the no. of ppl having Bday on month of 10 (ie oct)&lt;/P&gt;&lt;P&gt;with where GBMON = '10'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or day nd month &lt;/P&gt;&lt;P&gt;where GBMON = '10'&lt;/P&gt;&lt;P&gt;and GBTAG = '26'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can do anything&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;vinsee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 12:56:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072692#M973765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T12:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Birthday problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072693#M973766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select query is wrong..&lt;/P&gt;&lt;P&gt;into corressponding fields of table itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 12:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072693#M973766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T12:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Birthday problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072694#M973767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know what ur saying Vinsee. But my requirement is that I have to select people whose birthday is on the current day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n the code which i attached is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 12:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072694#M973767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T12:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Birthday problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072695#M973768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ghosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES : pa0002.
data: it_bbuddies like standard table of p0002 with header line.

data: date type sy-datum,
date1(2) type n,
date2(2) type n.
date = sy-datum.

date1 = date+4(2).
date2 = date+6(2).

SELECT vorna FROM pa0002 INTO CORRESPONDING FIELDS OF table it_bbuddies
 WHERE gbmon = date1 AND gbtag = date2.

LOOP AT it_bbuddies.
write:/ it_bbuddies-vorna.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u see in the debug mode i observed tht gbmon and gbtag are becoming zeros. But check it in the table entries. The entries are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Indu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Indu Rayepudi on Jun 30, 2008 3:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 13:25:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072695#M973768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T13:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Birthday problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072696#M973769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Indu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will stay in touch with u in future for any abap related issues. Hope u dont mind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jul 2008 05:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/birthday-problem/m-p/4072696#M973769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-01T05:39:05Z</dc:date>
    </item>
  </channel>
</rss>

