<?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 Code please(select statements) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-please-select-statements/m-p/1034326#M84744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can somebody please help me out in writing an ABAP program for the following requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use "select" statement in your ABAP program to select the database table contents depending upon the query that user has entered at the selection screen. &lt;/P&gt;&lt;P&gt;Display the selected records of database table (point 3) on the output report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection screen:&lt;/P&gt;&lt;P&gt;Below are the selection screen parameters/options that you need to provide &lt;/P&gt;&lt;P&gt;for the user&lt;/P&gt;&lt;P&gt;1. Employee ID&lt;/P&gt;&lt;P&gt;2. Employee Name (either Emp ID or name should be mandatory).&lt;/P&gt;&lt;P&gt;3. Employee Dept/ Designation / joining date &lt;/P&gt;&lt;P&gt;4. Another parameter should be "Age". Thus, if user enters 27 on Age field, every employee under 27 age should be displayed on the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output report:&lt;/P&gt;&lt;P&gt;Employee ID with name / dept / designation / joining date and age should be displayed as details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2005 19:51:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-20T19:51:39Z</dc:date>
    <item>
      <title>Code please(select statements)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-please-select-statements/m-p/1034326#M84744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can somebody please help me out in writing an ABAP program for the following requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use "select" statement in your ABAP program to select the database table contents depending upon the query that user has entered at the selection screen. &lt;/P&gt;&lt;P&gt;Display the selected records of database table (point 3) on the output report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection screen:&lt;/P&gt;&lt;P&gt;Below are the selection screen parameters/options that you need to provide &lt;/P&gt;&lt;P&gt;for the user&lt;/P&gt;&lt;P&gt;1. Employee ID&lt;/P&gt;&lt;P&gt;2. Employee Name (either Emp ID or name should be mandatory).&lt;/P&gt;&lt;P&gt;3. Employee Dept/ Designation / joining date &lt;/P&gt;&lt;P&gt;4. Another parameter should be "Age". Thus, if user enters 27 on Age field, every employee under 27 age should be displayed on the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output report:&lt;/P&gt;&lt;P&gt;Employee ID with name / dept / designation / joining date and age should be displayed as details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 19:51:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-please-select-statements/m-p/1034326#M84744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-20T19:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Code please(select statements)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-please-select-statements/m-p/1034327#M84745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like a simple report program.  Have you tried coding it yourself first?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 19:54:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-please-select-statements/m-p/1034327#M84745</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-20T19:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Code please(select statements)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-please-select-statements/m-p/1034328#M84746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This short sample program should get you started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0002.

* declare the internal table
data: ipa0001 type table of pa0001 with header line.


* define the selection screen
select-options: s_pernr for ipa0001-pernr,
                s_SNAME for ipa0001-SNAME.


start-of-selection.

* Select the data from database
select * into corresponding fields of table ipa0001
            from pa0001
                    where pernr in s_pernr
                      and sname in s_sname
                      and ENDDA = '99991231'.


* Write out the data in a list
loop at ipa0001.

  write:/ ipa0001-pernr, ipa0001-sname.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 20:01:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-please-select-statements/m-p/1034328#M84746</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-20T20:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Code please(select statements)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-please-select-statements/m-p/1034329#M84747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shailender,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with Rich... it would help you &amp;amp; us if you do the basic coding and then seek the forum for addiotional help.. here is for a start.. create a report &amp;amp; tie it to the logical database PNP..  Use infotype 0002 to get the id ,name &amp;amp; DOB, infotype 0001 to get the Dept &amp;amp; designation and 0041 for joinig date.. it should be a fairly simple report..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suresh Datti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 20:03:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-please-select-statements/m-p/1034329#M84747</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2005-12-20T20:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Code please(select statements)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-please-select-statements/m-p/1034330#M84748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Try to see this FM&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;HRWPC_RFC_PERSONALDATA_GETLIST&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and code accordingly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is very simple report..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 20:10:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-please-select-statements/m-p/1034330#M84748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-20T20:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Code please(select statements)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-please-select-statements/m-p/1034331#M84749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shailender,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why to develop custom report when SAP has delivered this report..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try Birthday List under HR - Information System - Reports - Pers Mgmt - Admin - Employee - Birthday List .. There are many other reports you can look into..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bharat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 21:50:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-please-select-statements/m-p/1034331#M84749</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-20T21:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Code please(select statements)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-please-select-statements/m-p/1034332#M84750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data: Itab like ztable occurs 0 with header line.&lt;/P&gt;&lt;P&gt;select-options: s_id for ztable-id.&lt;/P&gt;&lt;P&gt;select-options: s_name for ztable-name.&lt;/P&gt;&lt;P&gt;select-options: s_dept for ztable-dept.&lt;/P&gt;&lt;P&gt;select-options: s_age for ztable-age.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;select * from ztable into corressponding fields of table itab where id = s_id and name = s_name and dept =s_dept and age = s_age.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen.&lt;/P&gt;&lt;P&gt;if s_id is not initial .&lt;/P&gt;&lt;P&gt;message i000(zmsg) with 'Provide id'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;write:/ itab-id,itab-name,......&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 04:12:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-please-select-statements/m-p/1034332#M84750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-21T04:12:31Z</dc:date>
    </item>
  </channel>
</rss>

