<?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: Data Selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection/m-p/1694989#M304932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that you need to get the org assignment data, personal data and the planned working time of an employee...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the following logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: &lt;/P&gt;&lt;P&gt;    pa0000.&lt;/P&gt;&lt;P&gt;data: &lt;/P&gt;&lt;P&gt;    lt_pa0000 type table of pa0000 with header line,&lt;/P&gt;&lt;P&gt;    lt_pa0001 type table of pa0001 with header line,&lt;/P&gt;&lt;P&gt;    lt_pa0002 type table of pa0002 with header line,&lt;/P&gt;&lt;P&gt;    lt_pa0007 type table of pa0007 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options so_begda for pa0000-begda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;    select * from pa0000 into table lt_pa0000 where &lt;/P&gt;&lt;P&gt;    begda in so_begda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    check not lt_pa0000[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select * from pa0001 into table lt_pa0001 &lt;/P&gt;&lt;P&gt;    for all entries in lt_pa0000 where &lt;/P&gt;&lt;P&gt;    begda = lt_pa0000-begda   . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select * from pa0002 into table lt_pa0002 &lt;/P&gt;&lt;P&gt;    for all entries in lt_pa0000 where &lt;/P&gt;&lt;P&gt;    begda = lt_pa0000-begda   . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select * from pa0007 into table lt_pa0007 &lt;/P&gt;&lt;P&gt;    for all entries in lt_pa0000 where &lt;/P&gt;&lt;P&gt;    begda = lt_pa0000-begda   . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully, now you have all the data in the corresponding internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can read the required internal tables using the read statement......providing all the keys..PERNR SUBTY OBJPS &lt;/P&gt;&lt;P&gt;SPRPS ENDDA BEGDA SEQNR etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this sample code helps you...&lt;/P&gt;&lt;P&gt;may not be the optimal solution...but you can work with this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sajan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;corrected &amp;lt;b&amp;gt;ls_pa0000[]&amp;lt;/b&amp;gt; to &amp;lt;b&amp;gt;lt_pa0000[]&amp;lt;/b&amp;gt; in the 3rd line after start-of-selection.&lt;/P&gt;&lt;P&gt;Also corrected wrongly written &amp;lt;b&amp;gt;pa000-begda&amp;lt;/b&amp;gt; to &amp;lt;b&amp;gt;pa0000-begda&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sajan Joseph&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Nov 2006 22:43:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-09T22:43:39Z</dc:date>
    <item>
      <title>Data Selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection/m-p/1694988#M304931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to pull the applicable records from P0001 P0002 P0007 using P0000-begda..How do i use this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 22:17:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection/m-p/1694988#M304931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T22:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Data Selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection/m-p/1694989#M304932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vicky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that you need to get the org assignment data, personal data and the planned working time of an employee...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the following logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: &lt;/P&gt;&lt;P&gt;    pa0000.&lt;/P&gt;&lt;P&gt;data: &lt;/P&gt;&lt;P&gt;    lt_pa0000 type table of pa0000 with header line,&lt;/P&gt;&lt;P&gt;    lt_pa0001 type table of pa0001 with header line,&lt;/P&gt;&lt;P&gt;    lt_pa0002 type table of pa0002 with header line,&lt;/P&gt;&lt;P&gt;    lt_pa0007 type table of pa0007 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options so_begda for pa0000-begda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;    select * from pa0000 into table lt_pa0000 where &lt;/P&gt;&lt;P&gt;    begda in so_begda.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    check not lt_pa0000[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select * from pa0001 into table lt_pa0001 &lt;/P&gt;&lt;P&gt;    for all entries in lt_pa0000 where &lt;/P&gt;&lt;P&gt;    begda = lt_pa0000-begda   . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select * from pa0002 into table lt_pa0002 &lt;/P&gt;&lt;P&gt;    for all entries in lt_pa0000 where &lt;/P&gt;&lt;P&gt;    begda = lt_pa0000-begda   . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select * from pa0007 into table lt_pa0007 &lt;/P&gt;&lt;P&gt;    for all entries in lt_pa0000 where &lt;/P&gt;&lt;P&gt;    begda = lt_pa0000-begda   . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully, now you have all the data in the corresponding internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can read the required internal tables using the read statement......providing all the keys..PERNR SUBTY OBJPS &lt;/P&gt;&lt;P&gt;SPRPS ENDDA BEGDA SEQNR etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this sample code helps you...&lt;/P&gt;&lt;P&gt;may not be the optimal solution...but you can work with this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sajan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;corrected &amp;lt;b&amp;gt;ls_pa0000[]&amp;lt;/b&amp;gt; to &amp;lt;b&amp;gt;lt_pa0000[]&amp;lt;/b&amp;gt; in the 3rd line after start-of-selection.&lt;/P&gt;&lt;P&gt;Also corrected wrongly written &amp;lt;b&amp;gt;pa000-begda&amp;lt;/b&amp;gt; to &amp;lt;b&amp;gt;pa0000-begda&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sajan Joseph&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2006 22:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection/m-p/1694989#M304932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-09T22:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Data Selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection/m-p/1694990#M304933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Iam using a 'get pernr' statement for selection screeen..So how do I get data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2006 01:13:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection/m-p/1694990#M304933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-10T01:13:42Z</dc:date>
    </item>
  </channel>
</rss>

