<?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; Quick Reference</title>
	<atom:link href="http://www.abap-tutorials.com/category/quick-reference/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>ABAP Pending Purchase Recquisition (PR) Report</title>
		<link>http://www.abap-tutorials.com/2011/10/30/abap-pending-purchase-recquisition-pr-report/</link>
		<comments>http://www.abap-tutorials.com/2011/10/30/abap-pending-purchase-recquisition-pr-report/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 06:56:39 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[Report]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[ALV]]></category>
		<category><![CDATA[EBAN]]></category>
		<category><![CDATA[EBKN]]></category>
		<category><![CDATA[PR]]></category>
		<category><![CDATA[Purchase Requisition]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1965</guid>
		<description><![CDATA[This sample report shows the basic structure for getting the report for the Pending Purchase Requisition based on various selection options on screen. The report loops throgh the required Tables of Purchase Requisition and based on the data entered on screen, displays the desired data. The report is to be modified/tweaked as per the custom [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This sample report shows the basic structure for getting the report for the Pending Purchase Requisition based on various selection options on screen.</p>
<p style="text-align: justify;">The report loops throgh the required Tables of Purchase Requisition and based on the data entered on screen, displays the desired data. The report is to be modified/tweaked as per the custom need.</p>
<div style="text-align: justify; width: 100%; float: left;">
<p style="text-align: center;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2011/10/purchase_requisition.gif"><img class="aligncenter size-full wp-image-1967" title="purchase_requisition" src="http://www.abap-tutorials.com/wp-content/uploads/2011/10/purchase_requisition.gif" alt="purchase_requisition" width="490" height="367" /></a></p>
</div>
<p style="text-align: justify;"> <span id="more-1965"></span></p>
<p style="text-align: justify;">The basic purpose of the report is to develop a pragmatical flow of the language, the way normally ABAP programs are written.</p>
<p style="text-align: justify;">Download Source Code : <a href="http://www.abap-tutorials.com/wp-content/uploads/2011/10/Z_PENDING_PRS_REPORT.txt">Z_PENDING_PRS_REPORT</a></p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2011/11/17/abap-pending-purchase-orders-po-report/' rel='bookmark' title='ABAP Pending Purchase Orders (PO) Report'>ABAP Pending Purchase Orders (PO) Report</a></li>
<li><a href='http://www.abap-tutorials.com/2010/05/07/abap-programs-for-beginners/' rel='bookmark' title='ABAP Programs for Beginners'>ABAP Programs for Beginners</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/11/find-my-words/' rel='bookmark' title='ABAP Program to search specific words(string) in SAP Programs'>ABAP Program to search specific words(string) in SAP Programs</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2011/10/30/abap-pending-purchase-recquisition-pr-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAP renaming Field Names/Keywords using CMOD</title>
		<link>http://www.abap-tutorials.com/2011/10/19/sap-renaming-field-nameskeywords-using-cmod/</link>
		<comments>http://www.abap-tutorials.com/2011/10/19/sap-renaming-field-nameskeywords-using-cmod/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 05:14:04 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[DDIC]]></category>
		<category><![CDATA[Enhancement/Modification]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[SAP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Utility]]></category>
		<category><![CDATA[adjust fieldname]]></category>
		<category><![CDATA[CMOD]]></category>
		<category><![CDATA[enhance keywords]]></category>
		<category><![CDATA[enhancement]]></category>
		<category><![CDATA[fieldname enhancement]]></category>
		<category><![CDATA[rename fieldname]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1957</guid>
		<description><![CDATA[SAP allows to modify its Keywords/Field names using the Customer Modification Transaction(CMOD). To adjust/change any keyword or DDIC field name, navigate to CMOD and browse to the option Goto-&#62;Text Enhacements-&#62;Keywords-&#62;Change. It will ask you for the field name you want to modify/enhance. Here specify the Field Name and the language in which you want to [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">SAP allows to modify its Keywords/Field names using the Customer Modification Transaction(CMOD).</p>
<p style="text-align: justify;">To adjust/change any keyword or DDIC field name, navigate to CMOD and browse to the option Goto-&gt;Text Enhacements-&gt;Keywords-&gt;Change.</p>
<div style="width: 100%; float: left;">
<p style="text-align: justify;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2011/10/cmod1.jpg"><img class="aligncenter size-full wp-image-1958" title="cmod1" src="http://www.abap-tutorials.com/wp-content/uploads/2011/10/cmod1.jpg" alt="cmod1" width="446" height="274" /></a></p>
</div>
<p style="text-align: justify;"><span id="more-1957"></span></p>
<p style="text-align: justify;">It will ask you for the field name you want to modify/enhance. Here specify the Field Name and the language in which you want to change to be made.</p>
<div style="width: 100%; float: left;">
<p style="text-align: justify;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2011/10/cmod2.jpg"><img class="aligncenter size-full wp-image-1959" title="cmod2" src="http://www.abap-tutorials.com/wp-content/uploads/2011/10/cmod2.jpg" alt="cmod2" width="348" height="162" /></a></p>
</div>
<p style="text-align: justify;">It will take you the screen where you can specify various type of  texts for the field name enhacement. Change the text as desired and save. It will impact the keyword throughout SAP.</p>
<div style="width: 100%; float: left;">
<p style="text-align: center;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2011/10/cmod3.jpg"><img class="aligncenter size-full wp-image-1960" title="cmod3" src="http://www.abap-tutorials.com/wp-content/uploads/2011/10/cmod3.jpg" alt="cmod3" width="424" height="296" /></a></p>
</div>
<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/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/08/12/field-exit-in-sap/' rel='bookmark' title='Field Exit in SAP'>Field Exit in SAP</a></li>
<li><a href='http://www.abap-tutorials.com/2009/09/21/add-search-help-to-screen-field-in-sap/' rel='bookmark' title='Add Search Help to Screen Field in SAP'>Add Search Help to Screen Field in SAP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2011/10/19/sap-renaming-field-nameskeywords-using-cmod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Error while sending invoice automatically via email</title>
		<link>http://www.abap-tutorials.com/2011/09/08/error-while-sending-invoice-automatically-via-email/</link>
		<comments>http://www.abap-tutorials.com/2011/09/08/error-while-sending-invoice-automatically-via-email/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 12:03:13 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[SAPScript]]></category>
		<category><![CDATA[automailer]]></category>
		<category><![CDATA[communication strategy]]></category>
		<category><![CDATA[Communication type cannot be used]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[NAST]]></category>
		<category><![CDATA[Please enter an address number]]></category>
		<category><![CDATA[SCOT]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1936</guid>
		<description><![CDATA[There have been this case recently that, while sending invoice automatically via email, I got the following errors while seeing the error log for the output type. The configuration of communication strategy, SCOT and output types looks ok, but still the error persists. The error says : Please enter an address number Communication type  cannot [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">There have been this case recently that, while sending invoice automatically via email, I got the following errors while seeing the error log for the output type. The configuration of communication strategy, SCOT and output types looks ok, but still the error persists.</p>
<div style="width: 100%; float: left; text-align: justify;">
<p style="text-align: center;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2011/09/print_error.jpg"><img class="aligncenter size-full wp-image-1937" title="print_error" src="http://www.abap-tutorials.com/wp-content/uploads/2011/09/print_error.jpg" alt="print_error" width="523" height="117" /></a></p>
</div>
<p style="text-align: justify;">The error says :</p>
<p style="text-align: justify;"><strong>Please enter an address number</strong><br />
<strong>Communication type  cannot be used</strong></p>
<p style="text-align: justify;"><span id="more-1936"></span></p>
<p style="text-align: justify;">This error is because of the print program (used in output type) the three fields listed were not populated.<br />
addr_key-addrnumber, addr_key-persnumber, and addr_key-addr_type.</p>
<p style="text-align: justify;">Below is the call function where these 3 fields need to be exported. Please try putting values in debug mode and it should work.</p>
<p style="text-align: justify;">&nbsp;</p>
<p style="text-align: justify;">CALL FUNCTION &#8216;<strong>ADDR_GET_NEXT_COMM_TYPE</strong>&#8216;<br />
EXPORTING<br />
strategy = nast-tcode<br />
address_number = addr_key-addrnumber<br />
person_number = addr_key-persnumber<br />
IMPORTING<br />
comm_type = lvs_comm_type<br />
comm_values = lvs_comm_values</p>
<p style="text-align: justify;">The values for the 3 fields are in addr_key table.</p>
<p style="text-align: justify;">Lets see an <strong>example</strong> for the same, where different function module is used ( at the time <strong>of Billing</strong>).</p>
<p style="text-align: justify;"><!-- SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L1S31 { font-style: italic; color: #808080; } .L1S32 { color: #3399FF; } .L1S33 { color: #4DA619; } .L1S52 { color: #0000FF; } --> vbco3-mandt = sy-mandt.<br />
vbco3-spras = nast-spras.<br />
vbco3-kunde = nast-parnr.<br />
vbco3-parvw = nast-parvw.</p>
<p>CALL FUNCTION &#8217;<strong>RV_BILLING_PRINT_VIEW</strong>&#8216;<br />
EXPORTING<br />
comwa                        = vbco3<br />
IMPORTING<br />
kopf                         = <strong>vbdkr</strong><br />
TABLES<br />
pos                          = tvbdpr<br />
EXCEPTIONS<br />
terms_of_payment_not_in_t052 = 1<br />
error_message                = 5<br />
OTHERS                       = 4.<br />
IF NOT sy-subrc IS INITIAL.<br />
IF sy-subrc = 1.<br />
syst-msgty = &#8217;I&#8217;.<br />
PERFORM protocol_update.<br />
ENDIF.<br />
ENDIF.</p>
<p>* fill address key &#8211;&gt; necessary for emails<br />
<strong>ADDR_KEY-ADDRNUMBER = vbdkr-ADRNR.</strong><br />
<strong> ADDR_KEY-PERSNUMBER = vbdkr-ADRNP.</strong><br />
<strong> ADDR_KEY-ADDR_TYPE  = vbdkr-ADDRESS_TYPE.</strong></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/2011/07/02/abap-automailer-program-for-sending-output-of-sap-tcodes-in-background/' rel='bookmark' title='ABAP Automailer program for sending output of SAP TCodes in Background'>ABAP Automailer program for sending output of SAP TCodes in Background</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/20/abap-editor-create-custom-pattern/' rel='bookmark' title='ABAP Editor: Create custom Pattern'>ABAP Editor: Create custom Pattern</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/30/catch-the-dump/' rel='bookmark' title='Catch the Dump in ABAP &#8211; I'>Catch the Dump in ABAP &#8211; I</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2011/09/08/error-while-sending-invoice-automatically-via-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamically read fields, field names and field contents using field symbols</title>
		<link>http://www.abap-tutorials.com/2011/09/06/dynamically-read-fields-field-names-and-field-contents-using-field-symbols/</link>
		<comments>http://www.abap-tutorials.com/2011/09/06/dynamically-read-fields-field-names-and-field-contents-using-field-symbols/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 04:32:59 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[ABAP]]></category>
		<category><![CDATA[Quick Reference]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[dynamic field]]></category>
		<category><![CDATA[dynamic read]]></category>
		<category><![CDATA[field symbol]]></category>
		<category><![CDATA[placeholder]]></category>

		<guid isPermaLink="false">http://www.abap-tutorials.com/?p=1930</guid>
		<description><![CDATA[There has been requirements in ABAP to read the data from tables dynamically, based on specific field names. Those are the cases where we don&#8217;t know the field name to be read until run-time, and then we are have to read its data too. The most efficient way to deal with such situations is Field [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">There has been requirements in ABAP to read the data from tables dynamically, based on specific field names. Those are the cases where we don&#8217;t know the field name to be read until run-time, and then we are have to read its data too.</p>
<p style="text-align: justify;">The most efficient way to deal with such situations is Field Symbol. As we know, Field Symbols are like a placeholder or symbolic names for any object, variable or value.</p>
<div style="width:100%;float:left">
<p style="text-align: center;"><a href="http://www.abap-tutorials.com/wp-content/uploads/2011/09/placeholderf.jpg"><img class="aligncenter size-full wp-image-1931" title="placeholder" src="http://www.abap-tutorials.com/wp-content/uploads/2011/09/placeholderf.jpg" alt="placeholder" width="360" height="214" /></a></p>
</div>
<p style="text-align: justify;"><span id="more-1930"></span></p>
<p style="text-align: justify;">We can use following code as an sample code and customize as per our requirements.</p>
<p style="text-align: justify;"><strong>Code snippet:</strong></p>
<p>FIELD-SYMBOLS:<br />
&lt;fieldname&gt; TYPE ANY, &#8220;Name of field<br />
&lt;line&gt; TYPE ANY, &#8220;Line structure for table<br />
&lt;fieldvalue&gt; TYPE ANY. &#8220;Value of field</p>
<p>DATA: l_shorttext LIKE dd03m-ddtext.</p>
<p>DATA: wa_dd03l LIKE dd03l.</p>
<p>SELECT *<br />
FROM dd03l<br />
INTO wa_dd03l<br />
WHERE tabname = &#8216;ZTEST_TAB&#8217;.</p>
<p><span style="color: #0000ff;">* Assign name of field<br />
</span> ASSIGN COMPONENT 2 OF STRUCTURE wa_dd03l TO &lt;fieldname&gt;.</p>
<p><span style="color: #0000ff;">* Assign structure for internal table</span><br />
ASSIGN wa_pa1_delta TO &lt;line&gt;.</p>
<p><span style="color: #0000ff;">* Assign field value from structure</span><br />
ASSIGN COMPONENT &lt;fieldname&gt; OF STRUCTURE &lt;line&gt; TO &lt;fieldvalue&gt;.</p>
<p><span style="color: #0000ff;">* Find DD text for field</span><br />
SELECT SINGLE ddtext<br />
FROM dd03m<br />
INTO l_shorttext<br />
WHERE<br />
tabname = &#8216;ZTEST_TAB&#8217; AND<br />
fieldname = &lt;fieldname&gt; AND<br />
ddlanguage = &#8216;EN&#8217;.</p>
<p>WRITE: / &lt;fieldname&gt;, l_shorttext, &#8216; : &#8216;, &lt;fieldvalue&gt;.</p>
<p>ENDSELECT.</p>
<p>&nbsp;</p>
<p><strong>Another code snippet:</strong></p>
<p style="text-align: justify;">Suppose we want to sum the fields from table(say, GLT0) only till the period the user enters on screen.</p>
<p style="text-align: justify;"><!-- SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L1S31 { font-style: italic; color: #808080; } .L1S32 { color: #3399FF; } .L1S33 { color: #4DA619; } .L1S52 { color: #0000FF; } --> SELECT * FROM GLT0 WHERE BUKRS = P_BUKRS<br />
AND RYEAR = CURRY<br />
AND RBUSA IN P_GSBER.<br />
V_VAR = 01. &#8221; Temp var for reading Period from 01<br />
WHILE V_VAR &lt;= P_MONAT. &#8221; P_MONAT-&gt; user enters on screen<br />
CONCATENATE &#8217;TSL&#8217; V_VAR INTO V_WAR. &#8221; concat fieldname into local var<br />
ASSIGN V_WAR TO &lt;FS&gt;. &#8221; Assign to Field Symbol<br />
ASSIGN GLT0 TO &lt;L&gt;. &#8220;Assign line/structure<br />
ASSIGN COMPONENT &lt;FS&gt; OF STRUCTURE &lt;L&gt; TO &lt;FS1&gt;. &#8220;read fieldvalue<br />
V_CURSTK = V_CURSTK + &lt;FS1&gt;. &#8220;adding the values in var<br />
V_VAR = V_VAR + 1. &#8220;increment the loop variable<br />
ENDWHILE.<br />
ENDSELECT.</p>
<p>&nbsp;</p>


<p>You might also be interested in these posts:<ol><li><a href='http://www.abap-tutorials.com/2009/07/28/edit-alv-grid-contents/' rel='bookmark' title='ABAP Program with Editable ALV Grid Contents'>ABAP Program with Editable ALV Grid Contents</a></li>
<li><a href='http://www.abap-tutorials.com/2011/10/19/sap-renaming-field-nameskeywords-using-cmod/' rel='bookmark' title='SAP renaming Field Names/Keywords using CMOD'>SAP renaming Field Names/Keywords using CMOD</a></li>
<li><a href='http://www.abap-tutorials.com/2009/07/22/demystifying-field-groups/' rel='bookmark' title='Demystifying Field Groups in ABAP'>Demystifying Field Groups in ABAP</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.abap-tutorials.com/2011/09/06/dynamically-read-fields-field-names-and-field-contents-using-field-symbols/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

