<?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: Problem getting data in Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781974#M336982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Watch the DATE_FROM and the fact that multiple phone/fax numbers CAN exist.... see counter field ADR2-consnumber&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Dec 2006 19:52:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-06T19:52:27Z</dc:date>
    <item>
      <title>Problem getting data in Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781966#M336974</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 have the following code in my report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_adrc type table of adrc.&lt;/P&gt;&lt;P&gt;data: wa_adrc type adrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform get_address tables it_adrc&lt;/P&gt;&lt;P&gt;                        using  add_partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_adrc into wa_adrc.&lt;/P&gt;&lt;P&gt;      wa_output-country = wa_adrc-country.&lt;/P&gt;&lt;P&gt;      wa_output-state   = wa_adrc-region.&lt;/P&gt;&lt;P&gt;      wa_output-name_co = wa_adrc-name_co.&lt;/P&gt;&lt;P&gt;      wa_output-str_suppl1 = wa_adrc-str_suppl1.&lt;/P&gt;&lt;P&gt;      wa_output-su_adr1 = wa_adrc-street.&lt;/P&gt;&lt;P&gt;      wa_output-su_adr2 = wa_adrc-str_suppl3.&lt;/P&gt;&lt;P&gt;      wa_output-su_street5 = wa_adrc-location.&lt;/P&gt;&lt;P&gt;      wa_output-su_city = wa_adrc-city1.&lt;/P&gt;&lt;P&gt;      wa_output-su_zip  = wa_adrc-post_code1.&lt;/P&gt;&lt;P&gt;      wa_output-su_ph   = wa_adrc-tel_number.&lt;/P&gt;&lt;P&gt;      wa_output-su_fax  = wa_adrc-fax_number.&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;&lt;/P&gt;&lt;P&gt;form get_address  tables   it_adrc&lt;/P&gt;&lt;P&gt;                  using    add_partner.&lt;/P&gt;&lt;P&gt;  data: addrnum type but020-addrnumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select * into corresponding fields of table it_adrc&lt;/P&gt;&lt;P&gt;           from ( adrc&lt;/P&gt;&lt;P&gt;           inner join but020&lt;/P&gt;&lt;P&gt;           on but020&lt;SUB&gt;addrnumber = adrc&lt;/SUB&gt;addrnumber )&lt;/P&gt;&lt;P&gt;           where but020~partner = add_partner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " GET_ADDRESS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is i am getting all the data for all the fields except for tel_number and fax_number.&lt;/P&gt;&lt;P&gt;When I debug i see that the values are not coming to wa_adrc though the tel_number and fax_number have values and it doesnt give any error. I dont understand why? Can someone please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 18:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781966#M336974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T18:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data in Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781967#M336975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In table ADRC - do you have multiple entries for the same address?  Note that ADRC has a composite key with 2 additional fields.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would think that you are getting an ADRC record with an earlier DATE_FROM on it... that has a blank phone and FAX number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 18:30:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781967#M336975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T18:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data in Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781968#M336976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes John, when I go to BP tcode, I see the persons addr valid_from and valid_to dates are 02/17/2006 and 12/31/9999 respectively where as when i go to ADRC table i see that date_from is 01/01/0001 and date_to is 12/21/9999 but i see that there are values for tel_number and fax_number for this date(01/01/001).&lt;/P&gt;&lt;P&gt;hope i am clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this is causing the problem but how can I overcome this? do you have any solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 19:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781968#M336976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T19:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data in Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781969#M336977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just curious... in debug, does your ADRC internal table have 2 entries?  Are both phone/fax numbers empty?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 19:13:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781969#M336977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T19:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data in Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781970#M336978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it has only one entry and yeah both tel_number and fax_number are empty when i debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 19:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781970#M336978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T19:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data in Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781971#M336979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One suggestions, certain SAP transactions will store multiple addresses. For example IW31/32/33 PM work order has more than 2 address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;I see the persons addr valid_from and valid_to dates are 02/17/2006 and 12/31/9999&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;where as when i go to ADRC table i see that date_from is 01/01/0001 and date_to is 12/21/9999&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the above info address which has the tel_number and fax_number might be different. Try to search for the address using the  tel_number and fax_number values you expect in ADRC. That might give you some clarity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kathirvel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 19:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781971#M336979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T19:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data in Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781972#M336980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will find the phone/fax numbers in table ADR2.  Use ADDRNUMBER from ADRC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 19:48:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781972#M336980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T19:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data in Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781973#M336981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into corresponding fields of table it_adrc&lt;/P&gt;&lt;P&gt;  from ( adrc&lt;/P&gt;&lt;P&gt;  inner join but020&lt;/P&gt;&lt;P&gt;  on but020&lt;SUB&gt;addrnumber = adrc&lt;/SUB&gt;addrnumber )&lt;/P&gt;&lt;P&gt;    inner join adr2&lt;/P&gt;&lt;P&gt;    on adr2&lt;SUB&gt;addrnumber = adrc&lt;/SUB&gt;addrnumber&lt;/P&gt;&lt;P&gt;    where but020~partner = par.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 19:51:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781973#M336981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T19:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data in Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781974#M336982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Watch the DATE_FROM and the fact that multiple phone/fax numbers CAN exist.... see counter field ADR2-consnumber&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 19:52:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781974#M336982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T19:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data in Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781975#M336983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Note that FAX is in table adr3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into corresponding fields of table it_adrc&lt;/P&gt;&lt;P&gt;  from ( adrc&lt;/P&gt;&lt;P&gt;  inner join but020&lt;/P&gt;&lt;P&gt;  on but020&lt;SUB&gt;addrnumber = adrc&lt;/SUB&gt;addrnumber )&lt;/P&gt;&lt;P&gt;    inner join adr2&lt;/P&gt;&lt;P&gt;    on adr2&lt;SUB&gt;addrnumber = adrc&lt;/SUB&gt;addrnumber&lt;/P&gt;&lt;P&gt;    inner join adr3&lt;/P&gt;&lt;P&gt;    on adr3&lt;SUB&gt;addrnumber = adrc&lt;/SUB&gt;addrnumber&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    where but020~partner = par.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 20:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781975#M336983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T20:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem getting data in Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781976#M336984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works...yes i am able to get the tel_number( i didnt try the fax yet) but now i see what you were trying to say by that multiple entries.&lt;/P&gt;&lt;P&gt;now i have multiple entries for some records and the later entry is overwriting the first entry. what should i do now? Any help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 20:33:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-getting-data-in-report/m-p/1781976#M336984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T20:33:27Z</dc:date>
    </item>
  </channel>
</rss>

