<?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: Selection Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-problem/m-p/1718817#M313974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables: pernr.
infotypes:0000,0001,0007.

get pernr.
clear: p0000,p0001,p0007.
if not p_effdt is initial.
rp-provide-from-last p0000 space p_effdt p_effdt.
elseif p_credt is initial.
loop at p0000 where aedtm = p_credt.
****
****
endloop.
else.
rp-provide-from-last p0000 space sy-datum sy-datum.
endif.

* Now select the infotype 0001 &amp;amp; 0007 records baseed on
* 0000 records.

end-of-selection.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2006 19:53:49 GMT</pubDate>
    <dc:creator>suresh_datti</dc:creator>
    <dc:date>2006-11-07T19:53:49Z</dc:date>
    <item>
      <title>Selection Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-problem/m-p/1718816#M313973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two selection fields like effective date and created date on the selection screen..I need to get the data based on these dates as per the conditions..How do I do this?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The first four fields presented in this section will be Action Type, Action Reason, Exempt/Non Exempt identification and Average Work Week Hours.   These will be pulled from Actions (IT0000), Organization Assignment (IT0001) and Planned Working Time (P0007).  Records should be selected using SY-DATUM unless an effective date or created on date are entered in the selection screen: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If No date entered on selection screen, select applicable P0000 record where SY-DATUM between P0000-BEGDA and P0000-ENDDA.   Use P0000-BEGDA to pull applicable records from P0000, P0001 and P0007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If effective date is entered on the selection screen, select applicable P0000 record where date entered between P0000-BEGDA and P0000-ENDDA.   Use P0000-BEGDA to pull applicable records from P0000, P0001 and P0007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If created date is entered on the selection screen, select applicable P0000 record where date entered equals P0000-AEDTM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 19:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-problem/m-p/1718816#M313973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T19:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-problem/m-p/1718817#M313974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tables: pernr.
infotypes:0000,0001,0007.

get pernr.
clear: p0000,p0001,p0007.
if not p_effdt is initial.
rp-provide-from-last p0000 space p_effdt p_effdt.
elseif p_credt is initial.
loop at p0000 where aedtm = p_credt.
****
****
endloop.
else.
rp-provide-from-last p0000 space sy-datum sy-datum.
endif.

* Now select the infotype 0001 &amp;amp; 0007 records baseed on
* 0000 records.

end-of-selection.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 19:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-problem/m-p/1718817#M313974</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-11-07T19:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Selection Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-problem/m-p/1718818#M313975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks For Your Reply..Could you please brief me in detail like I also need to get the usrid and first name, last name from infotypes 0105 and 0002..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vicky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 20:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-problem/m-p/1718818#M313975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T20:22:05Z</dc:date>
    </item>
  </channel>
</rss>

