<?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 not getting data into 3rd int table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-into-3rd-int-table/m-p/2992437#M706723</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;         here i ve data in 2 internal tables. this data i want store into 3rd internal table, here am adding with inner join but am not getting data into 3rd one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; plz check my logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REPORT  ZEXCHANGE_RETES                         .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : tcurr,           " Exchange Rates&lt;/P&gt;&lt;P&gt;         /msg/rabr.       " Account (Posting Headers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : l_date type datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : begin of t_tcurr,&lt;/P&gt;&lt;P&gt;        kurst like tcurr-kurst,  " Exchange Rate type&lt;/P&gt;&lt;P&gt;        fcurr like tcurr-fcurr,   " From Currrency&lt;/P&gt;&lt;P&gt;        gdatu like tcurr-gdatu,   " Date as of which&lt;/P&gt;&lt;P&gt;    end of t_tcurr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : begin of t_rabr,&lt;/P&gt;&lt;P&gt;        OW_WHGNR like /msg/rabr-OW_WHGNR,&lt;/P&gt;&lt;P&gt;        bil_dat like /msg/rabr-bil_dat,&lt;/P&gt;&lt;P&gt;        abrnr like /msg/rabr-abrnr,&lt;/P&gt;&lt;P&gt;       end of t_rabr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : begin of t_output,&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;        gdatu like tcurr-gdatu,&lt;/P&gt;&lt;P&gt;        OW_WHGNR like /msg/rabr-OW_WHGNR,&lt;/P&gt;&lt;P&gt;        bil_dat like /msg/rabr-bil_dat,&lt;/P&gt;&lt;P&gt;        abrnr like /msg/rabr-abrnr,&lt;/P&gt;&lt;P&gt;       end of t_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : it_output TYPE STANDARD TABLE OF t_output WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        wa_output TYPE t_output.&lt;/P&gt;&lt;P&gt; DATA : it_rabr TYPE STANDARD TABLE OF t_rabr WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        wa_rabr TYPE t_rabr.&lt;/P&gt;&lt;P&gt; DATA : it_tcurr TYPE STANDARD TABLE OF t_tcurr WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        wa_tcurr TYPE t_tcurr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;getting data into 1st itab&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT kurst fcurr gdatu&lt;/P&gt;&lt;P&gt;          from tcurr into table it_tcurr&lt;/P&gt;&lt;P&gt;          where kurst EQ 'M'.&lt;/P&gt;&lt;P&gt;          SORT it_tcurr by  fcurr GDATU DESCENDING.&lt;/P&gt;&lt;P&gt;          delete adjacent duplicates from it_tcurr comparing fcurr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;getting data into 2nd itab&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   SELECT * FROM /msg/rabr into CORRESPONDING FIELDS OF TABLE it_rabr.&lt;/P&gt;&lt;P&gt;    SORT it_rabr BY OW_WHGNR bil_dat abrnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;getting data into 3rd itab&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT t~kurst&lt;/P&gt;&lt;P&gt;        t~fcurr&lt;/P&gt;&lt;P&gt;        t~gdatu&lt;/P&gt;&lt;P&gt;        r~OW_WHGNR&lt;/P&gt;&lt;P&gt;        r~bil_dat&lt;/P&gt;&lt;P&gt;        r~abrnr&lt;/P&gt;&lt;P&gt;        FROM tcurr as t INNER JOIN&lt;/P&gt;&lt;P&gt;        /msg/rabr as r on t&lt;SUB&gt;fcurr EQ r&lt;/SUB&gt;OW_WHGNR into table it_output&lt;/P&gt;&lt;P&gt;        WHERE r&lt;SUB&gt;abrnr BETWEEN '00000000000000800251' AND '00000000000000800300' AND r&lt;/SUB&gt;bil_dat &amp;lt; wa_tcurr-gdatu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;printing output&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at it_output into wa_output.&lt;/P&gt;&lt;P&gt; WRITE: /10 wa_output-kurst,&lt;/P&gt;&lt;P&gt;         15 wa_output-fcurr,&lt;/P&gt;&lt;P&gt;         25 wa_output-gdatu,&lt;/P&gt;&lt;P&gt;         50 wa_output-OW_WHGNR,&lt;/P&gt;&lt;P&gt;         60 wa_output-bil_dat,&lt;/P&gt;&lt;P&gt;         80 wa_output-abrnr.&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; here am not getting data into 3rd i tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Nov 2007 02:33:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-07T02:33:25Z</dc:date>
    <item>
      <title>not getting data into 3rd int table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-into-3rd-int-table/m-p/2992437#M706723</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;         here i ve data in 2 internal tables. this data i want store into 3rd internal table, here am adding with inner join but am not getting data into 3rd one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; plz check my logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  REPORT  ZEXCHANGE_RETES                         .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : tcurr,           " Exchange Rates&lt;/P&gt;&lt;P&gt;         /msg/rabr.       " Account (Posting Headers)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : l_date type datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : begin of t_tcurr,&lt;/P&gt;&lt;P&gt;        kurst like tcurr-kurst,  " Exchange Rate type&lt;/P&gt;&lt;P&gt;        fcurr like tcurr-fcurr,   " From Currrency&lt;/P&gt;&lt;P&gt;        gdatu like tcurr-gdatu,   " Date as of which&lt;/P&gt;&lt;P&gt;    end of t_tcurr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : begin of t_rabr,&lt;/P&gt;&lt;P&gt;        OW_WHGNR like /msg/rabr-OW_WHGNR,&lt;/P&gt;&lt;P&gt;        bil_dat like /msg/rabr-bil_dat,&lt;/P&gt;&lt;P&gt;        abrnr like /msg/rabr-abrnr,&lt;/P&gt;&lt;P&gt;       end of t_rabr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : begin of t_output,&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;        gdatu like tcurr-gdatu,&lt;/P&gt;&lt;P&gt;        OW_WHGNR like /msg/rabr-OW_WHGNR,&lt;/P&gt;&lt;P&gt;        bil_dat like /msg/rabr-bil_dat,&lt;/P&gt;&lt;P&gt;        abrnr like /msg/rabr-abrnr,&lt;/P&gt;&lt;P&gt;       end of t_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : it_output TYPE STANDARD TABLE OF t_output WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        wa_output TYPE t_output.&lt;/P&gt;&lt;P&gt; DATA : it_rabr TYPE STANDARD TABLE OF t_rabr WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        wa_rabr TYPE t_rabr.&lt;/P&gt;&lt;P&gt; DATA : it_tcurr TYPE STANDARD TABLE OF t_tcurr WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;        wa_tcurr TYPE t_tcurr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;getting data into 1st itab&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT kurst fcurr gdatu&lt;/P&gt;&lt;P&gt;          from tcurr into table it_tcurr&lt;/P&gt;&lt;P&gt;          where kurst EQ 'M'.&lt;/P&gt;&lt;P&gt;          SORT it_tcurr by  fcurr GDATU DESCENDING.&lt;/P&gt;&lt;P&gt;          delete adjacent duplicates from it_tcurr comparing fcurr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;getting data into 2nd itab&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   SELECT * FROM /msg/rabr into CORRESPONDING FIELDS OF TABLE it_rabr.&lt;/P&gt;&lt;P&gt;    SORT it_rabr BY OW_WHGNR bil_dat abrnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;getting data into 3rd itab&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT t~kurst&lt;/P&gt;&lt;P&gt;        t~fcurr&lt;/P&gt;&lt;P&gt;        t~gdatu&lt;/P&gt;&lt;P&gt;        r~OW_WHGNR&lt;/P&gt;&lt;P&gt;        r~bil_dat&lt;/P&gt;&lt;P&gt;        r~abrnr&lt;/P&gt;&lt;P&gt;        FROM tcurr as t INNER JOIN&lt;/P&gt;&lt;P&gt;        /msg/rabr as r on t&lt;SUB&gt;fcurr EQ r&lt;/SUB&gt;OW_WHGNR into table it_output&lt;/P&gt;&lt;P&gt;        WHERE r&lt;SUB&gt;abrnr BETWEEN '00000000000000800251' AND '00000000000000800300' AND r&lt;/SUB&gt;bil_dat &amp;lt; wa_tcurr-gdatu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;printing output&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at it_output into wa_output.&lt;/P&gt;&lt;P&gt; WRITE: /10 wa_output-kurst,&lt;/P&gt;&lt;P&gt;         15 wa_output-fcurr,&lt;/P&gt;&lt;P&gt;         25 wa_output-gdatu,&lt;/P&gt;&lt;P&gt;         50 wa_output-OW_WHGNR,&lt;/P&gt;&lt;P&gt;         60 wa_output-bil_dat,&lt;/P&gt;&lt;P&gt;         80 wa_output-abrnr.&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; here am not getting data into 3rd i tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 02:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-into-3rd-int-table/m-p/2992437#M706723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T02:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: not getting data into 3rd int table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-into-3rd-int-table/m-p/2992438#M706724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AND r~bil_dat &amp;lt; wa_tcurr-gdatu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't find the place where you fill WA_TCURR. It would mean that wa_tcurr-gdatu is 'initial' therefore the condition is never reached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 02:42:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-into-3rd-int-table/m-p/2992438#M706724</guid>
      <dc:creator>ricardo_fernndezvzquez3</dc:creator>
      <dc:date>2007-11-07T02:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: not getting data into 3rd int table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-into-3rd-int-table/m-p/2992439#M706725</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;The select command is the most fundamental function of writing ABAP programs allowing the retrieval of data from SAP database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try filling the 3rd internal table with Loop ... Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at t_tcurr.&lt;/P&gt;&lt;P&gt;Read table t_rabr with key field1 = t_tcurr-field1.&lt;/P&gt;&lt;P&gt;If sy-subrc  = 0.&lt;/P&gt;&lt;P&gt;Move t_tcurr-field1 = itab_final-field1.&lt;/P&gt;&lt;P&gt;Move t_tcurr-field2 = itab_final-field2.&lt;/P&gt;&lt;P&gt;Move  t_rabr -field3 = itab_final-field3.&lt;/P&gt;&lt;P&gt;Move  t_rabr -field4 = itab_final-field4.&lt;/P&gt;&lt;P&gt;Append itab_final.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruthra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 02:56:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-into-3rd-int-table/m-p/2992439#M706725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T02:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: not getting data into 3rd int table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-into-3rd-int-table/m-p/2992440#M706726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruthra,&lt;/P&gt;&lt;P&gt;               Thsnks for ue replsy. we can move data to 3rd table as u told.&lt;/P&gt;&lt;P&gt;but there is no con check, i want to check the condition for  Bil_dat and abrnr fields.&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;sudharsan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 04:21:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-into-3rd-int-table/m-p/2992440#M706726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T04:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: not getting data into 3rd int table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-into-3rd-int-table/m-p/2992441#M706727</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;If you want to apply some condition, then check the condition before you move the field values from t_rabr to final table within the loop..endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruthra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2007 06:52:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/not-getting-data-into-3rd-int-table/m-p/2992441#M706727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-07T06:52:58Z</dc:date>
    </item>
  </channel>
</rss>

