<?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 Logic needed . Please help me. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-please-help-me/m-p/1516137#M237538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to get PO number to pass into one of the variable.&lt;/P&gt;&lt;P&gt;To achieve this (as per spec given)I need to do below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;get record REGUP-BELNR (if document &amp;gt;= XXXXXXXXXX or &amp;lt;= XXXXXXXXXX) then invoice is associated to PO.  &lt;/P&gt;&lt;P&gt;Store values REGUP-BUKRS, REGUP-BELNR, and REGUP-GJAHR, go to table BKPF and populate fields with stored values (BUKRS, BELNR, GJAHR).  Store value BKPF-AWKEY (first 10 digits is BELNR and last 4 is GJAHR), go to table RSEG and populate fields with stored values (BELNR, GJAHR).  Store value EBELN and populate IDOC record.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;get record REGUP-BELNR (if document &amp;gt;= XXXXXXXXXX or &amp;lt;= XXXXXXXXXX) then invoice is associated to PO.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;I have seen in DB TABLES,for the above I have multiple records getting selected.&lt;/P&gt;&lt;P&gt;Based on the above selected REGUP-BUKRS, REGUP-BELNR, and REGUP-GJAHR, am selecting from BKPF table ....so here also again I have multpiple records.&lt;/P&gt;&lt;P&gt;After that RSEG also having multiple records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How  to get single PO out of the above specs ?PLEASE SUGGEST ME ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Aug 2006 15:29:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-28T15:29:56Z</dc:date>
    <item>
      <title>Logic needed . Please help me.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-please-help-me/m-p/1516137#M237538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to get PO number to pass into one of the variable.&lt;/P&gt;&lt;P&gt;To achieve this (as per spec given)I need to do below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;get record REGUP-BELNR (if document &amp;gt;= XXXXXXXXXX or &amp;lt;= XXXXXXXXXX) then invoice is associated to PO.  &lt;/P&gt;&lt;P&gt;Store values REGUP-BUKRS, REGUP-BELNR, and REGUP-GJAHR, go to table BKPF and populate fields with stored values (BUKRS, BELNR, GJAHR).  Store value BKPF-AWKEY (first 10 digits is BELNR and last 4 is GJAHR), go to table RSEG and populate fields with stored values (BELNR, GJAHR).  Store value EBELN and populate IDOC record.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;get record REGUP-BELNR (if document &amp;gt;= XXXXXXXXXX or &amp;lt;= XXXXXXXXXX) then invoice is associated to PO.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;I have seen in DB TABLES,for the above I have multiple records getting selected.&lt;/P&gt;&lt;P&gt;Based on the above selected REGUP-BUKRS, REGUP-BELNR, and REGUP-GJAHR, am selecting from BKPF table ....so here also again I have multpiple records.&lt;/P&gt;&lt;P&gt;After that RSEG also having multiple records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How  to get single PO out of the above specs ?PLEASE SUGGEST ME ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2006 15:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-please-help-me/m-p/1516137#M237538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-28T15:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Logic needed . Please help me.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-please-help-me/m-p/1516138#M237539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use &amp;lt;b&amp;gt;Sort&amp;lt;/b&amp;gt; statement followed by &amp;lt;b&amp;gt;Delete adjacent duplicates&amp;lt;/b&amp;gt; to get single PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2006 15:32:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-please-help-me/m-p/1516138#M237539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-28T15:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Logic needed . Please help me.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-please-help-me/m-p/1516139#M237540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;    Use select single to get single PO&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2006 15:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-needed-please-help-me/m-p/1516139#M237540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-28T15:34:22Z</dc:date>
    </item>
  </channel>
</rss>

