<?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: need help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3857097#M927149</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;Try with the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_ebeln for ekpo-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       ebeln like ekpo-ebeln,&lt;/P&gt;&lt;P&gt;       ebelp like ekpo-ebelp,&lt;/P&gt;&lt;P&gt;       matnr like ekpo-matnr,&lt;/P&gt;&lt;P&gt;       bismt like mara-bismt,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;ebeln a&lt;/SUB&gt;ebelp a&lt;SUB&gt;matnr b&lt;/SUB&gt;bismt into table itab from ekpo as a inner join mara as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;matnr = b&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;where a~ebeln in s_ebeln.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 May 2008 07:49:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-16T07:49:53Z</dc:date>
    <item>
      <title>need help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3857095#M927147</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;&lt;/P&gt;&lt;P&gt;i have developed a simple report with follwing 2  select statements.&lt;/P&gt;&lt;P&gt;but the problem is as recommended to use join for these 2 select statement .&lt;/P&gt;&lt;P&gt;please help me how to write code for join and do i need to make any changes in the following loop statement to pass the fields to final internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT  ebeln&lt;/P&gt;&lt;P&gt;         ebelp&lt;/P&gt;&lt;P&gt;         matnr&lt;/P&gt;&lt;P&gt;         from ekpo&lt;/P&gt;&lt;P&gt;         into table gt_ekpo&lt;/P&gt;&lt;P&gt;         where ebeln in s_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check gt_ekpo[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  matnr&lt;/P&gt;&lt;P&gt;        bismt&lt;/P&gt;&lt;P&gt;        from mara&lt;/P&gt;&lt;P&gt;        into table gt_mara&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN gt_ekpo&lt;/P&gt;&lt;P&gt;        where matnr eq gt_ekpo-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT gt_ekpo WHERE ebeln NE ' ' AND matnr NE ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     MOVE gt_ekpo-ebeln  TO  gt_final-ebeln.&lt;/P&gt;&lt;P&gt;     MOVE gt_ekpo-matnr  TO  gt_final-matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; READ TABLE gt_mara WITH KEY matnr = gt_ekpo-matnr BINARY SEARCH.&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 gt_mara-bismt  TO  gt_final-bismt.&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;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 07:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3857095#M927147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T07:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3857096#M927148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT a&lt;SUB&gt;ebeln a&lt;/SUB&gt;ebelp a&lt;SUB&gt;matnr b&lt;/SUB&gt;bismt&lt;/P&gt;&lt;P&gt;from ekpo as a inner join mara as b &lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;matnr = b&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;into table gt_final&lt;/P&gt;&lt;P&gt;where a~ebeln in s_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please mark all the helpful answers&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 07:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3857096#M927148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T07:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3857097#M927149</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;Try with the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_ebeln for ekpo-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       ebeln like ekpo-ebeln,&lt;/P&gt;&lt;P&gt;       ebelp like ekpo-ebelp,&lt;/P&gt;&lt;P&gt;       matnr like ekpo-matnr,&lt;/P&gt;&lt;P&gt;       bismt like mara-bismt,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;ebeln a&lt;/SUB&gt;ebelp a&lt;SUB&gt;matnr b&lt;/SUB&gt;bismt into table itab from ekpo as a inner join mara as b&lt;/P&gt;&lt;P&gt;on a&lt;SUB&gt;matnr = b&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;where a~ebeln in s_ebeln.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 07:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3857097#M927149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T07:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3857098#M927150</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;Something like that :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT e&lt;SUB&gt;ebln e&lt;/SUB&gt;eblp e&lt;SUB&gt;matnr m&lt;/SUB&gt;bismt&lt;/P&gt;&lt;P&gt;  INTO TABLE gt_table &lt;/P&gt;&lt;P&gt;  FROM ekpo AS e INNER JOIN mara AS m&lt;/P&gt;&lt;P&gt;    ON e&lt;SUB&gt;matnr = m&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt; WHERE e~matnr &amp;lt;&amp;gt; ' '&lt;/P&gt;&lt;P&gt;   AND e~ebeln &amp;lt;&amp;gt; ' '&lt;/P&gt;&lt;P&gt;   AND e~ebeln IN s_ebeln.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 07:55:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help/m-p/3857098#M927150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T07:55:27Z</dc:date>
    </item>
  </channel>
</rss>

