<?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: Extract Data Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-data-problem/m-p/2373161#M525944</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;Select field1 field2 .....&lt;/P&gt;&lt;P&gt;          from ekbe&lt;/P&gt;&lt;P&gt;          into it_ekbe&lt;/P&gt;&lt;P&gt;          for all entries in it_bseg .............&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;  raise error (or as per your requirement)&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-dbcnt eq 1. or describe the table it_ekbe for the number of records. if it is 1.&lt;/P&gt;&lt;P&gt;concatenate the two fields.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; do the second check and concatenate the values as per the requirement so that you can prepare the correct extract.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srilatha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Jun 2007 09:51:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-17T09:51:21Z</dc:date>
    <item>
      <title>Extract Data Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-data-problem/m-p/2373160#M525943</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 need a help how to get the data for the below Requirment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Extract the data from the table EKBE where  ebeln eq bseg-ebeln&lt;/P&gt;&lt;P&gt;                                                                   ebelp eq bseg-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if there are only 1 record found get the belnr + gjahr and append together.&lt;/P&gt;&lt;P&gt;if multiple records found then get the belnr + gjahr  with the latest posting date budat.&lt;/P&gt;&lt;P&gt;if allposting dates( budat) are same then get the first line  of belnr + gjahr and append together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  help me to solve this problem and advance thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deesanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2007 09:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-data-problem/m-p/2373160#M525943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-17T09:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/extract-data-problem/m-p/2373161#M525944</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;Select field1 field2 .....&lt;/P&gt;&lt;P&gt;          from ekbe&lt;/P&gt;&lt;P&gt;          into it_ekbe&lt;/P&gt;&lt;P&gt;          for all entries in it_bseg .............&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;  raise error (or as per your requirement)&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-dbcnt eq 1. or describe the table it_ekbe for the number of records. if it is 1.&lt;/P&gt;&lt;P&gt;concatenate the two fields.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; do the second check and concatenate the values as per the requirement so that you can prepare the correct extract.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srilatha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2007 09:51:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/extract-data-problem/m-p/2373161#M525944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-17T09:51:21Z</dc:date>
    </item>
  </channel>
</rss>

