<?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: Please Help! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/2956057#M697309</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;you have to use JOIN, read the documentation in SAPhelp and come back if you need more information. If you tell the name of the tables I can help more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2007 14:50:16 GMT</pubDate>
    <dc:creator>JozsefSzikszai</dc:creator>
    <dc:date>2007-10-09T14:50:16Z</dc:date>
    <item>
      <title>Please Help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/2956056#M697308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I populate one internal table by taking data from three different database tables? because the fields of the internal table which I have declared are taken from three different tables. Can any one please tell me how will be the select statement ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 14:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/2956056#M697308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T14:47: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/2956057#M697309</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;you have to use JOIN, read the documentation in SAPhelp and come back if you need more information. If you tell the name of the tables I can help more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 14:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/2956057#M697309</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-10-09T14:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/2956058#M697310</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;check this program to extract data from two internal tables in to final table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to combine three internal tables, there should be some common link between the three internal tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : KNA1,KNVV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-101.&lt;/P&gt;&lt;P&gt;select-options : p_kunnr like kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK b1.&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;data :BEGIN OF T_KNA1 OCCURS 0,&lt;/P&gt;&lt;P&gt;      KUNNR LIKE KNA1-KUNNR,&lt;/P&gt;&lt;P&gt;      LAND1 LIKE KNA1-LAND1,&lt;/P&gt;&lt;P&gt;      NAME1 LIKE KNA1-NAME1,&lt;/P&gt;&lt;P&gt;      END OF T_KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :BEGIN OF T_KNVV OCCURS 0,&lt;/P&gt;&lt;P&gt;      KUNNR LIKE KNA1-KUNNR,&lt;/P&gt;&lt;P&gt;      VKORG LIKE KNA1-VKORG&lt;/P&gt;&lt;P&gt;      VTEWG LIKE KNA1-VTEWG,&lt;/P&gt;&lt;P&gt;      END OF T_KNVV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;FINAL INTERNAL TABLE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF T_FINAL OCCURS 0,&lt;/P&gt;&lt;P&gt;       KUNNR LIKE KNA1-KUNNR,&lt;/P&gt;&lt;P&gt;      LAND1 LIKE KNA1-LAND1,&lt;/P&gt;&lt;P&gt;      NAME1 LIKE KNA1-NAME1,&lt;/P&gt;&lt;P&gt;      VKORG LIKE KNA1-VKORG&lt;/P&gt;&lt;P&gt;      VTEWG LIKE KNA1-VTEWG,&lt;/P&gt;&lt;P&gt;      END OF T_FINAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT KUNNR LAND1 NAME1 FROM KNA1 INTO TABLE T_KNA1 WHERE KUNNR IN P_KUNNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select KUNNR&lt;/P&gt;&lt;P&gt;        VKORG VTEWG&lt;/P&gt;&lt;P&gt;        from KNVV&lt;/P&gt;&lt;P&gt;        into CORRESPONDING FIELDS OF table T_KNVV&lt;/P&gt;&lt;P&gt;        for all entries in T_KNA1&lt;/P&gt;&lt;P&gt;        where KUNNR = T_KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE T_KNA1-KUNNR TO T_FINAL-KUNNR.&lt;/P&gt;&lt;P&gt;MOVE T_KNA1-LAND1 TO T_FINAL-LAND1.&lt;/P&gt;&lt;P&gt;MOVE T_KNA1-NAME1 TO T_FINAL-NAME1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE T_KNVV WITH KEY KUNNR = T_KNA1-KUNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE T_KNVV-VKORG TO T_FINAL-VKORG.&lt;/P&gt;&lt;P&gt;MOVE T_KNVV-VTEWG TO T_FINAL-VTEWG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND T_FINAL.&lt;/P&gt;&lt;P&gt;CLEAR T_FINAL.&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;LOOP AT T_FINAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: (FIELDS U WANT TO DISPLAY)&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;regards&lt;/P&gt;&lt;P&gt;siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 14:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/2956058#M697310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T14:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/2956059#M697311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;declare 1 internal table itab say with all fields u want.&lt;/P&gt;&lt;P&gt;say itab1 , itab2 , itab3 are the tables storing your selected data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;  move fields to corresponding fields of itab.&lt;/P&gt;&lt;P&gt;  read itab1.&lt;/P&gt;&lt;P&gt;   if sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;     populate itab with values from itab1.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;  read itab2.&lt;/P&gt;&lt;P&gt;   if sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;     populate itab with values from itab2.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;..... repeat this for itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;reward if solved**&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 14:51:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help/m-p/2956059#M697311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-09T14:51:45Z</dc:date>
    </item>
  </channel>
</rss>

