<?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 Fetch the amt value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211234#M1205451</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;  Am new to ABAP..Similar kind of post was there but soln was not provided..Need  help from you..In my code have written as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gi_amt&lt;/P&gt;&lt;P&gt;select  belnr gjahr dmbtr into table gi_bseg from bseg&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gi_amt is a table which contains the value of EKBE which has the details of invoice reciept ,goods reciept and service entry.From the old post it was given as VGABE has the value of 1 and 2 which helps to differenctiate the invoice reciept and Goods reciept.My pblm is also same as posted before ie)have to compare the amount of invoice reciept and goods reciept alone.How to do it.Please help in coding&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2009 11:26:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-12T11:26:38Z</dc:date>
    <item>
      <title>Fetch the amt value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211234#M1205451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;  Am new to ABAP..Similar kind of post was there but soln was not provided..Need  help from you..In my code have written as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gi_amt&lt;/P&gt;&lt;P&gt;select  belnr gjahr dmbtr into table gi_bseg from bseg&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gi_amt is a table which contains the value of EKBE which has the details of invoice reciept ,goods reciept and service entry.From the old post it was given as VGABE has the value of 1 and 2 which helps to differenctiate the invoice reciept and Goods reciept.My pblm is also same as posted before ie)have to compare the amount of invoice reciept and goods reciept alone.How to do it.Please help in coding&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 11:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211234#M1205451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T11:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the amt value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211235#M1205452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Divya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Welcome to SCN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First mistake. Select with in the LOOP is peformance wise very low.you should not use select with in the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please explain what you want exactly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 11:29:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211235#M1205452</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-02-12T11:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the amt value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211236#M1205453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Thanks for ur quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My scenario is have to compare the amount of invoice reciept and goods receipt and after that have perform some tasks.But in this 1st part itself am stuck up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the internal table have the values of table EKBE which consists of values of invoice reciept,service reciept and goods reciept.I have to compare only the GR and IR amount.If its same have perform some task else other task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope now am clear..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 11:36:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211236#M1205453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T11:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the amt value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211237#M1205454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Divya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To identify GR: EKBE-VGABE = '1' &amp;amp; EKBE-BEWTP = 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To identify IR: EKBE-VGABE = '2' &amp;amp; EKBE-BEWTP = 'R'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the corresponding amounts are stored in EKBE-DMBTR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you want in addition to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Feb 12, 2009 5:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 11:44:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211237#M1205454</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-02-12T11:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the amt value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211238#M1205455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to know the coding logic how to compare the amount fields from the internal table.Please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 11:54:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211238#M1205455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T11:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the amt value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211239#M1205456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Divya,&lt;/P&gt;&lt;P&gt;Check the below logic, it may help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: ty_ekbe TYPE ekbe.

DATA: it_ekbe TYPE TABLE OF ty_ekbe,
      wa_ekbe TYPE ty_ekbe,
      wa_ekbe1 TYPE ty_ekbe.

SELECT * UP TO 20 ROWS
       INTO TABLE it_ekbe FROM ekbe. "For example i have selected 20 records, you can hv condn here



LOOP AT it_ekbe INTO wa_ekbe WHERE vgabe = 1. "only IR
"Read corresponding GR
  READ TABLE it_ekbe INTO wa_ekbe1 WITH KEY ebeln = wa_ekbe-ebeln vgabe = 2. 

  IF wa_ekbe-dmbtr EQ wa_ekbe1-dmbtr. "Compare the amounts
    WRITE: / 'Amounts are equal for Document: ', wa_ekbe-ebeln. "If equal do some action
  ELSE.
    WRITE: / 'Amounts are not equal for Document: ', wa_ekbe-ebeln.
  ENDIF.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert in case of any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manoj Kumar on Feb 12, 2009 1:37 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manoj Kumar on Feb 12, 2009 1:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 12:36:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211239#M1205456</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T12:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the amt value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211240#M1205457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI DIvya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj code will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Implement that llogic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 15:30:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211240#M1205457</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-02-12T15:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the amt value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211241#M1205458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the values in the table which is got using a FM.Am not able to write select query .It specifies the table is not present.Table is declared in the FM as gi_amt like ekbe occurs 0 with header line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 15:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211241#M1205458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-12T15:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fetch the amt value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211242#M1205459</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;I think same question you asked in another forum also i think Just now i have answered to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't have the statement select * from itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YOu can't write select for the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2009 16:00:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-the-amt-value/m-p/5211242#M1205459</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-02-12T16:00:11Z</dc:date>
    </item>
  </channel>
</rss>

