<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ABAP Tutorials &#187; Selection-Screen</title>
	<atom:link href="http://www.abap-tutorials.com/category/selection-screen/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.abap-tutorials.com</link>
	<description>ABAP Tutorials, Guides, Training, Manuals</description>
	<lastBuildDate>Thu, 17 Nov 2011 07:43:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Display a Popup and Get Values from User</title>
		<link>http://www.abap-tutorials.com/2011/09/23/display-a-popup-and-get-values-from-user/</link>
		<comments>http://www.abap-tutorials.com/2011/09/23/display-a-popup-and-get-values-from-user/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 12:19:32 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[Function Modules]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[Report]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[Selection-Screen]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[function module]]></category>
		<category><![CDATA[get value from user]]></category>
		<category><![CDATA[popup]]></category>
		<category><![CDATA[POPUP_GET_VALUES]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1948</guid>
		<description><![CDATA[In some cases, we are needed to get some inputs from the user at run-time of an application based on certain dynamic conditions. Function Module POPUP_GET_VALUES can be used to display a popup to get inputs from user. The specialty of this function module is we can add as many number of fields as we [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">In some cases, we are needed to get some inputs from the user at run-time of an application based on certain dynamic conditions.</p>
<p style="text-align: justify;">Function Module <strong>POPUP_GET_VALUES</strong> can be used to display a popup to get inputs from user. The specialty  of this function module is we can add as many number of fields as we  want. The fields can be of any data type.</p>
<div style="width: 100%; float: left;">
<p style="text-align: center;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2011/09/popup.jpg"><img class="aligncenter size-full wp-image-1949" title="popup" src="http://www.abap-tutorials.com/wp-content/uploads/2011/09/popup.jpg" alt="popup" width="470" height="288" /></a></p>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span id="more-1948"></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>REPORT  ztestpopup.</p>
<p>DATA: t_fields LIKE sval OCCURS 0 WITH HEADER LINE.</p>
<p>START-OF-SELECTION.</p>
<p>*&#8212; Prepare Parameters for FM &#8212;&#8212;&#8212;&#8212;-*<br />
t_fields-tabname = ’BKPF’.<br />
t_fields-fieldname = ’BUDAT’.<br />
APPEND t_fields.</p>
<p>t_fields-tabname = ’BKPF’.<br />
t_fields-fieldname = ’BLART’.<br />
APPEND t_fields.</p>
<p>*&#8212;- Function Module Call &#8212;&#8212;&#8212;&#8212;&#8212;&#8211;*<br />
CALL FUNCTION ’POPUP_GET_VALUES’<br />
EXPORTING<br />
*  NO_VALUE_CHECK        = ’ ’<br />
popup_title           = ’Test Popup’<br />
*  START_COLUMN          = ’5’<br />
*  START_ROW             = ’5’<br />
*  IMPORTING<br />
*  RETURNCODE            =<br />
TABLES<br />
fields                = t_fields<br />
EXCEPTIONS<br />
error_in_fields       = 1<br />
OTHERS                = 2<br />
.<br />
IF sy-subrc &lt;&gt; 0.<br />
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO<br />
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.<br />
ENDIF.</p>
<p>*&#8212; Display Report &#8212;&#8212;&#8212;&#8212;&#8212;-*<br />
LOOP AT t_fields.<br />
WRITE:/ t_fields-value.<br />
ENDLOOP.</p>
<p style="text-align: center;">&nbsp;</p>
</div>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/07/27/sap-data-in-3-dimension/' rel='bookmark' title='ABAP Program to display SAP Data in 3-Dimension'>ABAP Program to display SAP Data in 3-Dimension</a></li>
<li><a href='http://www.abap-tutorials.com/2009/10/15/date-formatting-for-display-in-abap-program/' rel='bookmark' title='Date formatting for Display in ABAP Program'>Date formatting for Display in ABAP Program</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/28/display-se78-pictures-on-screen/' rel='bookmark' title='ABAP Program to Display SE78 pictures on Screen'>ABAP Program to Display SE78 pictures on Screen</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2011/09/23/display-a-popup-and-get-values-from-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mass Maintenance of Tcode Variants</title>
		<link>http://www.abap-tutorials.com/2011/06/15/mass-maintenance-of-tcode-variants/</link>
		<comments>http://www.abap-tutorials.com/2011/06/15/mass-maintenance-of-tcode-variants/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 11:14:07 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Selection-Screen]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[mass change]]></category>
		<category><![CDATA[variant]]></category>
		<category><![CDATA[variant data change]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1835</guid>
		<description><![CDATA[Many a times there are business scenarios wherein there is a possibility of migration to a new entity, for example if your organization decides to go for the implementation of a standard chart of account for the existing company codes, new company codes might be created. In such cases when the company code changes we [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Many a times there are business scenarios wherein there is a possibility of migration to a new entity, for example if your organization decides to go for the implementation of a standard chart of account for the existing company codes, new company codes might be created. In such cases when the company code changes we also have to ensure that in all the Report variants the new company code needs to be updated. In case the report numbers cross hundreds it would be a painstaking process to change each and every variant. (Same case for background jobs too)</p>
<p style="text-align: justify;"><strong>Example Scenario</strong></p>
<p style="text-align: justify;"><strong>Now</strong>?  There was a business change and company code IN01 would no longer be used and will be replaced with IN02. The ABAP and BASIS teams are entrusted with the responsibility of creating new variants/change the existing variants.</p>
<div style="width: 100%; float: left; text-align: justify;">
<p style="text-align: justify;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2011/06/variant.jpg"><img class="aligncenter size-full wp-image-1836" title="variant" src="http://www.abap-tutorials.com/wp-content/uploads/2011/06/variant.jpg" alt="variant" width="565" height="304" /></a></p>
</div>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;"><span id="more-1835"></span></p>
<p style="text-align: justify;"><strong>How</strong>?  Automation can be achieved by the following piece of code:</p>
<p style="text-align: justify;">Source code: <a href="http://www.abap-tutorials.com/wp-content/uploads/2011/06/Z_VARIANT_CHANGE.txt">Z_VARIANT_CHANGE</a></p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2010/02/11/transport-variants-of-an-abap-program/' rel='bookmark' title='Transport Variants of an ABAP Program'>Transport Variants of an ABAP Program</a></li>
<li><a href='http://www.abap-tutorials.com/2009/09/16/abap-program-for-table-maintenance-in-sap/' rel='bookmark' title='ABAP Program for Table Maintenance in SAP'>ABAP Program for Table Maintenance in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2011/07/14/debugging-background-scheduled-jobs-in-sap/' rel='bookmark' title='Debugging Background Scheduled Jobs in SAP'>Debugging Background Scheduled Jobs in SAP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2011/06/15/mass-maintenance-of-tcode-variants/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ABAP Programs for Beginners</title>
		<link>http://www.abap-tutorials.com/2010/05/07/abap-programs-for-beginners/</link>
		<comments>http://www.abap-tutorials.com/2010/05/07/abap-programs-for-beginners/#comments</comments>
		<pubDate>Fri, 07 May 2010 07:11:06 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[DDIC]]></category>
		<category><![CDATA[Formatting]]></category>
		<category><![CDATA[Function Modules]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[Report]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[Selection-Screen]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ABAP codes]]></category>
		<category><![CDATA[codes]]></category>
		<category><![CDATA[programs]]></category>
		<category><![CDATA[samples]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1597</guid>
		<description><![CDATA[The code book contain the beginners level programs for new ABAPers. The book covers almost every basic aspect that a programer in this domain should know.   Some of the programs that the book covers are: How to define types and data objects A Few Simple Examples Working with database tables and internal tables Designing a report Three [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">The code book contain the beginners level programs for new ABAPers. The book covers almost every basic aspect that a programer in this domain should know.</p>
<p style="text-align: justify;"> </p>
<div style="width: 100%; float: left;">
<p style="text-align: justify;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2010/05/code_book.jpg"><img class="aligncenter size-full wp-image-1600" title="Code Book" src="http://www.abap-tutorials.com/wp-content/uploads/2010/05/code_book.jpg" alt="Code Book" width="122" height="144" /></a></p>
</div>
<p style="text-align: justify;"><span id="more-1597"></span></p>
<p style="text-align: justify;">Some of the programs that the book covers are:</p>
<ul style="text-align: justify;">
<li>How to define types and data objects</li>
<li>A Few Simple Examples</li>
<li>Working with database tables and internal tables</li>
<li>Designing a report</li>
<li>Three approaches to define data objects</li>
<li>Complex Non-Elementary Types and Data Objects</li>
<li>Type-Specific Output Options</li>
<li>External flow of control (events)</li>
<li>Using internal tables as snapshots of database tables</li>
<li>Working with get events</li>
<li>Dynamic sort command with several sort criteria</li>
<li>Working with Field Symbols</li>
<li>Transferring data to a file</li>
<li>Reading data from a file</li>
</ul>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">Download Link: <a href="http://www.abap-tutorials.com/wp-content/uploads/2010/05/abapcodebook.pdf">ABAP Code Book</a></p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/07/15/my-inactive-programs/' rel='bookmark' title='ABAP Program to show My Inactive Programs'>ABAP Program to show My Inactive Programs</a></li>
<li><a href='http://www.abap-tutorials.com/2009/11/19/logical-database-in-sap-a-must-for-abap-hr-programmer/' rel='bookmark' title='Logical Database in SAP &#8211; a must for ABAP HR programmer'>Logical Database in SAP &#8211; a must for ABAP HR programmer</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/25/list-of-programs-without-t-codes/' rel='bookmark' title='ABAP Program to List Programs without T-Codes'>ABAP Program to List Programs without T-Codes</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2010/05/07/abap-programs-for-beginners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create HR Report Category in SAP</title>
		<link>http://www.abap-tutorials.com/2009/12/07/maintain-hr-report-category/</link>
		<comments>http://www.abap-tutorials.com/2009/12/07/maintain-hr-report-category/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 07:28:43 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP HR]]></category>
		<category><![CDATA[Report]]></category>
		<category><![CDATA[Selection-Screen]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[logical database]]></category>
		<category><![CDATA[PNP]]></category>
		<category><![CDATA[Report Category]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1129</guid>
		<description><![CDATA[Creating / Maintaining a Report Category is one of the important task in ABAP HR when handling Logical Databases. Report Category provides an added flexibility in term of field selection to be displayed on screen and the handling of fields in the back-end.       The steps for Creating/Using Report category can be defined as [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Creating / Maintaining a Report Category is one of the important task in ABAP HR when handling Logical Databases. Report Category provides an added flexibility in term of field selection to be displayed on screen and the handling of fields in the back-end.</p>
<p style="text-align: justify;"> </p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1140" title="rep_cat8" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/rep_cat81.jpg" alt="rep_cat8" width="468" height="285" /></div>
<p> </p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;"><span id="more-1129"></span></p>
<p style="text-align: justify;">The steps for Creating/Using Report category can be defined as follows:</p>
<p style="text-align: justify;">1.  Create a program using the transaction SE38. </p>
<p style="text-align: justify;"> </p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1132" title="rep_cat1" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/rep_cat1.jpg" alt="rep_cat1" width="448" height="276" /></div>
<p> </p>
<p style="text-align: justify;">Provide the logical database name as <strong>PNP</strong>. Click on SAVE. </p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">2. Then again follow this menu path<strong>&#8212;&gt;GOTO&#8212;-&gt;ATTRIBUTES.</strong></p>
<p style="text-align: justify;"><strong> </strong></p>
<p><strong></p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1133" title="rep_cat2" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/rep_cat2.jpg" alt="rep_cat2" width="468" height="285" /></div>
<p></strong></p>
<p> </p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">3. Click on the button <strong>HR report category </strong>to use the<strong> </strong>existing<strong> </strong>report category.</p>
<p style="text-align: justify;"> </p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1134" title="rep_cat3" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/rep_cat3.jpg" alt="rep_cat3" width="459" height="315" /></div>
<p> </p>
<p style="text-align: justify;">Select the radio button “Master Data (Infotypes)&#8221;.</p>
<p style="text-align: justify;"> </p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1135" title="rep_cat4" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/rep_cat4.jpg" alt="rep_cat4" width="459" height="315" /></div>
<p> </p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;"><strong><span style="color: #3366ff;">Creating HR report category  </span></strong></p>
<p style="text-align: justify;">1. Click on HR report category</p>
<p>Give name of the <strong>HR report category</strong> to be create like ____0001(4 underscores 3 zeros 1) here <strong>follow the standards for creating the HR report category</strong>.  </p>
<p>To create new HR report category, click on<strong> new entries</strong></p>
<p>Give the <strong>report</strong> <strong>category name   :  ____0002  (this is an example )</strong></p>
<p><strong>               Description                 : this is test report category        </strong></p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1136" title="rep_cat5" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/rep_cat5.jpg" alt="rep_cat5" width="575" height="192" /></div>
<p>Then <strong>save</strong> it under a <strong>transport request</strong>.</p>
<p>Click on <strong>allowable selection criteria</strong>&#8212;&gt;choose <strong>enter</strong>&#8212;-&gt; <strong>new entries.</strong></p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1137" title="rep_cat6" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/rep_cat6.jpg" alt="rep_cat6" width="576" height="176" /></div>
<p>Get the fields from <strong>select option field</strong> with F4 help and give the values to be appeared in the selection screen of the <strong>LDB</strong> you want.</p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1138" title="rep_cat7" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/rep_cat7.jpg" alt="rep_cat7" width="576" height="185" /></div>
<p><strong><span style="font-size: 10pt; font-family: Arial; color: black;">Save</span></strong><span style="font-size: 10pt; font-family: Arial; color: black;"> it. </span><span style="font-size: 10pt; font-family: Arial; color: black;"> </span></p>
<p> </p>
<p> </p>
<p><strong><span style="color: #3366ff;">Using Report Category in the LDB</span></strong></p>
<p><strong><span style="font-size: 10pt; font-family: Arial; color: black;"><span style="font-weight: normal;">If the report category is space, it means there is nothing given in the HR report category.</span></span><span style="font-size: 10pt; font-family: Arial; color: black;"><span style="font-weight: normal;"> </span></span></strong></p>
<p><strong><span style="font-size: 10pt; font-family: Arial; color: black;"><span style="font-weight: normal;">The <strong>output screen</strong> will be like this&#8230;with more field options.</span></span></strong></p>
<div style="width: 100%; float: left;"><img class="aligncenter size-full wp-image-1139" title="rep_cat8" src="http://www.abap-tutorials.com/wp-content/uploads/2009/12/rep_cat8.jpg" alt="rep_cat8" width="468" height="285" /></div>
<p> </p>
<p><span style="font-size: 10pt; font-family: Arial; color: black;"><span style="color: #000000;">If the </span><strong><span style="color: #000000;">report category</span></strong><span style="color: #000000;"> is </span></span></p>
<p><span style="font-size: 10pt; font-family: Arial; color: black;">a) _____000 (5 underscores 3 zeros no gap) No<strong> LDB selection screen is displayed. </strong>It shows a clear screen.</span><span style="font-family: Arial; color: black;"> </span></p>
<p><span style="font-size: 10pt; font-family: Arial; color: black;">b) _____001 (5 underscores 2 zeros 1 no gap) only personnel number with out search help</span></p>
<p><strong><span style="font-size: 10pt; font-family: Arial; color: black;"><span style="font-weight: normal;">c) <span style="font-family: Arial; color: black;">_____003 (5 underscores 2 zeros 3 no gap) personnel number, Employment status,   Payroll area,</span><span style="font-family: Arial; color: black;">Pers.area/subarea/cost center</span></span></span></strong></p>
<p> </p>
<p><strong><span style="font-size: 10pt; font-family: Arial; color: black;"><span style="color: #3366ff;">Few sample programs:</span></span></strong></p>
<p><strong><span style="font-size: 10pt; font-family: Arial; color: black;"><span style="font-weight: normal;"><span style="font-family: Arial; color: black;">1) <span style="font-family: Georgia;">Program for understanding the PNP LDB with report category _____001.</span></span></span></span></strong></p>
<pre lang="ABAP">report zpnpldb .
INFOTYPES: 0001.
tables : pernr .
GET PERNR.
PROVIDE * FROM P0001 BETWEEN PN-BEGDA AND PN-ENDDA.
WRITE: / P0001-PERNR,
P0001-STELL,
P0001-BEGDA,
P0001-ENDDA.
ENDPROVIDE.
TABLES: PERNR.
INFOTYPES: 0001.
GET PERNR.
RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA .
IF PNP-SW-FOUND =  1.
WRITE: / PERNR-PERNR, P0001-STELL, PN-BEGDA, PN-ENDDA.
ELSE.
REJECT.
ENDIF.</pre>
<p><strong><span style="font-size: 10pt; font-family: Arial; color: black;"><span style="font-weight: normal;"><span style="font-family: Arial; color: black;">2) <span style="font-family: Georgia;">This is a simple program for understanding the PNP LDB with report category space or with no report category. </span></span></span></span></strong></p>
<pre lang="ABAP">report zpnpldb .
tables : pernr .
INFOTYPES: 2001 MODE N.
initialization .
*pnpbegda = sy-datum - 30 .
*pnpendda = sy-datum .
pnppernr-sign = 'I'.
pnppernr-option = 'EQ'  .
pnppernr-low = '1000'.
append pnppernr.
pnppernr-low = '1001'.
append pnppernr.
pnppernr-low = '1002'.
append pnppernr.
pnppernr-low = '1003'.
append pnppernr.
start-of-selection .
GET PERNR.
RP_READ_ALL_TIME_ITY PN-BEGDA PN-ENDDA.
LOOP AT P2001.
WRITE: / p2001-pernr , p2001-begda, p2001-endda, P2001-ABWTG.
ENDLOOP.
end-of-selection .</pre>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/12/11/abap-hr-program-to-download-employee-data/' rel='bookmark' title='ABAP HR program to download Employee data'>ABAP HR program to download Employee data</a></li>
<li><a href='http://www.abap-tutorials.com/2009/11/20/macros-in-abap-hr-programming-i/' rel='bookmark' title='Macros in ABAP-HR Programming &#8211; I'>Macros in ABAP-HR Programming &#8211; I</a></li>
<li><a href='http://www.abap-tutorials.com/2009/11/23/difference-between-pnp-and-pnpce/' rel='bookmark' title='PNP Vs. PNPCE &#8211; Comparing the two Logical Databases'>PNP Vs. PNPCE &#8211; Comparing the two Logical Databases</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/12/07/maintain-hr-report-category/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Add Search Help to Screen Field in SAP</title>
		<link>http://www.abap-tutorials.com/2009/09/21/add-search-help-to-screen-field-in-sap/</link>
		<comments>http://www.abap-tutorials.com/2009/09/21/add-search-help-to-screen-field-in-sap/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 06:03:09 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[DDIC]]></category>
		<category><![CDATA[Function Modules]]></category>
		<category><![CDATA[Module Pool]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[Selection-Screen]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[attach]]></category>
		<category><![CDATA[dynamic search help]]></category>
		<category><![CDATA[F4IF_FIELD_VALUE_REQUEST]]></category>
		<category><![CDATA[F4IF_INT_TABLE_VALUE_REQUEST]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[search help]]></category>
		<category><![CDATA[static search help]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=998</guid>
		<description><![CDATA[Search Helps forms an integral part of Data Dictionary in SAP. We can attach Search Help in two ways: 1] STATIC HELP ATTACHMENT 2] DYNAMIC HELP ATTACHMENT   1. Static Attachement a) To a selection-screen element: We can attach search help statically using Matchcode.   PARAMETERS p MATCHCODE OBJECT mobj.     b) To a Dynpro element: [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #000000;">Search Helps forms an integral part of Data Dictionary in SAP. We can attach Search Help in two ways:</span></p>
<p><span style="color: #000000;">1] STATIC HELP ATTACHMENT</span></p>
<p><span style="color: #000000;">2] DYNAMIC HELP ATTACHMENT</span></p>
<p><span style="color: #000000;"> </span></p>
<p><span style="color: #000000;"><span id="more-998"></span></span></p>
<p style="text-align: justify;"><strong><span style="color: #000000;">1. Static Attachement</span></strong></p>
<p><span style="color: #000000;">a) <strong>To a selection-screen element:</strong></span></p>
<p><span style="color: #000000;">We can attach search help statically using Matchcode.</span></p>
<div><span style="color: #000000;"></span></div>
<p> </p>
<p><span style="color: #000000;"></p>
<pre lang="ABAP">PARAMETERS p MATCHCODE OBJECT mobj.</pre>
<p> </p>
<p></span></p>
<p><span style="color: #000000;"> </span></p>
<p><span style="color: #000000;">b) <strong>To a Dynpro element: </strong></span></p>
<p><span style="color: #000000;">Goto Layout -&gt; Field Attributes -&gt; Dict Tab &#8211; &gt; Search Help Field. Specify the search help which you want to attach.</span></p>
<p style="text-align: justify;">
<div style="text-align: justify;"><strong><span style="color: #000000;"> </span></strong></div>
<div style="text-align: justify;"><span style="color: #339966;"> </span></div>
<div style="float: left; width: 100%;"><span style="color: #000000;"><strong><img class="aligncenter size-full wp-image-999" title="Search Help" src="http://www.abap-tutorials.com/wp-content/uploads/2009/09/search_help.jpg" alt="Search Help" width="234" height="738" /></strong></span></div>
<p><span style="color: #000000;"><strong> </strong></span></p>
<p style="text-align: justify;"><span style="color: #000000;"><strong>2. Dynamic Attachment</strong></span></p>
<p><span style="color: #000000;"><strong>a) To a selection-screen element:</strong></span></p>
<p><span style="color: #000000;">Following program shows the way to attach a search help dynamically.</span></p>
<pre lang="ABAP">REPORT z_test11 .

PARAMETERS: p_carrid(2).
DATA: table1 LIKE ddshretval OCCURS 0 WITH HEADER LINE.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_carrid.

CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'scarr'
fieldname = 'carrid'
* SEARCHHELP = ' '
* SHLPPARAM = ' '
* DYNPPROG = ' '
* DYNPNR = ' '
* DYNPROFIELD = 'p_carrid'
* STEPL = 0
* VALUE = ' '
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* SUPPRESS_RECORDLIST = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* SELECTION_SCREEN = ' '
TABLES
return_tab = table1
EXCEPTIONS
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 4
OTHERS = 5
.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

p_carrid = table1-fieldval.

START-OF-SELECTION.
WRITE: p_carrid.</pre>
<p><span style="color: #000000;"><strong>b) To a Dynpro element:</strong></span></p>
<p><span style="color: #000000;"><strong> </strong>In PAI of the screen, call the event On alue Reuest.</span></p>
<p style="text-align: justify;"><span style="color: #000000;">PROCESS ON VALUE-REQUEST.</span></p>
<div style="text-align: justify;"><span style="color: #000000;">  FIELD FIFLNAME1 MODULE get_objval.</span></div>
<div><span style="color: #000000;"> </span></div>
<p> <span style="color: #000000;"> </span></p>
<p><span style="color: #000000;">There are couple of functions for attching a search help to the fields displayed on the screen.</span></p>
<p><span style="color: #000000;"><strong>a) F4IF_FIELD_VALUE_REQUEST -</strong> F4 help for fields that are only known at runtime. The parameters it takes are: searchhelp,  shlpparam, dynpprog (program name), dynpnr (dynpro number), dynprofield(screen field to attach the help).</span></p>
<p><span style="color: #000000;"><strong>b) F4IF_INT_TABLE_VALUE_REQUEST -</strong> F4 help also returning the value to be displayed in internal table. retfield, dynpprog (program name), dynpnr (dynpro number), dynprofield(screen field to attach the help), value_org = &#8216;S&#8217; (Structure),  Internal Table containing data to be displayed.</span></p>
<p><span style="color: #000000;"><strong> </strong></span></p>
<p><span style="color: #000000;">And if you want to attach domain values to the search help, you can just use SQL to get data for the domain (from table <strong>DD07V</strong>) and then calling function module F4IF_INT_TABLE_VALUE_REQUEST.</span><span style="color: #000000;"> </span></p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2011/09/06/dynamically-read-fields-field-names-and-field-contents-using-field-symbols/' rel='bookmark' title='Dynamically read fields, field names and field contents using field symbols'>Dynamically read fields, field names and field contents using field symbols</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/24/add-toolbar-to-selection-screen/' rel='bookmark' title='ABAP Program to Add Toolbar to Selection-Screen'>ABAP Program to Add Toolbar to Selection-Screen</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/28/display-se78-pictures-on-screen/' rel='bookmark' title='ABAP Program to Display SE78 pictures on Screen'>ABAP Program to Display SE78 pictures on Screen</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2009/09/21/add-search-help-to-screen-field-in-sap/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

