<?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: Infoset Query Code question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-query-code-question/m-p/11874753#M1960155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In the INFOSET-&amp;gt; Code tab-&amp;gt; DATA,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Declare the Internal table for &lt;SPAN style="color: #333333; font-size: 12px;"&gt;MBEWH.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DATA: i_MBEWH TYPE STANDARD TABLE OF &lt;SPAN style="color: #333333; font-size: 12px;"&gt;MBEWH,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_meewh type &lt;SPAN style="color: #333333; font-size: 12px;"&gt;MBEWH.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Save it.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In Record Processing of Code tab.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;tables: MBEWH.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;clear Z_MBEWH_LFMON.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;select * from MBEWH&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; Into &lt;SPAN style="font-size: 13.3333px;"&gt;i_MBEWH&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333px;"&gt;Where&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;MATNR = MBEW-MATNR&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;BWKEY = MBEW-BWKEY&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;LFGJA = Z_MBEWH_LFGJA.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Z_MBEWH_LFMON = MBEWH-LFMON.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sort &lt;SPAN style="font-size: 13.3333px;"&gt;i_MBEWH by LFMON.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If you are writing your code in DATA red. prog Tab, then just copy the above code logic directly to it.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;EH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2016 14:12:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-09-27T14:12:27Z</dc:date>
    <item>
      <title>Infoset Query Code question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-query-code-question/m-p/11874752#M1960154</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 style="color: #333333; font-family: Arial, sans-serif; font-size: 14px;"&gt;I am working on a SAP query and using some ABAP code in a field, I have the following code:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Get period for material from MBEWH*&lt;BR /&gt;tables: MBEWH.&lt;BR /&gt;clear Z_MBEWH_LFMON.&lt;BR /&gt;select * from MBEWH&lt;BR /&gt;where&lt;BR /&gt;MATNR = MBEW-MATNR&lt;BR /&gt;and&lt;BR /&gt;BWKEY = MBEW-BWKEY&lt;BR /&gt;and&lt;BR /&gt;LFGJA = Z_MBEWH_LFGJA.&lt;BR /&gt;Z_MBEWH_LFMON = MBEWH-LFMON.&lt;BR /&gt;endselect.&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-top: 10px; color: #333333; font-family: Arial, sans-serif; font-size: 14px;"&gt;The problem I have is I need to sort the data by the LFMON field and get the last record, can you tell me what change I need in the above code?&lt;/P&gt;&lt;P style="margin-top: 10px; color: #333333; font-family: Arial, sans-serif; font-size: 14px;"&gt;&lt;/P&gt;&lt;P style="margin-top: 10px; color: #333333; font-family: Arial, sans-serif; font-size: 14px;"&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 07:44:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-query-code-question/m-p/11874752#M1960154</guid>
      <dc:creator>iftyd</dc:creator>
      <dc:date>2016-09-27T07:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Infoset Query Code question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-query-code-question/m-p/11874753#M1960155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In the INFOSET-&amp;gt; Code tab-&amp;gt; DATA,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Declare the Internal table for &lt;SPAN style="color: #333333; font-size: 12px;"&gt;MBEWH.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;DATA: i_MBEWH TYPE STANDARD TABLE OF &lt;SPAN style="color: #333333; font-size: 12px;"&gt;MBEWH,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_meewh type &lt;SPAN style="color: #333333; font-size: 12px;"&gt;MBEWH.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Save it.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In Record Processing of Code tab.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;tables: MBEWH.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;clear Z_MBEWH_LFMON.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;select * from MBEWH&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; Into &lt;SPAN style="font-size: 13.3333px;"&gt;i_MBEWH&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 13.3333px;"&gt;Where&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;MATNR = MBEW-MATNR&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;BWKEY = MBEW-BWKEY&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;LFGJA = Z_MBEWH_LFGJA.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Z_MBEWH_LFMON = MBEWH-LFMON.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sort &lt;SPAN style="font-size: 13.3333px;"&gt;i_MBEWH by LFMON.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If you are writing your code in DATA red. prog Tab, then just copy the above code logic directly to it.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;EH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 14:12:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-query-code-question/m-p/11874753#M1960155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-27T14:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Infoset Query Code question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-query-code-question/m-p/11874754#M1960156</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 have copied the above into my query and now I get the message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use an internal table as a work area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 15:10:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-query-code-question/m-p/11874754#M1960156</guid>
      <dc:creator>iftyd</dc:creator>
      <dc:date>2016-09-27T15:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Infoset Query Code question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-query-code-question/m-p/11874755#M1960157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope you are updating the Code to the Infoset.&lt;/P&gt;&lt;P&gt;Please share the screenshot, so that I can help you in solving your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 05:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-query-code-question/m-p/11874755#M1960157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-28T05:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Infoset Query Code question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-query-code-question/m-p/11874756#M1960158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your help this has now worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 14:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/infoset-query-code-question/m-p/11874756#M1960158</guid>
      <dc:creator>iftyd</dc:creator>
      <dc:date>2016-10-05T14:20:42Z</dc:date>
    </item>
  </channel>
</rss>

