<?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 PLEASE HELP. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/1805143#M345645</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;        Please help i have to develop this object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a selection screen P_DATE:----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt; TYPE SY-DATUM.&lt;/P&gt;&lt;P&gt;Starting with the input parameter P_DATE, determine month MM and year YYYY and  select all records (with all fields) from the table TCURR using the following criteria:&lt;/P&gt;&lt;P&gt;TCURR-KURST = 'TCL'.&lt;/P&gt;&lt;P&gt;TCURR-GDATU = ' DATE FALLS WITHIN THE MONTH OF THE SELECTION SCREEN PARAMETER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.	For each entry selected, check that one and only one entry exists for each month, both for the current month (taken from the parameter), as well as for all months starting from January of the current year.  Please note - to do this, the program must take into account all key fields of table TCURR (KURST, FCURR, TCURR, GDATU), as multiple combinations of currencies exist within the table TCURR.  See the example below.&lt;/P&gt;&lt;P&gt;Example: suppose the following entries are present in table TCURR:&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   GBP     EUR     31.03.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   GBP     EUR     28.02.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   GBP     EUR     31.01.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   CAD     EUR     31.03.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   CAD     EUR     28.02.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   CAD     EUR     30.01.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   CAD     EUR     31.01.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   USD     EUR     31.03.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   USD     EUR     28.02.2006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the selection parameter = 20060331, the program should first select the 3 'TCL' entries with validity dates during the month of March.  Then, for each entry, it should check that one and only one entry exists for each month, starting from January of the current year, for the given exchange rate combination.&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	Following this logic, the first entry to be processed, combination GBP / EUR, is OK, and processing to calculate the "average rate" can continue.  However, the second entry to be processed, combination CAD / EUR, is in error, as two entries for this combination exist for the month of January.  This entry should therefore be skipped, and output in the report's processing log.&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	Finally, the third and final entry to be processed, combination USD / EUR, is also in error, as no entry is found for this currency combination for the month of January.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE HELP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Dec 2006 06:46:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-29T06:46:56Z</dc:date>
    <item>
      <title>PLEASE HELP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/1805143#M345645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys,&lt;/P&gt;&lt;P&gt;        Please help i have to develop this object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a selection screen P_DATE:----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt; TYPE SY-DATUM.&lt;/P&gt;&lt;P&gt;Starting with the input parameter P_DATE, determine month MM and year YYYY and  select all records (with all fields) from the table TCURR using the following criteria:&lt;/P&gt;&lt;P&gt;TCURR-KURST = 'TCL'.&lt;/P&gt;&lt;P&gt;TCURR-GDATU = ' DATE FALLS WITHIN THE MONTH OF THE SELECTION SCREEN PARAMETER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.	For each entry selected, check that one and only one entry exists for each month, both for the current month (taken from the parameter), as well as for all months starting from January of the current year.  Please note - to do this, the program must take into account all key fields of table TCURR (KURST, FCURR, TCURR, GDATU), as multiple combinations of currencies exist within the table TCURR.  See the example below.&lt;/P&gt;&lt;P&gt;Example: suppose the following entries are present in table TCURR:&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   GBP     EUR     31.03.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   GBP     EUR     28.02.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   GBP     EUR     31.01.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   CAD     EUR     31.03.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   CAD     EUR     28.02.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   CAD     EUR     30.01.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   CAD     EUR     31.01.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   USD     EUR     31.03.2006&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	TCL   USD     EUR     28.02.2006&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the selection parameter = 20060331, the program should first select the 3 'TCL' entries with validity dates during the month of March.  Then, for each entry, it should check that one and only one entry exists for each month, starting from January of the current year, for the given exchange rate combination.&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	Following this logic, the first entry to be processed, combination GBP / EUR, is OK, and processing to calculate the "average rate" can continue.  However, the second entry to be processed, combination CAD / EUR, is in error, as two entries for this combination exist for the month of January.  This entry should therefore be skipped, and output in the report's processing log.&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	Finally, the third and final entry to be processed, combination USD / EUR, is also in error, as no entry is found for this currency combination for the month of January.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLEASE HELP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 06:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/1805143#M345645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-29T06:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: PLEASE HELP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/1805144#M345646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ahmed ,&lt;/P&gt;&lt;P&gt;     1           First Thing select all the records of TCURR into an internal table .&lt;/P&gt;&lt;P&gt;2 . Second thing selects records based on input date into another internale table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now start the loop of internal table with step 2 ..&lt;/P&gt;&lt;P&gt; Within that read internal table first with month of Jan of current month .&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;proceed with month = month +  1.&lt;/P&gt;&lt;P&gt;read the table again .&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;then this is valid record .&lt;/P&gt;&lt;P&gt;but if any of if condition fails then that is not valid record and delete the record from ur second internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab2 .&lt;/P&gt;&lt;P&gt;do month times.&lt;/P&gt;&lt;P&gt;perform read_table_itab1 using rc month .&lt;/P&gt;&lt;P&gt;if rc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;delete itab2.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;month = month + 1.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward if useful .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 06:26:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/1805144#M345646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T06:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: PLEASE HELP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/1805145#M345647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  1. take the month &amp;amp; year in seperate var for comparison.&lt;/P&gt;&lt;P&gt;  2. then select all the record in a itab.&lt;/P&gt;&lt;P&gt;  3. seperate it with comparing the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;S.Barane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 06:58:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/1805145#M345647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T06:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: PLEASE HELP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/1805146#M345648</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;&lt;/P&gt;&lt;P&gt;look here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=581463&amp;amp;messageID=2242976" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=581463&amp;amp;messageID=2242976&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 07:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/1805146#M345648</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2007-01-03T07:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: PLEASE HELP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/1805147#M345649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ahmed pls try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : tcurr.&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       KURST like tcurr-kurst,&lt;/P&gt;&lt;P&gt;       FCURR like tcurr-fcurr,&lt;/P&gt;&lt;P&gt;       TCURR like tcurr-tcurr,&lt;/P&gt;&lt;P&gt;       GDATU like tcurr-gdatu,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab1 like itab occurs 0 with header line.&lt;/P&gt;&lt;P&gt;DATA : WTAB LIKE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter : p_date like sy-datum.&lt;/P&gt;&lt;P&gt;data : rep_of_mon type i,&lt;/P&gt;&lt;P&gt;         counter_of_month type i,&lt;/P&gt;&lt;P&gt;         diff(2) type n,&lt;/P&gt;&lt;P&gt;         month(2) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;month = p_date+4(2).&lt;/P&gt;&lt;P&gt;DIFF = MONTH.&lt;/P&gt;&lt;P&gt;*diff = month - 01.&lt;/P&gt;&lt;P&gt;itab-kurst = 'TCL'.&lt;/P&gt;&lt;P&gt;itab-fcurr = 'GBP'.&lt;/P&gt;&lt;P&gt;itab-tcurr = 'EUR'.&lt;/P&gt;&lt;P&gt;itab-gdatu = '20060331'.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;itab-kurst = 'TCL'.&lt;/P&gt;&lt;P&gt;itab-fcurr = 'GBP'.&lt;/P&gt;&lt;P&gt;itab-tcurr = 'EUR'.&lt;/P&gt;&lt;P&gt;itab-gdatu = '20060228'.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;itab-kurst = 'TCL'.&lt;/P&gt;&lt;P&gt;itab-fcurr = 'GBP'.&lt;/P&gt;&lt;P&gt;itab-tcurr = 'EUR'.&lt;/P&gt;&lt;P&gt;itab-gdatu = '20060131'.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-kurst = 'TCL'.&lt;/P&gt;&lt;P&gt;itab-fcurr = 'CAD'.&lt;/P&gt;&lt;P&gt;itab-tcurr = 'EUR'.&lt;/P&gt;&lt;P&gt;itab-gdatu = '20060331'.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-kurst = 'TCL'.&lt;/P&gt;&lt;P&gt;itab-fcurr = 'CAD'.&lt;/P&gt;&lt;P&gt;itab-tcurr = 'EUR'.&lt;/P&gt;&lt;P&gt;itab-gdatu = '20060228'.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-kurst = 'TCL'.&lt;/P&gt;&lt;P&gt;itab-fcurr = 'CAD'.&lt;/P&gt;&lt;P&gt;itab-tcurr = 'EUR'.&lt;/P&gt;&lt;P&gt;itab-gdatu = '20060130'.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-kurst = 'TCL'.&lt;/P&gt;&lt;P&gt;itab-fcurr = 'CAD'.&lt;/P&gt;&lt;P&gt;itab-tcurr = 'EUR'.&lt;/P&gt;&lt;P&gt;itab-gdatu = '20060131'.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-kurst = 'TCL'.&lt;/P&gt;&lt;P&gt;itab-fcurr = 'USD'.&lt;/P&gt;&lt;P&gt;itab-tcurr = 'EUR'.&lt;/P&gt;&lt;P&gt;itab-gdatu = '20060331'.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-kurst = 'TCL'.&lt;/P&gt;&lt;P&gt;itab-fcurr = 'USD'.&lt;/P&gt;&lt;P&gt;itab-tcurr = 'EUR'.&lt;/P&gt;&lt;P&gt;itab-gdatu = '20060228'.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by KURST FCURR TCURR GDATU descending.&lt;/P&gt;&lt;P&gt;itab1[] = itab[].&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at new gdatu.&lt;/P&gt;&lt;P&gt;clear rep_of_mon.&lt;/P&gt;&lt;P&gt;counter_of_month = counter_of_month + 1.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;rep_of_mon = rep_of_mon + 1.&lt;/P&gt;&lt;P&gt;if rep_of_mon gt 1.&lt;/P&gt;&lt;P&gt;delete itab where kurst = itab1-kurst and fcurr = itab1-fcurr and tcurr = itab1-tcurr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING ITAB1 TO WTAB.&lt;/P&gt;&lt;P&gt;AT END of tcurr.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; COUNTER_OF_MONTH =   COUNTER_OF_MONTH - 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if counter_of_month ne diff.&lt;/P&gt;&lt;P&gt;   delete itab where kurst = Wtab-kurst and fcurr = Wtab-fcurr and tcurr = Wtab-tcurr.&lt;/P&gt;&lt;P&gt;    clear counter_of_month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; else.&lt;/P&gt;&lt;P&gt; clear counter_of_month.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endAT.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jan 2007 10:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/1805147#M345649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-03T10:11:41Z</dc:date>
    </item>
  </channel>
</rss>

