<?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: eban table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179211#M125246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I change the b&lt;SUB&gt;matnr in so_matnr to c&lt;/SUB&gt;matnr in so_matnr?Also, will joining cooi and eban on matnr affect the selection of records?Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Feb 2006 07:34:23 GMT</pubDate>
    <dc:creator>aris_hidalgo</dc:creator>
    <dc:date>2006-02-28T07:34:23Z</dc:date>
    <item>
      <title>eban table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179206#M125241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to modify a select statement where instead of using cooi-matnr I want to use eban-matnr. The problem is how can I join the table EBAN with PRPS and COOI? Do I really need to add eban using join? or can I make another select statement?I have pasted below the select statement that I am trying to modify. Thanks guys and take care!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;psphi b&lt;/SUB&gt;refbn b~lifnr&lt;/P&gt;&lt;P&gt;        FROM prps AS a INNER JOIN cooi AS b&lt;/P&gt;&lt;P&gt;           ON a&lt;SUB&gt;objnr = b&lt;/SUB&gt;objnr&lt;/P&gt;&lt;P&gt;          INTO CORRESPONDING FIELDS OF it_hdr&lt;/P&gt;&lt;P&gt;        WHERE a~psphi IN so_psphi&lt;/P&gt;&lt;P&gt;          AND a~pbukr = pa_bukrs&lt;/P&gt;&lt;P&gt;          AND a~erdat LE v_budat&lt;/P&gt;&lt;P&gt;          AND b~refbn IN so_ebeln&lt;/P&gt;&lt;P&gt;          AND b~lifnr IN so_lifnr&lt;/P&gt;&lt;P&gt;          AND b~matnr IN so_matnr&lt;/P&gt;&lt;P&gt;          AND b~rfart = 'P'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 07:00:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179206#M125241</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-02-28T07:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: eban table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179207#M125242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ooops, here is the complete code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;psphi b&lt;/SUB&gt;refbn b~lifnr&lt;/P&gt;&lt;P&gt;        FROM prps AS a INNER JOIN cooi AS b&lt;/P&gt;&lt;P&gt;           ON a&lt;SUB&gt;objnr = b&lt;/SUB&gt;objnr&lt;/P&gt;&lt;P&gt;          INTO CORRESPONDING FIELDS OF it_hdr&lt;/P&gt;&lt;P&gt;        WHERE a~psphi IN so_psphi&lt;/P&gt;&lt;P&gt;          AND a~pbukr = pa_bukrs&lt;/P&gt;&lt;P&gt;          AND a~erdat LE v_budat&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         AND a~erdat in so_augdt&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          AND b~refbn IN so_ebeln&lt;/P&gt;&lt;P&gt;          AND b~lifnr IN so_lifnr&lt;/P&gt;&lt;P&gt;          AND b~matnr IN so_matnr&lt;/P&gt;&lt;P&gt;          AND b~rfart = 'P'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE name1 FROM lfa1 INTO it_hdr-name1&lt;/P&gt;&lt;P&gt;          WHERE lifnr = it_hdr-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if not pa_augdt is initial.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   IF NOT so_augdt[] IS INITIAL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CLEAR ekko.&lt;/P&gt;&lt;P&gt;      SELECT SINGLE * FROM ekko&lt;/P&gt;&lt;P&gt;       WHERE ebeln = it_hdr-refbn&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       AND bedat IN so_augdt.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         and bedat LE pa_augdt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        APPEND it_hdr.&lt;/P&gt;&lt;P&gt;        CLEAR it_hdr.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      APPEND it_hdr.&lt;/P&gt;&lt;P&gt;      CLEAR it_hdr.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 07:01:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179207#M125242</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-02-28T07:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: eban table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179208#M125243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT a&lt;SUB&gt;psphi b&lt;/SUB&gt;refbn b~lifnr&lt;/P&gt;&lt;P&gt;FROM ( prps AS a INNER JOIN cooi AS b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;objnr = b&lt;/SUB&gt;objnr ) INNER JOIN eban&lt;/P&gt;&lt;P&gt;ON b&lt;SUB&gt;matnr = eban&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF it_hdr&lt;/P&gt;&lt;P&gt;WHERE a~psphi IN so_psphi&lt;/P&gt;&lt;P&gt;AND eban~lifnr IN so_lifnr&lt;/P&gt;&lt;P&gt;AND a~pbukr = pa_bukrs&lt;/P&gt;&lt;P&gt;AND a~erdat LE v_budat&lt;/P&gt;&lt;P&gt;AND b~refbn IN so_ebeln&lt;/P&gt;&lt;P&gt;AND b&lt;SUB&gt;lifnr EQ eban&lt;/SUB&gt;lifnr&lt;/P&gt;&lt;P&gt;AND b~matnr IN so_matnr&lt;/P&gt;&lt;P&gt;AND b~rfart = 'P'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 07:05:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179208#M125243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T07:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: eban table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179209#M125244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello wenceslaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using your code but I still seem not to find any records when I type a certain matnr in the selection screen. But it works fine when I use other selection instead of putting the material number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 07:22:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179209#M125244</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-02-28T07:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: eban table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179210#M125245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT a&lt;SUB&gt;psphi b&lt;/SUB&gt;refbn b~lifnr&lt;/P&gt;&lt;P&gt;FROM ( prps AS a INNER JOIN cooi AS b&lt;/P&gt;&lt;P&gt;ON a&lt;SUB&gt;objnr = b&lt;/SUB&gt;objnr )&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt;u can try this join eban and c on the same as matnr is common .&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt; as b INNER JOIN eban as c on &lt;/P&gt;&lt;P&gt;ON b&lt;SUB&gt;matnr = c&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;*************************&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF it_hdr&lt;/P&gt;&lt;P&gt;WHERE a~psphi IN so_psphi&lt;/P&gt;&lt;P&gt;AND eban~lifnr IN so_lifnr&lt;/P&gt;&lt;P&gt;AND a~pbukr = pa_bukrs&lt;/P&gt;&lt;P&gt;AND a~erdat LE v_budat&lt;/P&gt;&lt;P&gt;AND b~refbn IN so_ebeln&lt;/P&gt;&lt;P&gt;AND b&lt;SUB&gt;lifnr EQ eban&lt;/SUB&gt;lifnr&lt;/P&gt;&lt;P&gt;AND b~matnr IN so_matnr&lt;/P&gt;&lt;P&gt;AND b~rfart = 'P'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 07:29:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179210#M125245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T07:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: eban table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179211#M125246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I change the b&lt;SUB&gt;matnr in so_matnr to c&lt;/SUB&gt;matnr in so_matnr?Also, will joining cooi and eban on matnr affect the selection of records?Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 07:34:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179211#M125246</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-02-28T07:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: eban table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179212#M125247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The common fields are EBAN( banfn , bnfpo)&lt;/P&gt;&lt;P&gt;And COOI(refbn,rfpos) for the two tables here is the main join criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And matnr is in both the tables, in addition to the above So u  can go for it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flow as per ur code is from COOI to EBAN so no need t change so_matnr.&lt;/P&gt;&lt;P&gt;In case u don&amp;#146;t get a hit try that option.&lt;/P&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;Joining cooi and eban will not affect the code just check for a particular record in cooi table the first criteria as u need to look into items as well .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially select the record for minimum range in ur select options okay.&lt;/P&gt;&lt;P&gt;Then next check the same in the table cooi and eban.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don&amp;#146;t worry as both the tables are transparent table.&lt;/P&gt;&lt;P&gt;let us know after joining the eban with cooi if u ra able to retrieve the correct record .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 07:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179212#M125247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-28T07:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: eban table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179213#M125248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If its not too much, can you please give me a sample code.Thanks so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2006 08:44:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/eban-table/m-p/1179213#M125248</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-02-28T08:44:52Z</dc:date>
    </item>
  </channel>
</rss>

